Discovery Engine v1beta API - Class LicenseConfigService.LicenseConfigServiceClient (1.0.0-beta24)

public class LicenseConfigService.LicenseConfigServiceClient : ClientBase<LicenseConfigService.LicenseConfigServiceClient>

Reference documentation and code samples for the Discovery Engine v1beta API class LicenseConfigService.LicenseConfigServiceClient.

Client for LicenseConfigService

Inheritance

object > ClientBase > ClientBaseLicenseConfigServiceLicenseConfigServiceClient > LicenseConfigService.LicenseConfigServiceClient

Namespace

Google.Cloud.DiscoveryEngine.V1Beta

Assembly

Google.Cloud.DiscoveryEngine.V1Beta.dll

Constructors

LicenseConfigServiceClient()

protected LicenseConfigServiceClient()

Protected parameterless constructor to allow creation of test doubles.

LicenseConfigServiceClient(CallInvoker)

public LicenseConfigServiceClient(CallInvoker callInvoker)

Creates a new client for LicenseConfigService that uses a custom CallInvoker.

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

LicenseConfigServiceClient(ChannelBase)

public LicenseConfigServiceClient(ChannelBase channel)

Creates a new client for LicenseConfigService

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

LicenseConfigServiceClient(ClientBaseConfiguration)

protected LicenseConfigServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateLicenseConfig(CreateLicenseConfigRequest, CallOptions)

public virtual LicenseConfig CreateLicenseConfig(CreateLicenseConfigRequest request, CallOptions options)

Creates a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] This method should only be used for creating NotebookLm licenses or Gemini Enterprise free trial licenses.

Parameters
Name Description
request CreateLicenseConfigRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
LicenseConfig

The response received from the server.

CreateLicenseConfig(CreateLicenseConfigRequest, Metadata, DateTime?, CancellationToken)

public virtual LicenseConfig CreateLicenseConfig(CreateLicenseConfigRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] This method should only be used for creating NotebookLm licenses or Gemini Enterprise free trial licenses.

Parameters
Name Description
request CreateLicenseConfigRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
LicenseConfig

The response received from the server.

CreateLicenseConfigAsync(CreateLicenseConfigRequest, CallOptions)

public virtual AsyncUnaryCall<LicenseConfig> CreateLicenseConfigAsync(CreateLicenseConfigRequest request, CallOptions options)

Creates a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] This method should only be used for creating NotebookLm licenses or Gemini Enterprise free trial licenses.

Parameters
Name Description
request CreateLicenseConfigRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallLicenseConfig

The call object.

