- 3.9.0 (latest)
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.0
- 3.0.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.0
- 2.1.0
- 2.0.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.0
public abstract class IndexEndpointServiceClient
Reference documentation and code samples for the Cloud AI Platform v1 API class IndexEndpointServiceClient.
IndexEndpointService client wrapper, for convenient use.
Derived Types
Namespace
GoogleCloudGoogle.Cloud.AIPlatformV1Assembly
Google.Cloud.AIPlatform.V1.dll
Remarks
A service for managing Vertex AI's IndexEndpoints.
Properties
CreateIndexEndpointOperationsClient
public virtual OperationsClient CreateIndexEndpointOperationsClient { get; }
The long-running operations client for CreateIndexEndpoint
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DefaultEndpoint
public static string DefaultEndpoint { get; }
The default endpoint for the IndexEndpointService 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 IndexEndpointService scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyListstring |
The default IndexEndpointService scopes are:
DeleteIndexEndpointOperationsClient
public virtual OperationsClient DeleteIndexEndpointOperationsClient { get; }
The long-running operations client for DeleteIndexEndpoint
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeployIndexOperationsClient
public virtual OperationsClient DeployIndexOperationsClient { get; }
The long-running operations client for DeployIndex
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public virtual IndexEndpointService.IndexEndpointServiceClient GrpcClient { get; }
The underlying gRPC IndexEndpointService client
Property Value | |
---|---|
Type | Description |
IndexEndpointServiceIndexEndpointServiceClient |
IAMPolicyClient
public virtual IAMPolicyClient IAMPolicyClient { get; }
The IAMPolicyClient associated with this client.
Property Value | |
---|---|
Type | Description |
IAMPolicyClient |
LocationsClient
public virtual LocationsClient LocationsClient { get; }
The LocationsClient associated with this client.
Property Value | |
---|---|
Type | Description |
LocationsClient |
MutateDeployedIndexOperationsClient
public virtual OperationsClient MutateDeployedIndexOperationsClient { get; }
The long-running operations client for MutateDeployedIndex
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }
The service metadata associated with this client type.
Property Value | |
---|---|
Type | Description |
ServiceMetadata |
UndeployIndexOperationsClient
public virtual OperationsClient UndeployIndexOperationsClient { get; }
The long-running operations client for UndeployIndex
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
Methods
Create()
public static IndexEndpointServiceClient Create()
Synchronously creates a IndexEndpointServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use IndexEndpointServiceClientBuilder.
Returns | |
---|---|
Type | Description |
IndexEndpointServiceClient | The created IndexEndpointServiceClient. |
CreateAsync(CancellationToken)
public static Task<IndexEndpointServiceClient> CreateAsync(CancellationToken cancellationToken = default)
Asynchronously creates a IndexEndpointServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use IndexEndpointServiceClientBuilder.
Parameter | |
---|---|
Name | Description |
cancellationToken | CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
TaskIndexEndpointServiceClient | The task representing the created IndexEndpointServiceClient. |
CreateIndexEndpoint(LocationName, IndexEndpoint, CallSettings)
public virtual Operation<IndexEndpoint, CreateIndexEndpointOperationMetadata> CreateIndexEndpoint(LocationName parent, IndexEndpoint indexEndpoint, CallSettings callSettings = null)
Creates an IndexEndpoint.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The resource name of the Location to create the IndexEndpoint in.
Format: |
indexEndpoint | IndexEndpoint Required. The IndexEndpoint to create. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationIndexEndpointCreateIndexEndpointOperationMetadata | The RPC response. |
// Create client
IndexEndpointServiceClient indexEndpointServiceClient = IndexEndpointServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
IndexEndpoint indexEndpoint = new IndexEndpoint();
// Make the request
Operation<IndexEndpoint, CreateIndexEndpointOperationMetadata> response = indexEndpointServiceClient.CreateIndexEndpoint(parent, indexEndpoint);
// Poll until the returned long-running operation is complete
Operation<IndexEndpoint, CreateIndexEndpointOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
IndexEndpoint 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<IndexEndpoint, CreateIndexEndpointOperationMetadata> retrievedResponse = indexEndpointServiceClient.PollOnceCreateIndexEndpoint(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
IndexEndpoint retrievedResult = retrievedResponse.Result;
}
CreateIndexEndpoint(CreateIndexEndpointRequest, CallSettings)
public virtual Operation<IndexEndpoint, CreateIndexEndpointOperationMetadata> CreateIndexEndpoint(CreateIndexEndpointRequest request, CallSettings callSettings = null)
Creates an IndexEndpoint.
Parameters | |
---|---|
Name | Description |
request | CreateIndexEndpointRequest 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 |
OperationIndexEndpointCreateIndexEndpointOperationMetadata | The RPC response. |
// Create client
IndexEndpointServiceClient indexEndpointServiceClient = IndexEndpointServiceClient.Create();
// Initialize request argument(s)
CreateIndexEndpointRequest request = new CreateIndexEndpointRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
IndexEndpoint = new IndexEndpoint(),
};
// Make the request
Operation<IndexEndpoint, CreateIndexEndpointOperationMetadata> response = indexEndpointServiceClient.CreateIndexEndpoint(request);
// Poll until the returned long-running operation is complete
Operation<IndexEndpoint, CreateIndexEndpointOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
IndexEndpoint 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<IndexEndpoint, CreateIndexEndpointOperationMetadata> retrievedResponse = indexEndpointServiceClient.PollOnceCreateIndexEndpoint(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
IndexEndpoint retrievedResult = retrievedResponse.Result;
}
CreateIndexEndpoint(string, IndexEndpoint, CallSettings)
public virtual Operation<IndexEndpoint, CreateIndexEndpointOperationMetadata> CreateIndexEndpoint(string parent, IndexEndpoint indexEndpoint, CallSettings callSettings = null)
Creates an IndexEndpoint.
Parameters | |
---|---|
Name | Description |
parent | string Required. The resource name of the Location to create the IndexEndpoint in.
Format: |
indexEndpoint | IndexEndpoint Required. The IndexEndpoint to create. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationIndexEndpointCreateIndexEndpointOperationMetadata | The RPC response. |
// Create client
IndexEndpointServiceClient indexEndpointServiceClient = IndexEndpointServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
IndexEndpoint indexEndpoint = new IndexEndpoint();
// Make the request
Operation<IndexEndpoint, CreateIndexEndpointOperationMetadata> response = indexEndpointServiceClient.CreateIndexEndpoint(parent, indexEndpoint);
// Poll until the returned long-running operation is complete
Operation<IndexEndpoint, CreateIndexEndpointOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
IndexEndpoint 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<IndexEndpoint, CreateIndexEndpointOperationMetadata> retrievedResponse = indexEndpointServiceClient.PollOnceCreateIndexEndpoint(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
IndexEndpoint retrievedResult = retrievedResponse.Result;
}
CreateIndexEndpointAsync(LocationName, IndexEndpoint, CallSettings)
public virtual Task<Operation<IndexEndpoint, CreateIndexEndpointOperationMetadata>> CreateIndexEndpointAsync(LocationName parent, IndexEndpoint indexEndpoint, CallSettings callSettings = null)
Creates an IndexEndpoint.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The resource name of the Location to create the IndexEndpoint in.
Format: |
indexEndpoint | IndexEndpoint Required. The IndexEndpoint to create. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationIndexEndpointCreateIndexEndpointOperationMetadata | A Task containing the RPC response. |
// Create client
IndexEndpointServiceClient indexEndpointServiceClient = await IndexEndpointServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
IndexEndpoint indexEndpoint = new IndexEndpoint();
// Make the request
Operation<IndexEndpoint, CreateIndexEndpointOperationMetadata> response = await indexEndpointServiceClient.CreateIndexEndpointAsync(parent, indexEndpoint);
// Poll until the returned long-running operation is complete
Operation<IndexEndpoint, CreateIndexEndpointOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
IndexEndpoint 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<IndexEndpoint, CreateIndexEndpointOperationMetadata> retrievedResponse = await indexEndpointServiceClient.PollOnceCreateIndexEndpointAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
IndexEndpoint retrievedResult = retrievedResponse.Result;
}
CreateIndexEndpointAsync(LocationName, IndexEndpoint, CancellationToken)
public virtual Task<Operation<IndexEndpoint, CreateIndexEndpointOperationMetadata>> CreateIndexEndpointAsync(LocationName parent, IndexEndpoint indexEndpoint, CancellationToken cancellationToken)
Creates an IndexEndpoint.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The resource name of the Location to create the IndexEndpoint in.
Format: |
indexEndpoint | IndexEndpoint Required. The IndexEndpoint to create. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationIndexEndpointCreateIndexEndpointOperationMetadata | A Task containing the RPC response. |
// Create client
IndexEndpointServiceClient indexEndpointServiceClient = await IndexEndpointServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
IndexEndpoint indexEndpoint = new IndexEndpoint();
// Make the request
Operation<IndexEndpoint, CreateIndexEndpointOperationMetadata> response = await indexEndpointServiceClient.CreateIndexEndpointAsync(parent, indexEndpoint);
// Poll until the returned long-running operation is complete
Operation<IndexEndpoint, CreateIndexEndpointOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
IndexEndpoint 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<IndexEndpoint, CreateIndexEndpointOperationMetadata> retrievedResponse = await indexEndpointServiceClient.PollOnceCreateIndexEndpointAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
IndexEndpoint retrievedResult = retrievedResponse.Result;
}
CreateIndexEndpointAsync(CreateIndexEndpointRequest, CallSettings)
public virtual Task<Operation<IndexEndpoint, CreateIndexEndpointOperationMetadata>> CreateIndexEndpointAsync(CreateIndexEndpointRequest request, CallSettings callSettings = null)
Creates an IndexEndpoint.
Parameters | |
---|---|
Name | Description |
request | CreateIndexEndpointRequest 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 |
TaskOperationIndexEndpointCreateIndexEndpointOperationMetadata | A Task containing the RPC response. |
// Create client
IndexEndpointServiceClient indexEndpointServiceClient = await IndexEndpointServiceClient.CreateAsync();
// Initialize request argument(s)
CreateIndexEndpointRequest request = new CreateIndexEndpointRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
IndexEndpoint = new IndexEndpoint(),
};
// Make the request
Operation<IndexEndpoint, CreateIndexEndpointOperationMetadata> response = await indexEndpointServiceClient.CreateIndexEndpointAsync(request);
// Poll until the returned long-running operation is complete
Operation<IndexEndpoint, CreateIndexEndpointOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
IndexEndpoint 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<IndexEndpoint, CreateIndexEndpointOperationMetadata> retrievedResponse = await indexEndpointServiceClient.PollOnceCreateIndexEndpointAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
IndexEndpoint retrievedResult = retrievedResponse.Result;
}
CreateIndexEndpointAsync(CreateIndexEndpointRequest, CancellationToken)
public virtual Task<Operation<IndexEndpoint, CreateIndexEndpointOperationMetadata>> CreateIndexEndpointAsync(CreateIndexEndpointRequest request, CancellationToken cancellationToken)
Creates an IndexEndpoint.
Parameters | |
---|---|
Name | Description |
request | CreateIndexEndpointRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationIndexEndpointCreateIndexEndpointOperationMetadata | A Task containing the RPC response. |
// Create client
IndexEndpointServiceClient indexEndpointServiceClient = await IndexEndpointServiceClient.CreateAsync();
// Initialize request argument(s)
CreateIndexEndpointRequest request = new CreateIndexEndpointRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
IndexEndpoint = new IndexEndpoint(),
};
// Make the request
Operation<IndexEndpoint, CreateIndexEndpointOperationMetadata> response = await indexEndpointServiceClient.CreateIndexEndpointAsync(request);
// Poll until the returned long-running operation is complete
Operation<IndexEndpoint, CreateIndexEndpointOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
IndexEndpoint 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<IndexEndpoint, CreateIndexEndpointOperationMetadata> retrievedResponse = await indexEndpointServiceClient.PollOnceCreateIndexEndpointAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
IndexEndpoint retrievedResult = retrievedResponse.Result;
}
CreateIndexEndpointAsync(string, IndexEndpoint, CallSettings)
public virtual Task<Operation<IndexEndpoint, CreateIndexEndpointOperationMetadata>> CreateIndexEndpointAsync(string parent, IndexEndpoint indexEndpoint, CallSettings callSettings = null)
Creates an IndexEndpoint.
Parameters | |
---|---|
Name | Description |
parent | string Required. The resource name of the Location to create the IndexEndpoint in.
Format: |
indexEndpoint | IndexEndpoint Required. The IndexEndpoint to create. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationIndexEndpointCreateIndexEndpointOperationMetadata | A Task containing the RPC response. |