Class ProposalServiceClient (0.62.0)

GitHub RepositoryProduct Reference

Service Description: Provides methods for handling Proposal objects.

This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   ProposalName name = ProposalName.of("[NETWORK_CODE]", "[PROPOSAL]");
   Proposal response = proposalServiceClient.getProposal(name);
 }
 

Note: close() needs to be called on the ProposalServiceClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().

Methods
Method Description Method Variants

GetProposal

Retrieves a Proposal object.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • getProposal(GetProposalRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getProposal(ProposalName name)

  • getProposal(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getProposalCallable()

ListProposals

Lists Proposal objects.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • listProposals(ListProposalsRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listProposals(NetworkName parent)

  • listProposals(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listProposalsPagedCallable()

  • listProposalsCallable()

CreateProposal

Creates a Proposal object.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • createProposal(CreateProposalRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • createProposal(NetworkName parent, Proposal proposal)

  • createProposal(String parent, Proposal proposal)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • createProposalCallable()

BatchCreateProposals

Creates Proposal objects.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • batchCreateProposals(NetworkName parent, List<CreateProposalRequest> requests)

  • batchCreateProposals(String parent, List<CreateProposalRequest> requests)

  • batchCreateProposals(BatchCreateProposalsRequest request)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • batchCreateProposalsCallable()

UpdateProposal

Updates a Proposal object.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • updateProposal(UpdateProposalRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • updateProposal(Proposal proposal, FieldMask updateMask)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • updateProposalCallable()

BatchUpdateProposals

Batch updates Proposal objects.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • batchUpdateProposals(NetworkName parent, List<UpdateProposalRequest> requests)

  • batchUpdateProposals(String parent, List<UpdateProposalRequest> requests)

  • batchUpdateProposals(BatchUpdateProposalsRequest request)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • batchUpdateProposalsCallable()

BatchArchiveProposals

Archives Proposal objects.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • batchArchiveProposals(BatchArchiveProposalsRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • batchArchiveProposals(NetworkName parent, List<String> names)

  • batchArchiveProposals(String parent, List<String> names)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • batchArchiveProposalsCallable()

BatchUnarchiveProposals

Unarchives Proposal objects.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • batchUnarchiveProposals(BatchUnarchiveProposalsRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • batchUnarchiveProposals(NetworkName parent, List<String> names)

  • batchUnarchiveProposals(String parent, List<String> names)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • batchUnarchiveProposalsCallable()

BatchPauseProposals

Pauses Proposal objects.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • batchPauseProposals(BatchPauseProposalsRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • batchPauseProposals(NetworkName parent, List<String> names, String reason)

  • batchPauseProposals(String parent, List<String> names, String reason)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • batchPauseProposalsCallable()

BatchResumeProposals

Resumes Proposal objects.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • batchResumeProposals(BatchResumeProposalsRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • batchResumeProposals(NetworkName parent, List<String> names)

  • batchResumeProposals(String parent, List<String> names)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • batchResumeProposalsCallable()

BatchRequestBuyerReviewProposals

Requests buyer review for Proposal objects.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • batchRequestBuyerReviewProposals(BatchRequestBuyerReviewProposalsRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • batchRequestBuyerReviewProposals(NetworkName parent, List<String> names)

  • batchRequestBuyerReviewProposals(String parent, List<String> names)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • batchRequestBuyerReviewProposalsCallable()

BatchRequestBuyerAcceptProposals

Requests buyer acceptance for Proposal objects.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • batchRequestBuyerAcceptProposals(BatchRequestBuyerAcceptProposalsRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • batchRequestBuyerAcceptProposals(NetworkName parent, List<String> names)

  • batchRequestBuyerAcceptProposals(String parent, List<String> names)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • batchRequestBuyerAcceptProposalsCallable()

BatchReserveProposals

Reserves inventory for Proposal objects.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • batchReserveProposals(BatchReserveProposalsRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • batchReserveProposals(NetworkName parent, List<String> names)

  • batchReserveProposals(String parent, List<String> names)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • batchReserveProposalsCallable()

BatchRedraftProposals

Redrafts Proposal objects for negotiation.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • batchRedraftProposals(BatchRedraftProposalsRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • batchRedraftProposals(NetworkName parent, List<String> names)

  • batchRedraftProposals(String parent, List<String> names)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • batchRedraftProposalsCallable()

BatchDiscardDraftProposals

Discards drafts, or revert local modifications, of Proposal objects.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • batchDiscardDraftProposals(BatchDiscardDraftProposalsRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • batchDiscardDraftProposals(NetworkName parent, List<String> names)

  • batchDiscardDraftProposals(String parent, List<String> names)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • batchDiscardDraftProposalsCallable()

BatchTerminateProposals

Terminates negotiation on Proposal objects.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • batchTerminateProposals(BatchTerminateProposalsRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • batchTerminateProposals(NetworkName parent, List<String> names)

  • batchTerminateProposals(String parent, List<String> names)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • batchTerminateProposalsCallable()

BatchPushToOrderProposals

Push changes on Proposals to corresponding Orders, after negotiations have been finalized.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • batchPushToOrderProposals(BatchPushToOrderProposalsRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • batchPushToOrderProposals(NetworkName parent, List<String> names)

  • batchPushToOrderProposals(String parent, List<String> names)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • batchPushToOrderProposalsCallable()

FetchMarketplaceComments

Fetches MarketplaceComments made on Proposals.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • fetchMarketplaceComments(FetchMarketplaceCommentsRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • fetchMarketplaceComments(NetworkName parent, List<String> names)

  • fetchMarketplaceComments(String parent, List<String> names)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • fetchMarketplaceCommentsPagedCallable()

  • fetchMarketplaceCommentsCallable()

See the individual methods for example code.

Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.

This class can be customized by passing in a custom instance of ProposalServiceSettings to create(). For example:

To customize credentials:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 ProposalServiceSettings proposalServiceSettings =
     ProposalServiceSettings.newBuilder()
         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
         .build();
 ProposalServiceClient proposalServiceClient =
     ProposalServiceClient.create(proposalServiceSettings);
 

To customize the endpoint:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 ProposalServiceSettings proposalServiceSettings =
     ProposalServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
 ProposalServiceClient proposalServiceClient =
     ProposalServiceClient.create(proposalServiceSettings);
 

Please refer to the GitHub repository's samples for more quickstart code snippets.

Inheritance

java.lang.Object > ProposalServiceClient

Static Methods

create()

public static final ProposalServiceClient create()

Constructs an instance of ProposalServiceClient with default settings.

Returns
Type Description
ProposalServiceClient
Exceptions
Type Description
IOException

create(ProposalServiceSettings settings)

public static final ProposalServiceClient create(ProposalServiceSettings settings)

Constructs an instance of ProposalServiceClient, using the given settings. The channels are created based on the settings passed in, or defaults for any settings that are not set.

Parameter
Name Description
settings ProposalServiceSettings
Returns
Type Description
ProposalServiceClient
Exceptions
Type Description
IOException

create(ProposalServiceStub stub)

public static final ProposalServiceClient create(ProposalServiceStub stub)

Constructs an instance of ProposalServiceClient, using the given stub for making calls. This is for advanced usage - prefer using create(ProposalServiceSettings).

Parameter
Name Description
stub ProposalServiceStub
Returns
Type Description
ProposalServiceClient

Constructors

ProposalServiceClient(ProposalServiceSettings settings)

protected ProposalServiceClient(ProposalServiceSettings settings)

Constructs an instance of ProposalServiceClient, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameter
Name Description
settings ProposalServiceSettings

ProposalServiceClient(ProposalServiceStub stub)

protected ProposalServiceClient(ProposalServiceStub stub)
Parameter
Name Description
stub ProposalServiceStub

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

batchArchiveProposals(@Nullable NetworkName parent, List<String> names)

public final BatchArchiveProposalsResponse batchArchiveProposals(@Nullable NetworkName parent, List<String> names)

Archives Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
   List<String> names = new ArrayList<>();
   BatchArchiveProposalsResponse response =
       proposalServiceClient.batchArchiveProposals(parent, names);
 }
 
Parameters
Name Description
parent @org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkName

Required. The parent resource where proposals will be archived. Format: networks/{network_code}

names List<String>

Required. The resource names of the Proposals to archive. Format: networks/{network_code}/proposals/{proposal_id}

Returns
Type Description
BatchArchiveProposalsResponse

batchArchiveProposals(BatchArchiveProposalsRequest request)

public final BatchArchiveProposalsResponse batchArchiveProposals(BatchArchiveProposalsRequest request)

Archives Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   BatchArchiveProposalsRequest request =
       BatchArchiveProposalsRequest.newBuilder()
           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
           .addAllNames(new ArrayList<String>())
           .build();
   BatchArchiveProposalsResponse response = proposalServiceClient.batchArchiveProposals(request);
 }
 
Parameter
Name Description
request BatchArchiveProposalsRequest

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

Returns
Type Description
BatchArchiveProposalsResponse

batchArchiveProposals(String parent, List<String> names)

public final BatchArchiveProposalsResponse batchArchiveProposals(String parent, List<String> names)

Archives Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   String parent = NetworkName.of("[NETWORK_CODE]").toString();
   List<String> names = new ArrayList<>();
   BatchArchiveProposalsResponse response =
       proposalServiceClient.batchArchiveProposals(parent, names);
 }
 
Parameters
Name Description
parent String

Required. The parent resource where proposals will be archived. Format: networks/{network_code}

names List<String>

Required. The resource names of the Proposals to archive. Format: networks/{network_code}/proposals/{proposal_id}

Returns
Type Description
BatchArchiveProposalsResponse

batchArchiveProposalsCallable()

public final UnaryCallable<BatchArchiveProposalsRequest,BatchArchiveProposalsResponse> batchArchiveProposalsCallable()

Archives Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   BatchArchiveProposalsRequest request =
       BatchArchiveProposalsRequest.newBuilder()
           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
           .addAllNames(new ArrayList<String>())
           .build();
   ApiFuture<BatchArchiveProposalsResponse> future =
       proposalServiceClient.batchArchiveProposalsCallable().futureCall(request);
   // Do something.
   BatchArchiveProposalsResponse response = future.get();
 }
 
Returns
Type Description
UnaryCallable<BatchArchiveProposalsRequest,BatchArchiveProposalsResponse>

batchCreateProposals(@Nullable NetworkName parent, List<CreateProposalRequest> requests)

public final BatchCreateProposalsResponse batchCreateProposals(@Nullable NetworkName parent, List<CreateProposalRequest> requests)

Creates Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
   List<CreateProposalRequest> requests = new ArrayList<>();
   BatchCreateProposalsResponse response =
       proposalServiceClient.batchCreateProposals(parent, requests);
 }
 
Parameters
Name Description
parent @org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkName

Required. The parent resource where Proposals will be created. Format: networks/{network_code} The parent field in the CreateProposalRequest must match this field.

requests List<CreateProposalRequest>

Required. The Proposal objects to create. A maximum of 100 objects can be created in a batch.

Returns
Type Description
BatchCreateProposalsResponse

batchCreateProposals(BatchCreateProposalsRequest request)

public final BatchCreateProposalsResponse batchCreateProposals(BatchCreateProposalsRequest request)

Creates Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   BatchCreateProposalsRequest request =
       BatchCreateProposalsRequest.newBuilder()
           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
           .addAllRequests(new ArrayList<CreateProposalRequest>())
           .build();
   BatchCreateProposalsResponse response = proposalServiceClient.batchCreateProposals(request);
 }
 
Parameter
Name Description
request BatchCreateProposalsRequest

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

Returns
Type Description
BatchCreateProposalsResponse

batchCreateProposals(String parent, List<CreateProposalRequest> requests)

public final BatchCreateProposalsResponse batchCreateProposals(String parent, List<CreateProposalRequest> requests)

Creates Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   String parent = NetworkName.of("[NETWORK_CODE]").toString();
   List<CreateProposalRequest> requests = new ArrayList<>();
   BatchCreateProposalsResponse response =
       proposalServiceClient.batchCreateProposals(parent, requests);
 }
 
Parameters
Name Description
parent String

Required. The parent resource where Proposals will be created. Format: networks/{network_code} The parent field in the CreateProposalRequest must match this field.

requests List<CreateProposalRequest>

Required. The Proposal objects to create. A maximum of 100 objects can be created in a batch.

Returns
Type Description
BatchCreateProposalsResponse

batchCreateProposalsCallable()

public final UnaryCallable<BatchCreateProposalsRequest,BatchCreateProposalsResponse> batchCreateProposalsCallable()

Creates Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   BatchCreateProposalsRequest request =
       BatchCreateProposalsRequest.newBuilder()
           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
           .addAllRequests(new ArrayList<CreateProposalRequest>())
           .build();
   ApiFuture<BatchCreateProposalsResponse> future =
       proposalServiceClient.batchCreateProposalsCallable().futureCall(request);
   // Do something.
   BatchCreateProposalsResponse response = future.get();
 }
 
Returns
Type Description
UnaryCallable<BatchCreateProposalsRequest,BatchCreateProposalsResponse>

batchDiscardDraftProposals(@Nullable NetworkName parent, List<String> names)

public final BatchDiscardDraftProposalsResponse batchDiscardDraftProposals(@Nullable NetworkName parent, List<String> names)

Discards drafts, or revert local modifications, of Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
   List<String> names = new ArrayList<>();
   BatchDiscardDraftProposalsResponse response =
       proposalServiceClient.batchDiscardDraftProposals(parent, names);
 }
 
Parameters
Name Description
parent @org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkName

Required. The parent resource where proposals will be discarded. Format: networks/{network_code}

names List<String>

Required. The resource names of the Proposals to discard. Format: networks/{network_code}/proposals/{proposal_id}

Returns
Type Description
BatchDiscardDraftProposalsResponse

batchDiscardDraftProposals(BatchDiscardDraftProposalsRequest request)

public final BatchDiscardDraftProposalsResponse batchDiscardDraftProposals(BatchDiscardDraftProposalsRequest request)

Discards drafts, or revert local modifications, of Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   BatchDiscardDraftProposalsRequest request =
       BatchDiscardDraftProposalsRequest.newBuilder()
           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
           .addAllNames(new ArrayList<String>())
           .build();
   BatchDiscardDraftProposalsResponse response =
       proposalServiceClient.batchDiscardDraftProposals(request);
 }
 
Parameter
Name Description
request BatchDiscardDraftProposalsRequest

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

Returns
Type Description
BatchDiscardDraftProposalsResponse

batchDiscardDraftProposals(String parent, List<String> names)

public final BatchDiscardDraftProposalsResponse batchDiscardDraftProposals(String parent, List<String> names)

Discards drafts, or revert local modifications, of Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   String parent = NetworkName.of("[NETWORK_CODE]").toString();
   List<String> names = new ArrayList<>();
   BatchDiscardDraftProposalsResponse response =
       proposalServiceClient.batchDiscardDraftProposals(parent, names);
 }
 
Parameters
Name Description
parent String

Required. The parent resource where proposals will be discarded. Format: networks/{network_code}

names List<String>

Required. The resource names of the Proposals to discard. Format: networks/{network_code}/proposals/{proposal_id}

Returns
Type Description
BatchDiscardDraftProposalsResponse

batchDiscardDraftProposalsCallable()

public final UnaryCallable<BatchDiscardDraftProposalsRequest,BatchDiscardDraftProposalsResponse> batchDiscardDraftProposalsCallable()

Discards drafts, or revert local modifications, of Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   BatchDiscardDraftProposalsRequest request =
       BatchDiscardDraftProposalsRequest.newBuilder()
           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
           .addAllNames(new ArrayList<String>())
           .build();
   ApiFuture<BatchDiscardDraftProposalsResponse> future =
       proposalServiceClient.batchDiscardDraftProposalsCallable().futureCall(request);
   // Do something.
   BatchDiscardDraftProposalsResponse response = future.get();
 }
 
Returns
Type Description
UnaryCallable<BatchDiscardDraftProposalsRequest,BatchDiscardDraftProposalsResponse>

batchPauseProposals(@Nullable NetworkName parent, List<String> names, String reason)

public final BatchPauseProposalsResponse batchPauseProposals(@Nullable NetworkName parent, List<String> names, String reason)

Pauses Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
   List<String> names = new ArrayList<>();
   String reason = "reason-934964668";
   BatchPauseProposalsResponse response =
       proposalServiceClient.batchPauseProposals(parent, names, reason);
 }
 
Parameters
Name Description
parent @org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkName

Required. The parent resource where proposals will be paused. Format: networks/{network_code}

names List<String>

Required. The resource names of the Proposals to pause. Format: networks/{network_code}/proposals/{proposal_id}

reason String

Required. The reason for pausing the Proposals.

Returns
Type Description
BatchPauseProposalsResponse

batchPauseProposals(BatchPauseProposalsRequest request)

public final BatchPauseProposalsResponse batchPauseProposals(BatchPauseProposalsRequest request)

Pauses Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   BatchPauseProposalsRequest request =
       BatchPauseProposalsRequest.newBuilder()
           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
           .addAllNames(new ArrayList<String>())
           .setReason("reason-934964668")
           .build();
   BatchPauseProposalsResponse response = proposalServiceClient.batchPauseProposals(request);
 }
 
Parameter
Name Description
request BatchPauseProposalsRequest

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

Returns
Type Description
BatchPauseProposalsResponse

batchPauseProposals(String parent, List<String> names, String reason)

public final BatchPauseProposalsResponse batchPauseProposals(String parent, List<String> names, String reason)

Pauses Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   String parent = NetworkName.of("[NETWORK_CODE]").toString();
   List<String> names = new ArrayList<>();
   String reason = "reason-934964668";
   BatchPauseProposalsResponse response =
       proposalServiceClient.batchPauseProposals(parent, names, reason);
 }
 
Parameters
Name Description
parent String

Required. The parent resource where proposals will be paused. Format: networks/{network_code}

names List<String>

Required. The resource names of the Proposals to pause. Format: networks/{network_code}/proposals/{proposal_id}

reason String

Required. The reason for pausing the Proposals.

Returns
Type Description
BatchPauseProposalsResponse

batchPauseProposalsCallable()

public final UnaryCallable<BatchPauseProposalsRequest,BatchPauseProposalsResponse> batchPauseProposalsCallable()

Pauses Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   BatchPauseProposalsRequest request =
       BatchPauseProposalsRequest.newBuilder()
           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
           .addAllNames(new ArrayList<String>())
           .setReason("reason-934964668")
           .build();
   ApiFuture<BatchPauseProposalsResponse> future =
       proposalServiceClient.batchPauseProposalsCallable().futureCall(request);
   // Do something.
   BatchPauseProposalsResponse response = future.get();
 }
 
Returns
Type Description
UnaryCallable<BatchPauseProposalsRequest,BatchPauseProposalsResponse>

batchPushToOrderProposals(@Nullable NetworkName parent, List<String> names)

public final BatchPushToOrderProposalsResponse batchPushToOrderProposals(@Nullable NetworkName parent, List<String> names)

Push changes on Proposals to corresponding Orders, after negotiations have been finalized.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
   List<String> names = new ArrayList<>();
   BatchPushToOrderProposalsResponse response =
       proposalServiceClient.batchPushToOrderProposals(parent, names);
 }
 
Parameters
Name Description
parent @org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkName

Required. The parent resource where proposals will be pushed to order. Format: networks/{network_code}

names List<String>

Required. The resource names of the Proposals to push to order. Format: networks/{network_code}/proposals/{proposal_id}

Returns
Type Description
BatchPushToOrderProposalsResponse

batchPushToOrderProposals(BatchPushToOrderProposalsRequest request)

public final BatchPushToOrderProposalsResponse batchPushToOrderProposals(BatchPushToOrderProposalsRequest request)

Push changes on Proposals to corresponding Orders, after negotiations have been finalized.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   BatchPushToOrderProposalsRequest request =
       BatchPushToOrderProposalsRequest.newBuilder()
           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
           .addAllNames(new ArrayList<String>())
           .build();
   BatchPushToOrderProposalsResponse response =
       proposalServiceClient.batchPushToOrderProposals(request);
 }
 
