Vertex AI v1beta1 API - Class VertexRagDataServiceClient (1.0.0-beta74)

public abstract class VertexRagDataServiceClient

Reference documentation and code samples for the Vertex AI v1beta1 API class VertexRagDataServiceClient.

VertexRagDataService client wrapper, for convenient use.

Inheritance

object > VertexRagDataServiceClient

Namespace

Google.Cloud.AIPlatform.V1Beta1

Assembly

Google.Cloud.AIPlatform.V1Beta1.dll

Remarks

A service for managing user data for RAG.

Properties

BatchCreateRagDataSchemasOperationsClient

public virtual OperationsClient BatchCreateRagDataSchemasOperationsClient { get; }

The long-running operations client for BatchCreateRagDataSchemas.

Property Value
Type Description
OperationsClient

BatchCreateRagMetadataOperationsClient

public virtual OperationsClient BatchCreateRagMetadataOperationsClient { get; }

The long-running operations client for BatchCreateRagMetadata.

Property Value
Type Description
OperationsClient

BatchDeleteRagDataSchemasOperationsClient

public virtual OperationsClient BatchDeleteRagDataSchemasOperationsClient { get; }

The long-running operations client for BatchDeleteRagDataSchemas.

Property Value
Type Description
OperationsClient

BatchDeleteRagMetadataOperationsClient

public virtual OperationsClient BatchDeleteRagMetadataOperationsClient { get; }

The long-running operations client for BatchDeleteRagMetadata.

Property Value
Type Description
OperationsClient

CreateRagCorpusOperationsClient

public virtual OperationsClient CreateRagCorpusOperationsClient { get; }

The long-running operations client for CreateRagCorpus.

Property Value
Type Description
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

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

Property Value
Type Description
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default VertexRagDataService scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

The default VertexRagDataService scopes are:

DeleteRagCorpusOperationsClient

public virtual OperationsClient DeleteRagCorpusOperationsClient { get; }

The long-running operations client for DeleteRagCorpus.

Property Value
Type Description
OperationsClient

DeleteRagFileOperationsClient

public virtual OperationsClient DeleteRagFileOperationsClient { get; }

The long-running operations client for DeleteRagFile.

Property Value
Type Description
OperationsClient

GrpcClient

public virtual VertexRagDataService.VertexRagDataServiceClient GrpcClient { get; }

The underlying gRPC VertexRagDataService client

Property Value
Type Description
VertexRagDataServiceVertexRagDataServiceClient

IAMPolicyClient

public virtual IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
Type Description
IAMPolicyClient

ImportRagFilesOperationsClient

public virtual OperationsClient ImportRagFilesOperationsClient { get; }

The long-running operations client for ImportRagFiles.

Property Value
Type Description
OperationsClient

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

UpdateRagCorpusOperationsClient

public virtual OperationsClient UpdateRagCorpusOperationsClient { get; }

The long-running operations client for UpdateRagCorpus.

Property Value
Type Description
OperationsClient

UpdateRagEngineConfigOperationsClient

public virtual OperationsClient UpdateRagEngineConfigOperationsClient { get; }

The long-running operations client for UpdateRagEngineConfig.

Property Value
Type Description
OperationsClient

Methods

BatchCreateRagDataSchemas(BatchCreateRagDataSchemasRequest, CallSettings)

public virtual Operation<BatchCreateRagDataSchemasResponse, BatchCreateRagDataSchemasOperationMetadata> BatchCreateRagDataSchemas(BatchCreateRagDataSchemasRequest request, CallSettings callSettings = null)

Batch Create one or more RagDataSchemas

Parameters
Name Description
request BatchCreateRagDataSchemasRequest

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
OperationBatchCreateRagDataSchemasResponseBatchCreateRagDataSchemasOperationMetadata

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
BatchCreateRagDataSchemasRequest request = new BatchCreateRagDataSchemasRequest
{
    ParentAsRagCorpusName = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"),
    Requests =
    {
        new CreateRagDataSchemaRequest(),
    },
};
// Make the request
Operation<BatchCreateRagDataSchemasResponse, BatchCreateRagDataSchemasOperationMetadata> response = vertexRagDataServiceClient.BatchCreateRagDataSchemas(request);

// Poll until the returned long-running operation is complete
Operation<BatchCreateRagDataSchemasResponse, BatchCreateRagDataSchemasOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchCreateRagDataSchemasResponse 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<BatchCreateRagDataSchemasResponse, BatchCreateRagDataSchemasOperationMetadata> retrievedResponse = vertexRagDataServiceClient.PollOnceBatchCreateRagDataSchemas(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchCreateRagDataSchemasResponse retrievedResult = retrievedResponse.Result;
}

BatchCreateRagDataSchemasAsync(BatchCreateRagDataSchemasRequest, CallSettings)

public virtual Task<Operation<BatchCreateRagDataSchemasResponse, BatchCreateRagDataSchemasOperationMetadata>> BatchCreateRagDataSchemasAsync(BatchCreateRagDataSchemasRequest request, CallSettings callSettings = null)

Batch Create one or more RagDataSchemas

Parameters
Name Description
request BatchCreateRagDataSchemasRequest

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
TaskOperationBatchCreateRagDataSchemasResponseBatchCreateRagDataSchemasOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
BatchCreateRagDataSchemasRequest request = new BatchCreateRagDataSchemasRequest
{
    ParentAsRagCorpusName = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"),
    Requests =
    {
        new CreateRagDataSchemaRequest(),
    },
};
// Make the request
Operation<BatchCreateRagDataSchemasResponse, BatchCreateRagDataSchemasOperationMetadata> response = await vertexRagDataServiceClient.BatchCreateRagDataSchemasAsync(request);

// Poll until the returned long-running operation is complete
Operation<BatchCreateRagDataSchemasResponse, BatchCreateRagDataSchemasOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchCreateRagDataSchemasResponse 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<BatchCreateRagDataSchemasResponse, BatchCreateRagDataSchemasOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceBatchCreateRagDataSchemasAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchCreateRagDataSchemasResponse retrievedResult = retrievedResponse.Result;
}

BatchCreateRagDataSchemasAsync(BatchCreateRagDataSchemasRequest, CancellationToken)

public virtual Task<Operation<BatchCreateRagDataSchemasResponse, BatchCreateRagDataSchemasOperationMetadata>> BatchCreateRagDataSchemasAsync(BatchCreateRagDataSchemasRequest request, CancellationToken cancellationToken)

Batch Create one or more RagDataSchemas

Parameters
Name Description
request BatchCreateRagDataSchemasRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationBatchCreateRagDataSchemasResponseBatchCreateRagDataSchemasOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
BatchCreateRagDataSchemasRequest request = new BatchCreateRagDataSchemasRequest
{
    ParentAsRagCorpusName = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"),
    Requests =
    {
        new CreateRagDataSchemaRequest(),
    },
};
// Make the request
Operation<BatchCreateRagDataSchemasResponse, BatchCreateRagDataSchemasOperationMetadata> response = await vertexRagDataServiceClient.BatchCreateRagDataSchemasAsync(request);

// Poll until the returned long-running operation is complete
Operation<BatchCreateRagDataSchemasResponse, BatchCreateRagDataSchemasOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchCreateRagDataSchemasResponse 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<BatchCreateRagDataSchemasResponse, BatchCreateRagDataSchemasOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceBatchCreateRagDataSchemasAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchCreateRagDataSchemasResponse retrievedResult = retrievedResponse.Result;
}

BatchCreateRagMetadata(BatchCreateRagMetadataRequest, CallSettings)

public virtual Operation<BatchCreateRagMetadataResponse, BatchCreateRagMetadataOperationMetadata> BatchCreateRagMetadata(BatchCreateRagMetadataRequest request, CallSettings callSettings = null)

Batch Create one or more RagMetadatas

Parameters
Name Description
request BatchCreateRagMetadataRequest

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
OperationBatchCreateRagMetadataResponseBatchCreateRagMetadataOperationMetadata

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
BatchCreateRagMetadataRequest request = new BatchCreateRagMetadataRequest
{
    ParentAsRagFileName = RagFileName.FromProjectLocationRagCorpusRagFile("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]"),
    Requests =
    {
        new CreateRagMetadataRequest(),
    },
};
// Make the request
Operation<BatchCreateRagMetadataResponse, BatchCreateRagMetadataOperationMetadata> response = vertexRagDataServiceClient.BatchCreateRagMetadata(request);

// Poll until the returned long-running operation is complete
Operation<BatchCreateRagMetadataResponse, BatchCreateRagMetadataOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchCreateRagMetadataResponse 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<BatchCreateRagMetadataResponse, BatchCreateRagMetadataOperationMetadata> retrievedResponse = vertexRagDataServiceClient.PollOnceBatchCreateRagMetadata(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchCreateRagMetadataResponse retrievedResult = retrievedResponse.Result;
}

BatchCreateRagMetadataAsync(BatchCreateRagMetadataRequest, CallSettings)

public virtual Task<Operation<BatchCreateRagMetadataResponse, BatchCreateRagMetadataOperationMetadata>> BatchCreateRagMetadataAsync(BatchCreateRagMetadataRequest request, CallSettings callSettings = null)

Batch Create one or more RagMetadatas

Parameters
Name Description
request BatchCreateRagMetadataRequest

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
TaskOperationBatchCreateRagMetadataResponseBatchCreateRagMetadataOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
BatchCreateRagMetadataRequest request = new BatchCreateRagMetadataRequest
{
    ParentAsRagFileName = RagFileName.FromProjectLocationRagCorpusRagFile("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]"),
    Requests =
    {
        new CreateRagMetadataRequest(),
    },
};
// Make the request
Operation<BatchCreateRagMetadataResponse, BatchCreateRagMetadataOperationMetadata> response = await vertexRagDataServiceClient.BatchCreateRagMetadataAsync(request);

// Poll until the returned long-running operation is complete
Operation<BatchCreateRagMetadataResponse, BatchCreateRagMetadataOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchCreateRagMetadataResponse 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<BatchCreateRagMetadataResponse, BatchCreateRagMetadataOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceBatchCreateRagMetadataAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchCreateRagMetadataResponse retrievedResult = retrievedResponse.Result;
}

BatchCreateRagMetadataAsync(BatchCreateRagMetadataRequest, CancellationToken)

public virtual Task<Operation<BatchCreateRagMetadataResponse, BatchCreateRagMetadataOperationMetadata>> BatchCreateRagMetadataAsync(BatchCreateRagMetadataRequest request, CancellationToken cancellationToken)

Batch Create one or more RagMetadatas

Parameters
Name Description
request BatchCreateRagMetadataRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationBatchCreateRagMetadataResponseBatchCreateRagMetadataOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
BatchCreateRagMetadataRequest request = new BatchCreateRagMetadataRequest
{
    ParentAsRagFileName = RagFileName.FromProjectLocationRagCorpusRagFile("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]"),
    Requests =
    {
        new CreateRagMetadataRequest(),
    },
};
// Make the request
Operation<BatchCreateRagMetadataResponse, BatchCreateRagMetadataOperationMetadata> response = await vertexRagDataServiceClient.BatchCreateRagMetadataAsync(request);

// Poll until the returned long-running operation is complete
Operation<BatchCreateRagMetadataResponse, BatchCreateRagMetadataOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchCreateRagMetadataResponse 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<BatchCreateRagMetadataResponse, BatchCreateRagMetadataOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceBatchCreateRagMetadataAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchCreateRagMetadataResponse retrievedResult = retrievedResponse.Result;
}

