Class ContentService.ContentServiceClient (1.0.0)

public class ContentServiceClient : ClientBase<ContentService.ContentServiceClient>

Client for ContentService

Inheritance

Object > ClientBase > ClientBase<ContentService.ContentServiceClient> > ContentService.ContentServiceClient

Namespace

Google.Cloud.Dataplex.V1

Assembly

Google.Cloud.Dataplex.V1.dll

Constructors

ContentServiceClient()

protected ContentServiceClient()

Protected parameterless constructor to allow creation of test doubles.

ContentServiceClient(CallInvoker)

public ContentServiceClient(CallInvoker callInvoker)

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

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

ContentServiceClient(ChannelBase)

public ContentServiceClient(ChannelBase channel)

Creates a new client for ContentService

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

ContentServiceClient(ClientBase.ClientBaseConfiguration)

protected ContentServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

The client configuration.

Methods

CreateContent(CreateContentRequest, CallOptions)

public virtual Content CreateContent(CreateContentRequest request, CallOptions options)

Create a content.

Parameters
NameDescription
requestCreateContentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Content

The response received from the server.

CreateContent(CreateContentRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Content CreateContent(CreateContentRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Create a content.

Parameters
NameDescription
requestCreateContentRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Content

The response received from the server.

CreateContentAsync(CreateContentRequest, CallOptions)

public virtual AsyncUnaryCall<Content> CreateContentAsync(CreateContentRequest request, CallOptions options)

Create a content.

Parameters
NameDescription
requestCreateContentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Content>

The call object.

CreateContentAsync(CreateContentRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Content> CreateContentAsync(CreateContentRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Create a content.

Parameters
NameDescription
requestCreateContentRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Content>

The call object.

DeleteContent(DeleteContentRequest, CallOptions)

public virtual Empty DeleteContent(DeleteContentRequest request, CallOptions options)

Delete a content.

Parameters
NameDescription
requestDeleteContentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Empty

The response received from the server.

DeleteContent(DeleteContentRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Empty DeleteContent(DeleteContentRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Delete a content.

Parameters
NameDescription
requestDeleteContentRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Empty

The response received from the server.

DeleteContentAsync(DeleteContentRequest, CallOptions)

public virtual AsyncUnaryCall<Empty> DeleteContentAsync(DeleteContentRequest request, CallOptions options)

Delete a content.

Parameters
NameDescription
requestDeleteContentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Empty>

The call object.

DeleteContentAsync(DeleteContentRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Empty> DeleteContentAsync(DeleteContentRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Delete a content.

Parameters
NameDescription
requestDeleteContentRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Empty>

The call object.

GetContent(GetContentRequest, CallOptions)

public virtual Content GetContent(GetContentRequest request, CallOptions options)

Get a content resource.

Parameters
NameDescription
requestGetContentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Content

The response received from the server.

GetContent(GetContentRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Content GetContent(GetContentRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Get a content resource.

Parameters
NameDescription
requestGetContentRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Content

The response received from the server.

GetContentAsync(GetContentRequest, CallOptions)

public virtual AsyncUnaryCall<Content> GetContentAsync(GetContentRequest request, CallOptions options)

Get a content resource.

Parameters
NameDescription
requestGetContentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Content>

The call object.

GetContentAsync(GetContentRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Content> GetContentAsync(GetContentRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Get a content resource.

Parameters
NameDescription
requestGetContentRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Content>

The call object.

ListContent(ListContentRequest, CallOptions)

public virtual ListContentResponse ListContent(ListContentRequest request, CallOptions options)

List content.

Parameters
NameDescription
requestListContentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListContentResponse

The response received from the server.

ListContent(ListContentRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual ListContentResponse ListContent(ListContentRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

List content.

Parameters
NameDescription
requestListContentRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ListContentResponse

The response received from the server.

ListContentAsync(ListContentRequest, CallOptions)

public virtual AsyncUnaryCall<ListContentResponse> ListContentAsync(ListContentRequest request, CallOptions options)

List content.

Parameters
NameDescription
requestListContentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<ListContentResponse>

The call object.

ListContentAsync(ListContentRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<ListContentResponse> ListContentAsync(ListContentRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

List content.

Parameters
NameDescription
requestListContentRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<ListContentResponse>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

protected override ContentService.ContentServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
ContentService.ContentServiceClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Dataplex.V1.ContentService.ContentServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

UpdateContent(UpdateContentRequest, CallOptions)

public virtual Content UpdateContent(UpdateContentRequest request, CallOptions options)

Update a content. Only supports full resource update.

Parameters
NameDescription
requestUpdateContentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Content

The response received from the server.

UpdateContent(UpdateContentRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Content UpdateContent(UpdateContentRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Update a content. Only supports full resource update.

Parameters
NameDescription
requestUpdateContentRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Content

The response received from the server.

UpdateContentAsync(UpdateContentRequest, CallOptions)

public virtual AsyncUnaryCall<Content> UpdateContentAsync(UpdateContentRequest request, CallOptions options)

Update a content. Only supports full resource update.

Parameters
NameDescription
requestUpdateContentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Content>

The call object.

UpdateContentAsync(UpdateContentRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Content> UpdateContentAsync(UpdateContentRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Update a content. Only supports full resource update.

Parameters
NameDescription
requestUpdateContentRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Content>

The call object.