Parameter
Name Description
request BatchPushToOrderProposalsRequest

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

Returns
Type Description
BatchPushToOrderProposalsResponse

batchPushToOrderProposals(String parent, List<String> names)

public final BatchPushToOrderProposalsResponse batchPushToOrderProposals(String parent, List<String> names)

Push changes on Proposals to corresponding Orders, after negotiations have been finalized.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   String parent = NetworkName.of("[NETWORK_CODE]").toString();
   List<String> names = new ArrayList<>();
   BatchPushToOrderProposalsResponse response =
       proposalServiceClient.batchPushToOrderProposals(parent, names);
 }
 
Parameters
Name Description
parent String

Required. The parent resource where proposals will be pushed to order. Format: networks/{network_code}

names List<String>

Required. The resource names of the Proposals to push to order. Format: networks/{network_code}/proposals/{proposal_id}

Returns
Type Description
BatchPushToOrderProposalsResponse

batchPushToOrderProposalsCallable()

public final UnaryCallable<BatchPushToOrderProposalsRequest,BatchPushToOrderProposalsResponse> batchPushToOrderProposalsCallable()

Push changes on Proposals to corresponding Orders, after negotiations have been finalized.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   BatchPushToOrderProposalsRequest request =
       BatchPushToOrderProposalsRequest.newBuilder()
           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
           .addAllNames(new ArrayList<String>())
           .build();
   ApiFuture<BatchPushToOrderProposalsResponse> future =
       proposalServiceClient.batchPushToOrderProposalsCallable().futureCall(request);
   // Do something.
   BatchPushToOrderProposalsResponse response = future.get();
 }
 