BatchDeleteRagDataSchemas(BatchDeleteRagDataSchemasRequest, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> BatchDeleteRagDataSchemas(BatchDeleteRagDataSchemasRequest request, CallSettings callSettings = null)

Batch Deletes one or more RagDataSchemas

Parameters
Name Description
request BatchDeleteRagDataSchemasRequest

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
OperationEmptyDeleteOperationMetadata

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
BatchDeleteRagDataSchemasRequest request = new BatchDeleteRagDataSchemasRequest
{
    ParentAsRagCorpusName = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"),
    RagDataSchemaNames =
    {
        RagDataSchemaName.FromProjectLocationRagCorpusRagDataSchema("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_DATA_SCHEMA]"),
    },
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = vertexRagDataServiceClient.BatchDeleteRagDataSchemas(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> 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, DeleteOperationMetadata> retrievedResponse = vertexRagDataServiceClient.PollOnceBatchDeleteRagDataSchemas(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;
}

BatchDeleteRagDataSchemasAsync(BatchDeleteRagDataSchemasRequest, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> BatchDeleteRagDataSchemasAsync(BatchDeleteRagDataSchemasRequest request, CallSettings callSettings = null)

Batch Deletes one or more RagDataSchemas

Parameters
Name Description
request BatchDeleteRagDataSchemasRequest

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
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
BatchDeleteRagDataSchemasRequest request = new BatchDeleteRagDataSchemasRequest
{
    ParentAsRagCorpusName = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"),
    RagDataSchemaNames =
    {
        RagDataSchemaName.FromProjectLocationRagCorpusRagDataSchema("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_DATA_SCHEMA]"),
    },
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await vertexRagDataServiceClient.BatchDeleteRagDataSchemasAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> 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, DeleteOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceBatchDeleteRagDataSchemasAsync(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;
}

BatchDeleteRagDataSchemasAsync(BatchDeleteRagDataSchemasRequest, CancellationToken)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> BatchDeleteRagDataSchemasAsync(BatchDeleteRagDataSchemasRequest request, CancellationToken cancellationToken)

Batch Deletes one or more RagDataSchemas

Parameters
Name Description
request BatchDeleteRagDataSchemasRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
BatchDeleteRagDataSchemasRequest request = new BatchDeleteRagDataSchemasRequest
{
    ParentAsRagCorpusName = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"),
    RagDataSchemaNames =
    {
        RagDataSchemaName.FromProjectLocationRagCorpusRagDataSchema("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_DATA_SCHEMA]"),
    },
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await vertexRagDataServiceClient.BatchDeleteRagDataSchemasAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> 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, DeleteOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceBatchDeleteRagDataSchemasAsync(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;
}

BatchDeleteRagMetadata(BatchDeleteRagMetadataRequest, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> BatchDeleteRagMetadata(BatchDeleteRagMetadataRequest request, CallSettings callSettings = null)

Batch Deletes one or more RagMetadata.

Parameters
Name Description
request BatchDeleteRagMetadataRequest

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
OperationEmptyDeleteOperationMetadata

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
BatchDeleteRagMetadataRequest request = new BatchDeleteRagMetadataRequest
{
    ParentAsRagFileName = RagFileName.FromProjectLocationRagCorpusRagFile("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]"),
    RagMetadataNames =
    {
        RagMetadataName.FromProjectLocationRagCorpusRagFileRagMetadata("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]", "[RAG_METADATA]"),
    },
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = vertexRagDataServiceClient.BatchDeleteRagMetadata(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> 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, DeleteOperationMetadata> retrievedResponse = vertexRagDataServiceClient.PollOnceBatchDeleteRagMetadata(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;
}

BatchDeleteRagMetadataAsync(BatchDeleteRagMetadataRequest, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> BatchDeleteRagMetadataAsync(BatchDeleteRagMetadataRequest request, CallSettings callSettings = null)

Batch Deletes one or more RagMetadata.

Parameters
Name Description
request BatchDeleteRagMetadataRequest

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
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
BatchDeleteRagMetadataRequest request = new BatchDeleteRagMetadataRequest
{
    ParentAsRagFileName = RagFileName.FromProjectLocationRagCorpusRagFile("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]"),
    RagMetadataNames =
    {
        RagMetadataName.FromProjectLocationRagCorpusRagFileRagMetadata("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]", "[RAG_METADATA]"),
    },
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await vertexRagDataServiceClient.BatchDeleteRagMetadataAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> 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, DeleteOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceBatchDeleteRagMetadataAsync(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;
}

BatchDeleteRagMetadataAsync(BatchDeleteRagMetadataRequest, CancellationToken)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> BatchDeleteRagMetadataAsync(BatchDeleteRagMetadataRequest request, CancellationToken cancellationToken)

Batch Deletes one or more RagMetadata.

Parameters
Name Description
request BatchDeleteRagMetadataRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
BatchDeleteRagMetadataRequest request = new BatchDeleteRagMetadataRequest
{
    ParentAsRagFileName = RagFileName.FromProjectLocationRagCorpusRagFile("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]"),
    RagMetadataNames =
    {
        RagMetadataName.FromProjectLocationRagCorpusRagFileRagMetadata("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]", "[RAG_METADATA]"),
    },
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await vertexRagDataServiceClient.BatchDeleteRagMetadataAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> 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, DeleteOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceBatchDeleteRagMetadataAsync(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;
}

Create()

public static VertexRagDataServiceClient Create()

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

Returns
Type Description
VertexRagDataServiceClient

The created VertexRagDataServiceClient.

CreateAsync(CancellationToken)

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

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

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskVertexRagDataServiceClient

The task representing the created VertexRagDataServiceClient.

CreateRagCorpus(LocationName, RagCorpus, CallSettings)

public virtual Operation<RagCorpus, CreateRagCorpusOperationMetadata> CreateRagCorpus(LocationName parent, RagCorpus ragCorpus, CallSettings callSettings = null)

Creates a RagCorpus.

Parameters
Name Description
parent LocationName

Required. The resource name of the Location to create the RagCorpus in. Format: projects/{project}/locations/{location}

ragCorpus RagCorpus

Required. The RagCorpus to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationRagCorpusCreateRagCorpusOperationMetadata

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
RagCorpus ragCorpus = new RagCorpus();
// Make the request
Operation<RagCorpus, CreateRagCorpusOperationMetadata> response = vertexRagDataServiceClient.CreateRagCorpus(parent, ragCorpus);

// Poll until the returned long-running operation is complete
Operation<RagCorpus, CreateRagCorpusOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RagCorpus 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<RagCorpus, CreateRagCorpusOperationMetadata> retrievedResponse = vertexRagDataServiceClient.PollOnceCreateRagCorpus(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    RagCorpus retrievedResult = retrievedResponse.Result;
}

CreateRagCorpus(CreateRagCorpusRequest, CallSettings)

public virtual Operation<RagCorpus, CreateRagCorpusOperationMetadata> CreateRagCorpus(CreateRagCorpusRequest request, CallSettings callSettings = null)

Creates a RagCorpus.

Parameters
Name Description
request CreateRagCorpusRequest

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
OperationRagCorpusCreateRagCorpusOperationMetadata

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
CreateRagCorpusRequest request = new CreateRagCorpusRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    RagCorpus = new RagCorpus(),
};
// Make the request
Operation<RagCorpus, CreateRagCorpusOperationMetadata> response = vertexRagDataServiceClient.CreateRagCorpus(request);

// Poll until the returned long-running operation is complete
Operation<RagCorpus, CreateRagCorpusOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RagCorpus 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<RagCorpus, CreateRagCorpusOperationMetadata> retrievedResponse = vertexRagDataServiceClient.PollOnceCreateRagCorpus(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    RagCorpus retrievedResult = retrievedResponse.Result;
}

CreateRagCorpus(string, RagCorpus, CallSettings)

public virtual Operation<RagCorpus, CreateRagCorpusOperationMetadata> CreateRagCorpus(string parent, RagCorpus ragCorpus, CallSettings callSettings = null)

Creates a RagCorpus.

Parameters
Name Description
parent string

Required. The resource name of the Location to create the RagCorpus in. Format: projects/{project}/locations/{location}

ragCorpus RagCorpus

Required. The RagCorpus to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationRagCorpusCreateRagCorpusOperationMetadata

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
RagCorpus ragCorpus = new RagCorpus();
// Make the request
Operation<RagCorpus, CreateRagCorpusOperationMetadata> response = vertexRagDataServiceClient.CreateRagCorpus(parent, ragCorpus);

// Poll until the returned long-running operation is complete
Operation<RagCorpus, CreateRagCorpusOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RagCorpus 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<RagCorpus, CreateRagCorpusOperationMetadata> retrievedResponse = vertexRagDataServiceClient.PollOnceCreateRagCorpus(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    RagCorpus retrievedResult = retrievedResponse.Result;
}

CreateRagCorpusAsync(LocationName, RagCorpus, CallSettings)

public virtual Task<Operation<RagCorpus, CreateRagCorpusOperationMetadata>> CreateRagCorpusAsync(LocationName parent, RagCorpus ragCorpus, CallSettings callSettings = null)

Creates a RagCorpus.

Parameters
Name Description
parent LocationName

Required. The resource name of the Location to create the RagCorpus in. Format: projects/{project}/locations/{location}

ragCorpus RagCorpus

Required. The RagCorpus to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationRagCorpusCreateRagCorpusOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
RagCorpus ragCorpus = new RagCorpus();
// Make the request
Operation<RagCorpus, CreateRagCorpusOperationMetadata> response = await vertexRagDataServiceClient.CreateRagCorpusAsync(parent, ragCorpus);

// Poll until the returned long-running operation is complete
Operation<RagCorpus, CreateRagCorpusOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RagCorpus 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<RagCorpus, CreateRagCorpusOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceCreateRagCorpusAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    RagCorpus retrievedResult = retrievedResponse.Result;
}

CreateRagCorpusAsync(LocationName, RagCorpus, CancellationToken)

public virtual Task<Operation<RagCorpus, CreateRagCorpusOperationMetadata>> CreateRagCorpusAsync(LocationName parent, RagCorpus ragCorpus, CancellationToken cancellationToken)

Creates a RagCorpus.

Parameters
Name Description
parent LocationName

Required. The resource name of the Location to create the RagCorpus in. Format: projects/{project}/locations/{location}

ragCorpus RagCorpus

Required. The RagCorpus to create.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationRagCorpusCreateRagCorpusOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
RagCorpus ragCorpus = new RagCorpus();
// Make the request
Operation<RagCorpus, CreateRagCorpusOperationMetadata> response = await vertexRagDataServiceClient.CreateRagCorpusAsync(parent, ragCorpus);

// Poll until the returned long-running operation is complete
Operation<RagCorpus, CreateRagCorpusOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RagCorpus 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<RagCorpus, CreateRagCorpusOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceCreateRagCorpusAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    RagCorpus retrievedResult = retrievedResponse.Result;
}

CreateRagCorpusAsync(CreateRagCorpusRequest, CallSettings)

public virtual Task<Operation<RagCorpus, CreateRagCorpusOperationMetadata>> CreateRagCorpusAsync(CreateRagCorpusRequest request, CallSettings callSettings = null)

Creates a RagCorpus.

Parameters
Name Description
request CreateRagCorpusRequest

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
TaskOperationRagCorpusCreateRagCorpusOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
CreateRagCorpusRequest request = new CreateRagCorpusRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    RagCorpus = new RagCorpus(),
};
// Make the request
Operation<RagCorpus, CreateRagCorpusOperationMetadata> response = await vertexRagDataServiceClient.CreateRagCorpusAsync(request);

// Poll until the returned long-running operation is complete
Operation<RagCorpus, CreateRagCorpusOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RagCorpus 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<RagCorpus, CreateRagCorpusOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceCreateRagCorpusAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    RagCorpus retrievedResult = retrievedResponse.Result;
}

CreateRagCorpusAsync(CreateRagCorpusRequest, CancellationToken)

public virtual Task<Operation<RagCorpus, CreateRagCorpusOperationMetadata>> CreateRagCorpusAsync(CreateRagCorpusRequest request, CancellationToken cancellationToken)

Creates a RagCorpus.

Parameters
Name Description
request CreateRagCorpusRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationRagCorpusCreateRagCorpusOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
CreateRagCorpusRequest request = new CreateRagCorpusRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    RagCorpus = new RagCorpus(),
};
// Make the request
Operation<RagCorpus, CreateRagCorpusOperationMetadata> response = await vertexRagDataServiceClient.CreateRagCorpusAsync(request);

// Poll until the returned long-running operation is complete
Operation<RagCorpus, CreateRagCorpusOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RagCorpus 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<RagCorpus, CreateRagCorpusOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceCreateRagCorpusAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    RagCorpus retrievedResult = retrievedResponse.Result;
}

CreateRagCorpusAsync(string, RagCorpus, CallSettings)

public virtual Task<Operation<RagCorpus, CreateRagCorpusOperationMetadata>> CreateRagCorpusAsync(string parent, RagCorpus ragCorpus, CallSettings callSettings = null)

Creates a RagCorpus.

Parameters
Name Description
parent string

Required. The resource name of the Location to create the RagCorpus in. Format: projects/{project}/locations/{location}

ragCorpus RagCorpus

Required. The RagCorpus to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationRagCorpusCreateRagCorpusOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
RagCorpus ragCorpus = new RagCorpus();
// Make the request
Operation<RagCorpus, CreateRagCorpusOperationMetadata> response = await vertexRagDataServiceClient.CreateRagCorpusAsync(parent, ragCorpus);

// Poll until the returned long-running operation is complete
Operation<RagCorpus, CreateRagCorpusOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RagCorpus 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<RagCorpus, CreateRagCorpusOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceCreateRagCorpusAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    RagCorpus retrievedResult = retrievedResponse.Result;
}

CreateRagCorpusAsync(string, RagCorpus, CancellationToken)

public virtual Task<Operation<RagCorpus, CreateRagCorpusOperationMetadata>> CreateRagCorpusAsync(string parent, RagCorpus ragCorpus, CancellationToken cancellationToken)

Creates a RagCorpus.

Parameters
Name Description
parent string

Required. The resource name of the Location to create the RagCorpus in. Format: projects/{project}/locations/{location}

ragCorpus RagCorpus

Required. The RagCorpus to create.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationRagCorpusCreateRagCorpusOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
RagCorpus ragCorpus = new RagCorpus();
// Make the request
Operation<RagCorpus, CreateRagCorpusOperationMetadata> response = await vertexRagDataServiceClient.CreateRagCorpusAsync(parent, ragCorpus);

// Poll until the returned long-running operation is complete
Operation<RagCorpus, CreateRagCorpusOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RagCorpus 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<RagCorpus, CreateRagCorpusOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceCreateRagCorpusAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    RagCorpus retrievedResult = retrievedResponse.Result;
}

CreateRagDataSchema(CreateRagDataSchemaRequest, CallSettings)

public virtual RagDataSchema CreateRagDataSchema(CreateRagDataSchemaRequest request, CallSettings callSettings = null)

Creates a RagDataSchema.

Parameters
Name Description
request CreateRagDataSchemaRequest

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
RagDataSchema

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
CreateRagDataSchemaRequest request = new CreateRagDataSchemaRequest
{
    ParentAsRagCorpusName = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"),
    RagDataSchema = new RagDataSchema(),
    RagDataSchemaId = "",
};
// Make the request
RagDataSchema response = vertexRagDataServiceClient.CreateRagDataSchema(request);

CreateRagDataSchema(RagCorpusName, RagDataSchema, string, CallSettings)

public virtual RagDataSchema CreateRagDataSchema(RagCorpusName parent, RagDataSchema ragDataSchema, string ragDataSchemaId, CallSettings callSettings = null)

Creates a RagDataSchema.

Parameters
Name Description
parent RagCorpusName

Required. The resource name of the RagCorpus to create the RagDataSchema in. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

ragDataSchema RagDataSchema

Required. The RagDataSchema to create.

ragDataSchemaId string

Optional. The ID to use for the RagDataSchema, which will become the final component of the RagDataSchema's resource name if the user chooses to specify. Otherwise, RagDataSchema id will be generated by system.

This value should be up to 63 characters, and valid characters are /[a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
RagDataSchema

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
RagCorpusName parent = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]");
RagDataSchema ragDataSchema = new RagDataSchema();
string ragDataSchemaId = "";
// Make the request
RagDataSchema response = vertexRagDataServiceClient.CreateRagDataSchema(parent, ragDataSchema, ragDataSchemaId);

CreateRagDataSchema(string, RagDataSchema, string, CallSettings)

public virtual RagDataSchema CreateRagDataSchema(string parent, RagDataSchema ragDataSchema, string ragDataSchemaId, CallSettings callSettings = null)

Creates a RagDataSchema.

Parameters
Name Description
parent string

Required. The resource name of the RagCorpus to create the RagDataSchema in. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

ragDataSchema RagDataSchema

Required. The RagDataSchema to create.

ragDataSchemaId string

Optional. The ID to use for the RagDataSchema, which will become the final component of the RagDataSchema's resource name if the user chooses to specify. Otherwise, RagDataSchema id will be generated by system.

This value should be up to 63 characters, and valid characters are /[a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
RagDataSchema

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]";
RagDataSchema ragDataSchema = new RagDataSchema();
string ragDataSchemaId = "";
// Make the request
RagDataSchema response = vertexRagDataServiceClient.CreateRagDataSchema(parent, ragDataSchema, ragDataSchemaId);

CreateRagDataSchemaAsync(CreateRagDataSchemaRequest, CallSettings)

public virtual Task<RagDataSchema> CreateRagDataSchemaAsync(CreateRagDataSchemaRequest request, CallSettings callSettings = null)

Creates a RagDataSchema.

Parameters
Name Description
request CreateRagDataSchemaRequest

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
TaskRagDataSchema

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
CreateRagDataSchemaRequest request = new CreateRagDataSchemaRequest
{
    ParentAsRagCorpusName = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"),
    RagDataSchema = new RagDataSchema(),
    RagDataSchemaId = "",
};
// Make the request
RagDataSchema response = await vertexRagDataServiceClient.CreateRagDataSchemaAsync(request);

CreateRagDataSchemaAsync(CreateRagDataSchemaRequest, CancellationToken)

public virtual Task<RagDataSchema> CreateRagDataSchemaAsync(CreateRagDataSchemaRequest request, CancellationToken cancellationToken)

Creates a RagDataSchema.

Parameters
Name Description
request CreateRagDataSchemaRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRagDataSchema

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
CreateRagDataSchemaRequest request = new CreateRagDataSchemaRequest
{
    ParentAsRagCorpusName = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"),
    RagDataSchema = new RagDataSchema(),
    RagDataSchemaId = "",
};
// Make the request
RagDataSchema response = await vertexRagDataServiceClient.CreateRagDataSchemaAsync(request);

CreateRagDataSchemaAsync(RagCorpusName, RagDataSchema, string, CallSettings)

public virtual Task<RagDataSchema> CreateRagDataSchemaAsync(RagCorpusName parent, RagDataSchema ragDataSchema, string ragDataSchemaId, CallSettings callSettings = null)

Creates a RagDataSchema.

Parameters
Name Description
parent RagCorpusName

Required. The resource name of the RagCorpus to create the RagDataSchema in. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

ragDataSchema RagDataSchema

Required. The RagDataSchema to create.

ragDataSchemaId string

Optional. The ID to use for the RagDataSchema, which will become the final component of the RagDataSchema's resource name if the user chooses to specify. Otherwise, RagDataSchema id will be generated by system.

This value should be up to 63 characters, and valid characters are /[a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRagDataSchema

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
RagCorpusName parent = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]");
RagDataSchema ragDataSchema = new RagDataSchema();
string ragDataSchemaId = "";
// Make the request
RagDataSchema response = await vertexRagDataServiceClient.CreateRagDataSchemaAsync(parent, ragDataSchema, ragDataSchemaId);

CreateRagDataSchemaAsync(RagCorpusName, RagDataSchema, string, CancellationToken)

public virtual Task<RagDataSchema> CreateRagDataSchemaAsync(RagCorpusName parent, RagDataSchema ragDataSchema, string ragDataSchemaId, CancellationToken cancellationToken)

Creates a RagDataSchema.

Parameters
Name Description
parent RagCorpusName

Required. The resource name of the RagCorpus to create the RagDataSchema in. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

ragDataSchema RagDataSchema

Required. The RagDataSchema to create.

ragDataSchemaId string

Optional. The ID to use for the RagDataSchema, which will become the final component of the RagDataSchema's resource name if the user chooses to specify. Otherwise, RagDataSchema id will be generated by system.

This value should be up to 63 characters, and valid characters are /[a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRagDataSchema

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
RagCorpusName parent = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]");
RagDataSchema ragDataSchema = new RagDataSchema();
string ragDataSchemaId = "";
// Make the request
RagDataSchema response = await vertexRagDataServiceClient.CreateRagDataSchemaAsync(parent, ragDataSchema, ragDataSchemaId);

CreateRagDataSchemaAsync(string, RagDataSchema, string, CallSettings)

public virtual Task<RagDataSchema> CreateRagDataSchemaAsync(string parent, RagDataSchema ragDataSchema, string ragDataSchemaId, CallSettings callSettings = null)

Creates a RagDataSchema.

Parameters
Name Description
parent string

Required. The resource name of the RagCorpus to create the RagDataSchema in. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

ragDataSchema RagDataSchema

Required. The RagDataSchema to create.

ragDataSchemaId string

Optional. The ID to use for the RagDataSchema, which will become the final component of the RagDataSchema's resource name if the user chooses to specify. Otherwise, RagDataSchema id will be generated by system.

This value should be up to 63 characters, and valid characters are /[a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRagDataSchema

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]";
RagDataSchema ragDataSchema = new RagDataSchema();
string ragDataSchemaId = "";
// Make the request
RagDataSchema response = await vertexRagDataServiceClient.CreateRagDataSchemaAsync(parent, ragDataSchema, ragDataSchemaId);

CreateRagDataSchemaAsync(string, RagDataSchema, string, CancellationToken)

public virtual Task<RagDataSchema> CreateRagDataSchemaAsync(string parent, RagDataSchema ragDataSchema, string ragDataSchemaId, CancellationToken cancellationToken)

Creates a RagDataSchema.

Parameters
Name Description
parent string

Required. The resource name of the RagCorpus to create the RagDataSchema in. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

ragDataSchema RagDataSchema

Required. The RagDataSchema to create.

ragDataSchemaId string

Optional. The ID to use for the RagDataSchema, which will become the final component of the RagDataSchema's resource name if the user chooses to specify. Otherwise, RagDataSchema id will be generated by system.

This value should be up to 63 characters, and valid characters are /[a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRagDataSchema

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]";
RagDataSchema ragDataSchema = new RagDataSchema();
string ragDataSchemaId = "";
// Make the request
RagDataSchema response = await vertexRagDataServiceClient.CreateRagDataSchemaAsync(parent, ragDataSchema, ragDataSchemaId);

CreateRagMetadata(CreateRagMetadataRequest, CallSettings)

public virtual RagMetadata CreateRagMetadata(CreateRagMetadataRequest request, CallSettings callSettings = null)

Creates a RagMetadata.

Parameters
Name Description
request CreateRagMetadataRequest

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
RagMetadata

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
CreateRagMetadataRequest request = new CreateRagMetadataRequest
{
    ParentAsRagFileName = RagFileName.FromProjectLocationRagCorpusRagFile("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]"),
    RagMetadata = new RagMetadata(),
    RagMetadataId = "",
};
// Make the request
RagMetadata response = vertexRagDataServiceClient.CreateRagMetadata(request);

CreateRagMetadata(RagFileName, RagMetadata, string, CallSettings)

public virtual RagMetadata CreateRagMetadata(RagFileName parent, RagMetadata ragMetadata, string ragMetadataId, CallSettings callSettings = null)

Creates a RagMetadata.

Parameters
Name Description
parent RagFileName

Required. The parent resource where this metadata will be created. Format: projects/{project_number}/locations/{location_id}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}

ragMetadata RagMetadata

Required. The metadata to create.

ragMetadataId string

Optional. The ID to use for the metadata, which will become the final component of the metadata's resource name if the user chooses to specify. Otherwise, metadata id will be generated by system.

This value should be up to 63 characters, and valid characters are /[a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
RagMetadata

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
RagFileName parent = RagFileName.FromProjectLocationRagCorpusRagFile("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]");
RagMetadata ragMetadata = new RagMetadata();
string ragMetadataId = "";
// Make the request
RagMetadata response = vertexRagDataServiceClient.CreateRagMetadata(parent, ragMetadata, ragMetadataId);

CreateRagMetadata(string, RagMetadata, string, CallSettings)

public virtual RagMetadata CreateRagMetadata(string parent, RagMetadata ragMetadata, string ragMetadataId, CallSettings callSettings = null)

Creates a RagMetadata.

Parameters
Name Description
parent string

Required. The parent resource where this metadata will be created. Format: projects/{project_number}/locations/{location_id}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}

ragMetadata RagMetadata

Required. The metadata to create.

ragMetadataId string

Optional. The ID to use for the metadata, which will become the final component of the metadata's resource name if the user chooses to specify. Otherwise, metadata id will be generated by system.

This value should be up to 63 characters, and valid characters are /[a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
RagMetadata

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]/ragFiles/[RAG_FILE]";
RagMetadata ragMetadata = new RagMetadata();
string ragMetadataId = "";
// Make the request
RagMetadata response = vertexRagDataServiceClient.CreateRagMetadata(parent, ragMetadata, ragMetadataId);

CreateRagMetadataAsync(CreateRagMetadataRequest, CallSettings)

public virtual Task<RagMetadata> CreateRagMetadataAsync(CreateRagMetadataRequest request, CallSettings callSettings = null)

Creates a RagMetadata.

Parameters
Name Description
request CreateRagMetadataRequest

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
TaskRagMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
CreateRagMetadataRequest request = new CreateRagMetadataRequest
{
    ParentAsRagFileName = RagFileName.FromProjectLocationRagCorpusRagFile("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]"),
    RagMetadata = new RagMetadata(),
    RagMetadataId = "",
};
// Make the request
RagMetadata response = await vertexRagDataServiceClient.CreateRagMetadataAsync(request);

CreateRagMetadataAsync(CreateRagMetadataRequest, CancellationToken)

public virtual Task<RagMetadata> CreateRagMetadataAsync(CreateRagMetadataRequest request, CancellationToken cancellationToken)

Creates a RagMetadata.

Parameters
Name Description
request CreateRagMetadataRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRagMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
CreateRagMetadataRequest request = new CreateRagMetadataRequest
{
    ParentAsRagFileName = RagFileName.FromProjectLocationRagCorpusRagFile("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]"),
    RagMetadata = new RagMetadata(),
    RagMetadataId = "",
};
// Make the request
RagMetadata response = await vertexRagDataServiceClient.CreateRagMetadataAsync(request);

CreateRagMetadataAsync(RagFileName, RagMetadata, string, CallSettings)

public virtual Task<RagMetadata> CreateRagMetadataAsync(RagFileName parent, RagMetadata ragMetadata, string ragMetadataId, CallSettings callSettings = null)

Creates a RagMetadata.

Parameters
Name Description
parent RagFileName

Required. The parent resource where this metadata will be created. Format: projects/{project_number}/locations/{location_id}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}

ragMetadata RagMetadata

Required. The metadata to create.

ragMetadataId string

Optional. The ID to use for the metadata, which will become the final component of the metadata's resource name if the user chooses to specify. Otherwise, metadata id will be generated by system.

This value should be up to 63 characters, and valid characters are /[a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRagMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
RagFileName parent = RagFileName.FromProjectLocationRagCorpusRagFile("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]");
RagMetadata ragMetadata = new RagMetadata();
string ragMetadataId = "";
// Make the request
RagMetadata response = await vertexRagDataServiceClient.CreateRagMetadataAsync(parent, ragMetadata, ragMetadataId);

CreateRagMetadataAsync(RagFileName, RagMetadata, string, CancellationToken)

public virtual Task<RagMetadata> CreateRagMetadataAsync(RagFileName parent, RagMetadata ragMetadata, string ragMetadataId, CancellationToken cancellationToken)

Creates a RagMetadata.

Parameters
Name Description
parent RagFileName

Required. The parent resource where this metadata will be created. Format: projects/{project_number}/locations/{location_id}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}

ragMetadata RagMetadata

Required. The metadata to create.

ragMetadataId string

Optional. The ID to use for the metadata, which will become the final component of the metadata's resource name if the user chooses to specify. Otherwise, metadata id will be generated by system.

This value should be up to 63 characters, and valid characters are /[a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRagMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
RagFileName parent = RagFileName.FromProjectLocationRagCorpusRagFile("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]");
RagMetadata ragMetadata = new RagMetadata();
string ragMetadataId = "";
// Make the request
RagMetadata response = await vertexRagDataServiceClient.CreateRagMetadataAsync(parent, ragMetadata, ragMetadataId);

CreateRagMetadataAsync(string, RagMetadata, string, CallSettings)

public virtual Task<RagMetadata> CreateRagMetadataAsync(string parent, RagMetadata ragMetadata, string ragMetadataId, CallSettings callSettings = null)

Creates a RagMetadata.

Parameters
Name Description
parent string

Required. The parent resource where this metadata will be created. Format: projects/{project_number}/locations/{location_id}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}

ragMetadata RagMetadata

Required. The metadata to create.

ragMetadataId string

Optional. The ID to use for the metadata, which will become the final component of the metadata's resource name if the user chooses to specify. Otherwise, metadata id will be generated by system.

This value should be up to 63 characters, and valid characters are /[a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRagMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]/ragFiles/[RAG_FILE]";
RagMetadata ragMetadata = new RagMetadata();
string ragMetadataId = "";
// Make the request
RagMetadata response = await vertexRagDataServiceClient.CreateRagMetadataAsync(parent, ragMetadata, ragMetadataId);

CreateRagMetadataAsync(string, RagMetadata, string, CancellationToken)

public virtual Task<RagMetadata> CreateRagMetadataAsync(string parent, RagMetadata ragMetadata, string ragMetadataId, CancellationToken cancellationToken)

Creates a RagMetadata.

Parameters
Name Description
parent string

Required. The parent resource where this metadata will be created. Format: projects/{project_number}/locations/{location_id}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}

