Class ProposalServiceClient
ProposalService client wrapper, for convenient use.
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public abstract class ProposalServiceClient
Remarks
Provides methods for handling Proposal objects.
Properties
DefaultEndpoint
The default endpoint for the ProposalService service, which is a host of "admanager.googleapis.com" and a port of 443.
Declaration
public static string DefaultEndpoint { get; }
Property Value
| Type | Description |
|---|---|
| string |
DefaultScopes
The default ProposalService scopes.
Declaration
public static IReadOnlyList<string> DefaultScopes { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<string> |
Remarks
The default ProposalService scopes are:
- https://www.googleapis.com/auth/admanager
- https://www.googleapis.com/auth/admanager.readonly
GrpcClient
The underlying gRPC ProposalService client
Declaration
public virtual ProposalService.ProposalServiceClient GrpcClient { get; }
Property Value
| Type | Description |
|---|---|
| ProposalService.ProposalServiceClient |
ServiceMetadata
The service metadata associated with this client type.
Declaration
public static ServiceMetadata ServiceMetadata { get; }
Property Value
| Type | Description |
|---|---|
| ServiceMetadata |
Methods
BatchArchiveProposals(BatchArchiveProposalsRequest, CallSettings)
Archives Proposal objects.
Declaration
public virtual BatchArchiveProposalsResponse BatchArchiveProposals(BatchArchiveProposalsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchArchiveProposalsRequest | request | 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 |
|---|---|
| BatchArchiveProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
BatchArchiveProposalsRequest request = new BatchArchiveProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
ProposalNames =
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
},
};
// Make the request
BatchArchiveProposalsResponse response = proposalServiceClient.BatchArchiveProposals(request);
BatchArchiveProposals(NetworkName, IEnumerable<ProposalName>, CallSettings)
Archives Proposal objects.
Declaration
public virtual BatchArchiveProposalsResponse BatchArchiveProposals(NetworkName parent, IEnumerable<ProposalName> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where proposals will be archived.
Format: |
| IEnumerable<ProposalName> | names | Required. The resource names of the Proposals to archive.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| BatchArchiveProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<ProposalName> names = new ProposalName[]
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
// Make the request
BatchArchiveProposalsResponse response = proposalServiceClient.BatchArchiveProposals(parent, names);
BatchArchiveProposals(string, IEnumerable<string>, CallSettings)
Archives Proposal objects.
Declaration
public virtual BatchArchiveProposalsResponse BatchArchiveProposals(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where proposals will be archived.
Format: |
| IEnumerable<string> | names | Required. The resource names of the Proposals to archive.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| BatchArchiveProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
"networks/[NETWORK_CODE]/proposals/[PROPOSAL]",
};
// Make the request
BatchArchiveProposalsResponse response = proposalServiceClient.BatchArchiveProposals(parent, names);
BatchArchiveProposalsAsync(BatchArchiveProposalsRequest, CallSettings)
Archives Proposal objects.
Declaration
public virtual Task<BatchArchiveProposalsResponse> BatchArchiveProposalsAsync(BatchArchiveProposalsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchArchiveProposalsRequest | request | 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<BatchArchiveProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
BatchArchiveProposalsRequest request = new BatchArchiveProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
ProposalNames =
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
},
};
// Make the request
BatchArchiveProposalsResponse response = await proposalServiceClient.BatchArchiveProposalsAsync(request);
BatchArchiveProposalsAsync(BatchArchiveProposalsRequest, CancellationToken)
Archives Proposal objects.
Declaration
public virtual Task<BatchArchiveProposalsResponse> BatchArchiveProposalsAsync(BatchArchiveProposalsRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchArchiveProposalsRequest | request | 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<BatchArchiveProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
BatchArchiveProposalsRequest request = new BatchArchiveProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
ProposalNames =
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
},
};
// Make the request
BatchArchiveProposalsResponse response = await proposalServiceClient.BatchArchiveProposalsAsync(request);
BatchArchiveProposalsAsync(NetworkName, IEnumerable<ProposalName>, CallSettings)
Archives Proposal objects.
Declaration
public virtual Task<BatchArchiveProposalsResponse> BatchArchiveProposalsAsync(NetworkName parent, IEnumerable<ProposalName> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where proposals will be archived.
Format: |
| IEnumerable<ProposalName> | names | Required. The resource names of the Proposals to archive.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<BatchArchiveProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<ProposalName> names = new ProposalName[]
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
// Make the request
BatchArchiveProposalsResponse response = await proposalServiceClient.BatchArchiveProposalsAsync(parent, names);
BatchArchiveProposalsAsync(NetworkName, IEnumerable<ProposalName>, CancellationToken)
Archives Proposal objects.
Declaration
public virtual Task<BatchArchiveProposalsResponse> BatchArchiveProposalsAsync(NetworkName parent, IEnumerable<ProposalName> names, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where proposals will be archived.
Format: |
| IEnumerable<ProposalName> | names | Required. The resource names of the Proposals to archive.
Format: |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<BatchArchiveProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<ProposalName> names = new ProposalName[]
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
// Make the request
BatchArchiveProposalsResponse response = await proposalServiceClient.BatchArchiveProposalsAsync(parent, names);
BatchArchiveProposalsAsync(string, IEnumerable<string>, CallSettings)
Archives Proposal objects.
Declaration
public virtual Task<BatchArchiveProposalsResponse> BatchArchiveProposalsAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where proposals will be archived.
Format: |
| IEnumerable<string> | names | Required. The resource names of the Proposals to archive.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<BatchArchiveProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
"networks/[NETWORK_CODE]/proposals/[PROPOSAL]",
};
// Make the request
BatchArchiveProposalsResponse response = await proposalServiceClient.BatchArchiveProposalsAsync(parent, names);
BatchArchiveProposalsAsync(string, IEnumerable<string>, CancellationToken)
Archives Proposal objects.
Declaration
public virtual Task<BatchArchiveProposalsResponse> BatchArchiveProposalsAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where proposals will be archived.
Format: |
| IEnumerable<string> | names | Required. The resource names of the Proposals to archive.
Format: |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<BatchArchiveProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
"networks/[NETWORK_CODE]/proposals/[PROPOSAL]",
};
// Make the request
BatchArchiveProposalsResponse response = await proposalServiceClient.BatchArchiveProposalsAsync(parent, names);
BatchCreateProposals(BatchCreateProposalsRequest, CallSettings)
Creates Proposal objects.
Declaration
public virtual BatchCreateProposalsResponse BatchCreateProposals(BatchCreateProposalsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchCreateProposalsRequest | request | 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 |
|---|---|
| BatchCreateProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
BatchCreateProposalsRequest request = new BatchCreateProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
Requests =
{
new CreateProposalRequest(),
},
};
// Make the request
BatchCreateProposalsResponse response = proposalServiceClient.BatchCreateProposals(request);
BatchCreateProposals(NetworkName, IEnumerable<CreateProposalRequest>, CallSettings)
Creates Proposal objects.
Declaration
public virtual BatchCreateProposalsResponse BatchCreateProposals(NetworkName parent, IEnumerable<CreateProposalRequest> requests, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where |
| IEnumerable<CreateProposalRequest> | requests | Required. The |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| BatchCreateProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CreateProposalRequest> requests = new CreateProposalRequest[]
{
new CreateProposalRequest(),
};
// Make the request
BatchCreateProposalsResponse response = proposalServiceClient.BatchCreateProposals(parent, requests);
BatchCreateProposals(string, IEnumerable<CreateProposalRequest>, CallSettings)
Creates Proposal objects.
Declaration
public virtual BatchCreateProposalsResponse BatchCreateProposals(string parent, IEnumerable<CreateProposalRequest> requests, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where |
| IEnumerable<CreateProposalRequest> | requests | Required. The |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| BatchCreateProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<CreateProposalRequest> requests = new CreateProposalRequest[]
{
new CreateProposalRequest(),
};
// Make the request
BatchCreateProposalsResponse response = proposalServiceClient.BatchCreateProposals(parent, requests);
BatchCreateProposalsAsync(BatchCreateProposalsRequest, CallSettings)
Creates Proposal objects.
Declaration
public virtual Task<BatchCreateProposalsResponse> BatchCreateProposalsAsync(BatchCreateProposalsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchCreateProposalsRequest | request | 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<BatchCreateProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
BatchCreateProposalsRequest request = new BatchCreateProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
Requests =
{
new CreateProposalRequest(),
},
};
// Make the request
BatchCreateProposalsResponse response = await proposalServiceClient.BatchCreateProposalsAsync(request);
BatchCreateProposalsAsync(BatchCreateProposalsRequest, CancellationToken)
Creates Proposal objects.
Declaration
public virtual Task<BatchCreateProposalsResponse> BatchCreateProposalsAsync(BatchCreateProposalsRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchCreateProposalsRequest | request | 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<BatchCreateProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
BatchCreateProposalsRequest request = new BatchCreateProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
Requests =
{
new CreateProposalRequest(),
},
};
// Make the request
BatchCreateProposalsResponse response = await proposalServiceClient.BatchCreateProposalsAsync(request);
BatchCreateProposalsAsync(NetworkName, IEnumerable<CreateProposalRequest>, CallSettings)
Creates Proposal objects.
Declaration
public virtual Task<BatchCreateProposalsResponse> BatchCreateProposalsAsync(NetworkName parent, IEnumerable<CreateProposalRequest> requests, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where |
| IEnumerable<CreateProposalRequest> | requests | Required. The |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<BatchCreateProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CreateProposalRequest> requests = new CreateProposalRequest[]
{
new CreateProposalRequest(),
};
// Make the request
BatchCreateProposalsResponse response = await proposalServiceClient.BatchCreateProposalsAsync(parent, requests);
BatchCreateProposalsAsync(NetworkName, IEnumerable<CreateProposalRequest>, CancellationToken)
Creates Proposal objects.
Declaration
public virtual Task<BatchCreateProposalsResponse> BatchCreateProposalsAsync(NetworkName parent, IEnumerable<CreateProposalRequest> requests, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where |
| IEnumerable<CreateProposalRequest> | requests | Required. The |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<BatchCreateProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CreateProposalRequest> requests = new CreateProposalRequest[]
{
new CreateProposalRequest(),
};
// Make the request
BatchCreateProposalsResponse response = await proposalServiceClient.BatchCreateProposalsAsync(parent, requests);
BatchCreateProposalsAsync(string, IEnumerable<CreateProposalRequest>, CallSettings)
Creates Proposal objects.
Declaration
public virtual Task<BatchCreateProposalsResponse> BatchCreateProposalsAsync(string parent, IEnumerable<CreateProposalRequest> requests, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where |
| IEnumerable<CreateProposalRequest> | requests | Required. The |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<BatchCreateProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<CreateProposalRequest> requests = new CreateProposalRequest[]
{
new CreateProposalRequest(),
};
// Make the request
BatchCreateProposalsResponse response = await proposalServiceClient.BatchCreateProposalsAsync(parent, requests);
BatchCreateProposalsAsync(string, IEnumerable<CreateProposalRequest>, CancellationToken)
Creates Proposal objects.
Declaration
public virtual Task<BatchCreateProposalsResponse> BatchCreateProposalsAsync(string parent, IEnumerable<CreateProposalRequest> requests, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where |
| IEnumerable<CreateProposalRequest> | requests | Required. The |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<BatchCreateProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<CreateProposalRequest> requests = new CreateProposalRequest[]
{
new CreateProposalRequest(),
};
// Make the request
BatchCreateProposalsResponse response = await proposalServiceClient.BatchCreateProposalsAsync(parent, requests);
BatchDiscardDraftProposals(BatchDiscardDraftProposalsRequest, CallSettings)
Discards drafts, or revert local modifications, of Proposal objects.
Declaration
public virtual BatchDiscardDraftProposalsResponse BatchDiscardDraftProposals(BatchDiscardDraftProposalsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchDiscardDraftProposalsRequest | request | 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 |
|---|---|
| BatchDiscardDraftProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
BatchDiscardDraftProposalsRequest request = new BatchDiscardDraftProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
ProposalNames =
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
},
};
// Make the request
BatchDiscardDraftProposalsResponse response = proposalServiceClient.BatchDiscardDraftProposals(request);
BatchDiscardDraftProposals(NetworkName, IEnumerable<ProposalName>, CallSettings)
Discards drafts, or revert local modifications, of Proposal objects.
Declaration
public virtual BatchDiscardDraftProposalsResponse BatchDiscardDraftProposals(NetworkName parent, IEnumerable<ProposalName> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where proposals will be discarded.
Format: |
| IEnumerable<ProposalName> | names | Required. The resource names of the Proposals to discard.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| BatchDiscardDraftProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<ProposalName> names = new ProposalName[]
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
// Make the request
BatchDiscardDraftProposalsResponse response = proposalServiceClient.BatchDiscardDraftProposals(parent, names);
BatchDiscardDraftProposals(string, IEnumerable<string>, CallSettings)
Discards drafts, or revert local modifications, of Proposal objects.
Declaration
public virtual BatchDiscardDraftProposalsResponse BatchDiscardDraftProposals(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where proposals will be discarded.
Format: |
| IEnumerable<string> | names | Required. The resource names of the Proposals to discard.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| BatchDiscardDraftProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
"networks/[NETWORK_CODE]/proposals/[PROPOSAL]",
};
// Make the request
BatchDiscardDraftProposalsResponse response = proposalServiceClient.BatchDiscardDraftProposals(parent, names);
BatchDiscardDraftProposalsAsync(BatchDiscardDraftProposalsRequest, CallSettings)
Discards drafts, or revert local modifications, of Proposal objects.
Declaration
public virtual Task<BatchDiscardDraftProposalsResponse> BatchDiscardDraftProposalsAsync(BatchDiscardDraftProposalsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchDiscardDraftProposalsRequest | request | 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<BatchDiscardDraftProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
BatchDiscardDraftProposalsRequest request = new BatchDiscardDraftProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
ProposalNames =
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
},
};
// Make the request
BatchDiscardDraftProposalsResponse response = await proposalServiceClient.BatchDiscardDraftProposalsAsync(request);
BatchDiscardDraftProposalsAsync(BatchDiscardDraftProposalsRequest, CancellationToken)
Discards drafts, or revert local modifications, of Proposal objects.
Declaration
public virtual Task<BatchDiscardDraftProposalsResponse> BatchDiscardDraftProposalsAsync(BatchDiscardDraftProposalsRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchDiscardDraftProposalsRequest | request | 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<BatchDiscardDraftProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
BatchDiscardDraftProposalsRequest request = new BatchDiscardDraftProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
ProposalNames =
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
},
};
// Make the request
BatchDiscardDraftProposalsResponse response = await proposalServiceClient.BatchDiscardDraftProposalsAsync(request);
BatchDiscardDraftProposalsAsync(NetworkName, IEnumerable<ProposalName>, CallSettings)
Discards drafts, or revert local modifications, of Proposal objects.
Declaration
public virtual Task<BatchDiscardDraftProposalsResponse> BatchDiscardDraftProposalsAsync(NetworkName parent, IEnumerable<ProposalName> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where proposals will be discarded.
Format: |
| IEnumerable<ProposalName> | names | Required. The resource names of the Proposals to discard.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<BatchDiscardDraftProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<ProposalName> names = new ProposalName[]
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
// Make the request
BatchDiscardDraftProposalsResponse response = await proposalServiceClient.BatchDiscardDraftProposalsAsync(parent, names);
BatchDiscardDraftProposalsAsync(NetworkName, IEnumerable<ProposalName>, CancellationToken)
Discards drafts, or revert local modifications, of Proposal objects.
Declaration
public virtual Task<BatchDiscardDraftProposalsResponse> BatchDiscardDraftProposalsAsync(NetworkName parent, IEnumerable<ProposalName> names, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where proposals will be discarded.
Format: |
| IEnumerable<ProposalName> | names | Required. The resource names of the Proposals to discard.
Format: |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<BatchDiscardDraftProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<ProposalName> names = new ProposalName[]
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
// Make the request
BatchDiscardDraftProposalsResponse response = await proposalServiceClient.BatchDiscardDraftProposalsAsync(parent, names);
BatchDiscardDraftProposalsAsync(string, IEnumerable<string>, CallSettings)
Discards drafts, or revert local modifications, of Proposal objects.
Declaration
public virtual Task<BatchDiscardDraftProposalsResponse> BatchDiscardDraftProposalsAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where proposals will be discarded.
Format: |
| IEnumerable<string> | names | Required. The resource names of the Proposals to discard.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<BatchDiscardDraftProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
"networks/[NETWORK_CODE]/proposals/[PROPOSAL]",
};
// Make the request
BatchDiscardDraftProposalsResponse response = await proposalServiceClient.BatchDiscardDraftProposalsAsync(parent, names);
BatchDiscardDraftProposalsAsync(string, IEnumerable<string>, CancellationToken)
Discards drafts, or revert local modifications, of Proposal objects.
Declaration
public virtual Task<BatchDiscardDraftProposalsResponse> BatchDiscardDraftProposalsAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where proposals will be discarded.
Format: |
| IEnumerable<string> | names | Required. The resource names of the Proposals to discard.
Format: |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<BatchDiscardDraftProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
"networks/[NETWORK_CODE]/proposals/[PROPOSAL]",
};
// Make the request
BatchDiscardDraftProposalsResponse response = await proposalServiceClient.BatchDiscardDraftProposalsAsync(parent, names);
BatchPauseProposals(BatchPauseProposalsRequest, CallSettings)
Pauses Proposal objects.
Declaration
public virtual BatchPauseProposalsResponse BatchPauseProposals(BatchPauseProposalsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchPauseProposalsRequest | request | 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 |
|---|---|
| BatchPauseProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
BatchPauseProposalsRequest request = new BatchPauseProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
ProposalNames =
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
},
Reason = "",
};
// Make the request
BatchPauseProposalsResponse response = proposalServiceClient.BatchPauseProposals(request);
BatchPauseProposals(NetworkName, IEnumerable<ProposalName>, string, CallSettings)
Pauses Proposal objects.
Declaration
public virtual BatchPauseProposalsResponse BatchPauseProposals(NetworkName parent, IEnumerable<ProposalName> names, string reason, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where proposals will be paused.
Format: |
| IEnumerable<ProposalName> | names | Required. The resource names of the Proposals to pause.
Format: |
| string | reason | Required. The reason for pausing the Proposals. |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| BatchPauseProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<ProposalName> names = new ProposalName[]
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
string reason = "";
// Make the request
BatchPauseProposalsResponse response = proposalServiceClient.BatchPauseProposals(parent, names, reason);
BatchPauseProposals(string, IEnumerable<string>, string, CallSettings)
Pauses Proposal objects.
Declaration
public virtual BatchPauseProposalsResponse BatchPauseProposals(string parent, IEnumerable<string> names, string reason, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where proposals will be paused.
Format: |
| IEnumerable<string> | names | Required. The resource names of the Proposals to pause.
Format: |
| string | reason | Required. The reason for pausing the Proposals. |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| BatchPauseProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
"networks/[NETWORK_CODE]/proposals/[PROPOSAL]",
};
string reason = "";
// Make the request
BatchPauseProposalsResponse response = proposalServiceClient.BatchPauseProposals(parent, names, reason);
BatchPauseProposalsAsync(BatchPauseProposalsRequest, CallSettings)
Pauses Proposal objects.
Declaration
public virtual Task<BatchPauseProposalsResponse> BatchPauseProposalsAsync(BatchPauseProposalsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchPauseProposalsRequest | request | 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<BatchPauseProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
BatchPauseProposalsRequest request = new BatchPauseProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
ProposalNames =
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
},
Reason = "",
};
// Make the request
BatchPauseProposalsResponse response = await proposalServiceClient.BatchPauseProposalsAsync(request);
BatchPauseProposalsAsync(BatchPauseProposalsRequest, CancellationToken)
Pauses Proposal objects.
Declaration
public virtual Task<BatchPauseProposalsResponse> BatchPauseProposalsAsync(BatchPauseProposalsRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchPauseProposalsRequest | request | 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<BatchPauseProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
BatchPauseProposalsRequest request = new BatchPauseProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
ProposalNames =
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
},
Reason = "",
};
// Make the request
BatchPauseProposalsResponse response = await proposalServiceClient.BatchPauseProposalsAsync(request);
BatchPauseProposalsAsync(NetworkName, IEnumerable<ProposalName>, string, CallSettings)
Pauses Proposal objects.
Declaration
public virtual Task<BatchPauseProposalsResponse> BatchPauseProposalsAsync(NetworkName parent, IEnumerable<ProposalName> names, string reason, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where proposals will be paused.
Format: |
| IEnumerable<ProposalName> | names | Required. The resource names of the Proposals to pause.
Format: |
| string | reason | Required. The reason for pausing the Proposals. |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<BatchPauseProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<ProposalName> names = new ProposalName[]
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
string reason = "";
// Make the request
BatchPauseProposalsResponse response = await proposalServiceClient.BatchPauseProposalsAsync(parent, names, reason);
BatchPauseProposalsAsync(NetworkName, IEnumerable<ProposalName>, string, CancellationToken)
Pauses Proposal objects.
Declaration
public virtual Task<BatchPauseProposalsResponse> BatchPauseProposalsAsync(NetworkName parent, IEnumerable<ProposalName> names, string reason, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where proposals will be paused.
Format: |
| IEnumerable<ProposalName> | names | Required. The resource names of the Proposals to pause.
Format: |
| string | reason | Required. The reason for pausing the Proposals. |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<BatchPauseProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<ProposalName> names = new ProposalName[]
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
string reason = "";
// Make the request
BatchPauseProposalsResponse response = await proposalServiceClient.BatchPauseProposalsAsync(parent, names, reason);
BatchPauseProposalsAsync(string, IEnumerable<string>, string, CallSettings)
Pauses Proposal objects.
Declaration
public virtual Task<BatchPauseProposalsResponse> BatchPauseProposalsAsync(string parent, IEnumerable<string> names, string reason, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where proposals will be paused.
Format: |
| IEnumerable<string> | names | Required. The resource names of the Proposals to pause.
Format: |
| string | reason | Required. The reason for pausing the Proposals. |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<BatchPauseProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
"networks/[NETWORK_CODE]/proposals/[PROPOSAL]",
};
string reason = "";
// Make the request
BatchPauseProposalsResponse response = await proposalServiceClient.BatchPauseProposalsAsync(parent, names, reason);
BatchPauseProposalsAsync(string, IEnumerable<string>, string, CancellationToken)
Pauses Proposal objects.
Declaration
public virtual Task<BatchPauseProposalsResponse> BatchPauseProposalsAsync(string parent, IEnumerable<string> names, string reason, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where proposals will be paused.
Format: |
| IEnumerable<string> | names | Required. The resource names of the Proposals to pause.
Format: |
| string | reason | Required. The reason for pausing the Proposals. |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<BatchPauseProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
"networks/[NETWORK_CODE]/proposals/[PROPOSAL]",
};
string reason = "";
// Make the request
BatchPauseProposalsResponse response = await proposalServiceClient.BatchPauseProposalsAsync(parent, names, reason);
BatchPushToOrderProposals(BatchPushToOrderProposalsRequest, CallSettings)
Push changes on Proposals to corresponding Orders, after negotiations
have been finalized.
Declaration
public virtual BatchPushToOrderProposalsResponse BatchPushToOrderProposals(BatchPushToOrderProposalsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchPushToOrderProposalsRequest | request | 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 |
|---|---|
| BatchPushToOrderProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
BatchPushToOrderProposalsRequest request = new BatchPushToOrderProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
ProposalNames =
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
},
};
// Make the request
BatchPushToOrderProposalsResponse response = proposalServiceClient.BatchPushToOrderProposals(request);
BatchPushToOrderProposals(NetworkName, IEnumerable<ProposalName>, CallSettings)
Push changes on Proposals to corresponding Orders, after negotiations
have been finalized.
Declaration
public virtual BatchPushToOrderProposalsResponse BatchPushToOrderProposals(NetworkName parent, IEnumerable<ProposalName> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where proposals will be pushed to order.
Format: |
| IEnumerable<ProposalName> | names | Required. The resource names of the Proposals to push to order.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| BatchPushToOrderProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<ProposalName> names = new ProposalName[]
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
// Make the request
BatchPushToOrderProposalsResponse response = proposalServiceClient.BatchPushToOrderProposals(parent, names);
BatchPushToOrderProposals(string, IEnumerable<string>, CallSettings)
Push changes on Proposals to corresponding Orders, after negotiations
have been finalized.
Declaration
public virtual BatchPushToOrderProposalsResponse BatchPushToOrderProposals(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where proposals will be pushed to order.
Format: |
| IEnumerable<string> | names | Required. The resource names of the Proposals to push to order.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| BatchPushToOrderProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
"networks/[NETWORK_CODE]/proposals/[PROPOSAL]",
};
// Make the request
BatchPushToOrderProposalsResponse response = proposalServiceClient.BatchPushToOrderProposals(parent, names);
BatchPushToOrderProposalsAsync(BatchPushToOrderProposalsRequest, CallSettings)
Push changes on Proposals to corresponding Orders, after negotiations
have been finalized.
Declaration
public virtual Task<BatchPushToOrderProposalsResponse> BatchPushToOrderProposalsAsync(BatchPushToOrderProposalsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchPushToOrderProposalsRequest | request | 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<BatchPushToOrderProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
BatchPushToOrderProposalsRequest request = new BatchPushToOrderProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
ProposalNames =
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
},
};
// Make the request
BatchPushToOrderProposalsResponse response = await proposalServiceClient.BatchPushToOrderProposalsAsync(request);
BatchPushToOrderProposalsAsync(BatchPushToOrderProposalsRequest, CancellationToken)
Push changes on Proposals to corresponding Orders, after negotiations
have been finalized.
Declaration
public virtual Task<BatchPushToOrderProposalsResponse> BatchPushToOrderProposalsAsync(BatchPushToOrderProposalsRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchPushToOrderProposalsRequest | request | 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<BatchPushToOrderProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
BatchPushToOrderProposalsRequest request = new BatchPushToOrderProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
ProposalNames =
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
},
};
// Make the request
BatchPushToOrderProposalsResponse response = await proposalServiceClient.BatchPushToOrderProposalsAsync(request);
BatchPushToOrderProposalsAsync(NetworkName, IEnumerable<ProposalName>, CallSettings)
Push changes on Proposals to corresponding Orders, after negotiations
have been finalized.
Declaration
public virtual Task<BatchPushToOrderProposalsResponse> BatchPushToOrderProposalsAsync(NetworkName parent, IEnumerable<ProposalName> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where proposals will be pushed to order.
Format: |
| IEnumerable<ProposalName> | names | Required. The resource names of the Proposals to push to order.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<BatchPushToOrderProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<ProposalName> names = new ProposalName[]
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
// Make the request
BatchPushToOrderProposalsResponse response = await proposalServiceClient.BatchPushToOrderProposalsAsync(parent, names);
BatchPushToOrderProposalsAsync(NetworkName, IEnumerable<ProposalName>, CancellationToken)
Push changes on Proposals to corresponding Orders, after negotiations
have been finalized.
Declaration
public virtual Task<BatchPushToOrderProposalsResponse> BatchPushToOrderProposalsAsync(NetworkName parent, IEnumerable<ProposalName> names, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where proposals will be pushed to order.
Format: |
| IEnumerable<ProposalName> | names | Required. The resource names of the Proposals to push to order.
Format: |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<BatchPushToOrderProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<ProposalName> names = new ProposalName[]
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
// Make the request
BatchPushToOrderProposalsResponse response = await proposalServiceClient.BatchPushToOrderProposalsAsync(parent, names);
BatchPushToOrderProposalsAsync(string, IEnumerable<string>, CallSettings)
Push changes on Proposals to corresponding Orders, after negotiations
have been finalized.
Declaration
public virtual Task<BatchPushToOrderProposalsResponse> BatchPushToOrderProposalsAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where proposals will be pushed to order.
Format: |
| IEnumerable<string> | names | Required. The resource names of the Proposals to push to order.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<BatchPushToOrderProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
"networks/[NETWORK_CODE]/proposals/[PROPOSAL]",
};
// Make the request
BatchPushToOrderProposalsResponse response = await proposalServiceClient.BatchPushToOrderProposalsAsync(parent, names);
BatchPushToOrderProposalsAsync(string, IEnumerable<string>, CancellationToken)
Push changes on Proposals to corresponding Orders, after negotiations
have been finalized.
Declaration
public virtual Task<BatchPushToOrderProposalsResponse> BatchPushToOrderProposalsAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where proposals will be pushed to order.
Format: |
| IEnumerable<string> | names | Required. The resource names of the Proposals to push to order.
Format: |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<BatchPushToOrderProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
"networks/[NETWORK_CODE]/proposals/[PROPOSAL]",
};
// Make the request
BatchPushToOrderProposalsResponse response = await proposalServiceClient.BatchPushToOrderProposalsAsync(parent, names);
BatchRedraftProposals(BatchRedraftProposalsRequest, CallSettings)
Redrafts Proposal objects for negotiation.
Declaration
public virtual BatchRedraftProposalsResponse BatchRedraftProposals(BatchRedraftProposalsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchRedraftProposalsRequest | request | 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 |
|---|---|
| BatchRedraftProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
BatchRedraftProposalsRequest request = new BatchRedraftProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
ProposalNames =
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
},
};
// Make the request
BatchRedraftProposalsResponse response = proposalServiceClient.BatchRedraftProposals(request);
BatchRedraftProposals(NetworkName, IEnumerable<ProposalName>, CallSettings)
Redrafts Proposal objects for negotiation.
Declaration
public virtual BatchRedraftProposalsResponse BatchRedraftProposals(NetworkName parent, IEnumerable<ProposalName> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where proposals will be redrafted.
Format: |
| IEnumerable<ProposalName> | names | Required. The resource names of the Proposals to redraft.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| BatchRedraftProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<ProposalName> names = new ProposalName[]
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
// Make the request
BatchRedraftProposalsResponse response = proposalServiceClient.BatchRedraftProposals(parent, names);
BatchRedraftProposals(string, IEnumerable<string>, CallSettings)
Redrafts Proposal objects for negotiation.
Declaration
public virtual BatchRedraftProposalsResponse BatchRedraftProposals(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where proposals will be redrafted.
Format: |
| IEnumerable<string> | names | Required. The resource names of the Proposals to redraft.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| BatchRedraftProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
"networks/[NETWORK_CODE]/proposals/[PROPOSAL]",
};
// Make the request
BatchRedraftProposalsResponse response = proposalServiceClient.BatchRedraftProposals(parent, names);
BatchRedraftProposalsAsync(BatchRedraftProposalsRequest, CallSettings)
Redrafts Proposal objects for negotiation.
Declaration
public virtual Task<BatchRedraftProposalsResponse> BatchRedraftProposalsAsync(BatchRedraftProposalsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchRedraftProposalsRequest | request | 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<BatchRedraftProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
BatchRedraftProposalsRequest request = new BatchRedraftProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
ProposalNames =
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
},
};
// Make the request
BatchRedraftProposalsResponse response = await proposalServiceClient.BatchRedraftProposalsAsync(request);
BatchRedraftProposalsAsync(BatchRedraftProposalsRequest, CancellationToken)
Redrafts Proposal objects for negotiation.
Declaration
public virtual Task<BatchRedraftProposalsResponse> BatchRedraftProposalsAsync(BatchRedraftProposalsRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchRedraftProposalsRequest | request | 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<BatchRedraftProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
BatchRedraftProposalsRequest request = new BatchRedraftProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
ProposalNames =
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
},
};
// Make the request
BatchRedraftProposalsResponse response = await proposalServiceClient.BatchRedraftProposalsAsync(request);
BatchRedraftProposalsAsync(NetworkName, IEnumerable<ProposalName>, CallSettings)
Redrafts Proposal objects for negotiation.
Declaration
public virtual Task<BatchRedraftProposalsResponse> BatchRedraftProposalsAsync(NetworkName parent, IEnumerable<ProposalName> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where proposals will be redrafted.
Format: |
| IEnumerable<ProposalName> | names | Required. The resource names of the Proposals to redraft.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<BatchRedraftProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<ProposalName> names = new ProposalName[]
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
// Make the request
BatchRedraftProposalsResponse response = await proposalServiceClient.BatchRedraftProposalsAsync(parent, names);
BatchRedraftProposalsAsync(NetworkName, IEnumerable<ProposalName>, CancellationToken)
Redrafts Proposal objects for negotiation.
Declaration
public virtual Task<BatchRedraftProposalsResponse> BatchRedraftProposalsAsync(NetworkName parent, IEnumerable<ProposalName> names, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where proposals will be redrafted.
Format: |
| IEnumerable<ProposalName> | names | Required. The resource names of the Proposals to redraft.
Format: |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<BatchRedraftProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<ProposalName> names = new ProposalName[]
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
// Make the request
BatchRedraftProposalsResponse response = await proposalServiceClient.BatchRedraftProposalsAsync(parent, names);
BatchRedraftProposalsAsync(string, IEnumerable<string>, CallSettings)
Redrafts Proposal objects for negotiation.
Declaration
public virtual Task<BatchRedraftProposalsResponse> BatchRedraftProposalsAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where proposals will be redrafted.
Format: |
| IEnumerable<string> | names | Required. The resource names of the Proposals to redraft.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<BatchRedraftProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
"networks/[NETWORK_CODE]/proposals/[PROPOSAL]",
};
// Make the request
BatchRedraftProposalsResponse response = await proposalServiceClient.BatchRedraftProposalsAsync(parent, names);
BatchRedraftProposalsAsync(string, IEnumerable<string>, CancellationToken)
Redrafts Proposal objects for negotiation.
Declaration
public virtual Task<BatchRedraftProposalsResponse> BatchRedraftProposalsAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where proposals will be redrafted.
Format: |
| IEnumerable<string> | names | Required. The resource names of the Proposals to redraft.
Format: |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<BatchRedraftProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
"networks/[NETWORK_CODE]/proposals/[PROPOSAL]",
};
// Make the request
BatchRedraftProposalsResponse response = await proposalServiceClient.BatchRedraftProposalsAsync(parent, names);
BatchRequestBuyerAcceptProposals(BatchRequestBuyerAcceptProposalsRequest, CallSettings)
Requests buyer acceptance for Proposal objects.
Declaration
public virtual BatchRequestBuyerAcceptProposalsResponse BatchRequestBuyerAcceptProposals(BatchRequestBuyerAcceptProposalsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchRequestBuyerAcceptProposalsRequest | request | 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 |
|---|---|
| BatchRequestBuyerAcceptProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
BatchRequestBuyerAcceptProposalsRequest request = new BatchRequestBuyerAcceptProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
ProposalNames =
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
},
OverbookingAllowed = false,
};
// Make the request
BatchRequestBuyerAcceptProposalsResponse response = proposalServiceClient.BatchRequestBuyerAcceptProposals(request);
BatchRequestBuyerAcceptProposals(NetworkName, IEnumerable<ProposalName>, CallSettings)
Requests buyer acceptance for Proposal objects.
Declaration
public virtual BatchRequestBuyerAcceptProposalsResponse BatchRequestBuyerAcceptProposals(NetworkName parent, IEnumerable<ProposalName> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where proposals will be accepted.
Format: |
| IEnumerable<ProposalName> | names | Required. The resource names of the Proposals to request buyer accept.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| BatchRequestBuyerAcceptProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<ProposalName> names = new ProposalName[]
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
// Make the request
BatchRequestBuyerAcceptProposalsResponse response = proposalServiceClient.BatchRequestBuyerAcceptProposals(parent, names);
BatchRequestBuyerAcceptProposals(string, IEnumerable<string>, CallSettings)
Requests buyer acceptance for Proposal objects.
Declaration
public virtual BatchRequestBuyerAcceptProposalsResponse BatchRequestBuyerAcceptProposals(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where proposals will be accepted.
Format: |
| IEnumerable<string> | names | Required. The resource names of the Proposals to request buyer accept.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| BatchRequestBuyerAcceptProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
"networks/[NETWORK_CODE]/proposals/[PROPOSAL]",
};
// Make the request
BatchRequestBuyerAcceptProposalsResponse response = proposalServiceClient.BatchRequestBuyerAcceptProposals(parent, names);
BatchRequestBuyerAcceptProposalsAsync(BatchRequestBuyerAcceptProposalsRequest, CallSettings)
Requests buyer acceptance for Proposal objects.
Declaration
public virtual Task<BatchRequestBuyerAcceptProposalsResponse> BatchRequestBuyerAcceptProposalsAsync(BatchRequestBuyerAcceptProposalsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchRequestBuyerAcceptProposalsRequest | request | 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<BatchRequestBuyerAcceptProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
BatchRequestBuyerAcceptProposalsRequest request = new BatchRequestBuyerAcceptProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
ProposalNames =
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
},
OverbookingAllowed = false,
};
// Make the request
BatchRequestBuyerAcceptProposalsResponse response = await proposalServiceClient.BatchRequestBuyerAcceptProposalsAsync(request);
BatchRequestBuyerAcceptProposalsAsync(BatchRequestBuyerAcceptProposalsRequest, CancellationToken)
Requests buyer acceptance for Proposal objects.
Declaration
public virtual Task<BatchRequestBuyerAcceptProposalsResponse> BatchRequestBuyerAcceptProposalsAsync(BatchRequestBuyerAcceptProposalsRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchRequestBuyerAcceptProposalsRequest | request | 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<BatchRequestBuyerAcceptProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
BatchRequestBuyerAcceptProposalsRequest request = new BatchRequestBuyerAcceptProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
ProposalNames =
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
},
OverbookingAllowed = false,
};
// Make the request
BatchRequestBuyerAcceptProposalsResponse response = await proposalServiceClient.BatchRequestBuyerAcceptProposalsAsync(request);
BatchRequestBuyerAcceptProposalsAsync(NetworkName, IEnumerable<ProposalName>, CallSettings)
Requests buyer acceptance for Proposal objects.
Declaration
public virtual Task<BatchRequestBuyerAcceptProposalsResponse> BatchRequestBuyerAcceptProposalsAsync(NetworkName parent, IEnumerable<ProposalName> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where proposals will be accepted.
Format: |
| IEnumerable<ProposalName> | names | Required. The resource names of the Proposals to request buyer accept.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<BatchRequestBuyerAcceptProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<ProposalName> names = new ProposalName[]
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
// Make the request
BatchRequestBuyerAcceptProposalsResponse response = await proposalServiceClient.BatchRequestBuyerAcceptProposalsAsync(parent, names);
BatchRequestBuyerAcceptProposalsAsync(NetworkName, IEnumerable<ProposalName>, CancellationToken)
Requests buyer acceptance for Proposal objects.
Declaration
public virtual Task<BatchRequestBuyerAcceptProposalsResponse> BatchRequestBuyerAcceptProposalsAsync(NetworkName parent, IEnumerable<ProposalName> names, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where proposals will be accepted.
Format: |
| IEnumerable<ProposalName> | names | Required. The resource names of the Proposals to request buyer accept.
Format: |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<BatchRequestBuyerAcceptProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<ProposalName> names = new ProposalName[]
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
// Make the request
BatchRequestBuyerAcceptProposalsResponse response = await proposalServiceClient.BatchRequestBuyerAcceptProposalsAsync(parent, names);
BatchRequestBuyerAcceptProposalsAsync(string, IEnumerable<string>, CallSettings)
Requests buyer acceptance for Proposal objects.
Declaration
public virtual Task<BatchRequestBuyerAcceptProposalsResponse> BatchRequestBuyerAcceptProposalsAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where proposals will be accepted.
Format: |
| IEnumerable<string> | names | Required. The resource names of the Proposals to request buyer accept.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<BatchRequestBuyerAcceptProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
"networks/[NETWORK_CODE]/proposals/[PROPOSAL]",
};
// Make the request
BatchRequestBuyerAcceptProposalsResponse response = await proposalServiceClient.BatchRequestBuyerAcceptProposalsAsync(parent, names);
BatchRequestBuyerAcceptProposalsAsync(string, IEnumerable<string>, CancellationToken)
Requests buyer acceptance for Proposal objects.
Declaration
public virtual Task<BatchRequestBuyerAcceptProposalsResponse> BatchRequestBuyerAcceptProposalsAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where proposals will be accepted.
Format: |
| IEnumerable<string> | names | Required. The resource names of the Proposals to request buyer accept.
Format: |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<BatchRequestBuyerAcceptProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
"networks/[NETWORK_CODE]/proposals/[PROPOSAL]",
};
// Make the request
BatchRequestBuyerAcceptProposalsResponse response = await proposalServiceClient.BatchRequestBuyerAcceptProposalsAsync(parent, names);
BatchRequestBuyerReviewProposals(BatchRequestBuyerReviewProposalsRequest, CallSettings)
Requests buyer review for Proposal objects.
Declaration
public virtual BatchRequestBuyerReviewProposalsResponse BatchRequestBuyerReviewProposals(BatchRequestBuyerReviewProposalsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchRequestBuyerReviewProposalsRequest | request | 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 |
|---|---|
| BatchRequestBuyerReviewProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
BatchRequestBuyerReviewProposalsRequest request = new BatchRequestBuyerReviewProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
ProposalNames =
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
},
};
// Make the request
BatchRequestBuyerReviewProposalsResponse response = proposalServiceClient.BatchRequestBuyerReviewProposals(request);
BatchRequestBuyerReviewProposals(NetworkName, IEnumerable<ProposalName>, CallSettings)
Requests buyer review for Proposal objects.
Declaration
public virtual BatchRequestBuyerReviewProposalsResponse BatchRequestBuyerReviewProposals(NetworkName parent, IEnumerable<ProposalName> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where proposals will be reviewed.
Format: |
| IEnumerable<ProposalName> | names | Required. The resource names of the Proposals to request buyer review.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| BatchRequestBuyerReviewProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<ProposalName> names = new ProposalName[]
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
// Make the request
BatchRequestBuyerReviewProposalsResponse response = proposalServiceClient.BatchRequestBuyerReviewProposals(parent, names);
BatchRequestBuyerReviewProposals(string, IEnumerable<string>, CallSettings)
Requests buyer review for Proposal objects.
Declaration
public virtual BatchRequestBuyerReviewProposalsResponse BatchRequestBuyerReviewProposals(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where proposals will be reviewed.
Format: |
| IEnumerable<string> | names | Required. The resource names of the Proposals to request buyer review.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| BatchRequestBuyerReviewProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
"networks/[NETWORK_CODE]/proposals/[PROPOSAL]",
};
// Make the request
BatchRequestBuyerReviewProposalsResponse response = proposalServiceClient.BatchRequestBuyerReviewProposals(parent, names);
BatchRequestBuyerReviewProposalsAsync(BatchRequestBuyerReviewProposalsRequest, CallSettings)
Requests buyer review for Proposal objects.
Declaration
public virtual Task<BatchRequestBuyerReviewProposalsResponse> BatchRequestBuyerReviewProposalsAsync(BatchRequestBuyerReviewProposalsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchRequestBuyerReviewProposalsRequest | request | 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<BatchRequestBuyerReviewProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
BatchRequestBuyerReviewProposalsRequest request = new BatchRequestBuyerReviewProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
ProposalNames =
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
},
};
// Make the request
BatchRequestBuyerReviewProposalsResponse response = await proposalServiceClient.BatchRequestBuyerReviewProposalsAsync(request);
BatchRequestBuyerReviewProposalsAsync(BatchRequestBuyerReviewProposalsRequest, CancellationToken)
Requests buyer review for Proposal objects.
Declaration
public virtual Task<BatchRequestBuyerReviewProposalsResponse> BatchRequestBuyerReviewProposalsAsync(BatchRequestBuyerReviewProposalsRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchRequestBuyerReviewProposalsRequest | request | 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<BatchRequestBuyerReviewProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
BatchRequestBuyerReviewProposalsRequest request = new BatchRequestBuyerReviewProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
ProposalNames =
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
},
};
// Make the request
BatchRequestBuyerReviewProposalsResponse response = await proposalServiceClient.BatchRequestBuyerReviewProposalsAsync(request);
BatchRequestBuyerReviewProposalsAsync(NetworkName, IEnumerable<ProposalName>, CallSettings)
Requests buyer review for Proposal objects.
Declaration
public virtual Task<BatchRequestBuyerReviewProposalsResponse> BatchRequestBuyerReviewProposalsAsync(NetworkName parent, IEnumerable<ProposalName> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where proposals will be reviewed.
Format: |
| IEnumerable<ProposalName> | names | Required. The resource names of the Proposals to request buyer review.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<BatchRequestBuyerReviewProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<ProposalName> names = new ProposalName[]
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
// Make the request
BatchRequestBuyerReviewProposalsResponse response = await proposalServiceClient.BatchRequestBuyerReviewProposalsAsync(parent, names);
BatchRequestBuyerReviewProposalsAsync(NetworkName, IEnumerable<ProposalName>, CancellationToken)
Requests buyer review for Proposal objects.
Declaration
public virtual Task<BatchRequestBuyerReviewProposalsResponse> BatchRequestBuyerReviewProposalsAsync(NetworkName parent, IEnumerable<ProposalName> names, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where proposals will be reviewed.
Format: |
| IEnumerable<ProposalName> | names | Required. The resource names of the Proposals to request buyer review.
Format: |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<BatchRequestBuyerReviewProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<ProposalName> names = new ProposalName[]
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
// Make the request
BatchRequestBuyerReviewProposalsResponse response = await proposalServiceClient.BatchRequestBuyerReviewProposalsAsync(parent, names);
BatchRequestBuyerReviewProposalsAsync(string, IEnumerable<string>, CallSettings)
Requests buyer review for Proposal objects.
Declaration
public virtual Task<BatchRequestBuyerReviewProposalsResponse> BatchRequestBuyerReviewProposalsAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where proposals will be reviewed.
Format: |
| IEnumerable<string> | names | Required. The resource names of the Proposals to request buyer review.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<BatchRequestBuyerReviewProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
"networks/[NETWORK_CODE]/proposals/[PROPOSAL]",
};
// Make the request
BatchRequestBuyerReviewProposalsResponse response = await proposalServiceClient.BatchRequestBuyerReviewProposalsAsync(parent, names);
BatchRequestBuyerReviewProposalsAsync(string, IEnumerable<string>, CancellationToken)
Requests buyer review for Proposal objects.
Declaration
public virtual Task<BatchRequestBuyerReviewProposalsResponse> BatchRequestBuyerReviewProposalsAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where proposals will be reviewed.
Format: |
| IEnumerable<string> | names | Required. The resource names of the Proposals to request buyer review.
Format: |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<BatchRequestBuyerReviewProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
"networks/[NETWORK_CODE]/proposals/[PROPOSAL]",
};
// Make the request
BatchRequestBuyerReviewProposalsResponse response = await proposalServiceClient.BatchRequestBuyerReviewProposalsAsync(parent, names);
BatchReserveProposals(BatchReserveProposalsRequest, CallSettings)
Reserves inventory for Proposal objects.
Declaration
public virtual BatchReserveProposalsResponse BatchReserveProposals(BatchReserveProposalsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchReserveProposalsRequest | request | 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 |
|---|---|
| BatchReserveProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
BatchReserveProposalsRequest request = new BatchReserveProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
ProposalNames =
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
},
OverbookingAllowed = false,
};
// Make the request
BatchReserveProposalsResponse response = proposalServiceClient.BatchReserveProposals(request);
BatchReserveProposals(NetworkName, IEnumerable<ProposalName>, CallSettings)
Reserves inventory for Proposal objects.
Declaration
public virtual BatchReserveProposalsResponse BatchReserveProposals(NetworkName parent, IEnumerable<ProposalName> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where proposals will be reserved.
Format: |
| IEnumerable<ProposalName> | names | Required. The resource names of the Proposals to reserve.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| BatchReserveProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<ProposalName> names = new ProposalName[]
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
// Make the request
BatchReserveProposalsResponse response = proposalServiceClient.BatchReserveProposals(parent, names);
BatchReserveProposals(string, IEnumerable<string>, CallSettings)
Reserves inventory for Proposal objects.
Declaration
public virtual BatchReserveProposalsResponse BatchReserveProposals(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where proposals will be reserved.
Format: |
| IEnumerable<string> | names | Required. The resource names of the Proposals to reserve.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| BatchReserveProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
"networks/[NETWORK_CODE]/proposals/[PROPOSAL]",
};
// Make the request
BatchReserveProposalsResponse response = proposalServiceClient.BatchReserveProposals(parent, names);
BatchReserveProposalsAsync(BatchReserveProposalsRequest, CallSettings)
Reserves inventory for Proposal objects.
Declaration
public virtual Task<BatchReserveProposalsResponse> BatchReserveProposalsAsync(BatchReserveProposalsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchReserveProposalsRequest | request | 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<BatchReserveProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
BatchReserveProposalsRequest request = new BatchReserveProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
ProposalNames =
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
},
OverbookingAllowed = false,
};
// Make the request
BatchReserveProposalsResponse response = await proposalServiceClient.BatchReserveProposalsAsync(request);
BatchReserveProposalsAsync(BatchReserveProposalsRequest, CancellationToken)
Reserves inventory for Proposal objects.
Declaration
public virtual Task<BatchReserveProposalsResponse> BatchReserveProposalsAsync(BatchReserveProposalsRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchReserveProposalsRequest | request | 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<BatchReserveProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
BatchReserveProposalsRequest request = new BatchReserveProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
ProposalNames =
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
},
OverbookingAllowed = false,
};
// Make the request
BatchReserveProposalsResponse response = await proposalServiceClient.BatchReserveProposalsAsync(request);
BatchReserveProposalsAsync(NetworkName, IEnumerable<ProposalName>, CallSettings)
Reserves inventory for Proposal objects.
Declaration
public virtual Task<BatchReserveProposalsResponse> BatchReserveProposalsAsync(NetworkName parent, IEnumerable<ProposalName> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where proposals will be reserved.
Format: |
| IEnumerable<ProposalName> | names | Required. The resource names of the Proposals to reserve.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<BatchReserveProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<ProposalName> names = new ProposalName[]
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
// Make the request
BatchReserveProposalsResponse response = await proposalServiceClient.BatchReserveProposalsAsync(parent, names);
BatchReserveProposalsAsync(NetworkName, IEnumerable<ProposalName>, CancellationToken)
Reserves inventory for Proposal objects.
Declaration
public virtual Task<BatchReserveProposalsResponse> BatchReserveProposalsAsync(NetworkName parent, IEnumerable<ProposalName> names, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where proposals will be reserved.
Format: |
| IEnumerable<ProposalName> | names | Required. The resource names of the Proposals to reserve.
Format: |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<BatchReserveProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<ProposalName> names = new ProposalName[]
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
// Make the request
BatchReserveProposalsResponse response = await proposalServiceClient.BatchReserveProposalsAsync(parent, names);
BatchReserveProposalsAsync(string, IEnumerable<string>, CallSettings)
Reserves inventory for Proposal objects.
Declaration
public virtual Task<BatchReserveProposalsResponse> BatchReserveProposalsAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where proposals will be reserved.
Format: |
| IEnumerable<string> | names | Required. The resource names of the Proposals to reserve.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<BatchReserveProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
"networks/[NETWORK_CODE]/proposals/[PROPOSAL]",
};
// Make the request
BatchReserveProposalsResponse response = await proposalServiceClient.BatchReserveProposalsAsync(parent, names);
BatchReserveProposalsAsync(string, IEnumerable<string>, CancellationToken)
Reserves inventory for Proposal objects.
Declaration
public virtual Task<BatchReserveProposalsResponse> BatchReserveProposalsAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where proposals will be reserved.
Format: |
| IEnumerable<string> | names | Required. The resource names of the Proposals to reserve.
Format: |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<BatchReserveProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
"networks/[NETWORK_CODE]/proposals/[PROPOSAL]",
};
// Make the request
BatchReserveProposalsResponse response = await proposalServiceClient.BatchReserveProposalsAsync(parent, names);
BatchResumeProposals(BatchResumeProposalsRequest, CallSettings)
Resumes Proposal objects.
Declaration
public virtual BatchResumeProposalsResponse BatchResumeProposals(BatchResumeProposalsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchResumeProposalsRequest | request | 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 |
|---|---|
| BatchResumeProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
BatchResumeProposalsRequest request = new BatchResumeProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
ProposalNames =
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
},
};
// Make the request
BatchResumeProposalsResponse response = proposalServiceClient.BatchResumeProposals(request);
BatchResumeProposals(NetworkName, IEnumerable<ProposalName>, CallSettings)
Resumes Proposal objects.
Declaration
public virtual BatchResumeProposalsResponse BatchResumeProposals(NetworkName parent, IEnumerable<ProposalName> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where proposals will be resumed.
Format: |
| IEnumerable<ProposalName> | names | Required. The resource names of the Proposals to resume.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| BatchResumeProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<ProposalName> names = new ProposalName[]
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
// Make the request
BatchResumeProposalsResponse response = proposalServiceClient.BatchResumeProposals(parent, names);
BatchResumeProposals(string, IEnumerable<string>, CallSettings)
Resumes Proposal objects.
Declaration
public virtual BatchResumeProposalsResponse BatchResumeProposals(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where proposals will be resumed.
Format: |
| IEnumerable<string> | names | Required. The resource names of the Proposals to resume.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| BatchResumeProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
"networks/[NETWORK_CODE]/proposals/[PROPOSAL]",
};
// Make the request
BatchResumeProposalsResponse response = proposalServiceClient.BatchResumeProposals(parent, names);
BatchResumeProposalsAsync(BatchResumeProposalsRequest, CallSettings)
Resumes Proposal objects.
Declaration
public virtual Task<BatchResumeProposalsResponse> BatchResumeProposalsAsync(BatchResumeProposalsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchResumeProposalsRequest | request | 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<BatchResumeProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
BatchResumeProposalsRequest request = new BatchResumeProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
ProposalNames =
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
},
};
// Make the request
BatchResumeProposalsResponse response = await proposalServiceClient.BatchResumeProposalsAsync(request);
BatchResumeProposalsAsync(BatchResumeProposalsRequest, CancellationToken)
Resumes Proposal objects.
Declaration
public virtual Task<BatchResumeProposalsResponse> BatchResumeProposalsAsync(BatchResumeProposalsRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchResumeProposalsRequest | request | 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<BatchResumeProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
BatchResumeProposalsRequest request = new BatchResumeProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
ProposalNames =
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
},
};
// Make the request
BatchResumeProposalsResponse response = await proposalServiceClient.BatchResumeProposalsAsync(request);
BatchResumeProposalsAsync(NetworkName, IEnumerable<ProposalName>, CallSettings)
Resumes Proposal objects.
Declaration
public virtual Task<BatchResumeProposalsResponse> BatchResumeProposalsAsync(NetworkName parent, IEnumerable<ProposalName> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where proposals will be resumed.
Format: |
| IEnumerable<ProposalName> | names | Required. The resource names of the Proposals to resume.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<BatchResumeProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<ProposalName> names = new ProposalName[]
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
// Make the request
BatchResumeProposalsResponse response = await proposalServiceClient.BatchResumeProposalsAsync(parent, names);
BatchResumeProposalsAsync(NetworkName, IEnumerable<ProposalName>, CancellationToken)
Resumes Proposal objects.
Declaration
public virtual Task<BatchResumeProposalsResponse> BatchResumeProposalsAsync(NetworkName parent, IEnumerable<ProposalName> names, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where proposals will be resumed.
Format: |
| IEnumerable<ProposalName> | names | Required. The resource names of the Proposals to resume.
Format: |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<BatchResumeProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<ProposalName> names = new ProposalName[]
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
// Make the request
BatchResumeProposalsResponse response = await proposalServiceClient.BatchResumeProposalsAsync(parent, names);
BatchResumeProposalsAsync(string, IEnumerable<string>, CallSettings)
Resumes Proposal objects.
Declaration
public virtual Task<BatchResumeProposalsResponse> BatchResumeProposalsAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where proposals will be resumed.
Format: |
| IEnumerable<string> | names | Required. The resource names of the Proposals to resume.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<BatchResumeProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
"networks/[NETWORK_CODE]/proposals/[PROPOSAL]",
};
// Make the request
BatchResumeProposalsResponse response = await proposalServiceClient.BatchResumeProposalsAsync(parent, names);
BatchResumeProposalsAsync(string, IEnumerable<string>, CancellationToken)
Resumes Proposal objects.
Declaration
public virtual Task<BatchResumeProposalsResponse> BatchResumeProposalsAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where proposals will be resumed.
Format: |
| IEnumerable<string> | names | Required. The resource names of the Proposals to resume.
Format: |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<BatchResumeProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
"networks/[NETWORK_CODE]/proposals/[PROPOSAL]",
};
// Make the request
BatchResumeProposalsResponse response = await proposalServiceClient.BatchResumeProposalsAsync(parent, names);
BatchTerminateProposals(BatchTerminateProposalsRequest, CallSettings)
Terminates negotiation on Proposal objects.
Declaration
public virtual BatchTerminateProposalsResponse BatchTerminateProposals(BatchTerminateProposalsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchTerminateProposalsRequest | request | 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 |
|---|---|
| BatchTerminateProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
BatchTerminateProposalsRequest request = new BatchTerminateProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
ProposalNames =
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
},
};
// Make the request
BatchTerminateProposalsResponse response = proposalServiceClient.BatchTerminateProposals(request);
BatchTerminateProposals(NetworkName, IEnumerable<ProposalName>, CallSettings)
Terminates negotiation on Proposal objects.
Declaration
public virtual BatchTerminateProposalsResponse BatchTerminateProposals(NetworkName parent, IEnumerable<ProposalName> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where proposals will be terminated.
Format: |
| IEnumerable<ProposalName> | names | Required. The resource names of the Proposals to terminate.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| BatchTerminateProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<ProposalName> names = new ProposalName[]
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
// Make the request
BatchTerminateProposalsResponse response = proposalServiceClient.BatchTerminateProposals(parent, names);
BatchTerminateProposals(string, IEnumerable<string>, CallSettings)
Terminates negotiation on Proposal objects.
Declaration
public virtual BatchTerminateProposalsResponse BatchTerminateProposals(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where proposals will be terminated.
Format: |
| IEnumerable<string> | names | Required. The resource names of the Proposals to terminate.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| BatchTerminateProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
"networks/[NETWORK_CODE]/proposals/[PROPOSAL]",
};
// Make the request
BatchTerminateProposalsResponse response = proposalServiceClient.BatchTerminateProposals(parent, names);
BatchTerminateProposalsAsync(BatchTerminateProposalsRequest, CallSettings)
Terminates negotiation on Proposal objects.
Declaration
public virtual Task<BatchTerminateProposalsResponse> BatchTerminateProposalsAsync(BatchTerminateProposalsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchTerminateProposalsRequest | request | 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<BatchTerminateProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
BatchTerminateProposalsRequest request = new BatchTerminateProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
ProposalNames =
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
},
};
// Make the request
BatchTerminateProposalsResponse response = await proposalServiceClient.BatchTerminateProposalsAsync(request);
BatchTerminateProposalsAsync(BatchTerminateProposalsRequest, CancellationToken)
Terminates negotiation on Proposal objects.
Declaration
public virtual Task<BatchTerminateProposalsResponse> BatchTerminateProposalsAsync(BatchTerminateProposalsRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchTerminateProposalsRequest | request | 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<BatchTerminateProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
BatchTerminateProposalsRequest request = new BatchTerminateProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
ProposalNames =
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
},
};
// Make the request
BatchTerminateProposalsResponse response = await proposalServiceClient.BatchTerminateProposalsAsync(request);
BatchTerminateProposalsAsync(NetworkName, IEnumerable<ProposalName>, CallSettings)
Terminates negotiation on Proposal objects.
Declaration
public virtual Task<BatchTerminateProposalsResponse> BatchTerminateProposalsAsync(NetworkName parent, IEnumerable<ProposalName> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where proposals will be terminated.
Format: |
| IEnumerable<ProposalName> | names | Required. The resource names of the Proposals to terminate.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<BatchTerminateProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<ProposalName> names = new ProposalName[]
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
// Make the request
BatchTerminateProposalsResponse response = await proposalServiceClient.BatchTerminateProposalsAsync(parent, names);
BatchTerminateProposalsAsync(NetworkName, IEnumerable<ProposalName>, CancellationToken)
Terminates negotiation on Proposal objects.
Declaration
public virtual Task<BatchTerminateProposalsResponse> BatchTerminateProposalsAsync(NetworkName parent, IEnumerable<ProposalName> names, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where proposals will be terminated.
Format: |
| IEnumerable<ProposalName> | names | Required. The resource names of the Proposals to terminate.
Format: |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<BatchTerminateProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<ProposalName> names = new ProposalName[]
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
// Make the request
BatchTerminateProposalsResponse response = await proposalServiceClient.BatchTerminateProposalsAsync(parent, names);
BatchTerminateProposalsAsync(string, IEnumerable<string>, CallSettings)
Terminates negotiation on Proposal objects.
Declaration
public virtual Task<BatchTerminateProposalsResponse> BatchTerminateProposalsAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where proposals will be terminated.
Format: |
| IEnumerable<string> | names | Required. The resource names of the Proposals to terminate.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<BatchTerminateProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
"networks/[NETWORK_CODE]/proposals/[PROPOSAL]",
};
// Make the request
BatchTerminateProposalsResponse response = await proposalServiceClient.BatchTerminateProposalsAsync(parent, names);
BatchTerminateProposalsAsync(string, IEnumerable<string>, CancellationToken)
Terminates negotiation on Proposal objects.
Declaration
public virtual Task<BatchTerminateProposalsResponse> BatchTerminateProposalsAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where proposals will be terminated.
Format: |
| IEnumerable<string> | names | Required. The resource names of the Proposals to terminate.
Format: |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<BatchTerminateProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
"networks/[NETWORK_CODE]/proposals/[PROPOSAL]",
};
// Make the request
BatchTerminateProposalsResponse response = await proposalServiceClient.BatchTerminateProposalsAsync(parent, names);
BatchUnarchiveProposals(BatchUnarchiveProposalsRequest, CallSettings)
Unarchives Proposal objects.
Declaration
public virtual BatchUnarchiveProposalsResponse BatchUnarchiveProposals(BatchUnarchiveProposalsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUnarchiveProposalsRequest | request | 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 |
|---|---|
| BatchUnarchiveProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
BatchUnarchiveProposalsRequest request = new BatchUnarchiveProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
ProposalNames =
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
},
};
// Make the request
BatchUnarchiveProposalsResponse response = proposalServiceClient.BatchUnarchiveProposals(request);
BatchUnarchiveProposals(NetworkName, IEnumerable<ProposalName>, CallSettings)
Unarchives Proposal objects.
Declaration
public virtual BatchUnarchiveProposalsResponse BatchUnarchiveProposals(NetworkName parent, IEnumerable<ProposalName> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where proposals will be unarchived.
Format: |
| IEnumerable<ProposalName> | names | Required. The resource names of the Proposals to unarchive.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| BatchUnarchiveProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<ProposalName> names = new ProposalName[]
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
// Make the request
BatchUnarchiveProposalsResponse response = proposalServiceClient.BatchUnarchiveProposals(parent, names);
BatchUnarchiveProposals(string, IEnumerable<string>, CallSettings)
Unarchives Proposal objects.
Declaration
public virtual BatchUnarchiveProposalsResponse BatchUnarchiveProposals(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where proposals will be unarchived.
Format: |
| IEnumerable<string> | names | Required. The resource names of the Proposals to unarchive.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| BatchUnarchiveProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
"networks/[NETWORK_CODE]/proposals/[PROPOSAL]",
};
// Make the request
BatchUnarchiveProposalsResponse response = proposalServiceClient.BatchUnarchiveProposals(parent, names);
BatchUnarchiveProposalsAsync(BatchUnarchiveProposalsRequest, CallSettings)
Unarchives Proposal objects.
Declaration
public virtual Task<BatchUnarchiveProposalsResponse> BatchUnarchiveProposalsAsync(BatchUnarchiveProposalsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUnarchiveProposalsRequest | request | 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<BatchUnarchiveProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
BatchUnarchiveProposalsRequest request = new BatchUnarchiveProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
ProposalNames =
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
},
};
// Make the request
BatchUnarchiveProposalsResponse response = await proposalServiceClient.BatchUnarchiveProposalsAsync(request);
BatchUnarchiveProposalsAsync(BatchUnarchiveProposalsRequest, CancellationToken)
Unarchives Proposal objects.
Declaration
public virtual Task<BatchUnarchiveProposalsResponse> BatchUnarchiveProposalsAsync(BatchUnarchiveProposalsRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUnarchiveProposalsRequest | request | 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<BatchUnarchiveProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
BatchUnarchiveProposalsRequest request = new BatchUnarchiveProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
ProposalNames =
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
},
};
// Make the request
BatchUnarchiveProposalsResponse response = await proposalServiceClient.BatchUnarchiveProposalsAsync(request);
BatchUnarchiveProposalsAsync(NetworkName, IEnumerable<ProposalName>, CallSettings)
Unarchives Proposal objects.
Declaration
public virtual Task<BatchUnarchiveProposalsResponse> BatchUnarchiveProposalsAsync(NetworkName parent, IEnumerable<ProposalName> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where proposals will be unarchived.
Format: |
| IEnumerable<ProposalName> | names | Required. The resource names of the Proposals to unarchive.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<BatchUnarchiveProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<ProposalName> names = new ProposalName[]
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
// Make the request
BatchUnarchiveProposalsResponse response = await proposalServiceClient.BatchUnarchiveProposalsAsync(parent, names);
BatchUnarchiveProposalsAsync(NetworkName, IEnumerable<ProposalName>, CancellationToken)
Unarchives Proposal objects.
Declaration
public virtual Task<BatchUnarchiveProposalsResponse> BatchUnarchiveProposalsAsync(NetworkName parent, IEnumerable<ProposalName> names, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where proposals will be unarchived.
Format: |
| IEnumerable<ProposalName> | names | Required. The resource names of the Proposals to unarchive.
Format: |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<BatchUnarchiveProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<ProposalName> names = new ProposalName[]
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
// Make the request
BatchUnarchiveProposalsResponse response = await proposalServiceClient.BatchUnarchiveProposalsAsync(parent, names);
BatchUnarchiveProposalsAsync(string, IEnumerable<string>, CallSettings)
Unarchives Proposal objects.
Declaration
public virtual Task<BatchUnarchiveProposalsResponse> BatchUnarchiveProposalsAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where proposals will be unarchived.
Format: |
| IEnumerable<string> | names | Required. The resource names of the Proposals to unarchive.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<BatchUnarchiveProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
"networks/[NETWORK_CODE]/proposals/[PROPOSAL]",
};
// Make the request
BatchUnarchiveProposalsResponse response = await proposalServiceClient.BatchUnarchiveProposalsAsync(parent, names);
BatchUnarchiveProposalsAsync(string, IEnumerable<string>, CancellationToken)
Unarchives Proposal objects.
Declaration
public virtual Task<BatchUnarchiveProposalsResponse> BatchUnarchiveProposalsAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where proposals will be unarchived.
Format: |
| IEnumerable<string> | names | Required. The resource names of the Proposals to unarchive.
Format: |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<BatchUnarchiveProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
"networks/[NETWORK_CODE]/proposals/[PROPOSAL]",
};
// Make the request
BatchUnarchiveProposalsResponse response = await proposalServiceClient.BatchUnarchiveProposalsAsync(parent, names);
BatchUpdateProposals(BatchUpdateProposalsRequest, CallSettings)
Batch updates Proposal objects.
Declaration
public virtual BatchUpdateProposalsResponse BatchUpdateProposals(BatchUpdateProposalsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateProposalsRequest | request | 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 |
|---|---|
| BatchUpdateProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
BatchUpdateProposalsRequest request = new BatchUpdateProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
Requests =
{
new UpdateProposalRequest(),
},
};
// Make the request
BatchUpdateProposalsResponse response = proposalServiceClient.BatchUpdateProposals(request);
BatchUpdateProposals(NetworkName, IEnumerable<UpdateProposalRequest>, CallSettings)
Batch updates Proposal objects.
Declaration
public virtual BatchUpdateProposalsResponse BatchUpdateProposals(NetworkName parent, IEnumerable<UpdateProposalRequest> requests, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where |
| IEnumerable<UpdateProposalRequest> | requests | Required. The |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| BatchUpdateProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<UpdateProposalRequest> requests = new UpdateProposalRequest[]
{
new UpdateProposalRequest(),
};
// Make the request
BatchUpdateProposalsResponse response = proposalServiceClient.BatchUpdateProposals(parent, requests);
BatchUpdateProposals(string, IEnumerable<UpdateProposalRequest>, CallSettings)
Batch updates Proposal objects.
Declaration
public virtual BatchUpdateProposalsResponse BatchUpdateProposals(string parent, IEnumerable<UpdateProposalRequest> requests, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where |
| IEnumerable<UpdateProposalRequest> | requests | Required. The |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| BatchUpdateProposalsResponse | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<UpdateProposalRequest> requests = new UpdateProposalRequest[]
{
new UpdateProposalRequest(),
};
// Make the request
BatchUpdateProposalsResponse response = proposalServiceClient.BatchUpdateProposals(parent, requests);
BatchUpdateProposalsAsync(BatchUpdateProposalsRequest, CallSettings)
Batch updates Proposal objects.
Declaration
public virtual Task<BatchUpdateProposalsResponse> BatchUpdateProposalsAsync(BatchUpdateProposalsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateProposalsRequest | request | 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<BatchUpdateProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
BatchUpdateProposalsRequest request = new BatchUpdateProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
Requests =
{
new UpdateProposalRequest(),
},
};
// Make the request
BatchUpdateProposalsResponse response = await proposalServiceClient.BatchUpdateProposalsAsync(request);
BatchUpdateProposalsAsync(BatchUpdateProposalsRequest, CancellationToken)
Batch updates Proposal objects.
Declaration
public virtual Task<BatchUpdateProposalsResponse> BatchUpdateProposalsAsync(BatchUpdateProposalsRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateProposalsRequest | request | 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<BatchUpdateProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
BatchUpdateProposalsRequest request = new BatchUpdateProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
Requests =
{
new UpdateProposalRequest(),
},
};
// Make the request
BatchUpdateProposalsResponse response = await proposalServiceClient.BatchUpdateProposalsAsync(request);
BatchUpdateProposalsAsync(NetworkName, IEnumerable<UpdateProposalRequest>, CallSettings)
Batch updates Proposal objects.
Declaration
public virtual Task<BatchUpdateProposalsResponse> BatchUpdateProposalsAsync(NetworkName parent, IEnumerable<UpdateProposalRequest> requests, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where |
| IEnumerable<UpdateProposalRequest> | requests | Required. The |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<BatchUpdateProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<UpdateProposalRequest> requests = new UpdateProposalRequest[]
{
new UpdateProposalRequest(),
};
// Make the request
BatchUpdateProposalsResponse response = await proposalServiceClient.BatchUpdateProposalsAsync(parent, requests);
BatchUpdateProposalsAsync(NetworkName, IEnumerable<UpdateProposalRequest>, CancellationToken)
Batch updates Proposal objects.
Declaration
public virtual Task<BatchUpdateProposalsResponse> BatchUpdateProposalsAsync(NetworkName parent, IEnumerable<UpdateProposalRequest> requests, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where |
| IEnumerable<UpdateProposalRequest> | requests | Required. The |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<BatchUpdateProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<UpdateProposalRequest> requests = new UpdateProposalRequest[]
{
new UpdateProposalRequest(),
};
// Make the request
BatchUpdateProposalsResponse response = await proposalServiceClient.BatchUpdateProposalsAsync(parent, requests);
BatchUpdateProposalsAsync(string, IEnumerable<UpdateProposalRequest>, CallSettings)
Batch updates Proposal objects.
Declaration
public virtual Task<BatchUpdateProposalsResponse> BatchUpdateProposalsAsync(string parent, IEnumerable<UpdateProposalRequest> requests, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where |
| IEnumerable<UpdateProposalRequest> | requests | Required. The |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<BatchUpdateProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<UpdateProposalRequest> requests = new UpdateProposalRequest[]
{
new UpdateProposalRequest(),
};
// Make the request
BatchUpdateProposalsResponse response = await proposalServiceClient.BatchUpdateProposalsAsync(parent, requests);
BatchUpdateProposalsAsync(string, IEnumerable<UpdateProposalRequest>, CancellationToken)
Batch updates Proposal objects.
Declaration
public virtual Task<BatchUpdateProposalsResponse> BatchUpdateProposalsAsync(string parent, IEnumerable<UpdateProposalRequest> requests, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where |
| IEnumerable<UpdateProposalRequest> | requests | Required. The |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<BatchUpdateProposalsResponse> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<UpdateProposalRequest> requests = new UpdateProposalRequest[]
{
new UpdateProposalRequest(),
};
// Make the request
BatchUpdateProposalsResponse response = await proposalServiceClient.BatchUpdateProposalsAsync(parent, requests);
Create()
Synchronously creates a ProposalServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use ProposalServiceClientBuilder.
Declaration
public static ProposalServiceClient Create()
Returns
| Type | Description |
|---|---|
| ProposalServiceClient | The created ProposalServiceClient. |
CreateAsync(CancellationToken)
Asynchronously creates a ProposalServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use ProposalServiceClientBuilder.
Declaration
public static Task<ProposalServiceClient> CreateAsync(CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken | The CancellationToken to use while creating the client. |
Returns
| Type | Description |
|---|---|
| Task<ProposalServiceClient> | The task representing the created ProposalServiceClient. |
CreateProposal(CreateProposalRequest, CallSettings)
Creates a Proposal object.
Declaration
public virtual Proposal CreateProposal(CreateProposalRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateProposalRequest | request | 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 |
|---|---|
| Proposal | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
CreateProposalRequest request = new CreateProposalRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
Proposal = new Proposal(),
};
// Make the request
Proposal response = proposalServiceClient.CreateProposal(request);
CreateProposal(NetworkName, Proposal, CallSettings)
Creates a Proposal object.
Declaration
public virtual Proposal CreateProposal(NetworkName parent, Proposal proposal, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where this |
| Proposal | proposal | Required. The |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Proposal | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
Proposal proposal = new Proposal();
// Make the request
Proposal response = proposalServiceClient.CreateProposal(parent, proposal);
CreateProposal(string, Proposal, CallSettings)
Creates a Proposal object.
Declaration
public virtual Proposal CreateProposal(string parent, Proposal proposal, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where this |
| Proposal | proposal | Required. The |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Proposal | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
Proposal proposal = new Proposal();
// Make the request
Proposal response = proposalServiceClient.CreateProposal(parent, proposal);
CreateProposalAsync(CreateProposalRequest, CallSettings)
Creates a Proposal object.
Declaration
public virtual Task<Proposal> CreateProposalAsync(CreateProposalRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateProposalRequest | request | 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<Proposal> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
CreateProposalRequest request = new CreateProposalRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
Proposal = new Proposal(),
};
// Make the request
Proposal response = await proposalServiceClient.CreateProposalAsync(request);
CreateProposalAsync(CreateProposalRequest, CancellationToken)
Creates a Proposal object.
Declaration
public virtual Task<Proposal> CreateProposalAsync(CreateProposalRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateProposalRequest | request | 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<Proposal> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
CreateProposalRequest request = new CreateProposalRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
Proposal = new Proposal(),
};
// Make the request
Proposal response = await proposalServiceClient.CreateProposalAsync(request);
CreateProposalAsync(NetworkName, Proposal, CallSettings)
Creates a Proposal object.
Declaration
public virtual Task<Proposal> CreateProposalAsync(NetworkName parent, Proposal proposal, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where this |
| Proposal | proposal | Required. The |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<Proposal> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
Proposal proposal = new Proposal();
// Make the request
Proposal response = await proposalServiceClient.CreateProposalAsync(parent, proposal);
CreateProposalAsync(NetworkName, Proposal, CancellationToken)
Creates a Proposal object.
Declaration
public virtual Task<Proposal> CreateProposalAsync(NetworkName parent, Proposal proposal, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where this |
| Proposal | proposal | Required. The |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<Proposal> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
Proposal proposal = new Proposal();
// Make the request
Proposal response = await proposalServiceClient.CreateProposalAsync(parent, proposal);
CreateProposalAsync(string, Proposal, CallSettings)
Creates a Proposal object.
Declaration
public virtual Task<Proposal> CreateProposalAsync(string parent, Proposal proposal, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where this |
| Proposal | proposal | Required. The |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<Proposal> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
Proposal proposal = new Proposal();
// Make the request
Proposal response = await proposalServiceClient.CreateProposalAsync(parent, proposal);
CreateProposalAsync(string, Proposal, CancellationToken)
Creates a Proposal object.
Declaration
public virtual Task<Proposal> CreateProposalAsync(string parent, Proposal proposal, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where this |
| Proposal | proposal | Required. The |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<Proposal> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
Proposal proposal = new Proposal();
// Make the request
Proposal response = await proposalServiceClient.CreateProposalAsync(parent, proposal);
FetchMarketplaceComments(FetchMarketplaceCommentsRequest, CallSettings)
Fetches MarketplaceComments made on Proposals.
Declaration
public virtual PagedEnumerable<FetchMarketplaceCommentsResponse, MarketplaceComment> FetchMarketplaceComments(FetchMarketplaceCommentsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| FetchMarketplaceCommentsRequest | request | 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 |
|---|---|
| PagedEnumerable<FetchMarketplaceCommentsResponse, MarketplaceComment> | A pageable sequence of MarketplaceComment resources. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
FetchMarketplaceCommentsRequest request = new FetchMarketplaceCommentsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
ProposalNames =
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
},
Skip = 0,
};
// Make the request
PagedEnumerable<FetchMarketplaceCommentsResponse, MarketplaceComment> response = proposalServiceClient.FetchMarketplaceComments(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (MarketplaceComment 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 (FetchMarketplaceCommentsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MarketplaceComment 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<MarketplaceComment> 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 (MarketplaceComment 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;
FetchMarketplaceComments(NetworkName, IEnumerable<ProposalName>, string, int?, CallSettings)
Fetches MarketplaceComments made on Proposals.
Declaration
public virtual PagedEnumerable<FetchMarketplaceCommentsResponse, MarketplaceComment> FetchMarketplaceComments(NetworkName parent, IEnumerable<ProposalName> names, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where MarketplaceComments will be fetched
from. Format: |
| IEnumerable<ProposalName> | names | Required. The resource names of the Proposals for which to fetch
marketplace comments. A maximum of 50 proposal names can be specified.
Format: |
| string | pageToken | The token returned from the previous request. A value of |
| int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| PagedEnumerable<FetchMarketplaceCommentsResponse, MarketplaceComment> | A pageable sequence of MarketplaceComment resources. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<ProposalName> names = new ProposalName[]
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
// Make the request
PagedEnumerable<FetchMarketplaceCommentsResponse, MarketplaceComment> response = proposalServiceClient.FetchMarketplaceComments(parent, names);
// Iterate over all response items, lazily performing RPCs as required
foreach (MarketplaceComment 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 (FetchMarketplaceCommentsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MarketplaceComment 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<MarketplaceComment> 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 (MarketplaceComment 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;
FetchMarketplaceComments(string, IEnumerable<string>, string, int?, CallSettings)
Fetches MarketplaceComments made on Proposals.
Declaration
public virtual PagedEnumerable<FetchMarketplaceCommentsResponse, MarketplaceComment> FetchMarketplaceComments(string parent, IEnumerable<string> names, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where MarketplaceComments will be fetched
from. Format: |
| IEnumerable<string> | names | Required. The resource names of the Proposals for which to fetch
marketplace comments. A maximum of 50 proposal names can be specified.
Format: |
| string | pageToken | The token returned from the previous request. A value of |
| int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| PagedEnumerable<FetchMarketplaceCommentsResponse, MarketplaceComment> | A pageable sequence of MarketplaceComment resources. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
"networks/[NETWORK_CODE]/proposals/[PROPOSAL]",
};
// Make the request
PagedEnumerable<FetchMarketplaceCommentsResponse, MarketplaceComment> response = proposalServiceClient.FetchMarketplaceComments(parent, names);
// Iterate over all response items, lazily performing RPCs as required
foreach (MarketplaceComment 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 (FetchMarketplaceCommentsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MarketplaceComment 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<MarketplaceComment> 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 (MarketplaceComment 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;
FetchMarketplaceCommentsAsync(FetchMarketplaceCommentsRequest, CallSettings)
Fetches MarketplaceComments made on Proposals.
Declaration
public virtual PagedAsyncEnumerable<FetchMarketplaceCommentsResponse, MarketplaceComment> FetchMarketplaceCommentsAsync(FetchMarketplaceCommentsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| FetchMarketplaceCommentsRequest | request | 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 |
|---|---|
| PagedAsyncEnumerable<FetchMarketplaceCommentsResponse, MarketplaceComment> | A pageable asynchronous sequence of MarketplaceComment resources. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
FetchMarketplaceCommentsRequest request = new FetchMarketplaceCommentsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
ProposalNames =
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
},
Skip = 0,
};
// Make the request
PagedAsyncEnumerable<FetchMarketplaceCommentsResponse, MarketplaceComment> response = proposalServiceClient.FetchMarketplaceCommentsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await foreach (MarketplaceComment 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 (FetchMarketplaceCommentsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MarketplaceComment 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<MarketplaceComment> 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 (MarketplaceComment 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;
FetchMarketplaceCommentsAsync(NetworkName, IEnumerable<ProposalName>, string, int?, CallSettings)
Fetches MarketplaceComments made on Proposals.
Declaration
public virtual PagedAsyncEnumerable<FetchMarketplaceCommentsResponse, MarketplaceComment> FetchMarketplaceCommentsAsync(NetworkName parent, IEnumerable<ProposalName> names, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent resource where MarketplaceComments will be fetched
from. Format: |
| IEnumerable<ProposalName> | names | Required. The resource names of the Proposals for which to fetch
marketplace comments. A maximum of 50 proposal names can be specified.
Format: |
| string | pageToken | The token returned from the previous request. A value of |
| int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| PagedAsyncEnumerable<FetchMarketplaceCommentsResponse, MarketplaceComment> | A pageable asynchronous sequence of MarketplaceComment resources. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<ProposalName> names = new ProposalName[]
{
ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
// Make the request
PagedAsyncEnumerable<FetchMarketplaceCommentsResponse, MarketplaceComment> response = proposalServiceClient.FetchMarketplaceCommentsAsync(parent, names);
// Iterate over all response items, lazily performing RPCs as required
await foreach (MarketplaceComment 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 (FetchMarketplaceCommentsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MarketplaceComment 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<MarketplaceComment> 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 (MarketplaceComment 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;
FetchMarketplaceCommentsAsync(string, IEnumerable<string>, string, int?, CallSettings)
Fetches MarketplaceComments made on Proposals.
Declaration
public virtual PagedAsyncEnumerable<FetchMarketplaceCommentsResponse, MarketplaceComment> FetchMarketplaceCommentsAsync(string parent, IEnumerable<string> names, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent resource where MarketplaceComments will be fetched
from. Format: |
| IEnumerable<string> | names | Required. The resource names of the Proposals for which to fetch
marketplace comments. A maximum of 50 proposal names can be specified.
Format: |
| string | pageToken | The token returned from the previous request. A value of |
| int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| PagedAsyncEnumerable<FetchMarketplaceCommentsResponse, MarketplaceComment> | A pageable asynchronous sequence of MarketplaceComment resources. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
"networks/[NETWORK_CODE]/proposals/[PROPOSAL]",
};
// Make the request
PagedAsyncEnumerable<FetchMarketplaceCommentsResponse, MarketplaceComment> response = proposalServiceClient.FetchMarketplaceCommentsAsync(parent, names);
// Iterate over all response items, lazily performing RPCs as required
await foreach (MarketplaceComment 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 (FetchMarketplaceCommentsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MarketplaceComment 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<MarketplaceComment> 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 (MarketplaceComment 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;
GetProposal(GetProposalRequest, CallSettings)
Retrieves a Proposal object.
Declaration
public virtual Proposal GetProposal(GetProposalRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetProposalRequest | request | 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 |
|---|---|
| Proposal | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
GetProposalRequest request = new GetProposalRequest
{
ProposalName = ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
// Make the request
Proposal response = proposalServiceClient.GetProposal(request);
GetProposal(ProposalName, CallSettings)
Retrieves a Proposal object.
Declaration
public virtual Proposal GetProposal(ProposalName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ProposalName | name | Required. The resource name of the Proposal.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Proposal | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
ProposalName name = ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]");
// Make the request
Proposal response = proposalServiceClient.GetProposal(name);
GetProposal(string, CallSettings)
Retrieves a Proposal object.
Declaration
public virtual Proposal GetProposal(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The resource name of the Proposal.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Proposal | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
string name = "networks/[NETWORK_CODE]/proposals/[PROPOSAL]";
// Make the request
Proposal response = proposalServiceClient.GetProposal(name);
GetProposalAsync(GetProposalRequest, CallSettings)
Retrieves a Proposal object.
Declaration
public virtual Task<Proposal> GetProposalAsync(GetProposalRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetProposalRequest | request | 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<Proposal> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
GetProposalRequest request = new GetProposalRequest
{
ProposalName = ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
// Make the request
Proposal response = await proposalServiceClient.GetProposalAsync(request);
GetProposalAsync(GetProposalRequest, CancellationToken)
Retrieves a Proposal object.
Declaration
public virtual Task<Proposal> GetProposalAsync(GetProposalRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| GetProposalRequest | request | 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<Proposal> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
GetProposalRequest request = new GetProposalRequest
{
ProposalName = ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]"),
};
// Make the request
Proposal response = await proposalServiceClient.GetProposalAsync(request);
GetProposalAsync(ProposalName, CallSettings)
Retrieves a Proposal object.
Declaration
public virtual Task<Proposal> GetProposalAsync(ProposalName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ProposalName | name | Required. The resource name of the Proposal.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<Proposal> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
ProposalName name = ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]");
// Make the request
Proposal response = await proposalServiceClient.GetProposalAsync(name);
GetProposalAsync(ProposalName, CancellationToken)
Retrieves a Proposal object.
Declaration
public virtual Task<Proposal> GetProposalAsync(ProposalName name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| ProposalName | name | Required. The resource name of the Proposal.
Format: |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<Proposal> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
ProposalName name = ProposalName.FromNetworkCodeProposal("[NETWORK_CODE]", "[PROPOSAL]");
// Make the request
Proposal response = await proposalServiceClient.GetProposalAsync(name);
GetProposalAsync(string, CallSettings)
Retrieves a Proposal object.
Declaration
public virtual Task<Proposal> GetProposalAsync(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The resource name of the Proposal.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<Proposal> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "networks/[NETWORK_CODE]/proposals/[PROPOSAL]";
// Make the request
Proposal response = await proposalServiceClient.GetProposalAsync(name);
GetProposalAsync(string, CancellationToken)
Retrieves a Proposal object.
Declaration
public virtual Task<Proposal> GetProposalAsync(string name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The resource name of the Proposal.
Format: |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<Proposal> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "networks/[NETWORK_CODE]/proposals/[PROPOSAL]";
// Make the request
Proposal response = await proposalServiceClient.GetProposalAsync(name);
ListProposals(ListProposalsRequest, CallSettings)
Lists Proposal objects.
Declaration
public virtual PagedEnumerable<ListProposalsResponse, Proposal> ListProposals(ListProposalsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListProposalsRequest | request | 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 |
|---|---|
| PagedEnumerable<ListProposalsResponse, Proposal> | A pageable sequence of Proposal resources. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
ListProposalsRequest request = new ListProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
Filter = "",
OrderBy = "",
Skip = 0,
};
// Make the request
PagedEnumerable<ListProposalsResponse, Proposal> response = proposalServiceClient.ListProposals(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Proposal 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 (ListProposalsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Proposal 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<Proposal> 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 (Proposal 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;
ListProposals(NetworkName, string, int?, CallSettings)
Lists Proposal objects.
Declaration
public virtual PagedEnumerable<ListProposalsResponse, Proposal> ListProposals(NetworkName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent, which owns this collection of Proposals.
Format: |
| string | pageToken | The token returned from the previous request. A value of |
| int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| PagedEnumerable<ListProposalsResponse, Proposal> | A pageable sequence of Proposal resources. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
// Make the request
PagedEnumerable<ListProposalsResponse, Proposal> response = proposalServiceClient.ListProposals(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Proposal 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 (ListProposalsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Proposal 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<Proposal> 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 (Proposal 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;
ListProposals(string, string, int?, CallSettings)
Lists Proposal objects.
Declaration
public virtual PagedEnumerable<ListProposalsResponse, Proposal> ListProposals(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent, which owns this collection of Proposals.
Format: |
| string | pageToken | The token returned from the previous request. A value of |
| int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| PagedEnumerable<ListProposalsResponse, Proposal> | A pageable sequence of Proposal resources. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
// Make the request
PagedEnumerable<ListProposalsResponse, Proposal> response = proposalServiceClient.ListProposals(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Proposal 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 (ListProposalsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Proposal 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<Proposal> 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 (Proposal 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;
ListProposalsAsync(ListProposalsRequest, CallSettings)
Lists Proposal objects.
Declaration
public virtual PagedAsyncEnumerable<ListProposalsResponse, Proposal> ListProposalsAsync(ListProposalsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListProposalsRequest | request | 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 |
|---|---|
| PagedAsyncEnumerable<ListProposalsResponse, Proposal> | A pageable asynchronous sequence of Proposal resources. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
ListProposalsRequest request = new ListProposalsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
Filter = "",
OrderBy = "",
Skip = 0,
};
// Make the request
PagedAsyncEnumerable<ListProposalsResponse, Proposal> response = proposalServiceClient.ListProposalsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await foreach (Proposal 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 (ListProposalsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Proposal 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<Proposal> 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 (Proposal 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;
ListProposalsAsync(NetworkName, string, int?, CallSettings)
Lists Proposal objects.
Declaration
public virtual PagedAsyncEnumerable<ListProposalsResponse, Proposal> ListProposalsAsync(NetworkName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent, which owns this collection of Proposals.
Format: |
| string | pageToken | The token returned from the previous request. A value of |
| int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| PagedAsyncEnumerable<ListProposalsResponse, Proposal> | A pageable asynchronous sequence of Proposal resources. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
// Make the request
PagedAsyncEnumerable<ListProposalsResponse, Proposal> response = proposalServiceClient.ListProposalsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (Proposal 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 (ListProposalsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Proposal 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<Proposal> 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 (Proposal 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;
ListProposalsAsync(string, string, int?, CallSettings)
Lists Proposal objects.
Declaration
public virtual PagedAsyncEnumerable<ListProposalsResponse, Proposal> ListProposalsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent, which owns this collection of Proposals.
Format: |
| string | pageToken | The token returned from the previous request. A value of |
| int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| PagedAsyncEnumerable<ListProposalsResponse, Proposal> | A pageable asynchronous sequence of Proposal resources. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
// Make the request
PagedAsyncEnumerable<ListProposalsResponse, Proposal> response = proposalServiceClient.ListProposalsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (Proposal 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 (ListProposalsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Proposal 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<Proposal> 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 (Proposal 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;
ShutdownDefaultChannelsAsync()
Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
Declaration
public static Task ShutdownDefaultChannelsAsync()
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.
UpdateProposal(Proposal, FieldMask, CallSettings)
Updates a Proposal object.
Declaration
public virtual Proposal UpdateProposal(Proposal proposal, FieldMask updateMask, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Proposal | proposal | Required. The The |
| FieldMask | updateMask | Optional. The list of fields to update. |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Proposal | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
Proposal proposal = new Proposal();
FieldMask updateMask = new FieldMask();
// Make the request
Proposal response = proposalServiceClient.UpdateProposal(proposal, updateMask);
UpdateProposal(UpdateProposalRequest, CallSettings)
Updates a Proposal object.
Declaration
public virtual Proposal UpdateProposal(UpdateProposalRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateProposalRequest | request | 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 |
|---|---|
| Proposal | The RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = ProposalServiceClient.Create();
// Initialize request argument(s)
UpdateProposalRequest request = new UpdateProposalRequest
{
Proposal = new Proposal(),
UpdateMask = new FieldMask(),
};
// Make the request
Proposal response = proposalServiceClient.UpdateProposal(request);
UpdateProposalAsync(Proposal, FieldMask, CallSettings)
Updates a Proposal object.
Declaration
public virtual Task<Proposal> UpdateProposalAsync(Proposal proposal, FieldMask updateMask, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Proposal | proposal | Required. The The |
| FieldMask | updateMask | Optional. The list of fields to update. |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<Proposal> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
Proposal proposal = new Proposal();
FieldMask updateMask = new FieldMask();
// Make the request
Proposal response = await proposalServiceClient.UpdateProposalAsync(proposal, updateMask);
UpdateProposalAsync(Proposal, FieldMask, CancellationToken)
Updates a Proposal object.
Declaration
public virtual Task<Proposal> UpdateProposalAsync(Proposal proposal, FieldMask updateMask, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| Proposal | proposal | Required. The The |
| FieldMask | updateMask | Optional. The list of fields to update. |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<Proposal> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
Proposal proposal = new Proposal();
FieldMask updateMask = new FieldMask();
// Make the request
Proposal response = await proposalServiceClient.UpdateProposalAsync(proposal, updateMask);
UpdateProposalAsync(UpdateProposalRequest, CallSettings)
Updates a Proposal object.
Declaration
public virtual Task<Proposal> UpdateProposalAsync(UpdateProposalRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateProposalRequest | request | 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<Proposal> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateProposalRequest request = new UpdateProposalRequest
{
Proposal = new Proposal(),
UpdateMask = new FieldMask(),
};
// Make the request
Proposal response = await proposalServiceClient.UpdateProposalAsync(request);
UpdateProposalAsync(UpdateProposalRequest, CancellationToken)
Updates a Proposal object.
Declaration
public virtual Task<Proposal> UpdateProposalAsync(UpdateProposalRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateProposalRequest | request | 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<Proposal> | A Task containing the RPC response. |
Sample code
// Create client
ProposalServiceClient proposalServiceClient = await ProposalServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateProposalRequest request = new UpdateProposalRequest
{
Proposal = new Proposal(),
UpdateMask = new FieldMask(),
};
// Make the request
Proposal response = await proposalServiceClient.UpdateProposalAsync(request);