Returns
Type Description
UnaryCallable<BatchPushToOrderProposalsRequest,BatchPushToOrderProposalsResponse>

batchRedraftProposals(@Nullable NetworkName parent, List<String> names)

public final BatchRedraftProposalsResponse batchRedraftProposals(@Nullable NetworkName parent, List<String> names)

Redrafts Proposal objects for negotiation.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
   List<String> names = new ArrayList<>();
   BatchRedraftProposalsResponse response =
       proposalServiceClient.batchRedraftProposals(parent, names);
 }
 
Parameters
Name Description
parent @org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkName

Required. The parent resource where proposals will be redrafted. Format: networks/{network_code}

names List<String>

Required. The resource names of the Proposals to redraft. Format: networks/{network_code}/proposals/{proposal_id}

Returns
Type Description
BatchRedraftProposalsResponse

batchRedraftProposals(BatchRedraftProposalsRequest request)

public final BatchRedraftProposalsResponse batchRedraftProposals(BatchRedraftProposalsRequest request)

Redrafts Proposal objects for negotiation.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   BatchRedraftProposalsRequest request =
       BatchRedraftProposalsRequest.newBuilder()
           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
           .addAllNames(new ArrayList<String>())
           .build();
   BatchRedraftProposalsResponse response = proposalServiceClient.batchRedraftProposals(request);
 }
 