ragMetadata RagMetadata

Required. The metadata to create.

ragMetadataId string

Optional. The ID to use for the metadata, which will become the final component of the metadata's resource name if the user chooses to specify. Otherwise, metadata id will be generated by system.

This value should be up to 63 characters, and valid characters are /[a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRagMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]/ragFiles/[RAG_FILE]";
RagMetadata ragMetadata = new RagMetadata();
string ragMetadataId = "";
// Make the request
RagMetadata response = await vertexRagDataServiceClient.CreateRagMetadataAsync(parent, ragMetadata, ragMetadataId);

DeleteRagCorpus(DeleteRagCorpusRequest, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> DeleteRagCorpus(DeleteRagCorpusRequest request, CallSettings callSettings = null)

Deletes a RagCorpus.

Parameters
Name Description
request DeleteRagCorpusRequest

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
OperationEmptyDeleteOperationMetadata

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
DeleteRagCorpusRequest request = new DeleteRagCorpusRequest
{
    RagCorpusName = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"),
    Force = false,
    ForceDelete = false,
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = vertexRagDataServiceClient.DeleteRagCorpus(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> 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, DeleteOperationMetadata> retrievedResponse = vertexRagDataServiceClient.PollOnceDeleteRagCorpus(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;
}

DeleteRagCorpus(RagCorpusName, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> DeleteRagCorpus(RagCorpusName name, CallSettings callSettings = null)

Deletes a RagCorpus.

Parameters
Name Description
name RagCorpusName

Required. The name of the RagCorpus resource to be deleted. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
RagCorpusName name = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = vertexRagDataServiceClient.DeleteRagCorpus(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> 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, DeleteOperationMetadata> retrievedResponse = vertexRagDataServiceClient.PollOnceDeleteRagCorpus(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;
}

DeleteRagCorpus(string, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> DeleteRagCorpus(string name, CallSettings callSettings = null)

Deletes a RagCorpus.

Parameters
Name Description
name string

Required. The name of the RagCorpus resource to be deleted. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = vertexRagDataServiceClient.DeleteRagCorpus(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> 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, DeleteOperationMetadata> retrievedResponse = vertexRagDataServiceClient.PollOnceDeleteRagCorpus(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;
}

DeleteRagCorpusAsync(DeleteRagCorpusRequest, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteRagCorpusAsync(DeleteRagCorpusRequest request, CallSettings callSettings = null)

Deletes a RagCorpus.

Parameters
Name Description
request DeleteRagCorpusRequest

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
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteRagCorpusRequest request = new DeleteRagCorpusRequest
{
    RagCorpusName = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"),
    Force = false,
    ForceDelete = false,
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await vertexRagDataServiceClient.DeleteRagCorpusAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> 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, DeleteOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceDeleteRagCorpusAsync(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;
}

DeleteRagCorpusAsync(DeleteRagCorpusRequest, CancellationToken)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteRagCorpusAsync(DeleteRagCorpusRequest request, CancellationToken cancellationToken)

Deletes a RagCorpus.

Parameters
Name Description
request DeleteRagCorpusRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteRagCorpusRequest request = new DeleteRagCorpusRequest
{
    RagCorpusName = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"),
    Force = false,
    ForceDelete = false,
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await vertexRagDataServiceClient.DeleteRagCorpusAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> 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, DeleteOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceDeleteRagCorpusAsync(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;
}

DeleteRagCorpusAsync(RagCorpusName, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteRagCorpusAsync(RagCorpusName name, CallSettings callSettings = null)

Deletes a RagCorpus.

Parameters
Name Description
name RagCorpusName

Required. The name of the RagCorpus resource to be deleted. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
RagCorpusName name = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await vertexRagDataServiceClient.DeleteRagCorpusAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> 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, DeleteOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceDeleteRagCorpusAsync(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;
}

DeleteRagCorpusAsync(RagCorpusName, CancellationToken)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteRagCorpusAsync(RagCorpusName name, CancellationToken cancellationToken)

Deletes a RagCorpus.

Parameters
Name Description
name RagCorpusName

Required. The name of the RagCorpus resource to be deleted. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
RagCorpusName name = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await vertexRagDataServiceClient.DeleteRagCorpusAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> 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, DeleteOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceDeleteRagCorpusAsync(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;
}

DeleteRagCorpusAsync(string, CallSettings)

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

Deletes a RagCorpus.

Parameters
Name Description
name string

Required. The name of the RagCorpus resource to be deleted. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await vertexRagDataServiceClient.DeleteRagCorpusAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> 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, DeleteOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceDeleteRagCorpusAsync(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;
}

DeleteRagCorpusAsync(string, CancellationToken)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteRagCorpusAsync(string name, CancellationToken cancellationToken)

Deletes a RagCorpus.

Parameters
Name Description
name string

Required. The name of the RagCorpus resource to be deleted. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await vertexRagDataServiceClient.DeleteRagCorpusAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> 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, DeleteOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceDeleteRagCorpusAsync(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;
}

DeleteRagDataSchema(DeleteRagDataSchemaRequest, CallSettings)

public virtual void DeleteRagDataSchema(DeleteRagDataSchemaRequest request, CallSettings callSettings = null)

Deletes a RagDataSchema.

Parameters
Name Description
request DeleteRagDataSchemaRequest

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
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
DeleteRagDataSchemaRequest request = new DeleteRagDataSchemaRequest
{
    RagDataSchemaName = RagDataSchemaName.FromProjectLocationRagCorpusRagDataSchema("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_DATA_SCHEMA]"),
};
// Make the request
vertexRagDataServiceClient.DeleteRagDataSchema(request);

DeleteRagDataSchema(RagDataSchemaName, CallSettings)

public virtual void DeleteRagDataSchema(RagDataSchemaName name, CallSettings callSettings = null)

Deletes a RagDataSchema.

Parameters
Name Description
name RagDataSchemaName

Required. The name of the RagDataSchema resource to be deleted. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragDataSchemas/{rag_data_schema}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
RagDataSchemaName name = RagDataSchemaName.FromProjectLocationRagCorpusRagDataSchema("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_DATA_SCHEMA]");
// Make the request
vertexRagDataServiceClient.DeleteRagDataSchema(name);

DeleteRagDataSchema(string, CallSettings)

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

Deletes a RagDataSchema.

Parameters
Name Description
name string

Required. The name of the RagDataSchema resource to be deleted. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragDataSchemas/{rag_data_schema}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]/ragDataSchemas/[RAG_DATA_SCHEMA]";
// Make the request
vertexRagDataServiceClient.DeleteRagDataSchema(name);

DeleteRagDataSchemaAsync(DeleteRagDataSchemaRequest, CallSettings)

public virtual Task DeleteRagDataSchemaAsync(DeleteRagDataSchemaRequest request, CallSettings callSettings = null)

Deletes a RagDataSchema.

Parameters
Name Description
request DeleteRagDataSchemaRequest

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
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteRagDataSchemaRequest request = new DeleteRagDataSchemaRequest
{
    RagDataSchemaName = RagDataSchemaName.FromProjectLocationRagCorpusRagDataSchema("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_DATA_SCHEMA]"),
};
// Make the request
await vertexRagDataServiceClient.DeleteRagDataSchemaAsync(request);

DeleteRagDataSchemaAsync(DeleteRagDataSchemaRequest, CancellationToken)

public virtual Task DeleteRagDataSchemaAsync(DeleteRagDataSchemaRequest request, CancellationToken cancellationToken)

Deletes a RagDataSchema.

Parameters
Name Description
request DeleteRagDataSchemaRequest

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
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteRagDataSchemaRequest request = new DeleteRagDataSchemaRequest
{
    RagDataSchemaName = RagDataSchemaName.FromProjectLocationRagCorpusRagDataSchema("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_DATA_SCHEMA]"),
};
// Make the request
await vertexRagDataServiceClient.DeleteRagDataSchemaAsync(request);

DeleteRagDataSchemaAsync(RagDataSchemaName, CallSettings)

public virtual Task DeleteRagDataSchemaAsync(RagDataSchemaName name, CallSettings callSettings = null)

Deletes a RagDataSchema.

Parameters
Name Description
name RagDataSchemaName

Required. The name of the RagDataSchema resource to be deleted. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragDataSchemas/{rag_data_schema}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
RagDataSchemaName name = RagDataSchemaName.FromProjectLocationRagCorpusRagDataSchema("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_DATA_SCHEMA]");
// Make the request
await vertexRagDataServiceClient.DeleteRagDataSchemaAsync(name);

DeleteRagDataSchemaAsync(RagDataSchemaName, CancellationToken)

public virtual Task DeleteRagDataSchemaAsync(RagDataSchemaName name, CancellationToken cancellationToken)

Deletes a RagDataSchema.

Parameters
Name Description
name RagDataSchemaName

Required. The name of the RagDataSchema resource to be deleted. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragDataSchemas/{rag_data_schema}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
RagDataSchemaName name = RagDataSchemaName.FromProjectLocationRagCorpusRagDataSchema("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_DATA_SCHEMA]");
// Make the request
await vertexRagDataServiceClient.DeleteRagDataSchemaAsync(name);

DeleteRagDataSchemaAsync(string, CallSettings)

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

Deletes a RagDataSchema.

Parameters
Name Description
name string

Required. The name of the RagDataSchema resource to be deleted. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragDataSchemas/{rag_data_schema}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]/ragDataSchemas/[RAG_DATA_SCHEMA]";
// Make the request
await vertexRagDataServiceClient.DeleteRagDataSchemaAsync(name);

DeleteRagDataSchemaAsync(string, CancellationToken)

public virtual Task DeleteRagDataSchemaAsync(string name, CancellationToken cancellationToken)

Deletes a RagDataSchema.

Parameters
Name Description
name string

Required. The name of the RagDataSchema resource to be deleted. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragDataSchemas/{rag_data_schema}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]/ragDataSchemas/[RAG_DATA_SCHEMA]";
// Make the request
await vertexRagDataServiceClient.DeleteRagDataSchemaAsync(name);

DeleteRagFile(DeleteRagFileRequest, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> DeleteRagFile(DeleteRagFileRequest request, CallSettings callSettings = null)

Deletes a RagFile.

Parameters
Name Description
request DeleteRagFileRequest

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
OperationEmptyDeleteOperationMetadata

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
DeleteRagFileRequest request = new DeleteRagFileRequest
{
    RagFileName = RagFileName.FromProjectLocationRagCorpusRagFile("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]"),
    ForceDelete = false,
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = vertexRagDataServiceClient.DeleteRagFile(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> 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, DeleteOperationMetadata> retrievedResponse = vertexRagDataServiceClient.PollOnceDeleteRagFile(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;
}

DeleteRagFile(RagFileName, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> DeleteRagFile(RagFileName name, CallSettings callSettings = null)

Deletes a RagFile.

Parameters
Name Description
name RagFileName

Required. The name of the RagFile resource to be deleted. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
RagFileName name = RagFileName.FromProjectLocationRagCorpusRagFile("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = vertexRagDataServiceClient.DeleteRagFile(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> 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, DeleteOperationMetadata> retrievedResponse = vertexRagDataServiceClient.PollOnceDeleteRagFile(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;
}

DeleteRagFile(string, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> DeleteRagFile(string name, CallSettings callSettings = null)

Deletes a RagFile.

Parameters
Name Description
name string

Required. The name of the RagFile resource to be deleted. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]/ragFiles/[RAG_FILE]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = vertexRagDataServiceClient.DeleteRagFile(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> 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, DeleteOperationMetadata> retrievedResponse = vertexRagDataServiceClient.PollOnceDeleteRagFile(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;
}

DeleteRagFileAsync(DeleteRagFileRequest, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteRagFileAsync(DeleteRagFileRequest request, CallSettings callSettings = null)

Deletes a RagFile.

Parameters
Name Description
request DeleteRagFileRequest

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
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteRagFileRequest request = new DeleteRagFileRequest
{
    RagFileName = RagFileName.FromProjectLocationRagCorpusRagFile("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]"),
    ForceDelete = false,
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await vertexRagDataServiceClient.DeleteRagFileAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> 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, DeleteOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceDeleteRagFileAsync(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;
}

DeleteRagFileAsync(DeleteRagFileRequest, CancellationToken)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteRagFileAsync(DeleteRagFileRequest request, CancellationToken cancellationToken)

Deletes a RagFile.

Parameters
Name Description
request DeleteRagFileRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteRagFileRequest request = new DeleteRagFileRequest
{
    RagFileName = RagFileName.FromProjectLocationRagCorpusRagFile("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]"),
    ForceDelete = false,
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await vertexRagDataServiceClient.DeleteRagFileAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> 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, DeleteOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceDeleteRagFileAsync(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;
}

DeleteRagFileAsync(RagFileName, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteRagFileAsync(RagFileName name, CallSettings callSettings = null)

Deletes a RagFile.

Parameters
Name Description
name RagFileName

Required. The name of the RagFile resource to be deleted. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
RagFileName name = RagFileName.FromProjectLocationRagCorpusRagFile("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await vertexRagDataServiceClient.DeleteRagFileAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> 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, DeleteOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceDeleteRagFileAsync(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;
}

DeleteRagFileAsync(RagFileName, CancellationToken)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteRagFileAsync(RagFileName name, CancellationToken cancellationToken)

Deletes a RagFile.

Parameters
Name Description
name RagFileName

Required. The name of the RagFile resource to be deleted. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
RagFileName name = RagFileName.FromProjectLocationRagCorpusRagFile("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await vertexRagDataServiceClient.DeleteRagFileAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> 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, DeleteOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceDeleteRagFileAsync(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;
}

DeleteRagFileAsync(string, CallSettings)

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

Deletes a RagFile.

Parameters
Name Description
name string

Required. The name of the RagFile resource to be deleted. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]/ragFiles/[RAG_FILE]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await vertexRagDataServiceClient.DeleteRagFileAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> 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, DeleteOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceDeleteRagFileAsync(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;
}

DeleteRagFileAsync(string, CancellationToken)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteRagFileAsync(string name, CancellationToken cancellationToken)

Deletes a RagFile.

Parameters
Name Description
name string

Required. The name of the RagFile resource to be deleted. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]/ragFiles/[RAG_FILE]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await vertexRagDataServiceClient.DeleteRagFileAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> 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, DeleteOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceDeleteRagFileAsync(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;
}

DeleteRagMetadata(DeleteRagMetadataRequest, CallSettings)

public virtual void DeleteRagMetadata(DeleteRagMetadataRequest request, CallSettings callSettings = null)

Deletes a RagMetadata.

Parameters
Name Description
request DeleteRagMetadataRequest

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
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
DeleteRagMetadataRequest request = new DeleteRagMetadataRequest
{
    RagMetadataName = RagMetadataName.FromProjectLocationRagCorpusRagFileRagMetadata("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]", "[RAG_METADATA]"),
};
// Make the request
vertexRagDataServiceClient.DeleteRagMetadata(request);

DeleteRagMetadata(RagMetadataName, CallSettings)

public virtual void DeleteRagMetadata(RagMetadataName name, CallSettings callSettings = null)

Deletes a RagMetadata.

Parameters
Name Description
name RagMetadataName

Required. The name of the RagMetadata resource to be deleted. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}/ragMetadata/{rag_metadata}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
RagMetadataName name = RagMetadataName.FromProjectLocationRagCorpusRagFileRagMetadata("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]", "[RAG_METADATA]");
// Make the request
vertexRagDataServiceClient.DeleteRagMetadata(name);

DeleteRagMetadata(string, CallSettings)

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

Deletes a RagMetadata.

Parameters
Name Description
name string

Required. The name of the RagMetadata resource to be deleted. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}/ragMetadata/{rag_metadata}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]/ragFiles/[RAG_FILE]/ragMetadata/[RAG_METADATA]";
// Make the request
vertexRagDataServiceClient.DeleteRagMetadata(name);

DeleteRagMetadataAsync(DeleteRagMetadataRequest, CallSettings)

public virtual Task DeleteRagMetadataAsync(DeleteRagMetadataRequest request, CallSettings callSettings = null)

Deletes a RagMetadata.

Parameters
Name Description
request DeleteRagMetadataRequest

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
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteRagMetadataRequest request = new DeleteRagMetadataRequest
{
    RagMetadataName = RagMetadataName.FromProjectLocationRagCorpusRagFileRagMetadata("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]", "[RAG_METADATA]"),
};
// Make the request
await vertexRagDataServiceClient.DeleteRagMetadataAsync(request);

DeleteRagMetadataAsync(DeleteRagMetadataRequest, CancellationToken)

public virtual Task DeleteRagMetadataAsync(DeleteRagMetadataRequest request, CancellationToken cancellationToken)

Deletes a RagMetadata.

Parameters
Name Description
request DeleteRagMetadataRequest

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
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteRagMetadataRequest request = new DeleteRagMetadataRequest
{
    RagMetadataName = RagMetadataName.FromProjectLocationRagCorpusRagFileRagMetadata("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]", "[RAG_METADATA]"),
};
// Make the request
await vertexRagDataServiceClient.DeleteRagMetadataAsync(request);

DeleteRagMetadataAsync(RagMetadataName, CallSettings)

public virtual Task DeleteRagMetadataAsync(RagMetadataName name, CallSettings callSettings = null)

Deletes a RagMetadata.

Parameters
Name Description
name RagMetadataName

Required. The name of the RagMetadata resource to be deleted. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}/ragMetadata/{rag_metadata}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
RagMetadataName name = RagMetadataName.FromProjectLocationRagCorpusRagFileRagMetadata("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]", "[RAG_METADATA]");
// Make the request
await vertexRagDataServiceClient.DeleteRagMetadataAsync(name);

DeleteRagMetadataAsync(RagMetadataName, CancellationToken)

public virtual Task DeleteRagMetadataAsync(RagMetadataName name, CancellationToken cancellationToken)

Deletes a RagMetadata.

Parameters
Name Description
name RagMetadataName

Required. The name of the RagMetadata resource to be deleted. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}/ragMetadata/{rag_metadata}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
RagMetadataName name = RagMetadataName.FromProjectLocationRagCorpusRagFileRagMetadata("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]", "[RAG_METADATA]");
// Make the request
await vertexRagDataServiceClient.DeleteRagMetadataAsync(name);

DeleteRagMetadataAsync(string, CallSettings)

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

Deletes a RagMetadata.

Parameters
Name Description
name string

Required. The name of the RagMetadata resource to be deleted. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}/ragMetadata/{rag_metadata}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]/ragFiles/[RAG_FILE]/ragMetadata/[RAG_METADATA]";
// Make the request
await vertexRagDataServiceClient.DeleteRagMetadataAsync(name);

DeleteRagMetadataAsync(string, CancellationToken)

public virtual Task DeleteRagMetadataAsync(string name, CancellationToken cancellationToken)

Deletes a RagMetadata.

Parameters
Name Description
name string

Required. The name of the RagMetadata resource to be deleted. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}/ragMetadata/{rag_metadata}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]/ragFiles/[RAG_FILE]/ragMetadata/[RAG_METADATA]";
// Make the request
await vertexRagDataServiceClient.DeleteRagMetadataAsync(name);

GetRagCorpus(GetRagCorpusRequest, CallSettings)

public virtual RagCorpus GetRagCorpus(GetRagCorpusRequest request, CallSettings callSettings = null)

Gets a RagCorpus.

Parameters
Name Description
request GetRagCorpusRequest

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
RagCorpus

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
GetRagCorpusRequest request = new GetRagCorpusRequest
{
    RagCorpusName = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"),
};
// Make the request
RagCorpus response = vertexRagDataServiceClient.GetRagCorpus(request);

GetRagCorpus(RagCorpusName, CallSettings)

public virtual RagCorpus GetRagCorpus(RagCorpusName name, CallSettings callSettings = null)

Gets a RagCorpus.

Parameters
Name Description
name RagCorpusName

Required. The name of the RagCorpus resource. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
RagCorpus

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
RagCorpusName name = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]");
// Make the request
RagCorpus response = vertexRagDataServiceClient.GetRagCorpus(name);

GetRagCorpus(string, CallSettings)

public virtual RagCorpus GetRagCorpus(string name, CallSettings callSettings = null)

Gets a RagCorpus.

Parameters
Name Description
name string

Required. The name of the RagCorpus resource. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
RagCorpus

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]";
// Make the request
RagCorpus response = vertexRagDataServiceClient.GetRagCorpus(name);

GetRagCorpusAsync(GetRagCorpusRequest, CallSettings)

public virtual Task<RagCorpus> GetRagCorpusAsync(GetRagCorpusRequest request, CallSettings callSettings = null)

Gets a RagCorpus.

Parameters
Name Description
request GetRagCorpusRequest

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
TaskRagCorpus

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
GetRagCorpusRequest request = new GetRagCorpusRequest
{
    RagCorpusName = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"),
};
// Make the request
RagCorpus response = await vertexRagDataServiceClient.GetRagCorpusAsync(request);

GetRagCorpusAsync(GetRagCorpusRequest, CancellationToken)

public virtual Task<RagCorpus> GetRagCorpusAsync(GetRagCorpusRequest request, CancellationToken cancellationToken)

Gets a RagCorpus.

Parameters
Name Description
request GetRagCorpusRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRagCorpus

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
GetRagCorpusRequest request = new GetRagCorpusRequest
{
    RagCorpusName = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"),
};
// Make the request
RagCorpus response = await vertexRagDataServiceClient.GetRagCorpusAsync(request);

GetRagCorpusAsync(RagCorpusName, CallSettings)

public virtual Task<RagCorpus> GetRagCorpusAsync(RagCorpusName name, CallSettings callSettings = null)

Gets a RagCorpus.

Parameters
Name Description
name RagCorpusName

Required. The name of the RagCorpus resource. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRagCorpus

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
RagCorpusName name = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]");
// Make the request
RagCorpus response = await vertexRagDataServiceClient.GetRagCorpusAsync(name);

GetRagCorpusAsync(RagCorpusName, CancellationToken)

public virtual Task<RagCorpus> GetRagCorpusAsync(RagCorpusName name, CancellationToken cancellationToken)

Gets a RagCorpus.

Parameters
Name Description
name RagCorpusName

Required. The name of the RagCorpus resource. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRagCorpus

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
RagCorpusName name = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]");
// Make the request
RagCorpus response = await vertexRagDataServiceClient.GetRagCorpusAsync(name);

GetRagCorpusAsync(string, CallSettings)

public virtual Task<RagCorpus> GetRagCorpusAsync(string name, CallSettings callSettings = null)

Gets a RagCorpus.

Parameters
Name Description
name string

Required. The name of the RagCorpus resource. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRagCorpus

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]";
// Make the request
RagCorpus response = await vertexRagDataServiceClient.GetRagCorpusAsync(name);

GetRagCorpusAsync(string, CancellationToken)

public virtual Task<RagCorpus> GetRagCorpusAsync(string name, CancellationToken cancellationToken)

Gets a RagCorpus.

Parameters
Name Description
name string

Required. The name of the RagCorpus resource. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRagCorpus

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]";
// Make the request
RagCorpus response = await vertexRagDataServiceClient.GetRagCorpusAsync(name);