CreateLicenseConfigAsync(CreateLicenseConfigRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<LicenseConfig> CreateLicenseConfigAsync(CreateLicenseConfigRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] This method should only be used for creating NotebookLm licenses or Gemini Enterprise free trial licenses.

Parameters
Name Description
request CreateLicenseConfigRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallLicenseConfig

The call object.

CreateLocationsClient()

public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of Locations.LocationsClient using the same call invoker as this client.

Returns
Type Description
LocationsLocationsClient

A new Locations.LocationsClient for the same target as this client.

DistributeLicenseConfig(DistributeLicenseConfigRequest, CallOptions)

public virtual DistributeLicenseConfigResponse DistributeLicenseConfig(DistributeLicenseConfigRequest request, CallOptions options)

Distributes a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from billing account level to project level.

Parameters
Name Description
request DistributeLicenseConfigRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
DistributeLicenseConfigResponse

The response received from the server.

DistributeLicenseConfig(DistributeLicenseConfigRequest, Metadata, DateTime?, CancellationToken)

public virtual DistributeLicenseConfigResponse DistributeLicenseConfig(DistributeLicenseConfigRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Distributes a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from billing account level to project level.

Parameters
Name Description
request DistributeLicenseConfigRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
DistributeLicenseConfigResponse

The response received from the server.

DistributeLicenseConfigAsync(DistributeLicenseConfigRequest, CallOptions)

public virtual AsyncUnaryCall<DistributeLicenseConfigResponse> DistributeLicenseConfigAsync(DistributeLicenseConfigRequest request, CallOptions options)

Distributes a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from billing account level to project level.

Parameters
Name Description
request DistributeLicenseConfigRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallDistributeLicenseConfigResponse

The call object.

DistributeLicenseConfigAsync(DistributeLicenseConfigRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<DistributeLicenseConfigResponse> DistributeLicenseConfigAsync(DistributeLicenseConfigRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Distributes a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from billing account level to project level.

Parameters
Name Description
request DistributeLicenseConfigRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallDistributeLicenseConfigResponse

The call object.

GetLicenseConfig(GetLicenseConfigRequest, CallOptions)

public virtual LicenseConfig GetLicenseConfig(GetLicenseConfigRequest request, CallOptions options)

Gets a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig].

Parameters
Name Description
request GetLicenseConfigRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
LicenseConfig

The response received from the server.

GetLicenseConfig(GetLicenseConfigRequest, Metadata, DateTime?, CancellationToken)

public virtual LicenseConfig GetLicenseConfig(GetLicenseConfigRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig].

Parameters
Name Description
request GetLicenseConfigRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
LicenseConfig

The response received from the server.

GetLicenseConfigAsync(GetLicenseConfigRequest, CallOptions)

public virtual AsyncUnaryCall<LicenseConfig> GetLicenseConfigAsync(GetLicenseConfigRequest request, CallOptions options)

Gets a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig].

Parameters
Name Description
request GetLicenseConfigRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallLicenseConfig

The call object.

GetLicenseConfigAsync(GetLicenseConfigRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<LicenseConfig> GetLicenseConfigAsync(GetLicenseConfigRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig].

Parameters
Name Description
request GetLicenseConfigRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallLicenseConfig

The call object.

ListLicenseConfigs(ListLicenseConfigsRequest, CallOptions)

public virtual ListLicenseConfigsResponse ListLicenseConfigs(ListLicenseConfigsRequest request, CallOptions options)

Lists all the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s associated with the project.

Parameters
Name Description
request ListLicenseConfigsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ListLicenseConfigsResponse

The response received from the server.

ListLicenseConfigs(ListLicenseConfigsRequest, Metadata, DateTime?, CancellationToken)

public virtual ListLicenseConfigsResponse ListLicenseConfigs(ListLicenseConfigsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists all the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s associated with the project.

Parameters
Name Description
request ListLicenseConfigsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
ListLicenseConfigsResponse

The response received from the server.

ListLicenseConfigsAsync(ListLicenseConfigsRequest, CallOptions)

public virtual AsyncUnaryCall<ListLicenseConfigsResponse> ListLicenseConfigsAsync(ListLicenseConfigsRequest request, CallOptions options)

Lists all the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s associated with the project.

Parameters
Name Description
request ListLicenseConfigsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallListLicenseConfigsResponse

The call object.

ListLicenseConfigsAsync(ListLicenseConfigsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListLicenseConfigsResponse> ListLicenseConfigsAsync(ListLicenseConfigsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists all the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s associated with the project.

Parameters
Name Description
request ListLicenseConfigsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallListLicenseConfigsResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override LicenseConfigService.LicenseConfigServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
LicenseConfigServiceLicenseConfigServiceClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.DiscoveryEngine.V1Beta.LicenseConfigService.LicenseConfigServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

RetractLicenseConfig(RetractLicenseConfigRequest, CallOptions)

public virtual RetractLicenseConfigResponse RetractLicenseConfig(RetractLicenseConfigRequest request, CallOptions options)

This method is called from the billing account side to retract the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from the given project back to the billing account.

Parameters
Name Description
request RetractLicenseConfigRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
RetractLicenseConfigResponse

The response received from the server.

RetractLicenseConfig(RetractLicenseConfigRequest, Metadata, DateTime?, CancellationToken)

public virtual RetractLicenseConfigResponse RetractLicenseConfig(RetractLicenseConfigRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

This method is called from the billing account side to retract the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from the given project back to the billing account.

Parameters
Name Description
request RetractLicenseConfigRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
RetractLicenseConfigResponse

The response received from the server.

RetractLicenseConfigAsync(RetractLicenseConfigRequest, CallOptions)

public virtual AsyncUnaryCall<RetractLicenseConfigResponse> RetractLicenseConfigAsync(RetractLicenseConfigRequest request, CallOptions options)

This method is called from the billing account side to retract the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from the given project back to the billing account.

Parameters
Name Description
request RetractLicenseConfigRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallRetractLicenseConfigResponse

The call object.

RetractLicenseConfigAsync(RetractLicenseConfigRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<RetractLicenseConfigResponse> RetractLicenseConfigAsync(RetractLicenseConfigRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

This method is called from the billing account side to retract the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from the given project back to the billing account.

Parameters
Name Description
request RetractLicenseConfigRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallRetractLicenseConfigResponse

The call object.

UpdateLicenseConfig(UpdateLicenseConfigRequest, CallOptions)

public virtual LicenseConfig UpdateLicenseConfig(UpdateLicenseConfigRequest request, CallOptions options)

Updates the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]

Parameters
Name Description
request UpdateLicenseConfigRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
LicenseConfig

The response received from the server.

UpdateLicenseConfig(UpdateLicenseConfigRequest, Metadata, DateTime?, CancellationToken)

public virtual LicenseConfig UpdateLicenseConfig(UpdateLicenseConfigRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]

Parameters
Name Description
request UpdateLicenseConfigRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
LicenseConfig

The response received from the server.

UpdateLicenseConfigAsync(UpdateLicenseConfigRequest, CallOptions)

public virtual AsyncUnaryCall<LicenseConfig> UpdateLicenseConfigAsync(UpdateLicenseConfigRequest request, CallOptions options)

Updates the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]

Parameters
Name Description
request UpdateLicenseConfigRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallLicenseConfig

The call object.

UpdateLicenseConfigAsync(UpdateLicenseConfigRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<LicenseConfig> UpdateLicenseConfigAsync(UpdateLicenseConfigRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]

Parameters
Name Description
request UpdateLicenseConfigRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallLicenseConfig

The call object.