Parameter
Name Description
request BatchRedraftProposalsRequest

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

Returns
Type Description
BatchRedraftProposalsResponse

batchRedraftProposals(String parent, List<String> names)

public final BatchRedraftProposalsResponse batchRedraftProposals(String parent, List<String> names)

Redrafts Proposal objects for negotiation.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   String parent = NetworkName.of("[NETWORK_CODE]").toString();
   List<String> names = new ArrayList<>();
   BatchRedraftProposalsResponse response =
       proposalServiceClient.batchRedraftProposals(parent, names);
 }
 
Parameters
Name Description
parent String

Required. The parent resource where proposals will be redrafted. Format: networks/{network_code}

names List<String>

Required. The resource names of the Proposals to redraft. Format: networks/{network_code}/proposals/{proposal_id}

Returns
Type Description
BatchRedraftProposalsResponse

batchRedraftProposalsCallable()

public final UnaryCallable<BatchRedraftProposalsRequest,BatchRedraftProposalsResponse> batchRedraftProposalsCallable()

Redrafts Proposal objects for negotiation.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   BatchRedraftProposalsRequest request =
       BatchRedraftProposalsRequest.newBuilder()
           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
           .addAllNames(new ArrayList<String>())
           .build();
   ApiFuture<BatchRedraftProposalsResponse> future =
       proposalServiceClient.batchRedraftProposalsCallable().futureCall(request);
   // Do something.
   BatchRedraftProposalsResponse response = future.get();
 }
 
Returns
Type Description
UnaryCallable<BatchRedraftProposalsRequest,BatchRedraftProposalsResponse>

batchRequestBuyerAcceptProposals(@Nullable NetworkName parent, List<String> names)

public final BatchRequestBuyerAcceptProposalsResponse batchRequestBuyerAcceptProposals(@Nullable NetworkName parent, List<String> names)

Requests buyer acceptance for Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
   List<String> names = new ArrayList<>();
   BatchRequestBuyerAcceptProposalsResponse response =
       proposalServiceClient.batchRequestBuyerAcceptProposals(parent, names);
 }
 
Parameters
Name Description
parent @org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkName

Required. The parent resource where proposals will be accepted. Format: networks/{network_code}

names List<String>

Required. The resource names of the Proposals to request buyer accept. Format: networks/{network_code}/proposals/{proposal_id}

Returns
Type Description
BatchRequestBuyerAcceptProposalsResponse

batchRequestBuyerAcceptProposals(BatchRequestBuyerAcceptProposalsRequest request)

public final BatchRequestBuyerAcceptProposalsResponse batchRequestBuyerAcceptProposals(BatchRequestBuyerAcceptProposalsRequest request)

Requests buyer acceptance for Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   BatchRequestBuyerAcceptProposalsRequest request =
       BatchRequestBuyerAcceptProposalsRequest.newBuilder()
           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
           .addAllNames(new ArrayList<String>())
           .setOverbookingAllowed(true)
           .build();
   BatchRequestBuyerAcceptProposalsResponse response =
       proposalServiceClient.batchRequestBuyerAcceptProposals(request);
 }
 
Parameter
Name Description
request BatchRequestBuyerAcceptProposalsRequest

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

Returns
Type Description
BatchRequestBuyerAcceptProposalsResponse

batchRequestBuyerAcceptProposals(String parent, List<String> names)

public final BatchRequestBuyerAcceptProposalsResponse batchRequestBuyerAcceptProposals(String parent, List<String> names)

Requests buyer acceptance for Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   String parent = NetworkName.of("[NETWORK_CODE]").toString();
   List<String> names = new ArrayList<>();
   BatchRequestBuyerAcceptProposalsResponse response =
       proposalServiceClient.batchRequestBuyerAcceptProposals(parent, names);
 }
 
Parameters
Name Description
parent String

Required. The parent resource where proposals will be accepted. Format: networks/{network_code}

names List<String>

Required. The resource names of the Proposals to request buyer accept. Format: networks/{network_code}/proposals/{proposal_id}

Returns
Type Description
BatchRequestBuyerAcceptProposalsResponse

batchRequestBuyerAcceptProposalsCallable()

public final UnaryCallable<BatchRequestBuyerAcceptProposalsRequest,BatchRequestBuyerAcceptProposalsResponse> batchRequestBuyerAcceptProposalsCallable()

Requests buyer acceptance for Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   BatchRequestBuyerAcceptProposalsRequest request =
       BatchRequestBuyerAcceptProposalsRequest.newBuilder()
           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
           .addAllNames(new ArrayList<String>())
           .setOverbookingAllowed(true)
           .build();
   ApiFuture<BatchRequestBuyerAcceptProposalsResponse> future =
       proposalServiceClient.batchRequestBuyerAcceptProposalsCallable().futureCall(request);
   // Do something.
   BatchRequestBuyerAcceptProposalsResponse response = future.get();
 }
 
Returns
Type Description
UnaryCallable<BatchRequestBuyerAcceptProposalsRequest,BatchRequestBuyerAcceptProposalsResponse>

batchRequestBuyerReviewProposals(@Nullable NetworkName parent, List<String> names)

public final BatchRequestBuyerReviewProposalsResponse batchRequestBuyerReviewProposals(@Nullable NetworkName parent, List<String> names)