GetRagDataSchema(GetRagDataSchemaRequest, CallSettings)

public virtual RagDataSchema GetRagDataSchema(GetRagDataSchemaRequest request, CallSettings callSettings = null)

Gets a RagDataSchema.

Parameters
Name Description
request GetRagDataSchemaRequest

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
RagDataSchema

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
GetRagDataSchemaRequest request = new GetRagDataSchemaRequest
{
    RagDataSchemaName = RagDataSchemaName.FromProjectLocationRagCorpusRagDataSchema("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_DATA_SCHEMA]"),
};
// Make the request
RagDataSchema response = vertexRagDataServiceClient.GetRagDataSchema(request);

GetRagDataSchema(RagDataSchemaName, CallSettings)

public virtual RagDataSchema GetRagDataSchema(RagDataSchemaName name, CallSettings callSettings = null)

Gets a RagDataSchema.

Parameters
Name Description
name RagDataSchemaName

Required. The name of the RagDataSchema resource. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragDataSchemas/{rag_data_schema}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
RagDataSchema

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
RagDataSchemaName name = RagDataSchemaName.FromProjectLocationRagCorpusRagDataSchema("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_DATA_SCHEMA]");
// Make the request
RagDataSchema response = vertexRagDataServiceClient.GetRagDataSchema(name);

GetRagDataSchema(string, CallSettings)

public virtual RagDataSchema GetRagDataSchema(string name, CallSettings callSettings = null)

Gets a RagDataSchema.

Parameters
Name Description
name string

Required. The name of the RagDataSchema resource. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragDataSchemas/{rag_data_schema}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
RagDataSchema

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]/ragDataSchemas/[RAG_DATA_SCHEMA]";
// Make the request
RagDataSchema response = vertexRagDataServiceClient.GetRagDataSchema(name);

GetRagDataSchemaAsync(GetRagDataSchemaRequest, CallSettings)

public virtual Task<RagDataSchema> GetRagDataSchemaAsync(GetRagDataSchemaRequest request, CallSettings callSettings = null)

Gets a RagDataSchema.

Parameters
Name Description
request GetRagDataSchemaRequest

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
TaskRagDataSchema

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
GetRagDataSchemaRequest request = new GetRagDataSchemaRequest
{
    RagDataSchemaName = RagDataSchemaName.FromProjectLocationRagCorpusRagDataSchema("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_DATA_SCHEMA]"),
};
// Make the request
RagDataSchema response = await vertexRagDataServiceClient.GetRagDataSchemaAsync(request);

GetRagDataSchemaAsync(GetRagDataSchemaRequest, CancellationToken)

public virtual Task<RagDataSchema> GetRagDataSchemaAsync(GetRagDataSchemaRequest request, CancellationToken cancellationToken)

Gets a RagDataSchema.

Parameters
Name Description
request GetRagDataSchemaRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRagDataSchema

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
GetRagDataSchemaRequest request = new GetRagDataSchemaRequest
{
    RagDataSchemaName = RagDataSchemaName.FromProjectLocationRagCorpusRagDataSchema("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_DATA_SCHEMA]"),
};
// Make the request
RagDataSchema response = await vertexRagDataServiceClient.GetRagDataSchemaAsync(request);

GetRagDataSchemaAsync(RagDataSchemaName, CallSettings)

public virtual Task<RagDataSchema> GetRagDataSchemaAsync(RagDataSchemaName name, CallSettings callSettings = null)

Gets a RagDataSchema.

Parameters
Name Description
name RagDataSchemaName

Required. The name of the RagDataSchema resource. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragDataSchemas/{rag_data_schema}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRagDataSchema

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
RagDataSchemaName name = RagDataSchemaName.FromProjectLocationRagCorpusRagDataSchema("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_DATA_SCHEMA]");
// Make the request
RagDataSchema response = await vertexRagDataServiceClient.GetRagDataSchemaAsync(name);

GetRagDataSchemaAsync(RagDataSchemaName, CancellationToken)

public virtual Task<RagDataSchema> GetRagDataSchemaAsync(RagDataSchemaName name, CancellationToken cancellationToken)

Gets a RagDataSchema.

Parameters
Name Description
name RagDataSchemaName

Required. The name of the RagDataSchema resource. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragDataSchemas/{rag_data_schema}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRagDataSchema

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
RagDataSchemaName name = RagDataSchemaName.FromProjectLocationRagCorpusRagDataSchema("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_DATA_SCHEMA]");
// Make the request
RagDataSchema response = await vertexRagDataServiceClient.GetRagDataSchemaAsync(name);

GetRagDataSchemaAsync(string, CallSettings)

public virtual Task<RagDataSchema> GetRagDataSchemaAsync(string name, CallSettings callSettings = null)

Gets a RagDataSchema.

Parameters
Name Description
name string

Required. The name of the RagDataSchema resource. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragDataSchemas/{rag_data_schema}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRagDataSchema

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]/ragDataSchemas/[RAG_DATA_SCHEMA]";
// Make the request
RagDataSchema response = await vertexRagDataServiceClient.GetRagDataSchemaAsync(name);

GetRagDataSchemaAsync(string, CancellationToken)

public virtual Task<RagDataSchema> GetRagDataSchemaAsync(string name, CancellationToken cancellationToken)

Gets a RagDataSchema.

Parameters
Name Description
name string

Required. The name of the RagDataSchema resource. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragDataSchemas/{rag_data_schema}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRagDataSchema

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]/ragDataSchemas/[RAG_DATA_SCHEMA]";
// Make the request
RagDataSchema response = await vertexRagDataServiceClient.GetRagDataSchemaAsync(name);

GetRagEngineConfig(GetRagEngineConfigRequest, CallSettings)

public virtual RagEngineConfig GetRagEngineConfig(GetRagEngineConfigRequest request, CallSettings callSettings = null)

Gets a RagEngineConfig.