Requests buyer review for Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
   List<String> names = new ArrayList<>();
   BatchRequestBuyerReviewProposalsResponse response =
       proposalServiceClient.batchRequestBuyerReviewProposals(parent, names);
 }
 
Parameters
Name Description
parent @org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkName

Required. The parent resource where proposals will be reviewed. Format: networks/{network_code}

names List<String>

Required. The resource names of the Proposals to request buyer review. Format: networks/{network_code}/proposals/{proposal_id}

Returns
Type Description
BatchRequestBuyerReviewProposalsResponse

batchRequestBuyerReviewProposals(BatchRequestBuyerReviewProposalsRequest request)

public final BatchRequestBuyerReviewProposalsResponse batchRequestBuyerReviewProposals(BatchRequestBuyerReviewProposalsRequest request)

Requests buyer review for Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   BatchRequestBuyerReviewProposalsRequest request =
       BatchRequestBuyerReviewProposalsRequest.newBuilder()
           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
           .addAllNames(new ArrayList<String>())
           .build();
   BatchRequestBuyerReviewProposalsResponse response =
       proposalServiceClient.batchRequestBuyerReviewProposals(request);
 }
 
Parameter
Name Description
request BatchRequestBuyerReviewProposalsRequest

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

Returns
Type Description
BatchRequestBuyerReviewProposalsResponse

batchRequestBuyerReviewProposals(String parent, List<String> names)

public final BatchRequestBuyerReviewProposalsResponse batchRequestBuyerReviewProposals(String parent, List<String> names)

Requests buyer review for Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   String parent = NetworkName.of("[NETWORK_CODE]").toString();
   List<String> names = new ArrayList<>();
   BatchRequestBuyerReviewProposalsResponse response =
       proposalServiceClient.batchRequestBuyerReviewProposals(parent, names);
 }
 
Parameters
Name Description
parent String

Required. The parent resource where proposals will be reviewed. Format: networks/{network_code}

names List<String>

Required. The resource names of the Proposals to request buyer review. Format: networks/{network_code}/proposals/{proposal_id}

Returns
Type Description
BatchRequestBuyerReviewProposalsResponse

batchRequestBuyerReviewProposalsCallable()

public final UnaryCallable<BatchRequestBuyerReviewProposalsRequest,BatchRequestBuyerReviewProposalsResponse> batchRequestBuyerReviewProposalsCallable()

Requests buyer review for Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   BatchRequestBuyerReviewProposalsRequest request =
       BatchRequestBuyerReviewProposalsRequest.newBuilder()
           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
           .addAllNames(new ArrayList<String>())
           .build();
   ApiFuture<BatchRequestBuyerReviewProposalsResponse> future =
       proposalServiceClient.batchRequestBuyerReviewProposalsCallable().futureCall(request);
   // Do something.
   BatchRequestBuyerReviewProposalsResponse response = future.get();
 }
 
Returns
Type Description
UnaryCallable<BatchRequestBuyerReviewProposalsRequest,BatchRequestBuyerReviewProposalsResponse>

batchReserveProposals(@Nullable NetworkName parent, List<String> names)

public final BatchReserveProposalsResponse batchReserveProposals(@Nullable NetworkName parent, List<String> names)

Reserves inventory for Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
   List<String> names = new ArrayList<>();
   BatchReserveProposalsResponse response =
       proposalServiceClient.batchReserveProposals(parent, names);
 }
 
Parameters
Name Description
parent @org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkName

Required. The parent resource where proposals will be reserved. Format: networks/{network_code}

names List<String>

Required. The resource names of the Proposals to reserve. Format: networks/{network_code}/proposals/{proposal_id}

Returns
Type Description
BatchReserveProposalsResponse

batchReserveProposals(BatchReserveProposalsRequest request)

public final BatchReserveProposalsResponse batchReserveProposals(BatchReserveProposalsRequest request)

Reserves inventory for Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   BatchReserveProposalsRequest request =
       BatchReserveProposalsRequest.newBuilder()
           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
           .addAllNames(new ArrayList<String>())
           .setOverbookingAllowed(true)
           .build();
   BatchReserveProposalsResponse response = proposalServiceClient.batchReserveProposals(request);
 }
 
Parameter
Name Description
request BatchReserveProposalsRequest

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

Returns
Type Description
BatchReserveProposalsResponse

batchReserveProposals(String parent, List<String> names)

public final BatchReserveProposalsResponse batchReserveProposals(String parent, List<String> names)

Reserves inventory for Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   String parent = NetworkName.of("[NETWORK_CODE]").toString();
   List<String> names = new ArrayList<>();
   BatchReserveProposalsResponse response =
       proposalServiceClient.batchReserveProposals(parent, names);
 }
 
Parameters
Name Description
parent String

Required. The parent resource where proposals will be reserved. Format: networks/{network_code}

names List<String>

Required. The resource names of the Proposals to reserve. Format: networks/{network_code}/proposals/{proposal_id}

Returns
Type Description
BatchReserveProposalsResponse

batchReserveProposalsCallable()

public final UnaryCallable<BatchReserveProposalsRequest,BatchReserveProposalsResponse> batchReserveProposalsCallable()

Reserves inventory for Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   BatchReserveProposalsRequest request =
       BatchReserveProposalsRequest.newBuilder()
           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
           .addAllNames(new ArrayList<String>())
           .setOverbookingAllowed(true)
           .build();
   ApiFuture<BatchReserveProposalsResponse> future =
       proposalServiceClient.batchReserveProposalsCallable().futureCall(request);
   // Do something.
   BatchReserveProposalsResponse response = future.get();
 }
 
Returns
Type Description
UnaryCallable<BatchReserveProposalsRequest,BatchReserveProposalsResponse>

batchResumeProposals(@Nullable NetworkName parent, List<String> names)

public final BatchResumeProposalsResponse batchResumeProposals(@Nullable NetworkName parent, List<String> names)

Resumes Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
   List<String> names = new ArrayList<>();
   BatchResumeProposalsResponse response =
       proposalServiceClient.batchResumeProposals(parent, names);
 }
 
Parameters
Name Description
parent @org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkName

Required. The parent resource where proposals will be resumed. Format: networks/{network_code}

names List<String>

Required. The resource names of the Proposals to resume. Format: networks/{network_code}/proposals/{proposal_id}

Returns
Type Description
BatchResumeProposalsResponse

batchResumeProposals(BatchResumeProposalsRequest request)

public final BatchResumeProposalsResponse batchResumeProposals(BatchResumeProposalsRequest request)

Resumes Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   BatchResumeProposalsRequest request =
       BatchResumeProposalsRequest.newBuilder()
           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
           .addAllNames(new ArrayList<String>())
           .build();
   BatchResumeProposalsResponse response = proposalServiceClient.batchResumeProposals(request);
 }
 
Parameter
Name Description
request BatchResumeProposalsRequest

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

Returns
Type Description
BatchResumeProposalsResponse

batchResumeProposals(String parent, List<String> names)

public final BatchResumeProposalsResponse batchResumeProposals(String parent, List<String> names)