Parameters
Name Description
request GetRagEngineConfigRequest

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
RagEngineConfig

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
GetRagEngineConfigRequest request = new GetRagEngineConfigRequest
{
    RagEngineConfigName = RagEngineConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
RagEngineConfig response = vertexRagDataServiceClient.GetRagEngineConfig(request);

GetRagEngineConfig(RagEngineConfigName, CallSettings)

public virtual RagEngineConfig GetRagEngineConfig(RagEngineConfigName name, CallSettings callSettings = null)

Gets a RagEngineConfig.

Parameters
Name Description
name RagEngineConfigName

Required. The name of the RagEngineConfig resource. Format: projects/{project}/locations/{location}/ragEngineConfig

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
RagEngineConfig

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
RagEngineConfigName name = RagEngineConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
RagEngineConfig response = vertexRagDataServiceClient.GetRagEngineConfig(name);

GetRagEngineConfig(string, CallSettings)

public virtual RagEngineConfig GetRagEngineConfig(string name, CallSettings callSettings = null)

Gets a RagEngineConfig.

Parameters
Name Description
name string

Required. The name of the RagEngineConfig resource. Format: projects/{project}/locations/{location}/ragEngineConfig

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
RagEngineConfig

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/ragEngineConfig";
// Make the request
RagEngineConfig response = vertexRagDataServiceClient.GetRagEngineConfig(name);

GetRagEngineConfigAsync(GetRagEngineConfigRequest, CallSettings)

public virtual Task<RagEngineConfig> GetRagEngineConfigAsync(GetRagEngineConfigRequest request, CallSettings callSettings = null)

Gets a RagEngineConfig.

Parameters
Name Description
request GetRagEngineConfigRequest

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
TaskRagEngineConfig

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
GetRagEngineConfigRequest request = new GetRagEngineConfigRequest
{
    RagEngineConfigName = RagEngineConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
RagEngineConfig response = await vertexRagDataServiceClient.GetRagEngineConfigAsync(request);

GetRagEngineConfigAsync(GetRagEngineConfigRequest, CancellationToken)

public virtual Task<RagEngineConfig> GetRagEngineConfigAsync(GetRagEngineConfigRequest request, CancellationToken cancellationToken)

Gets a RagEngineConfig.

Parameters
Name Description
request GetRagEngineConfigRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRagEngineConfig

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
GetRagEngineConfigRequest request = new GetRagEngineConfigRequest
{
    RagEngineConfigName = RagEngineConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
RagEngineConfig response = await vertexRagDataServiceClient.GetRagEngineConfigAsync(request);

GetRagEngineConfigAsync(RagEngineConfigName, CallSettings)

public virtual Task<RagEngineConfig> GetRagEngineConfigAsync(RagEngineConfigName name, CallSettings callSettings = null)

Gets a RagEngineConfig.

Parameters
Name Description
name RagEngineConfigName

Required. The name of the RagEngineConfig resource. Format: projects/{project}/locations/{location}/ragEngineConfig

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRagEngineConfig

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
RagEngineConfigName name = RagEngineConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
RagEngineConfig response = await vertexRagDataServiceClient.GetRagEngineConfigAsync(name);

GetRagEngineConfigAsync(RagEngineConfigName, CancellationToken)

public virtual Task<RagEngineConfig> GetRagEngineConfigAsync(RagEngineConfigName name, CancellationToken cancellationToken)

Gets a RagEngineConfig.

Parameters
Name Description
name RagEngineConfigName

Required. The name of the RagEngineConfig resource. Format: projects/{project}/locations/{location}/ragEngineConfig

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRagEngineConfig

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
RagEngineConfigName name = RagEngineConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
RagEngineConfig response = await vertexRagDataServiceClient.GetRagEngineConfigAsync(name);

GetRagEngineConfigAsync(string, CallSettings)

public virtual Task<RagEngineConfig> GetRagEngineConfigAsync(string name, CallSettings callSettings = null)

Gets a RagEngineConfig.

Parameters
Name Description
name string

Required. The name of the RagEngineConfig resource. Format: projects/{project}/locations/{location}/ragEngineConfig

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRagEngineConfig

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/ragEngineConfig";
// Make the request
RagEngineConfig response = await vertexRagDataServiceClient.GetRagEngineConfigAsync(name);

GetRagEngineConfigAsync(string, CancellationToken)

public virtual Task<RagEngineConfig> GetRagEngineConfigAsync(string name, CancellationToken cancellationToken)

Gets a RagEngineConfig.

Parameters
Name Description
name string

Required. The name of the RagEngineConfig resource. Format: projects/{project}/locations/{location}/ragEngineConfig

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRagEngineConfig

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/ragEngineConfig";
// Make the request
RagEngineConfig response = await vertexRagDataServiceClient.GetRagEngineConfigAsync(name);

GetRagFile(GetRagFileRequest, CallSettings)

public virtual RagFile GetRagFile(GetRagFileRequest request, CallSettings callSettings = null)

Gets a RagFile.

Parameters
Name Description
request GetRagFileRequest

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
RagFile

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
GetRagFileRequest request = new GetRagFileRequest
{
    RagFileName = RagFileName.FromProjectLocationRagCorpusRagFile("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]"),
};
// Make the request
RagFile response = vertexRagDataServiceClient.GetRagFile(request);

GetRagFile(RagFileName, CallSettings)

public virtual RagFile GetRagFile(RagFileName name, CallSettings callSettings = null)

Gets a RagFile.

Parameters
Name Description
name RagFileName

Required. The name of the RagFile resource. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
RagFile

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
RagFileName name = RagFileName.FromProjectLocationRagCorpusRagFile("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]");
// Make the request
RagFile response = vertexRagDataServiceClient.GetRagFile(name);

GetRagFile(string, CallSettings)

public virtual RagFile GetRagFile(string name, CallSettings callSettings = null)

Gets a RagFile.

Parameters
Name Description
name string

Required. The name of the RagFile resource. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
RagFile

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]/ragFiles/[RAG_FILE]";
// Make the request
RagFile response = vertexRagDataServiceClient.GetRagFile(name);

GetRagFileAsync(GetRagFileRequest, CallSettings)

public virtual Task<RagFile> GetRagFileAsync(GetRagFileRequest request, CallSettings callSettings = null)

Gets a RagFile.

Parameters
Name Description
request GetRagFileRequest

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
TaskRagFile

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
GetRagFileRequest request = new GetRagFileRequest
{
    RagFileName = RagFileName.FromProjectLocationRagCorpusRagFile("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]"),
};
// Make the request
RagFile response = await vertexRagDataServiceClient.GetRagFileAsync(request);

GetRagFileAsync(GetRagFileRequest, CancellationToken)

public virtual Task<RagFile> GetRagFileAsync(GetRagFileRequest request, CancellationToken cancellationToken)

Gets a RagFile.

Parameters
Name Description
request GetRagFileRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRagFile

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
GetRagFileRequest request = new GetRagFileRequest
{
    RagFileName = RagFileName.FromProjectLocationRagCorpusRagFile("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]"),
};
// Make the request
RagFile response = await vertexRagDataServiceClient.GetRagFileAsync(request);

GetRagFileAsync(RagFileName, CallSettings)

public virtual Task<RagFile> GetRagFileAsync(RagFileName name, CallSettings callSettings = null)

Gets a RagFile.

Parameters
Name Description
name RagFileName

Required. The name of the RagFile resource. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRagFile

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
RagFileName name = RagFileName.FromProjectLocationRagCorpusRagFile("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]");
// Make the request
RagFile response = await vertexRagDataServiceClient.GetRagFileAsync(name);

GetRagFileAsync(RagFileName, CancellationToken)

public virtual Task<RagFile> GetRagFileAsync(RagFileName name, CancellationToken cancellationToken)

Gets a RagFile.

Parameters
Name Description
name RagFileName

Required. The name of the RagFile resource. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRagFile

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
RagFileName name = RagFileName.FromProjectLocationRagCorpusRagFile("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]");
// Make the request
RagFile response = await vertexRagDataServiceClient.GetRagFileAsync(name);

GetRagFileAsync(string, CallSettings)

public virtual Task<RagFile> GetRagFileAsync(string name, CallSettings callSettings = null)

Gets a RagFile.

Parameters
Name Description
name string

Required. The name of the RagFile resource. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRagFile

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]/ragFiles/[RAG_FILE]";
// Make the request
RagFile response = await vertexRagDataServiceClient.GetRagFileAsync(name);

GetRagFileAsync(string, CancellationToken)

public virtual Task<RagFile> GetRagFileAsync(string name, CancellationToken cancellationToken)

Gets a RagFile.

Parameters
Name Description
name string

Required. The name of the RagFile resource. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRagFile

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]/ragFiles/[RAG_FILE]";
// Make the request
RagFile response = await vertexRagDataServiceClient.GetRagFileAsync(name);

GetRagMetadata(GetRagMetadataRequest, CallSettings)

public virtual RagMetadata GetRagMetadata(GetRagMetadataRequest request, CallSettings callSettings = null)

Gets a RagMetadata.

Parameters
Name Description
request GetRagMetadataRequest

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
RagMetadata

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
GetRagMetadataRequest request = new GetRagMetadataRequest
{
    RagMetadataName = RagMetadataName.FromProjectLocationRagCorpusRagFileRagMetadata("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]", "[RAG_METADATA]"),
};
// Make the request
RagMetadata response = vertexRagDataServiceClient.GetRagMetadata(request);

GetRagMetadata(RagMetadataName, CallSettings)

public virtual RagMetadata GetRagMetadata(RagMetadataName name, CallSettings callSettings = null)

Gets a RagMetadata.

Parameters
Name Description
name RagMetadataName

Required. The name of the RagMetadata resource. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}/ragMetadata/{rag_metadata}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
RagMetadata

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
RagMetadataName name = RagMetadataName.FromProjectLocationRagCorpusRagFileRagMetadata("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]", "[RAG_METADATA]");
// Make the request
RagMetadata response = vertexRagDataServiceClient.GetRagMetadata(name);

GetRagMetadata(string, CallSettings)

public virtual RagMetadata GetRagMetadata(string name, CallSettings callSettings = null)

Gets a RagMetadata.

Parameters
Name Description
name string

Required. The name of the RagMetadata resource. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}/ragMetadata/{rag_metadata}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
RagMetadata

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]/ragFiles/[RAG_FILE]/ragMetadata/[RAG_METADATA]";
// Make the request
RagMetadata response = vertexRagDataServiceClient.GetRagMetadata(name);

GetRagMetadataAsync(GetRagMetadataRequest, CallSettings)

public virtual Task<RagMetadata> GetRagMetadataAsync(GetRagMetadataRequest request, CallSettings callSettings = null)

Gets a RagMetadata.

Parameters
Name Description
request GetRagMetadataRequest

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
TaskRagMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
GetRagMetadataRequest request = new GetRagMetadataRequest
{
    RagMetadataName = RagMetadataName.FromProjectLocationRagCorpusRagFileRagMetadata("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]", "[RAG_METADATA]"),
};
// Make the request
RagMetadata response = await vertexRagDataServiceClient.GetRagMetadataAsync(request);

GetRagMetadataAsync(GetRagMetadataRequest, CancellationToken)

public virtual Task<RagMetadata> GetRagMetadataAsync(GetRagMetadataRequest request, CancellationToken cancellationToken)

Gets a RagMetadata.

Parameters
Name Description
request GetRagMetadataRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRagMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
GetRagMetadataRequest request = new GetRagMetadataRequest
{
    RagMetadataName = RagMetadataName.FromProjectLocationRagCorpusRagFileRagMetadata("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]", "[RAG_METADATA]"),
};
// Make the request
RagMetadata response = await vertexRagDataServiceClient.GetRagMetadataAsync(request);

GetRagMetadataAsync(RagMetadataName, CallSettings)

public virtual Task<RagMetadata> GetRagMetadataAsync(RagMetadataName name, CallSettings callSettings = null)

Gets a RagMetadata.

Parameters
Name Description
name RagMetadataName

Required. The name of the RagMetadata resource. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}/ragMetadata/{rag_metadata}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRagMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
RagMetadataName name = RagMetadataName.FromProjectLocationRagCorpusRagFileRagMetadata("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]", "[RAG_METADATA]");
// Make the request
RagMetadata response = await vertexRagDataServiceClient.GetRagMetadataAsync(name);

GetRagMetadataAsync(RagMetadataName, CancellationToken)

public virtual Task<RagMetadata> GetRagMetadataAsync(RagMetadataName name, CancellationToken cancellationToken)

Gets a RagMetadata.

Parameters
Name Description
name RagMetadataName

Required. The name of the RagMetadata resource. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}/ragMetadata/{rag_metadata}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRagMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
RagMetadataName name = RagMetadataName.FromProjectLocationRagCorpusRagFileRagMetadata("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]", "[RAG_METADATA]");
// Make the request
RagMetadata response = await vertexRagDataServiceClient.GetRagMetadataAsync(name);

GetRagMetadataAsync(string, CallSettings)

public virtual Task<RagMetadata> GetRagMetadataAsync(string name, CallSettings callSettings = null)

Gets a RagMetadata.

Parameters
Name Description
name string

Required. The name of the RagMetadata resource. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}/ragMetadata/{rag_metadata}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRagMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]/ragFiles/[RAG_FILE]/ragMetadata/[RAG_METADATA]";
// Make the request
RagMetadata response = await vertexRagDataServiceClient.GetRagMetadataAsync(name);

GetRagMetadataAsync(string, CancellationToken)

public virtual Task<RagMetadata> GetRagMetadataAsync(string name, CancellationToken cancellationToken)

Gets a RagMetadata.

Parameters
Name Description
name string

Required. The name of the RagMetadata resource. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}/ragMetadata/{rag_metadata}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRagMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]/ragFiles/[RAG_FILE]/ragMetadata/[RAG_METADATA]";
// Make the request
RagMetadata response = await vertexRagDataServiceClient.GetRagMetadataAsync(name);

ImportRagFiles(ImportRagFilesRequest, CallSettings)

public virtual Operation<ImportRagFilesResponse, ImportRagFilesOperationMetadata> ImportRagFiles(ImportRagFilesRequest request, CallSettings callSettings = null)

Import files from Google Cloud Storage or Google Drive into a RagCorpus.

Parameters
Name Description
request ImportRagFilesRequest

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
OperationImportRagFilesResponseImportRagFilesOperationMetadata

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
ImportRagFilesRequest request = new ImportRagFilesRequest
{
    ParentAsRagCorpusName = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"),
    ImportRagFilesConfig = new ImportRagFilesConfig(),
};
// Make the request
Operation<ImportRagFilesResponse, ImportRagFilesOperationMetadata> response = vertexRagDataServiceClient.ImportRagFiles(request);

// Poll until the returned long-running operation is complete
Operation<ImportRagFilesResponse, ImportRagFilesOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ImportRagFilesResponse 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<ImportRagFilesResponse, ImportRagFilesOperationMetadata> retrievedResponse = vertexRagDataServiceClient.PollOnceImportRagFiles(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ImportRagFilesResponse retrievedResult = retrievedResponse.Result;
}

ImportRagFiles(RagCorpusName, ImportRagFilesConfig, CallSettings)

public virtual Operation<ImportRagFilesResponse, ImportRagFilesOperationMetadata> ImportRagFiles(RagCorpusName parent, ImportRagFilesConfig importRagFilesConfig, CallSettings callSettings = null)

Import files from Google Cloud Storage or Google Drive into a RagCorpus.

Parameters
Name Description
parent RagCorpusName

Required. The name of the RagCorpus resource into which to import files. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

importRagFilesConfig ImportRagFilesConfig

Required. The config for the RagFiles to be synced and imported into the RagCorpus. [VertexRagDataService.ImportRagFiles][google.cloud.aiplatform.v1beta1.VertexRagDataService.ImportRagFiles].

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationImportRagFilesResponseImportRagFilesOperationMetadata

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
RagCorpusName parent = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]");
ImportRagFilesConfig importRagFilesConfig = new ImportRagFilesConfig();
// Make the request
Operation<ImportRagFilesResponse, ImportRagFilesOperationMetadata> response = vertexRagDataServiceClient.ImportRagFiles(parent, importRagFilesConfig);

// Poll until the returned long-running operation is complete
Operation<ImportRagFilesResponse, ImportRagFilesOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ImportRagFilesResponse 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<ImportRagFilesResponse, ImportRagFilesOperationMetadata> retrievedResponse = vertexRagDataServiceClient.PollOnceImportRagFiles(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ImportRagFilesResponse retrievedResult = retrievedResponse.Result;
}

ImportRagFiles(string, ImportRagFilesConfig, CallSettings)

public virtual Operation<ImportRagFilesResponse, ImportRagFilesOperationMetadata> ImportRagFiles(string parent, ImportRagFilesConfig importRagFilesConfig, CallSettings callSettings = null)

Import files from Google Cloud Storage or Google Drive into a RagCorpus.

Parameters
Name Description
parent string

Required. The name of the RagCorpus resource into which to import files. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

importRagFilesConfig ImportRagFilesConfig

Required. The config for the RagFiles to be synced and imported into the RagCorpus. [VertexRagDataService.ImportRagFiles][google.cloud.aiplatform.v1beta1.VertexRagDataService.ImportRagFiles].

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationImportRagFilesResponseImportRagFilesOperationMetadata

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]";
ImportRagFilesConfig importRagFilesConfig = new ImportRagFilesConfig();
// Make the request
Operation<ImportRagFilesResponse, ImportRagFilesOperationMetadata> response = vertexRagDataServiceClient.ImportRagFiles(parent, importRagFilesConfig);

// Poll until the returned long-running operation is complete
Operation<ImportRagFilesResponse, ImportRagFilesOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ImportRagFilesResponse 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<ImportRagFilesResponse, ImportRagFilesOperationMetadata> retrievedResponse = vertexRagDataServiceClient.PollOnceImportRagFiles(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ImportRagFilesResponse retrievedResult = retrievedResponse.Result;
}

ImportRagFilesAsync(ImportRagFilesRequest, CallSettings)

public virtual Task<Operation<ImportRagFilesResponse, ImportRagFilesOperationMetadata>> ImportRagFilesAsync(ImportRagFilesRequest request, CallSettings callSettings = null)

Import files from Google Cloud Storage or Google Drive into a RagCorpus.

Parameters
Name Description
request ImportRagFilesRequest

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
TaskOperationImportRagFilesResponseImportRagFilesOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
ImportRagFilesRequest request = new ImportRagFilesRequest
{
    ParentAsRagCorpusName = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"),
    ImportRagFilesConfig = new ImportRagFilesConfig(),
};
// Make the request
Operation<ImportRagFilesResponse, ImportRagFilesOperationMetadata> response = await vertexRagDataServiceClient.ImportRagFilesAsync(request);