Resumes Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   String parent = NetworkName.of("[NETWORK_CODE]").toString();
   List<String> names = new ArrayList<>();
   BatchResumeProposalsResponse response =
       proposalServiceClient.batchResumeProposals(parent, names);
 }
 
Parameters
Name Description
parent String

Required. The parent resource where proposals will be resumed. Format: networks/{network_code}

names List<String>

Required. The resource names of the Proposals to resume. Format: networks/{network_code}/proposals/{proposal_id}

Returns
Type Description
BatchResumeProposalsResponse

batchResumeProposalsCallable()

public final UnaryCallable<BatchResumeProposalsRequest,BatchResumeProposalsResponse> batchResumeProposalsCallable()

Resumes Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   BatchResumeProposalsRequest request =
       BatchResumeProposalsRequest.newBuilder()
           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
           .addAllNames(new ArrayList<String>())
           .build();
   ApiFuture<BatchResumeProposalsResponse> future =
       proposalServiceClient.batchResumeProposalsCallable().futureCall(request);
   // Do something.
   BatchResumeProposalsResponse response = future.get();
 }
 
Returns
Type Description
UnaryCallable<BatchResumeProposalsRequest,BatchResumeProposalsResponse>

batchTerminateProposals(@Nullable NetworkName parent, List<String> names)

public final BatchTerminateProposalsResponse batchTerminateProposals(@Nullable NetworkName parent, List<String> names)

Terminates negotiation on Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
   List<String> names = new ArrayList<>();
   BatchTerminateProposalsResponse response =
       proposalServiceClient.batchTerminateProposals(parent, names);
 }
 
Parameters
Name Description
parent @org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkName

Required. The parent resource where proposals will be terminated. Format: networks/{network_code}

names List<String>

Required. The resource names of the Proposals to terminate. Format: networks/{network_code}/proposals/{proposal_id}

Returns
Type Description
BatchTerminateProposalsResponse

batchTerminateProposals(BatchTerminateProposalsRequest request)

public final BatchTerminateProposalsResponse batchTerminateProposals(BatchTerminateProposalsRequest request)

Terminates negotiation on Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   BatchTerminateProposalsRequest request =
       BatchTerminateProposalsRequest.newBuilder()
           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
           .addAllNames(new ArrayList<String>())
           .build();
   BatchTerminateProposalsResponse response =
       proposalServiceClient.batchTerminateProposals(request);
 }
 
Parameter
Name Description
request BatchTerminateProposalsRequest

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

Returns
Type Description
BatchTerminateProposalsResponse

batchTerminateProposals(String parent, List<String> names)

public final BatchTerminateProposalsResponse batchTerminateProposals(String parent, List<String> names)

Terminates negotiation on Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   String parent = NetworkName.of("[NETWORK_CODE]").toString();
   List<String> names = new ArrayList<>();
   BatchTerminateProposalsResponse response =
       proposalServiceClient.batchTerminateProposals(parent, names);
 }
 
Parameters
Name Description
parent String

Required. The parent resource where proposals will be terminated. Format: networks/{network_code}

names List<String>

Required. The resource names of the Proposals to terminate. Format: networks/{network_code}/proposals/{proposal_id}

Returns
Type Description
BatchTerminateProposalsResponse

batchTerminateProposalsCallable()

public final UnaryCallable<BatchTerminateProposalsRequest,BatchTerminateProposalsResponse> batchTerminateProposalsCallable()

Terminates negotiation on Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   BatchTerminateProposalsRequest request =
       BatchTerminateProposalsRequest.newBuilder()
           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
           .addAllNames(new ArrayList<String>())
           .build();
   ApiFuture<BatchTerminateProposalsResponse> future =
       proposalServiceClient.batchTerminateProposalsCallable().futureCall(request);
   // Do something.
   BatchTerminateProposalsResponse response = future.get();
 }
 
Returns
Type Description
UnaryCallable<BatchTerminateProposalsRequest,BatchTerminateProposalsResponse>

batchUnarchiveProposals(@Nullable NetworkName parent, List<String> names)

public final BatchUnarchiveProposalsResponse batchUnarchiveProposals(@Nullable NetworkName parent, List<String> names)

Unarchives Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
   List<String> names = new ArrayList<>();
   BatchUnarchiveProposalsResponse response =
       proposalServiceClient.batchUnarchiveProposals(parent, names);
 }
 
Parameters
Name Description
parent @org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkName

Required. The parent resource where proposals will be unarchived. Format: networks/{network_code}

names List<String>

Required. The resource names of the Proposals to unarchive. Format: networks/{network_code}/proposals/{proposal_id}

Returns
Type Description
BatchUnarchiveProposalsResponse

batchUnarchiveProposals(BatchUnarchiveProposalsRequest request)

public final BatchUnarchiveProposalsResponse batchUnarchiveProposals(BatchUnarchiveProposalsRequest request)

Unarchives Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   BatchUnarchiveProposalsRequest request =
       BatchUnarchiveProposalsRequest.newBuilder()
           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
           .addAllNames(new ArrayList<String>())
           .build();
   BatchUnarchiveProposalsResponse response =
       proposalServiceClient.batchUnarchiveProposals(request);
 }
 
Parameter
Name Description
request BatchUnarchiveProposalsRequest

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

Returns
Type Description
BatchUnarchiveProposalsResponse

batchUnarchiveProposals(String parent, List<String> names)

public final BatchUnarchiveProposalsResponse batchUnarchiveProposals(String parent, List<String> names)

Unarchives Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   String parent = NetworkName.of("[NETWORK_CODE]").toString();
   List<String> names = new ArrayList<>();
   BatchUnarchiveProposalsResponse response =
       proposalServiceClient.batchUnarchiveProposals(parent, names);
 }
 
Parameters
Name Description
parent String

Required. The parent resource where proposals will be unarchived. Format: networks/{network_code}

names List<String>

Required. The resource names of the Proposals to unarchive. Format: networks/{network_code}/proposals/{proposal_id}

Returns
Type Description
BatchUnarchiveProposalsResponse

batchUnarchiveProposalsCallable()

public final UnaryCallable<BatchUnarchiveProposalsRequest,BatchUnarchiveProposalsResponse> batchUnarchiveProposalsCallable()

Unarchives Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   BatchUnarchiveProposalsRequest request =
       BatchUnarchiveProposalsRequest.newBuilder()
           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
           .addAllNames(new ArrayList<String>())
           .build();
   ApiFuture<BatchUnarchiveProposalsResponse> future =
       proposalServiceClient.batchUnarchiveProposalsCallable().futureCall(request);
   // Do something.
   BatchUnarchiveProposalsResponse response = future.get();
 }
 
Returns
Type Description
UnaryCallable<BatchUnarchiveProposalsRequest,BatchUnarchiveProposalsResponse>

batchUpdateProposals(@Nullable NetworkName parent, List<UpdateProposalRequest> requests)

public final BatchUpdateProposalsResponse batchUpdateProposals(@Nullable NetworkName parent, List<UpdateProposalRequest> requests)

Batch updates Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
   List<UpdateProposalRequest> requests = new ArrayList<>();
   BatchUpdateProposalsResponse response =
       proposalServiceClient.batchUpdateProposals(parent, requests);
 }
 
Parameters
Name Description
parent @org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkName

Required. The parent resource where Proposals will be updated. Format: networks/{network_code} The parent field in the UpdateProposalRequest must match this field.

requests List<UpdateProposalRequest>

Required. The Proposal objects to update. A maximum of 100 objects can be updated in a batch.

Returns
Type Description
BatchUpdateProposalsResponse

batchUpdateProposals(BatchUpdateProposalsRequest request)

public final BatchUpdateProposalsResponse batchUpdateProposals(BatchUpdateProposalsRequest request)

Batch updates Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   BatchUpdateProposalsRequest request =
       BatchUpdateProposalsRequest.newBuilder()
           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
           .addAllRequests(new ArrayList<UpdateProposalRequest>())
           .build();
   BatchUpdateProposalsResponse response = proposalServiceClient.batchUpdateProposals(request);
 }
 
Parameter
Name Description
request BatchUpdateProposalsRequest

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

Returns
Type Description
BatchUpdateProposalsResponse

batchUpdateProposals(String parent, List<UpdateProposalRequest> requests)

public final BatchUpdateProposalsResponse batchUpdateProposals(String parent, List<UpdateProposalRequest> requests)

Batch updates Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   String parent = NetworkName.of("[NETWORK_CODE]").toString();
   List<UpdateProposalRequest> requests = new ArrayList<>();
   BatchUpdateProposalsResponse response =
       proposalServiceClient.batchUpdateProposals(parent, requests);
 }
 
Parameters
Name Description
parent String

Required. The parent resource where Proposals will be updated. Format: networks/{network_code} The parent field in the UpdateProposalRequest must match this field.

requests List<UpdateProposalRequest>

Required. The Proposal objects to update. A maximum of 100 objects can be updated in a batch.

Returns
Type Description
BatchUpdateProposalsResponse

batchUpdateProposalsCallable()

public final UnaryCallable<BatchUpdateProposalsRequest,BatchUpdateProposalsResponse> batchUpdateProposalsCallable()

Batch updates Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   BatchUpdateProposalsRequest request =
       BatchUpdateProposalsRequest.newBuilder()
           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
           .addAllRequests(new ArrayList<UpdateProposalRequest>())
           .build();
   ApiFuture<BatchUpdateProposalsResponse> future =
       proposalServiceClient.batchUpdateProposalsCallable().futureCall(request);
   // Do something.
   BatchUpdateProposalsResponse response = future.get();
 }
 
Returns
Type Description
UnaryCallable<BatchUpdateProposalsRequest,BatchUpdateProposalsResponse>

close()

public final void close()

createProposal(@Nullable NetworkName parent, Proposal proposal)

public final Proposal createProposal(@Nullable NetworkName parent, Proposal proposal)

Creates a Proposal object.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
   Proposal proposal = Proposal.newBuilder().build();
   Proposal response = proposalServiceClient.createProposal(parent, proposal);
 }
 
Parameters
Name Description
parent @org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkName

Required. The parent resource where this Proposal will be created. Format: networks/{network_code}

proposal Proposal

Required. The Proposal to create.

Returns
Type Description
Proposal

createProposal(CreateProposalRequest request)

public final Proposal createProposal(CreateProposalRequest request)

Creates a Proposal object.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   CreateProposalRequest request =
       CreateProposalRequest.newBuilder()
           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
           .setProposal(Proposal.newBuilder().build())
           .build();
   Proposal response = proposalServiceClient.createProposal(request);
 }
 
Parameter
Name Description
request CreateProposalRequest

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

Returns
Type Description
Proposal

createProposal(String parent, Proposal proposal)

public final Proposal createProposal(String parent, Proposal proposal)

Creates a Proposal object.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   String parent = NetworkName.of("[NETWORK_CODE]").toString();
   Proposal proposal = Proposal.newBuilder().build();
   Proposal response = proposalServiceClient.createProposal(parent, proposal);
 }
 
Parameters
Name Description
parent String

Required. The parent resource where this Proposal will be created. Format: networks/{network_code}

proposal Proposal

Required. The Proposal to create.

Returns
Type Description
Proposal

createProposalCallable()

public final UnaryCallable<CreateProposalRequest,Proposal> createProposalCallable()

Creates a Proposal object.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   CreateProposalRequest request =
       CreateProposalRequest.newBuilder()
           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
           .setProposal(Proposal.newBuilder().build())
           .build();
   ApiFuture<Proposal> future =
       proposalServiceClient.createProposalCallable().futureCall(request);
   // Do something.
   Proposal response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CreateProposalRequest,Proposal>

fetchMarketplaceComments(@Nullable NetworkName parent, List<String> names)

public final ProposalServiceClient.FetchMarketplaceCommentsPagedResponse fetchMarketplaceComments(@Nullable NetworkName parent, List<String> names)