// Poll until the returned long-running operation is complete
Operation<ImportRagFilesResponse, ImportRagFilesOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ImportRagFilesResponse 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<ImportRagFilesResponse, ImportRagFilesOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceImportRagFilesAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ImportRagFilesResponse retrievedResult = retrievedResponse.Result;
}

ImportRagFilesAsync(ImportRagFilesRequest, CancellationToken)

public virtual Task<Operation<ImportRagFilesResponse, ImportRagFilesOperationMetadata>> ImportRagFilesAsync(ImportRagFilesRequest request, CancellationToken cancellationToken)

Import files from Google Cloud Storage or Google Drive into a RagCorpus.

Parameters
Name Description
request ImportRagFilesRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationImportRagFilesResponseImportRagFilesOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
ImportRagFilesRequest request = new ImportRagFilesRequest
{
    ParentAsRagCorpusName = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"),
    ImportRagFilesConfig = new ImportRagFilesConfig(),
};
// Make the request
Operation<ImportRagFilesResponse, ImportRagFilesOperationMetadata> response = await vertexRagDataServiceClient.ImportRagFilesAsync(request);

// Poll until the returned long-running operation is complete
Operation<ImportRagFilesResponse, ImportRagFilesOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ImportRagFilesResponse 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<ImportRagFilesResponse, ImportRagFilesOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceImportRagFilesAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ImportRagFilesResponse retrievedResult = retrievedResponse.Result;
}

ImportRagFilesAsync(RagCorpusName, ImportRagFilesConfig, CallSettings)

public virtual Task<Operation<ImportRagFilesResponse, ImportRagFilesOperationMetadata>> ImportRagFilesAsync(RagCorpusName parent, ImportRagFilesConfig importRagFilesConfig, CallSettings callSettings = null)

Import files from Google Cloud Storage or Google Drive into a RagCorpus.

Parameters
Name Description
parent RagCorpusName

Required. The name of the RagCorpus resource into which to import files. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

importRagFilesConfig ImportRagFilesConfig

Required. The config for the RagFiles to be synced and imported into the RagCorpus. [VertexRagDataService.ImportRagFiles][google.cloud.aiplatform.v1beta1.VertexRagDataService.ImportRagFiles].

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationImportRagFilesResponseImportRagFilesOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
RagCorpusName parent = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]");
ImportRagFilesConfig importRagFilesConfig = new ImportRagFilesConfig();
// Make the request
Operation<ImportRagFilesResponse, ImportRagFilesOperationMetadata> response = await vertexRagDataServiceClient.ImportRagFilesAsync(parent, importRagFilesConfig);

// Poll until the returned long-running operation is complete
Operation<ImportRagFilesResponse, ImportRagFilesOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ImportRagFilesResponse 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<ImportRagFilesResponse, ImportRagFilesOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceImportRagFilesAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ImportRagFilesResponse retrievedResult = retrievedResponse.Result;
}

ImportRagFilesAsync(RagCorpusName, ImportRagFilesConfig, CancellationToken)

public virtual Task<Operation<ImportRagFilesResponse, ImportRagFilesOperationMetadata>> ImportRagFilesAsync(RagCorpusName parent, ImportRagFilesConfig importRagFilesConfig, CancellationToken cancellationToken)

Import files from Google Cloud Storage or Google Drive into a RagCorpus.

Parameters
Name Description
parent RagCorpusName

Required. The name of the RagCorpus resource into which to import files. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

importRagFilesConfig ImportRagFilesConfig

Required. The config for the RagFiles to be synced and imported into the RagCorpus. [VertexRagDataService.ImportRagFiles][google.cloud.aiplatform.v1beta1.VertexRagDataService.ImportRagFiles].

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationImportRagFilesResponseImportRagFilesOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
RagCorpusName parent = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]");
ImportRagFilesConfig importRagFilesConfig = new ImportRagFilesConfig();
// Make the request
Operation<ImportRagFilesResponse, ImportRagFilesOperationMetadata> response = await vertexRagDataServiceClient.ImportRagFilesAsync(parent, importRagFilesConfig);

// Poll until the returned long-running operation is complete
Operation<ImportRagFilesResponse, ImportRagFilesOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ImportRagFilesResponse 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<ImportRagFilesResponse, ImportRagFilesOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceImportRagFilesAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ImportRagFilesResponse retrievedResult = retrievedResponse.Result;
}

ImportRagFilesAsync(string, ImportRagFilesConfig, CallSettings)

public virtual Task<Operation<ImportRagFilesResponse, ImportRagFilesOperationMetadata>> ImportRagFilesAsync(string parent, ImportRagFilesConfig importRagFilesConfig, CallSettings callSettings = null)

Import files from Google Cloud Storage or Google Drive into a RagCorpus.

Parameters
Name Description
parent string

Required. The name of the RagCorpus resource into which to import files. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

importRagFilesConfig ImportRagFilesConfig

Required. The config for the RagFiles to be synced and imported into the RagCorpus. [VertexRagDataService.ImportRagFiles][google.cloud.aiplatform.v1beta1.VertexRagDataService.ImportRagFiles].

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationImportRagFilesResponseImportRagFilesOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]";
ImportRagFilesConfig importRagFilesConfig = new ImportRagFilesConfig();
// Make the request
Operation<ImportRagFilesResponse, ImportRagFilesOperationMetadata> response = await vertexRagDataServiceClient.ImportRagFilesAsync(parent, importRagFilesConfig);

// Poll until the returned long-running operation is complete
Operation<ImportRagFilesResponse, ImportRagFilesOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ImportRagFilesResponse 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<ImportRagFilesResponse, ImportRagFilesOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceImportRagFilesAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ImportRagFilesResponse retrievedResult = retrievedResponse.Result;
}

ImportRagFilesAsync(string, ImportRagFilesConfig, CancellationToken)

public virtual Task<Operation<ImportRagFilesResponse, ImportRagFilesOperationMetadata>> ImportRagFilesAsync(string parent, ImportRagFilesConfig importRagFilesConfig, CancellationToken cancellationToken)

Import files from Google Cloud Storage or Google Drive into a RagCorpus.

Parameters
Name Description
parent string

Required. The name of the RagCorpus resource into which to import files. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

importRagFilesConfig ImportRagFilesConfig

Required. The config for the RagFiles to be synced and imported into the RagCorpus. [VertexRagDataService.ImportRagFiles][google.cloud.aiplatform.v1beta1.VertexRagDataService.ImportRagFiles].

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationImportRagFilesResponseImportRagFilesOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]";
ImportRagFilesConfig importRagFilesConfig = new ImportRagFilesConfig();
// Make the request
Operation<ImportRagFilesResponse, ImportRagFilesOperationMetadata> response = await vertexRagDataServiceClient.ImportRagFilesAsync(parent, importRagFilesConfig);

// Poll until the returned long-running operation is complete
Operation<ImportRagFilesResponse, ImportRagFilesOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ImportRagFilesResponse 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<ImportRagFilesResponse, ImportRagFilesOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceImportRagFilesAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ImportRagFilesResponse retrievedResult = retrievedResponse.Result;
}

ListRagCorpora(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListRagCorporaResponse, RagCorpus> ListRagCorpora(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists RagCorpora in a Location.

Parameters
Name Description
parent LocationName

Required. The resource name of the Location from which to list the RagCorpora. Format: projects/{project}/locations/{location}

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
PagedEnumerableListRagCorporaResponseRagCorpus

A pageable sequence of RagCorpus resources.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListRagCorporaResponse, RagCorpus> response = vertexRagDataServiceClient.ListRagCorpora(parent);

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

ListRagCorpora(ListRagCorporaRequest, CallSettings)

public virtual PagedEnumerable<ListRagCorporaResponse, RagCorpus> ListRagCorpora(ListRagCorporaRequest request, CallSettings callSettings = null)

Lists RagCorpora in a Location.

Parameters
Name Description
request ListRagCorporaRequest

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
PagedEnumerableListRagCorporaResponseRagCorpus

A pageable sequence of RagCorpus resources.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
ListRagCorporaRequest request = new ListRagCorporaRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListRagCorporaResponse, RagCorpus> response = vertexRagDataServiceClient.ListRagCorpora(request);

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

ListRagCorpora(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListRagCorporaResponse, RagCorpus> ListRagCorpora(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists RagCorpora in a Location.

Parameters
Name Description
parent string

Required. The resource name of the Location from which to list the RagCorpora. Format: projects/{project}/locations/{location}

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
PagedEnumerableListRagCorporaResponseRagCorpus

A pageable sequence of RagCorpus resources.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListRagCorporaResponse, RagCorpus> response = vertexRagDataServiceClient.ListRagCorpora(parent);

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

ListRagCorporaAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListRagCorporaResponse, RagCorpus> ListRagCorporaAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists RagCorpora in a Location.

Parameters
Name Description
parent LocationName

Required. The resource name of the Location from which to list the RagCorpora. Format: projects/{project}/locations/{location}

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
PagedAsyncEnumerableListRagCorporaResponseRagCorpus

A pageable asynchronous sequence of RagCorpus resources.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListRagCorporaResponse, RagCorpus> response = vertexRagDataServiceClient.ListRagCorporaAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (RagCorpus item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListRagCorporaResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (RagCorpus 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<RagCorpus> 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 (RagCorpus 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;

ListRagCorporaAsync(ListRagCorporaRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListRagCorporaResponse, RagCorpus> ListRagCorporaAsync(ListRagCorporaRequest request, CallSettings callSettings = null)

Lists RagCorpora in a Location.

Parameters
Name Description
request ListRagCorporaRequest

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
PagedAsyncEnumerableListRagCorporaResponseRagCorpus

A pageable asynchronous sequence of RagCorpus resources.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
ListRagCorporaRequest request = new ListRagCorporaRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListRagCorporaResponse, RagCorpus> response = vertexRagDataServiceClient.ListRagCorporaAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (RagCorpus item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListRagCorporaResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (RagCorpus 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<RagCorpus> 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 (RagCorpus 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;

ListRagCorporaAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListRagCorporaResponse, RagCorpus> ListRagCorporaAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists RagCorpora in a Location.

Parameters
Name Description
parent string

Required. The resource name of the Location from which to list the RagCorpora. Format: projects/{project}/locations/{location}

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
PagedAsyncEnumerableListRagCorporaResponseRagCorpus

A pageable asynchronous sequence of RagCorpus resources.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListRagCorporaResponse, RagCorpus> response = vertexRagDataServiceClient.ListRagCorporaAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (RagCorpus item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListRagCorporaResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (RagCorpus 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<RagCorpus> 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 (RagCorpus 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;

ListRagDataSchemas(ListRagDataSchemasRequest, CallSettings)

public virtual PagedEnumerable<ListRagDataSchemasResponse, RagDataSchema> ListRagDataSchemas(ListRagDataSchemasRequest request, CallSettings callSettings = null)

Lists RagDataSchemas in a Location.

Parameters
Name Description
request ListRagDataSchemasRequest

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
PagedEnumerableListRagDataSchemasResponseRagDataSchema

A pageable sequence of RagDataSchema resources.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
ListRagDataSchemasRequest request = new ListRagDataSchemasRequest
{
    ParentAsRagCorpusName = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"),
};
// Make the request
PagedEnumerable<ListRagDataSchemasResponse, RagDataSchema> response = vertexRagDataServiceClient.ListRagDataSchemas(request);

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

ListRagDataSchemas(RagCorpusName, string, int?, CallSettings)

public virtual PagedEnumerable<ListRagDataSchemasResponse, RagDataSchema> ListRagDataSchemas(RagCorpusName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists RagDataSchemas in a Location.

Parameters
Name Description
parent RagCorpusName

Required. The resource name of the RagCorpus from which to list the RagDataSchemas. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

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
PagedEnumerableListRagDataSchemasResponseRagDataSchema

A pageable sequence of RagDataSchema resources.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
RagCorpusName parent = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]");
// Make the request
PagedEnumerable<ListRagDataSchemasResponse, RagDataSchema> response = vertexRagDataServiceClient.ListRagDataSchemas(parent);

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

ListRagDataSchemas(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListRagDataSchemasResponse, RagDataSchema> ListRagDataSchemas(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists RagDataSchemas in a Location.

Parameters
Name Description
parent string

Required. The resource name of the RagCorpus from which to list the RagDataSchemas. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

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
PagedEnumerableListRagDataSchemasResponseRagDataSchema

A pageable sequence of RagDataSchema resources.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]";
// Make the request
PagedEnumerable<ListRagDataSchemasResponse, RagDataSchema> response = vertexRagDataServiceClient.ListRagDataSchemas(parent);

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

ListRagDataSchemasAsync(ListRagDataSchemasRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListRagDataSchemasResponse, RagDataSchema> ListRagDataSchemasAsync(ListRagDataSchemasRequest request, CallSettings callSettings = null)

Lists RagDataSchemas in a Location.

Parameters
Name Description
request ListRagDataSchemasRequest

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
PagedAsyncEnumerableListRagDataSchemasResponseRagDataSchema

A pageable asynchronous sequence of RagDataSchema resources.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
ListRagDataSchemasRequest request = new ListRagDataSchemasRequest
{
    ParentAsRagCorpusName = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"),
};
// Make the request
PagedAsyncEnumerable<ListRagDataSchemasResponse, RagDataSchema> response = vertexRagDataServiceClient.ListRagDataSchemasAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (RagDataSchema item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListRagDataSchemasResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (RagDataSchema 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<RagDataSchema> 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 (RagDataSchema 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;

ListRagDataSchemasAsync(RagCorpusName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListRagDataSchemasResponse, RagDataSchema> ListRagDataSchemasAsync(RagCorpusName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists RagDataSchemas in a Location.

Parameters
Name Description
parent RagCorpusName

Required. The resource name of the RagCorpus from which to list the RagDataSchemas. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

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
PagedAsyncEnumerableListRagDataSchemasResponseRagDataSchema

A pageable asynchronous sequence of RagDataSchema resources.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
RagCorpusName parent = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]");
// Make the request
PagedAsyncEnumerable<ListRagDataSchemasResponse, RagDataSchema> response = vertexRagDataServiceClient.ListRagDataSchemasAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (RagDataSchema item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListRagDataSchemasResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (RagDataSchema 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<RagDataSchema> 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 (RagDataSchema 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;

ListRagDataSchemasAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListRagDataSchemasResponse, RagDataSchema> ListRagDataSchemasAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists RagDataSchemas in a Location.

Parameters
Name Description
parent string

Required. The resource name of the RagCorpus from which to list the RagDataSchemas. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

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
PagedAsyncEnumerableListRagDataSchemasResponseRagDataSchema

A pageable asynchronous sequence of RagDataSchema resources.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]";
// Make the request
PagedAsyncEnumerable<ListRagDataSchemasResponse, RagDataSchema> response = vertexRagDataServiceClient.ListRagDataSchemasAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (RagDataSchema item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListRagDataSchemasResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (RagDataSchema 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<RagDataSchema> 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 (RagDataSchema 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;

ListRagFiles(ListRagFilesRequest, CallSettings)

public virtual PagedEnumerable<ListRagFilesResponse, RagFile> ListRagFiles(ListRagFilesRequest request, CallSettings callSettings = null)

Lists RagFiles in a RagCorpus.

Parameters
Name Description
request ListRagFilesRequest

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
PagedEnumerableListRagFilesResponseRagFile

A pageable sequence of RagFile resources.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
ListRagFilesRequest request = new ListRagFilesRequest
{
    ParentAsRagCorpusName = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"),
};
// Make the request
PagedEnumerable<ListRagFilesResponse, RagFile> response = vertexRagDataServiceClient.ListRagFiles(request);

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

ListRagFiles(RagCorpusName, string, int?, CallSettings)

public virtual PagedEnumerable<ListRagFilesResponse, RagFile> ListRagFiles(RagCorpusName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists RagFiles in a RagCorpus.

Parameters
Name Description
parent RagCorpusName

Required. The resource name of the RagCorpus from which to list the RagFiles. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

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
PagedEnumerableListRagFilesResponseRagFile

A pageable sequence of RagFile resources.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
RagCorpusName parent = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]");
// Make the request
PagedEnumerable<ListRagFilesResponse, RagFile> response = vertexRagDataServiceClient.ListRagFiles(parent);

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

ListRagFiles(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListRagFilesResponse, RagFile> ListRagFiles(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists RagFiles in a RagCorpus.

Parameters
Name Description
parent string

Required. The resource name of the RagCorpus from which to list the RagFiles. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

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
PagedEnumerableListRagFilesResponseRagFile

A pageable sequence of RagFile resources.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]";
// Make the request
PagedEnumerable<ListRagFilesResponse, RagFile> response = vertexRagDataServiceClient.ListRagFiles(parent);

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

ListRagFilesAsync(ListRagFilesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListRagFilesResponse, RagFile> ListRagFilesAsync(ListRagFilesRequest request, CallSettings callSettings = null)

Lists RagFiles in a RagCorpus.

Parameters
Name Description
request ListRagFilesRequest

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
PagedAsyncEnumerableListRagFilesResponseRagFile

A pageable asynchronous sequence of RagFile resources.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
ListRagFilesRequest request = new ListRagFilesRequest
{
    ParentAsRagCorpusName = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"),
};
// Make the request
PagedAsyncEnumerable<ListRagFilesResponse, RagFile> response = vertexRagDataServiceClient.ListRagFilesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (RagFile item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListRagFilesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (RagFile 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<RagFile> 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 (RagFile 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;

ListRagFilesAsync(RagCorpusName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListRagFilesResponse, RagFile> ListRagFilesAsync(RagCorpusName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists RagFiles in a RagCorpus.

Parameters
Name Description
parent RagCorpusName

Required. The resource name of the RagCorpus from which to list the RagFiles. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

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
PagedAsyncEnumerableListRagFilesResponseRagFile

A pageable asynchronous sequence of RagFile resources.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
RagCorpusName parent = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]");
// Make the request
PagedAsyncEnumerable<ListRagFilesResponse, RagFile> response = vertexRagDataServiceClient.ListRagFilesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (RagFile item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListRagFilesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (RagFile 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<RagFile> 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 (RagFile 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;

ListRagFilesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListRagFilesResponse, RagFile> ListRagFilesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists RagFiles in a RagCorpus.

Parameters
Name Description
parent string

Required. The resource name of the RagCorpus from which to list the RagFiles. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

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
PagedAsyncEnumerableListRagFilesResponseRagFile

A pageable asynchronous sequence of RagFile resources.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]";
// Make the request
PagedAsyncEnumerable<ListRagFilesResponse, RagFile> response = vertexRagDataServiceClient.ListRagFilesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (RagFile item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListRagFilesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (RagFile 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<RagFile> 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 (RagFile 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;

ListRagMetadata(ListRagMetadataRequest, CallSettings)

public virtual PagedEnumerable<ListRagMetadataResponse, RagMetadata> ListRagMetadata(ListRagMetadataRequest request, CallSettings callSettings = null)

Lists RagMetadata in a RagFile.

Parameters
Name Description
request ListRagMetadataRequest

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
PagedEnumerableListRagMetadataResponseRagMetadata

A pageable sequence of RagMetadata resources.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
ListRagMetadataRequest request = new ListRagMetadataRequest
{
    ParentAsRagFileName = RagFileName.FromProjectLocationRagCorpusRagFile("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]"),
};
// Make the request
PagedEnumerable<ListRagMetadataResponse, RagMetadata> response = vertexRagDataServiceClient.ListRagMetadata(request);

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

ListRagMetadata(RagFileName, string, int?, CallSettings)

public virtual PagedEnumerable<ListRagMetadataResponse, RagMetadata> ListRagMetadata(RagFileName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists RagMetadata in a RagFile.

Parameters
Name Description
parent RagFileName

Required. The resource name of the RagFile from which to list the RagMetadata. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}

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
PagedEnumerableListRagMetadataResponseRagMetadata

A pageable sequence of RagMetadata resources.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
RagFileName parent = RagFileName.FromProjectLocationRagCorpusRagFile("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]");
// Make the request
PagedEnumerable<ListRagMetadataResponse, RagMetadata> response = vertexRagDataServiceClient.ListRagMetadata(parent);

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

ListRagMetadata(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListRagMetadataResponse, RagMetadata> ListRagMetadata(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists RagMetadata in a RagFile.

Parameters
Name Description
parent string

Required. The resource name of the RagFile from which to list the RagMetadata. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}

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
PagedEnumerableListRagMetadataResponseRagMetadata

A pageable sequence of RagMetadata resources.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]/ragFiles/[RAG_FILE]";
// Make the request
PagedEnumerable<ListRagMetadataResponse, RagMetadata> response = vertexRagDataServiceClient.ListRagMetadata(parent);

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

ListRagMetadataAsync(ListRagMetadataRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListRagMetadataResponse, RagMetadata> ListRagMetadataAsync(ListRagMetadataRequest request, CallSettings callSettings = null)

Lists RagMetadata in a RagFile.

Parameters
Name Description
request ListRagMetadataRequest

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
PagedAsyncEnumerableListRagMetadataResponseRagMetadata

A pageable asynchronous sequence of RagMetadata resources.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
ListRagMetadataRequest request = new ListRagMetadataRequest
{
    ParentAsRagFileName = RagFileName.FromProjectLocationRagCorpusRagFile("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]"),
};
// Make the request
PagedAsyncEnumerable<ListRagMetadataResponse, RagMetadata> response = vertexRagDataServiceClient.ListRagMetadataAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (RagMetadata item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListRagMetadataResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (RagMetadata 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<RagMetadata> 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 (RagMetadata 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;

ListRagMetadataAsync(RagFileName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListRagMetadataResponse, RagMetadata> ListRagMetadataAsync(RagFileName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists RagMetadata in a RagFile.

Parameters
Name Description
parent RagFileName

Required. The resource name of the RagFile from which to list the RagMetadata. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}

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
PagedAsyncEnumerableListRagMetadataResponseRagMetadata

A pageable asynchronous sequence of RagMetadata resources.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
RagFileName parent = RagFileName.FromProjectLocationRagCorpusRagFile("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]");
// Make the request
PagedAsyncEnumerable<ListRagMetadataResponse, RagMetadata> response = vertexRagDataServiceClient.ListRagMetadataAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (RagMetadata item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListRagMetadataResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (RagMetadata 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<RagMetadata> 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 (RagMetadata 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;

ListRagMetadataAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListRagMetadataResponse, RagMetadata> ListRagMetadataAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists RagMetadata in a RagFile.

Parameters
Name Description
parent string

Required. The resource name of the RagFile from which to list the RagMetadata. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}

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
PagedAsyncEnumerableListRagMetadataResponseRagMetadata

A pageable asynchronous sequence of RagMetadata resources.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]/ragFiles/[RAG_FILE]";
// Make the request
PagedAsyncEnumerable<ListRagMetadataResponse, RagMetadata> response = vertexRagDataServiceClient.ListRagMetadataAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (RagMetadata item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListRagMetadataResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (RagMetadata 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<RagMetadata> 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 (RagMetadata 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;

PollOnceBatchCreateRagDataSchemas(string, CallSettings)

public virtual Operation<BatchCreateRagDataSchemasResponse, BatchCreateRagDataSchemasOperationMetadata> PollOnceBatchCreateRagDataSchemas(string operationName, CallSettings callSettings = null)

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

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
OperationBatchCreateRagDataSchemasResponseBatchCreateRagDataSchemasOperationMetadata

The result of polling the operation.

PollOnceBatchCreateRagDataSchemasAsync(string, CallSettings)

public virtual Task<Operation<BatchCreateRagDataSchemasResponse, BatchCreateRagDataSchemasOperationMetadata>> PollOnceBatchCreateRagDataSchemasAsync(string operationName, CallSettings callSettings = null)

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

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
TaskOperationBatchCreateRagDataSchemasResponseBatchCreateRagDataSchemasOperationMetadata

A task representing the result of polling the operation.

PollOnceBatchCreateRagMetadata(string, CallSettings)

public virtual Operation<BatchCreateRagMetadataResponse, BatchCreateRagMetadataOperationMetadata> PollOnceBatchCreateRagMetadata(string operationName, CallSettings callSettings = null)

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

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
OperationBatchCreateRagMetadataResponseBatchCreateRagMetadataOperationMetadata

The result of polling the operation.

PollOnceBatchCreateRagMetadataAsync(string, CallSettings)

public virtual Task<Operation<BatchCreateRagMetadataResponse, BatchCreateRagMetadataOperationMetadata>> PollOnceBatchCreateRagMetadataAsync(string operationName, CallSettings callSettings = null)

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

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
TaskOperationBatchCreateRagMetadataResponseBatchCreateRagMetadataOperationMetadata

A task representing the result of polling the operation.

PollOnceBatchDeleteRagDataSchemas(string, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> PollOnceBatchDeleteRagDataSchemas(string operationName, CallSettings callSettings = null)

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

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
OperationEmptyDeleteOperationMetadata

The result of polling the operation.

PollOnceBatchDeleteRagDataSchemasAsync(string, CallSettings)

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

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

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
TaskOperationEmptyDeleteOperationMetadata

A task representing the result of polling the operation.

PollOnceBatchDeleteRagMetadata(string, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> PollOnceBatchDeleteRagMetadata(string operationName, CallSettings callSettings = null)

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

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
OperationEmptyDeleteOperationMetadata

The result of polling the operation.

PollOnceBatchDeleteRagMetadataAsync(string, CallSettings)

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

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

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
TaskOperationEmptyDeleteOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateRagCorpus(string, CallSettings)

public virtual Operation<RagCorpus, CreateRagCorpusOperationMetadata> PollOnceCreateRagCorpus(string operationName, CallSettings callSettings = null)

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

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
OperationRagCorpusCreateRagCorpusOperationMetadata

The result of polling the operation.

PollOnceCreateRagCorpusAsync(string, CallSettings)

public virtual Task<Operation<RagCorpus, CreateRagCorpusOperationMetadata>> PollOnceCreateRagCorpusAsync(string operationName, CallSettings callSettings = null)

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

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
TaskOperationRagCorpusCreateRagCorpusOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteRagCorpus(string, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> PollOnceDeleteRagCorpus(string operationName, CallSettings callSettings = null)

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

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
OperationEmptyDeleteOperationMetadata

The result of polling the operation.

PollOnceDeleteRagCorpusAsync(string, CallSettings)

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

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

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
TaskOperationEmptyDeleteOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteRagFile(string, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> PollOnceDeleteRagFile(string operationName, CallSettings callSettings = null)

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

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
OperationEmptyDeleteOperationMetadata

The result of polling the operation.

PollOnceDeleteRagFileAsync(string, CallSettings)

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

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

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
TaskOperationEmptyDeleteOperationMetadata

A task representing the result of polling the operation.

PollOnceImportRagFiles(string, CallSettings)

public virtual Operation<ImportRagFilesResponse, ImportRagFilesOperationMetadata> PollOnceImportRagFiles(string operationName, CallSettings callSettings = null)

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

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
OperationImportRagFilesResponseImportRagFilesOperationMetadata

The result of polling the operation.

PollOnceImportRagFilesAsync(string, CallSettings)

public virtual Task<Operation<ImportRagFilesResponse, ImportRagFilesOperationMetadata>> PollOnceImportRagFilesAsync(string operationName, CallSettings callSettings = null)

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

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
TaskOperationImportRagFilesResponseImportRagFilesOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateRagCorpus(string, CallSettings)

public virtual Operation<RagCorpus, UpdateRagCorpusOperationMetadata> PollOnceUpdateRagCorpus(string operationName, CallSettings callSettings = null)

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

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
OperationRagCorpusUpdateRagCorpusOperationMetadata

The result of polling the operation.

PollOnceUpdateRagCorpusAsync(string, CallSettings)

public virtual Task<Operation<RagCorpus, UpdateRagCorpusOperationMetadata>> PollOnceUpdateRagCorpusAsync(string operationName, CallSettings callSettings = null)

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

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
TaskOperationRagCorpusUpdateRagCorpusOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateRagEngineConfig(string, CallSettings)

public virtual Operation<RagEngineConfig, UpdateRagEngineConfigOperationMetadata> PollOnceUpdateRagEngineConfig(string operationName, CallSettings callSettings = null)

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

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
OperationRagEngineConfigUpdateRagEngineConfigOperationMetadata

The result of polling the operation.

PollOnceUpdateRagEngineConfigAsync(string, CallSettings)

public virtual Task<Operation<RagEngineConfig, UpdateRagEngineConfigOperationMetadata>> PollOnceUpdateRagEngineConfigAsync(string operationName, CallSettings callSettings = null)

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

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
TaskOperationRagEngineConfigUpdateRagEngineConfigOperationMetadata

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.

UpdateRagCorpus(RagCorpus, CallSettings)

public virtual Operation<RagCorpus, UpdateRagCorpusOperationMetadata> UpdateRagCorpus(RagCorpus ragCorpus, CallSettings callSettings = null)

Updates a RagCorpus.

Parameters
Name Description
ragCorpus RagCorpus

Required. The RagCorpus which replaces the resource on the server.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationRagCorpusUpdateRagCorpusOperationMetadata

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
RagCorpus ragCorpus = new RagCorpus();
// Make the request
Operation<RagCorpus, UpdateRagCorpusOperationMetadata> response = vertexRagDataServiceClient.UpdateRagCorpus(ragCorpus);

// Poll until the returned long-running operation is complete
Operation<RagCorpus, UpdateRagCorpusOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RagCorpus 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<RagCorpus, UpdateRagCorpusOperationMetadata> retrievedResponse = vertexRagDataServiceClient.PollOnceUpdateRagCorpus(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    RagCorpus retrievedResult = retrievedResponse.Result;
}

UpdateRagCorpus(UpdateRagCorpusRequest, CallSettings)

public virtual Operation<RagCorpus, UpdateRagCorpusOperationMetadata> UpdateRagCorpus(UpdateRagCorpusRequest request, CallSettings callSettings = null)

Updates a RagCorpus.

Parameters
Name Description
request UpdateRagCorpusRequest

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
OperationRagCorpusUpdateRagCorpusOperationMetadata

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
UpdateRagCorpusRequest request = new UpdateRagCorpusRequest
{
    RagCorpus = new RagCorpus(),
};
// Make the request
Operation<RagCorpus, UpdateRagCorpusOperationMetadata> response = vertexRagDataServiceClient.UpdateRagCorpus(request);

// Poll until the returned long-running operation is complete
Operation<RagCorpus, UpdateRagCorpusOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RagCorpus 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<RagCorpus, UpdateRagCorpusOperationMetadata> retrievedResponse = vertexRagDataServiceClient.PollOnceUpdateRagCorpus(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    RagCorpus retrievedResult = retrievedResponse.Result;
}

UpdateRagCorpusAsync(RagCorpus, CallSettings)

public virtual Task<Operation<RagCorpus, UpdateRagCorpusOperationMetadata>> UpdateRagCorpusAsync(RagCorpus ragCorpus, CallSettings callSettings = null)

Updates a RagCorpus.

Parameters
Name Description
ragCorpus RagCorpus

Required. The RagCorpus which replaces the resource on the server.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationRagCorpusUpdateRagCorpusOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
RagCorpus ragCorpus = new RagCorpus();
// Make the request
Operation<RagCorpus, UpdateRagCorpusOperationMetadata> response = await vertexRagDataServiceClient.UpdateRagCorpusAsync(ragCorpus);

// Poll until the returned long-running operation is complete
Operation<RagCorpus, UpdateRagCorpusOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RagCorpus 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<RagCorpus, UpdateRagCorpusOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceUpdateRagCorpusAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    RagCorpus retrievedResult = retrievedResponse.Result;
}

UpdateRagCorpusAsync(RagCorpus, CancellationToken)

public virtual Task<Operation<RagCorpus, UpdateRagCorpusOperationMetadata>> UpdateRagCorpusAsync(RagCorpus ragCorpus, CancellationToken cancellationToken)

Updates a RagCorpus.

Parameters
Name Description
ragCorpus RagCorpus

Required. The RagCorpus which replaces the resource on the server.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationRagCorpusUpdateRagCorpusOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
RagCorpus ragCorpus = new RagCorpus();
// Make the request
Operation<RagCorpus, UpdateRagCorpusOperationMetadata> response = await vertexRagDataServiceClient.UpdateRagCorpusAsync(ragCorpus);

// Poll until the returned long-running operation is complete
Operation<RagCorpus, UpdateRagCorpusOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RagCorpus 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<RagCorpus, UpdateRagCorpusOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceUpdateRagCorpusAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    RagCorpus retrievedResult = retrievedResponse.Result;
}

UpdateRagCorpusAsync(UpdateRagCorpusRequest, CallSettings)

public virtual Task<Operation<RagCorpus, UpdateRagCorpusOperationMetadata>> UpdateRagCorpusAsync(UpdateRagCorpusRequest request, CallSettings callSettings = null)

Updates a RagCorpus.

Parameters
Name Description
request UpdateRagCorpusRequest

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
TaskOperationRagCorpusUpdateRagCorpusOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateRagCorpusRequest request = new UpdateRagCorpusRequest
{
    RagCorpus = new RagCorpus(),
};
// Make the request
Operation<RagCorpus, UpdateRagCorpusOperationMetadata> response = await vertexRagDataServiceClient.UpdateRagCorpusAsync(request);

// Poll until the returned long-running operation is complete
Operation<RagCorpus, UpdateRagCorpusOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RagCorpus 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<RagCorpus, UpdateRagCorpusOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceUpdateRagCorpusAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    RagCorpus retrievedResult = retrievedResponse.Result;
}

UpdateRagCorpusAsync(UpdateRagCorpusRequest, CancellationToken)

public virtual Task<Operation<RagCorpus, UpdateRagCorpusOperationMetadata>> UpdateRagCorpusAsync(UpdateRagCorpusRequest request, CancellationToken cancellationToken)

Updates a RagCorpus.

Parameters
Name Description
request UpdateRagCorpusRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationRagCorpusUpdateRagCorpusOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateRagCorpusRequest request = new UpdateRagCorpusRequest
{
    RagCorpus = new RagCorpus(),
};
// Make the request
Operation<RagCorpus, UpdateRagCorpusOperationMetadata> response = await vertexRagDataServiceClient.UpdateRagCorpusAsync(request);

// Poll until the returned long-running operation is complete
Operation<RagCorpus, UpdateRagCorpusOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RagCorpus 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<RagCorpus, UpdateRagCorpusOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceUpdateRagCorpusAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    RagCorpus retrievedResult = retrievedResponse.Result;
}

UpdateRagEngineConfig(RagEngineConfig, CallSettings)

public virtual Operation<RagEngineConfig, UpdateRagEngineConfigOperationMetadata> UpdateRagEngineConfig(RagEngineConfig ragEngineConfig, CallSettings callSettings = null)

Updates a RagEngineConfig.

Parameters
Name Description
ragEngineConfig RagEngineConfig

Required. The updated RagEngineConfig.

NOTE: Downgrading your RagManagedDb's ComputeTier could temporarily increase request latencies until the operation is fully complete.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationRagEngineConfigUpdateRagEngineConfigOperationMetadata

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
RagEngineConfig ragEngineConfig = new RagEngineConfig();
// Make the request
Operation<RagEngineConfig, UpdateRagEngineConfigOperationMetadata> response = vertexRagDataServiceClient.UpdateRagEngineConfig(ragEngineConfig);

// Poll until the returned long-running operation is complete
Operation<RagEngineConfig, UpdateRagEngineConfigOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RagEngineConfig 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<RagEngineConfig, UpdateRagEngineConfigOperationMetadata> retrievedResponse = vertexRagDataServiceClient.PollOnceUpdateRagEngineConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    RagEngineConfig retrievedResult = retrievedResponse.Result;
}

UpdateRagEngineConfig(UpdateRagEngineConfigRequest, CallSettings)

public virtual Operation<RagEngineConfig, UpdateRagEngineConfigOperationMetadata> UpdateRagEngineConfig(UpdateRagEngineConfigRequest request, CallSettings callSettings = null)

Updates a RagEngineConfig.

Parameters
Name Description
request UpdateRagEngineConfigRequest

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
OperationRagEngineConfigUpdateRagEngineConfigOperationMetadata

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
UpdateRagEngineConfigRequest request = new UpdateRagEngineConfigRequest
{
    RagEngineConfig = new RagEngineConfig(),
};
// Make the request
Operation<RagEngineConfig, UpdateRagEngineConfigOperationMetadata> response = vertexRagDataServiceClient.UpdateRagEngineConfig(request);

// Poll until the returned long-running operation is complete
Operation<RagEngineConfig, UpdateRagEngineConfigOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RagEngineConfig 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<RagEngineConfig, UpdateRagEngineConfigOperationMetadata> retrievedResponse = vertexRagDataServiceClient.PollOnceUpdateRagEngineConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    RagEngineConfig retrievedResult = retrievedResponse.Result;
}

UpdateRagEngineConfigAsync(RagEngineConfig, CallSettings)

public virtual Task<Operation<RagEngineConfig, UpdateRagEngineConfigOperationMetadata>> UpdateRagEngineConfigAsync(RagEngineConfig ragEngineConfig, CallSettings callSettings = null)

Updates a RagEngineConfig.

Parameters
Name Description
ragEngineConfig RagEngineConfig

Required. The updated RagEngineConfig.

NOTE: Downgrading your RagManagedDb's ComputeTier could temporarily increase request latencies until the operation is fully complete.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationRagEngineConfigUpdateRagEngineConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
RagEngineConfig ragEngineConfig = new RagEngineConfig();
// Make the request
Operation<RagEngineConfig, UpdateRagEngineConfigOperationMetadata> response = await vertexRagDataServiceClient.UpdateRagEngineConfigAsync(ragEngineConfig);

// Poll until the returned long-running operation is complete
Operation<RagEngineConfig, UpdateRagEngineConfigOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RagEngineConfig 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<RagEngineConfig, UpdateRagEngineConfigOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceUpdateRagEngineConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    RagEngineConfig retrievedResult = retrievedResponse.Result;
}

UpdateRagEngineConfigAsync(RagEngineConfig, CancellationToken)

public virtual Task<Operation<RagEngineConfig, UpdateRagEngineConfigOperationMetadata>> UpdateRagEngineConfigAsync(RagEngineConfig ragEngineConfig, CancellationToken cancellationToken)

Updates a RagEngineConfig.

Parameters
Name Description
ragEngineConfig RagEngineConfig

Required. The updated RagEngineConfig.

NOTE: Downgrading your RagManagedDb's ComputeTier could temporarily increase request latencies until the operation is fully complete.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationRagEngineConfigUpdateRagEngineConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
RagEngineConfig ragEngineConfig = new RagEngineConfig();
// Make the request
Operation<RagEngineConfig, UpdateRagEngineConfigOperationMetadata> response = await vertexRagDataServiceClient.UpdateRagEngineConfigAsync(ragEngineConfig);

// Poll until the returned long-running operation is complete
Operation<RagEngineConfig, UpdateRagEngineConfigOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RagEngineConfig 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<RagEngineConfig, UpdateRagEngineConfigOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceUpdateRagEngineConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    RagEngineConfig retrievedResult = retrievedResponse.Result;
}

UpdateRagEngineConfigAsync(UpdateRagEngineConfigRequest, CallSettings)

public virtual Task<Operation<RagEngineConfig, UpdateRagEngineConfigOperationMetadata>> UpdateRagEngineConfigAsync(UpdateRagEngineConfigRequest request, CallSettings callSettings = null)

Updates a RagEngineConfig.

Parameters
Name Description
request UpdateRagEngineConfigRequest

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
TaskOperationRagEngineConfigUpdateRagEngineConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateRagEngineConfigRequest request = new UpdateRagEngineConfigRequest
{
    RagEngineConfig = new RagEngineConfig(),
};
// Make the request
Operation<RagEngineConfig, UpdateRagEngineConfigOperationMetadata> response = await vertexRagDataServiceClient.UpdateRagEngineConfigAsync(request);

// Poll until the returned long-running operation is complete
Operation<RagEngineConfig, UpdateRagEngineConfigOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RagEngineConfig 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<RagEngineConfig, UpdateRagEngineConfigOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceUpdateRagEngineConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    RagEngineConfig retrievedResult = retrievedResponse.Result;
}

UpdateRagEngineConfigAsync(UpdateRagEngineConfigRequest, CancellationToken)

public virtual Task<Operation<RagEngineConfig, UpdateRagEngineConfigOperationMetadata>> UpdateRagEngineConfigAsync(UpdateRagEngineConfigRequest request, CancellationToken cancellationToken)

Updates a RagEngineConfig.

Parameters
Name Description
request UpdateRagEngineConfigRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationRagEngineConfigUpdateRagEngineConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateRagEngineConfigRequest request = new UpdateRagEngineConfigRequest
{
    RagEngineConfig = new RagEngineConfig(),
};
// Make the request
Operation<RagEngineConfig, UpdateRagEngineConfigOperationMetadata> response = await vertexRagDataServiceClient.UpdateRagEngineConfigAsync(request);

// Poll until the returned long-running operation is complete
Operation<RagEngineConfig, UpdateRagEngineConfigOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RagEngineConfig 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<RagEngineConfig, UpdateRagEngineConfigOperationMetadata> retrievedResponse = await vertexRagDataServiceClient.PollOnceUpdateRagEngineConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    RagEngineConfig retrievedResult = retrievedResponse.Result;
}

UpdateRagMetadata(RagMetadata, CallSettings)

public virtual RagMetadata UpdateRagMetadata(RagMetadata ragMetadata, CallSettings callSettings = null)

Updates a RagMetadata.

Parameters
Name Description
ragMetadata RagMetadata

Required. The RagMetadata which replaces the resource on the server.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
RagMetadata

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
RagMetadata ragMetadata = new RagMetadata();
// Make the request
RagMetadata response = vertexRagDataServiceClient.UpdateRagMetadata(ragMetadata);

UpdateRagMetadata(UpdateRagMetadataRequest, CallSettings)

public virtual RagMetadata UpdateRagMetadata(UpdateRagMetadataRequest request, CallSettings callSettings = null)

Updates a RagMetadata.

Parameters
Name Description
request UpdateRagMetadataRequest

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
RagMetadata

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
UpdateRagMetadataRequest request = new UpdateRagMetadataRequest
{
    RagMetadata = new RagMetadata(),
};
// Make the request
RagMetadata response = vertexRagDataServiceClient.UpdateRagMetadata(request);

UpdateRagMetadataAsync(RagMetadata, CallSettings)

public virtual Task<RagMetadata> UpdateRagMetadataAsync(RagMetadata ragMetadata, CallSettings callSettings = null)

Updates a RagMetadata.

Parameters
Name Description
ragMetadata RagMetadata

Required. The RagMetadata which replaces the resource on the server.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRagMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
RagMetadata ragMetadata = new RagMetadata();
// Make the request
RagMetadata response = await vertexRagDataServiceClient.UpdateRagMetadataAsync(ragMetadata);

UpdateRagMetadataAsync(RagMetadata, CancellationToken)

public virtual Task<RagMetadata> UpdateRagMetadataAsync(RagMetadata ragMetadata, CancellationToken cancellationToken)

Updates a RagMetadata.

Parameters
Name Description
ragMetadata RagMetadata

Required. The RagMetadata which replaces the resource on the server.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRagMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
RagMetadata ragMetadata = new RagMetadata();
// Make the request
RagMetadata response = await vertexRagDataServiceClient.UpdateRagMetadataAsync(ragMetadata);

UpdateRagMetadataAsync(UpdateRagMetadataRequest, CallSettings)

public virtual Task<RagMetadata> UpdateRagMetadataAsync(UpdateRagMetadataRequest request, CallSettings callSettings = null)

Updates a RagMetadata.

Parameters
Name Description
request UpdateRagMetadataRequest

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
TaskRagMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateRagMetadataRequest request = new UpdateRagMetadataRequest
{
    RagMetadata = new RagMetadata(),
};
// Make the request
RagMetadata response = await vertexRagDataServiceClient.UpdateRagMetadataAsync(request);

UpdateRagMetadataAsync(UpdateRagMetadataRequest, CancellationToken)

public virtual Task<RagMetadata> UpdateRagMetadataAsync(UpdateRagMetadataRequest request, CancellationToken cancellationToken)

Updates a RagMetadata.

Parameters
Name Description
request UpdateRagMetadataRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRagMetadata

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateRagMetadataRequest request = new UpdateRagMetadataRequest
{
    RagMetadata = new RagMetadata(),
};
// Make the request
RagMetadata response = await vertexRagDataServiceClient.UpdateRagMetadataAsync(request);

UploadRagFile(RagCorpusName, RagFile, UploadRagFileConfig, CallSettings)

public virtual UploadRagFileResponse UploadRagFile(RagCorpusName parent, RagFile ragFile, UploadRagFileConfig uploadRagFileConfig, CallSettings callSettings = null)

Upload a file into a RagCorpus.

Parameters
Name Description
parent RagCorpusName

Required. The name of the RagCorpus resource into which to upload the file. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

ragFile RagFile

Required. The RagFile to upload.

uploadRagFileConfig UploadRagFileConfig

Required. The config for the RagFiles to be uploaded into the RagCorpus. [VertexRagDataService.UploadRagFile][google.cloud.aiplatform.v1beta1.VertexRagDataService.UploadRagFile].

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
UploadRagFileResponse

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
RagCorpusName parent = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]");
RagFile ragFile = new RagFile();
UploadRagFileConfig uploadRagFileConfig = new UploadRagFileConfig();
// Make the request
UploadRagFileResponse response = vertexRagDataServiceClient.UploadRagFile(parent, ragFile, uploadRagFileConfig);

UploadRagFile(UploadRagFileRequest, CallSettings)

public virtual UploadRagFileResponse UploadRagFile(UploadRagFileRequest request, CallSettings callSettings = null)

Upload a file into a RagCorpus.

Parameters
Name Description
request UploadRagFileRequest

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
UploadRagFileResponse

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
UploadRagFileRequest request = new UploadRagFileRequest
{
    ParentAsRagCorpusName = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"),
    RagFile = new RagFile(),
    UploadRagFileConfig = new UploadRagFileConfig(),
};
// Make the request
UploadRagFileResponse response = vertexRagDataServiceClient.UploadRagFile(request);

UploadRagFile(string, RagFile, UploadRagFileConfig, CallSettings)

public virtual UploadRagFileResponse UploadRagFile(string parent, RagFile ragFile, UploadRagFileConfig uploadRagFileConfig, CallSettings callSettings = null)

Upload a file into a RagCorpus.

Parameters
Name Description
parent string

Required. The name of the RagCorpus resource into which to upload the file. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

ragFile RagFile

Required. The RagFile to upload.

uploadRagFileConfig UploadRagFileConfig

Required. The config for the RagFiles to be uploaded into the RagCorpus. [VertexRagDataService.UploadRagFile][google.cloud.aiplatform.v1beta1.VertexRagDataService.UploadRagFile].

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
UploadRagFileResponse

The RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = VertexRagDataServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]";
RagFile ragFile = new RagFile();
UploadRagFileConfig uploadRagFileConfig = new UploadRagFileConfig();
// Make the request
UploadRagFileResponse response = vertexRagDataServiceClient.UploadRagFile(parent, ragFile, uploadRagFileConfig);

UploadRagFileAsync(RagCorpusName, RagFile, UploadRagFileConfig, CallSettings)

public virtual Task<UploadRagFileResponse> UploadRagFileAsync(RagCorpusName parent, RagFile ragFile, UploadRagFileConfig uploadRagFileConfig, CallSettings callSettings = null)

Upload a file into a RagCorpus.

Parameters
Name Description
parent RagCorpusName

Required. The name of the RagCorpus resource into which to upload the file. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

ragFile RagFile

Required. The RagFile to upload.

uploadRagFileConfig UploadRagFileConfig

Required. The config for the RagFiles to be uploaded into the RagCorpus. [VertexRagDataService.UploadRagFile][google.cloud.aiplatform.v1beta1.VertexRagDataService.UploadRagFile].

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskUploadRagFileResponse

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
RagCorpusName parent = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]");
RagFile ragFile = new RagFile();
UploadRagFileConfig uploadRagFileConfig = new UploadRagFileConfig();
// Make the request
UploadRagFileResponse response = await vertexRagDataServiceClient.UploadRagFileAsync(parent, ragFile, uploadRagFileConfig);

UploadRagFileAsync(RagCorpusName, RagFile, UploadRagFileConfig, CancellationToken)

public virtual Task<UploadRagFileResponse> UploadRagFileAsync(RagCorpusName parent, RagFile ragFile, UploadRagFileConfig uploadRagFileConfig, CancellationToken cancellationToken)

Upload a file into a RagCorpus.

Parameters
Name Description
parent RagCorpusName

Required. The name of the RagCorpus resource into which to upload the file. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

ragFile RagFile

Required. The RagFile to upload.

uploadRagFileConfig UploadRagFileConfig

Required. The config for the RagFiles to be uploaded into the RagCorpus. [VertexRagDataService.UploadRagFile][google.cloud.aiplatform.v1beta1.VertexRagDataService.UploadRagFile].

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskUploadRagFileResponse

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
RagCorpusName parent = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]");
RagFile ragFile = new RagFile();
UploadRagFileConfig uploadRagFileConfig = new UploadRagFileConfig();
// Make the request
UploadRagFileResponse response = await vertexRagDataServiceClient.UploadRagFileAsync(parent, ragFile, uploadRagFileConfig);

UploadRagFileAsync(UploadRagFileRequest, CallSettings)

public virtual Task<UploadRagFileResponse> UploadRagFileAsync(UploadRagFileRequest request, CallSettings callSettings = null)

Upload a file into a RagCorpus.

Parameters
Name Description
request UploadRagFileRequest

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
TaskUploadRagFileResponse

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
UploadRagFileRequest request = new UploadRagFileRequest
{
    ParentAsRagCorpusName = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"),
    RagFile = new RagFile(),
    UploadRagFileConfig = new UploadRagFileConfig(),
};
// Make the request
UploadRagFileResponse response = await vertexRagDataServiceClient.UploadRagFileAsync(request);

UploadRagFileAsync(UploadRagFileRequest, CancellationToken)

public virtual Task<UploadRagFileResponse> UploadRagFileAsync(UploadRagFileRequest request, CancellationToken cancellationToken)

Upload a file into a RagCorpus.

Parameters
Name Description
request UploadRagFileRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskUploadRagFileResponse

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
UploadRagFileRequest request = new UploadRagFileRequest
{
    ParentAsRagCorpusName = RagCorpusName.FromProjectLocationRagCorpus("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"),
    RagFile = new RagFile(),
    UploadRagFileConfig = new UploadRagFileConfig(),
};
// Make the request
UploadRagFileResponse response = await vertexRagDataServiceClient.UploadRagFileAsync(request);

UploadRagFileAsync(string, RagFile, UploadRagFileConfig, CallSettings)

public virtual Task<UploadRagFileResponse> UploadRagFileAsync(string parent, RagFile ragFile, UploadRagFileConfig uploadRagFileConfig, CallSettings callSettings = null)

Upload a file into a RagCorpus.

Parameters
Name Description
parent string

Required. The name of the RagCorpus resource into which to upload the file. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

ragFile RagFile

Required. The RagFile to upload.

uploadRagFileConfig UploadRagFileConfig

Required. The config for the RagFiles to be uploaded into the RagCorpus. [VertexRagDataService.UploadRagFile][google.cloud.aiplatform.v1beta1.VertexRagDataService.UploadRagFile].

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskUploadRagFileResponse

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]";
RagFile ragFile = new RagFile();
UploadRagFileConfig uploadRagFileConfig = new UploadRagFileConfig();
// Make the request
UploadRagFileResponse response = await vertexRagDataServiceClient.UploadRagFileAsync(parent, ragFile, uploadRagFileConfig);

UploadRagFileAsync(string, RagFile, UploadRagFileConfig, CancellationToken)

public virtual Task<UploadRagFileResponse> UploadRagFileAsync(string parent, RagFile ragFile, UploadRagFileConfig uploadRagFileConfig, CancellationToken cancellationToken)

Upload a file into a RagCorpus.

Parameters
Name Description
parent string

Required. The name of the RagCorpus resource into which to upload the file. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

ragFile RagFile

Required. The RagFile to upload.

uploadRagFileConfig UploadRagFileConfig

Required. The config for the RagFiles to be uploaded into the RagCorpus. [VertexRagDataService.UploadRagFile][google.cloud.aiplatform.v1beta1.VertexRagDataService.UploadRagFile].

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskUploadRagFileResponse

A Task containing the RPC response.

Example
// Create client
VertexRagDataServiceClient vertexRagDataServiceClient = await VertexRagDataServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/ragCorpora/[RAG_CORPUS]";
RagFile ragFile = new RagFile();
UploadRagFileConfig uploadRagFileConfig = new UploadRagFileConfig();
// Make the request
UploadRagFileResponse response = await vertexRagDataServiceClient.UploadRagFileAsync(parent, ragFile, uploadRagFileConfig);