Fetches MarketplaceComments made on Proposals.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
   List<String> names = new ArrayList<>();
   for (MarketplaceComment element :
       proposalServiceClient.fetchMarketplaceComments(parent, names).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameters
Name Description
parent @org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkName

Required. The parent resource where MarketplaceComments will be fetched from. Format: networks/{network_code}

names List<String>

Required. The resource names of the Proposals for which to fetch marketplace comments. A maximum of 50 proposal names can be specified. Format: networks/{network_code}/proposals/{proposal_id}

Returns
Type Description
ProposalServiceClient.FetchMarketplaceCommentsPagedResponse

fetchMarketplaceComments(FetchMarketplaceCommentsRequest request)

public final ProposalServiceClient.FetchMarketplaceCommentsPagedResponse fetchMarketplaceComments(FetchMarketplaceCommentsRequest request)

Fetches MarketplaceComments made on Proposals.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   FetchMarketplaceCommentsRequest request =
       FetchMarketplaceCommentsRequest.newBuilder()
           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
           .addAllNames(new ArrayList<String>())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setSkip(3532159)
           .build();
   for (MarketplaceComment element :
       proposalServiceClient.fetchMarketplaceComments(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request FetchMarketplaceCommentsRequest

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

Returns
Type Description
ProposalServiceClient.FetchMarketplaceCommentsPagedResponse

fetchMarketplaceComments(String parent, List<String> names)

public final ProposalServiceClient.FetchMarketplaceCommentsPagedResponse fetchMarketplaceComments(String parent, List<String> names)

Fetches MarketplaceComments made on Proposals.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   String parent = NetworkName.of("[NETWORK_CODE]").toString();
   List<String> names = new ArrayList<>();
   for (MarketplaceComment element :
       proposalServiceClient.fetchMarketplaceComments(parent, names).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameters
Name Description
parent String

Required. The parent resource where MarketplaceComments will be fetched from. Format: networks/{network_code}

names List<String>

Required. The resource names of the Proposals for which to fetch marketplace comments. A maximum of 50 proposal names can be specified. Format: networks/{network_code}/proposals/{proposal_id}

Returns
Type Description
ProposalServiceClient.FetchMarketplaceCommentsPagedResponse

fetchMarketplaceCommentsCallable()

public final UnaryCallable<FetchMarketplaceCommentsRequest,FetchMarketplaceCommentsResponse> fetchMarketplaceCommentsCallable()

Fetches MarketplaceComments made on Proposals.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   FetchMarketplaceCommentsRequest request =
       FetchMarketplaceCommentsRequest.newBuilder()
           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
           .addAllNames(new ArrayList<String>())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setSkip(3532159)
           .build();
   while (true) {
     FetchMarketplaceCommentsResponse response =
         proposalServiceClient.fetchMarketplaceCommentsCallable().call(request);
     for (MarketplaceComment element : response.getMarketplaceCommentsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<FetchMarketplaceCommentsRequest,FetchMarketplaceCommentsResponse>

fetchMarketplaceCommentsPagedCallable()

public final UnaryCallable<FetchMarketplaceCommentsRequest,ProposalServiceClient.FetchMarketplaceCommentsPagedResponse> fetchMarketplaceCommentsPagedCallable()

Fetches MarketplaceComments made on Proposals.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   FetchMarketplaceCommentsRequest request =
       FetchMarketplaceCommentsRequest.newBuilder()
           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
           .addAllNames(new ArrayList<String>())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setSkip(3532159)
           .build();
   ApiFuture<MarketplaceComment> future =
       proposalServiceClient.fetchMarketplaceCommentsPagedCallable().futureCall(request);
   // Do something.
   for (MarketplaceComment element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<FetchMarketplaceCommentsRequest,FetchMarketplaceCommentsPagedResponse>

getProposal(@Nullable ProposalName name)

public final Proposal getProposal(@Nullable ProposalName name)

Retrieves a Proposal object.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   ProposalName name = ProposalName.of("[NETWORK_CODE]", "[PROPOSAL]");
   Proposal response = proposalServiceClient.getProposal(name);
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.ads.admanager.v1.ProposalName

Required. The resource name of the Proposal. Format: networks/{network_code}/proposals/{proposal_id}

Returns
Type Description
Proposal

getProposal(GetProposalRequest request)

public final Proposal getProposal(GetProposalRequest request)

Retrieves a Proposal object.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   GetProposalRequest request =
       GetProposalRequest.newBuilder()
           .setName(ProposalName.of("[NETWORK_CODE]", "[PROPOSAL]").toString())
           .build();
   Proposal response = proposalServiceClient.getProposal(request);
 }
 
Parameter
Name Description
request GetProposalRequest

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

Returns
Type Description
Proposal

getProposal(String name)

public final Proposal getProposal(String name)

Retrieves a Proposal object.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   String name = ProposalName.of("[NETWORK_CODE]", "[PROPOSAL]").toString();
   Proposal response = proposalServiceClient.getProposal(name);
 }
 
Parameter
Name Description
name String

Required. The resource name of the Proposal. Format: networks/{network_code}/proposals/{proposal_id}

Returns
Type Description
Proposal

getProposalCallable()

public final UnaryCallable<GetProposalRequest,Proposal> getProposalCallable()

Retrieves a Proposal object.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   GetProposalRequest request =
       GetProposalRequest.newBuilder()
           .setName(ProposalName.of("[NETWORK_CODE]", "[PROPOSAL]").toString())
           .build();
   ApiFuture<Proposal> future = proposalServiceClient.getProposalCallable().futureCall(request);
   // Do something.
   Proposal response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetProposalRequest,Proposal>

getSettings()

public final @Nullable ProposalServiceSettings getSettings()
Returns
Type Description
@org.jspecify.annotations.Nullable com.google.ads.admanager.v1.ProposalServiceSettings

getStub()

public ProposalServiceStub getStub()
Returns
Type Description
ProposalServiceStub

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listProposals(@Nullable NetworkName parent)

public final ProposalServiceClient.ListProposalsPagedResponse listProposals(@Nullable NetworkName parent)

Lists Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
   for (Proposal element : proposalServiceClient.listProposals(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent @org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkName

Required. The parent, which owns this collection of Proposals. Format: networks/{network_code}

Returns
Type Description
ProposalServiceClient.ListProposalsPagedResponse

listProposals(ListProposalsRequest request)

public final ProposalServiceClient.ListProposalsPagedResponse listProposals(ListProposalsRequest request)

Lists Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   ListProposalsRequest request =
       ListProposalsRequest.newBuilder()
           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .setSkip(3532159)
           .build();
   for (Proposal element : proposalServiceClient.listProposals(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListProposalsRequest

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

Returns
Type Description
ProposalServiceClient.ListProposalsPagedResponse

listProposals(String parent)

public final ProposalServiceClient.ListProposalsPagedResponse listProposals(String parent)

Lists Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   String parent = NetworkName.of("[NETWORK_CODE]").toString();
   for (Proposal element : proposalServiceClient.listProposals(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. The parent, which owns this collection of Proposals. Format: networks/{network_code}

Returns
Type Description
ProposalServiceClient.ListProposalsPagedResponse

listProposalsCallable()

public final UnaryCallable<ListProposalsRequest,ListProposalsResponse> listProposalsCallable()

Lists Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   ListProposalsRequest request =
       ListProposalsRequest.newBuilder()
           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .setSkip(3532159)
           .build();
   while (true) {
     ListProposalsResponse response =
         proposalServiceClient.listProposalsCallable().call(request);
     for (Proposal element : response.getProposalsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListProposalsRequest,ListProposalsResponse>

listProposalsPagedCallable()

public final UnaryCallable<ListProposalsRequest,ProposalServiceClient.ListProposalsPagedResponse> listProposalsPagedCallable()

Lists Proposal objects.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   ListProposalsRequest request =
       ListProposalsRequest.newBuilder()
           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .setSkip(3532159)
           .build();
   ApiFuture<Proposal> future =
       proposalServiceClient.listProposalsPagedCallable().futureCall(request);
   // Do something.
   for (Proposal element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListProposalsRequest,ListProposalsPagedResponse>

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateProposal(Proposal proposal, FieldMask updateMask)

public final Proposal updateProposal(Proposal proposal, FieldMask updateMask)

Updates a Proposal object.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   Proposal proposal = Proposal.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   Proposal response = proposalServiceClient.updateProposal(proposal, updateMask);
 }
 
Parameters
Name Description
proposal Proposal

Required. The Proposal to update.

The Proposal's name is used to identify the Proposal to update.

updateMask FieldMask

Optional. The list of fields to update.

Returns
Type Description
Proposal

updateProposal(UpdateProposalRequest request)

public final Proposal updateProposal(UpdateProposalRequest request)

Updates a Proposal object.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   UpdateProposalRequest request =
       UpdateProposalRequest.newBuilder()
           .setProposal(Proposal.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   Proposal response = proposalServiceClient.updateProposal(request);
 }
 
Parameter
Name Description
request UpdateProposalRequest

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

Returns
Type Description
Proposal

updateProposalCallable()

public final UnaryCallable<UpdateProposalRequest,Proposal> updateProposalCallable()

Updates a Proposal object.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
   UpdateProposalRequest request =
       UpdateProposalRequest.newBuilder()
           .setProposal(Proposal.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   ApiFuture<Proposal> future =
       proposalServiceClient.updateProposalCallable().futureCall(request);
   // Do something.
   Proposal response = future.get();
 }
 
Returns
Type Description
UnaryCallable<UpdateProposalRequest,Proposal>