Class TargetHttpsProxiesClient (1.45.0)

GitHub RepositoryProduct Reference

Service Description: The TargetHttpsProxies API.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   String project = "project-309310695";
   String targetHttpsProxy = "targetHttpsProxy833943732";
   TargetHttpsProxy response = targetHttpsProxiesClient.get(project, targetHttpsProxy);
 }
 

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

Methods
MethodDescriptionMethod Variants

AggregatedList

Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the specified project.

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

  • aggregatedList(AggregatedListTargetHttpsProxiesRequest request)

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

  • aggregatedList(String project)

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

  • aggregatedListPagedCallable()

  • aggregatedListCallable()

Delete

Deletes the specified TargetHttpsProxy resource.

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

  • deleteAsync(DeleteTargetHttpsProxyRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • deleteAsync(String project, String targetHttpsProxy)

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

  • deleteOperationCallable()

  • deleteCallable()

Get

Returns the specified TargetHttpsProxy resource.

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

  • get(GetTargetHttpsProxyRequest request)

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

  • get(String project, String targetHttpsProxy)

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

  • getCallable()

Insert

Creates a TargetHttpsProxy resource in the specified project using the data included in the request.

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

  • insertAsync(InsertTargetHttpsProxyRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • insertAsync(String project, TargetHttpsProxy targetHttpsProxyResource)

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

  • insertOperationCallable()

  • insertCallable()

List

Retrieves the list of TargetHttpsProxy resources available to the specified project.

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

  • list(ListTargetHttpsProxiesRequest request)

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

  • list(String project)

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

  • listPagedCallable()

  • listCallable()

Patch

Patches the specified TargetHttpsProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.

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

  • patchAsync(PatchTargetHttpsProxyRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • patchAsync(String project, String targetHttpsProxy, TargetHttpsProxy targetHttpsProxyResource)

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

  • patchOperationCallable()

  • patchCallable()

SetCertificateMap

Changes the Certificate Map for TargetHttpsProxy.

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

  • setCertificateMapAsync(SetCertificateMapTargetHttpsProxyRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • setCertificateMapAsync(String project, String targetHttpsProxy, TargetHttpsProxiesSetCertificateMapRequest targetHttpsProxiesSetCertificateMapRequestResource)

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

  • setCertificateMapOperationCallable()

  • setCertificateMapCallable()

SetQuicOverride

Sets the QUIC override policy for TargetHttpsProxy.

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

  • setQuicOverrideAsync(SetQuicOverrideTargetHttpsProxyRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • setQuicOverrideAsync(String project, String targetHttpsProxy, TargetHttpsProxiesSetQuicOverrideRequest targetHttpsProxiesSetQuicOverrideRequestResource)

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

  • setQuicOverrideOperationCallable()

  • setQuicOverrideCallable()

SetSslCertificates

Replaces SslCertificates for TargetHttpsProxy.

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

  • setSslCertificatesAsync(SetSslCertificatesTargetHttpsProxyRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • setSslCertificatesAsync(String project, String targetHttpsProxy, TargetHttpsProxiesSetSslCertificatesRequest targetHttpsProxiesSetSslCertificatesRequestResource)

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

  • setSslCertificatesOperationCallable()

  • setSslCertificatesCallable()

SetSslPolicy

Sets the SSL policy for TargetHttpsProxy. The SSL policy specifies the server-side support for SSL features. This affects connections between clients and the HTTPS proxy load balancer. They do not affect the connection between the load balancer and the backends.

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

  • setSslPolicyAsync(SetSslPolicyTargetHttpsProxyRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • setSslPolicyAsync(String project, String targetHttpsProxy, SslPolicyReference sslPolicyReferenceResource)

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

  • setSslPolicyOperationCallable()

  • setSslPolicyCallable()

SetUrlMap

Changes the URL map for TargetHttpsProxy.

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

  • setUrlMapAsync(SetUrlMapTargetHttpsProxyRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • setUrlMapAsync(String project, String targetHttpsProxy, UrlMapReference urlMapReferenceResource)

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

  • setUrlMapOperationCallable()

  • setUrlMapCallable()

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 TargetHttpsProxiesSettings 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
 TargetHttpsProxiesSettings targetHttpsProxiesSettings =
     TargetHttpsProxiesSettings.newBuilder()
         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
         .build();
 TargetHttpsProxiesClient targetHttpsProxiesClient =
     TargetHttpsProxiesClient.create(targetHttpsProxiesSettings);
 

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
 TargetHttpsProxiesSettings targetHttpsProxiesSettings =
     TargetHttpsProxiesSettings.newBuilder().setEndpoint(myEndpoint).build();
 TargetHttpsProxiesClient targetHttpsProxiesClient =
     TargetHttpsProxiesClient.create(targetHttpsProxiesSettings);
 

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

Inheritance

java.lang.Object > TargetHttpsProxiesClient

Static Methods

create()

public static final TargetHttpsProxiesClient create()

Constructs an instance of TargetHttpsProxiesClient with default settings.

Returns
TypeDescription
TargetHttpsProxiesClient
Exceptions
TypeDescription
IOException

create(TargetHttpsProxiesSettings settings)

public static final TargetHttpsProxiesClient create(TargetHttpsProxiesSettings settings)

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

Parameter
NameDescription
settingsTargetHttpsProxiesSettings
Returns
TypeDescription
TargetHttpsProxiesClient
Exceptions
TypeDescription
IOException

create(TargetHttpsProxiesStub stub)

public static final TargetHttpsProxiesClient create(TargetHttpsProxiesStub stub)

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

Parameter
NameDescription
stubTargetHttpsProxiesStub
Returns
TypeDescription
TargetHttpsProxiesClient

Constructors

TargetHttpsProxiesClient(TargetHttpsProxiesSettings settings)

protected TargetHttpsProxiesClient(TargetHttpsProxiesSettings settings)

Constructs an instance of TargetHttpsProxiesClient, 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
NameDescription
settingsTargetHttpsProxiesSettings

TargetHttpsProxiesClient(TargetHttpsProxiesStub stub)

protected TargetHttpsProxiesClient(TargetHttpsProxiesStub stub)
Parameter
NameDescription
stubTargetHttpsProxiesStub

Methods

aggregatedList(AggregatedListTargetHttpsProxiesRequest request)

public final TargetHttpsProxiesClient.AggregatedListPagedResponse aggregatedList(AggregatedListTargetHttpsProxiesRequest request)

Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the specified project.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   AggregatedListTargetHttpsProxiesRequest request =
       AggregatedListTargetHttpsProxiesRequest.newBuilder()
           .setFilter("filter-1274492040")
           .setIncludeAllScopes(true)
           .setMaxResults(1128457243)
           .setOrderBy("orderBy-1207110587")
           .setPageToken("pageToken873572522")
           .setProject("project-309310695")
           .setReturnPartialSuccess(true)
           .setServiceProjectNumber(-1293855239)
           .build();
   for (Map.Entry<String, TargetHttpsProxiesScopedList> element :
       targetHttpsProxiesClient.aggregatedList(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestAggregatedListTargetHttpsProxiesRequest

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

Returns
TypeDescription
TargetHttpsProxiesClient.AggregatedListPagedResponse

aggregatedList(String project)

public final TargetHttpsProxiesClient.AggregatedListPagedResponse aggregatedList(String project)

Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the specified project.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   String project = "project-309310695";
   for (Map.Entry<String, TargetHttpsProxiesScopedList> element :
       targetHttpsProxiesClient.aggregatedList(project).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
projectString

Name of the project scoping this request.

Returns
TypeDescription
TargetHttpsProxiesClient.AggregatedListPagedResponse

aggregatedListCallable()

public final UnaryCallable<AggregatedListTargetHttpsProxiesRequest,TargetHttpsProxyAggregatedList> aggregatedListCallable()

Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the specified project.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   AggregatedListTargetHttpsProxiesRequest request =
       AggregatedListTargetHttpsProxiesRequest.newBuilder()
           .setFilter("filter-1274492040")
           .setIncludeAllScopes(true)
           .setMaxResults(1128457243)
           .setOrderBy("orderBy-1207110587")
           .setPageToken("pageToken873572522")
           .setProject("project-309310695")
           .setReturnPartialSuccess(true)
           .setServiceProjectNumber(-1293855239)
           .build();
   while (true) {
     TargetHttpsProxyAggregatedList response =
         targetHttpsProxiesClient.aggregatedListCallable().call(request);
     for (Map.Entry<String, TargetHttpsProxiesScopedList> element : response.getItemsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<AggregatedListTargetHttpsProxiesRequest,TargetHttpsProxyAggregatedList>

aggregatedListPagedCallable()

public final UnaryCallable<AggregatedListTargetHttpsProxiesRequest,TargetHttpsProxiesClient.AggregatedListPagedResponse> aggregatedListPagedCallable()

Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the specified project.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   AggregatedListTargetHttpsProxiesRequest request =
       AggregatedListTargetHttpsProxiesRequest.newBuilder()
           .setFilter("filter-1274492040")
           .setIncludeAllScopes(true)
           .setMaxResults(1128457243)
           .setOrderBy("orderBy-1207110587")
           .setPageToken("pageToken873572522")
           .setProject("project-309310695")
           .setReturnPartialSuccess(true)
           .setServiceProjectNumber(-1293855239)
           .build();
   ApiFuture<Map.Entry<String, TargetHttpsProxiesScopedList>> future =
       targetHttpsProxiesClient.aggregatedListPagedCallable().futureCall(request);
   // Do something.
   for (Map.Entry<String, TargetHttpsProxiesScopedList> element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
TypeDescription
UnaryCallable<AggregatedListTargetHttpsProxiesRequest,AggregatedListPagedResponse>

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()

deleteAsync(DeleteTargetHttpsProxyRequest request)

public final OperationFuture<Operation,Operation> deleteAsync(DeleteTargetHttpsProxyRequest request)

Deletes the specified TargetHttpsProxy resource.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   DeleteTargetHttpsProxyRequest request =
       DeleteTargetHttpsProxyRequest.newBuilder()
           .setProject("project-309310695")
           .setRequestId("requestId693933066")
           .setTargetHttpsProxy("targetHttpsProxy833943732")
           .build();
   Operation response = targetHttpsProxiesClient.deleteAsync(request).get();
 }
 
Parameter
NameDescription
requestDeleteTargetHttpsProxyRequest

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

Returns
TypeDescription
OperationFuture<Operation,Operation>

deleteAsync(String project, String targetHttpsProxy)

public final OperationFuture<Operation,Operation> deleteAsync(String project, String targetHttpsProxy)

Deletes the specified TargetHttpsProxy resource.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   String project = "project-309310695";
   String targetHttpsProxy = "targetHttpsProxy833943732";
   Operation response = targetHttpsProxiesClient.deleteAsync(project, targetHttpsProxy).get();
 }
 
Parameters
NameDescription
projectString

Project ID for this request.

targetHttpsProxyString

Name of the TargetHttpsProxy resource to delete.

Returns
TypeDescription
OperationFuture<Operation,Operation>

deleteCallable()

public final UnaryCallable<DeleteTargetHttpsProxyRequest,Operation> deleteCallable()

Deletes the specified TargetHttpsProxy resource.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   DeleteTargetHttpsProxyRequest request =
       DeleteTargetHttpsProxyRequest.newBuilder()
           .setProject("project-309310695")
           .setRequestId("requestId693933066")
           .setTargetHttpsProxy("targetHttpsProxy833943732")
           .build();
   ApiFuture<Operation> future = targetHttpsProxiesClient.deleteCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<DeleteTargetHttpsProxyRequest,Operation>

deleteOperationCallable()

public final OperationCallable<DeleteTargetHttpsProxyRequest,Operation,Operation> deleteOperationCallable()

Deletes the specified TargetHttpsProxy resource.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   DeleteTargetHttpsProxyRequest request =
       DeleteTargetHttpsProxyRequest.newBuilder()
           .setProject("project-309310695")
           .setRequestId("requestId693933066")
           .setTargetHttpsProxy("targetHttpsProxy833943732")
           .build();
   OperationFuture<Operation, Operation> future =
       targetHttpsProxiesClient.deleteOperationCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
TypeDescription
OperationCallable<DeleteTargetHttpsProxyRequest,Operation,Operation>

get(GetTargetHttpsProxyRequest request)

public final TargetHttpsProxy get(GetTargetHttpsProxyRequest request)

Returns the specified TargetHttpsProxy resource.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   GetTargetHttpsProxyRequest request =
       GetTargetHttpsProxyRequest.newBuilder()
           .setProject("project-309310695")
           .setTargetHttpsProxy("targetHttpsProxy833943732")
           .build();
   TargetHttpsProxy response = targetHttpsProxiesClient.get(request);
 }
 
Parameter
NameDescription
requestGetTargetHttpsProxyRequest

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

Returns
TypeDescription
TargetHttpsProxy

get(String project, String targetHttpsProxy)

public final TargetHttpsProxy get(String project, String targetHttpsProxy)

Returns the specified TargetHttpsProxy resource.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   String project = "project-309310695";
   String targetHttpsProxy = "targetHttpsProxy833943732";
   TargetHttpsProxy response = targetHttpsProxiesClient.get(project, targetHttpsProxy);
 }
 
Parameters
NameDescription
projectString

Project ID for this request.

targetHttpsProxyString

Name of the TargetHttpsProxy resource to return.

Returns
TypeDescription
TargetHttpsProxy

getCallable()

public final UnaryCallable<GetTargetHttpsProxyRequest,TargetHttpsProxy> getCallable()

Returns the specified TargetHttpsProxy resource.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   GetTargetHttpsProxyRequest request =
       GetTargetHttpsProxyRequest.newBuilder()
           .setProject("project-309310695")
           .setTargetHttpsProxy("targetHttpsProxy833943732")
           .build();
   ApiFuture<TargetHttpsProxy> future =
       targetHttpsProxiesClient.getCallable().futureCall(request);
   // Do something.
   TargetHttpsProxy response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<GetTargetHttpsProxyRequest,TargetHttpsProxy>

getSettings()

public final TargetHttpsProxiesSettings getSettings()
Returns
TypeDescription
TargetHttpsProxiesSettings

getStub()

public TargetHttpsProxiesStub getStub()
Returns
TypeDescription
TargetHttpsProxiesStub

insertAsync(InsertTargetHttpsProxyRequest request)

public final OperationFuture<Operation,Operation> insertAsync(InsertTargetHttpsProxyRequest request)

Creates a TargetHttpsProxy resource in the specified project using the data included in the request.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   InsertTargetHttpsProxyRequest request =
       InsertTargetHttpsProxyRequest.newBuilder()
           .setProject("project-309310695")
           .setRequestId("requestId693933066")
           .setTargetHttpsProxyResource(TargetHttpsProxy.newBuilder().build())
           .build();
   Operation response = targetHttpsProxiesClient.insertAsync(request).get();
 }
 
Parameter
NameDescription
requestInsertTargetHttpsProxyRequest

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

Returns
TypeDescription
OperationFuture<Operation,Operation>

insertAsync(String project, TargetHttpsProxy targetHttpsProxyResource)

public final OperationFuture<Operation,Operation> insertAsync(String project, TargetHttpsProxy targetHttpsProxyResource)

Creates a TargetHttpsProxy resource in the specified project using the data included in the request.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   String project = "project-309310695";
   TargetHttpsProxy targetHttpsProxyResource = TargetHttpsProxy.newBuilder().build();
   Operation response =
       targetHttpsProxiesClient.insertAsync(project, targetHttpsProxyResource).get();
 }
 
Parameters
NameDescription
projectString

Project ID for this request.

targetHttpsProxyResourceTargetHttpsProxy

The body resource for this request

Returns
TypeDescription
OperationFuture<Operation,Operation>

insertCallable()

public final UnaryCallable<InsertTargetHttpsProxyRequest,Operation> insertCallable()

Creates a TargetHttpsProxy resource in the specified project using the data included in the request.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   InsertTargetHttpsProxyRequest request =
       InsertTargetHttpsProxyRequest.newBuilder()
           .setProject("project-309310695")
           .setRequestId("requestId693933066")
           .setTargetHttpsProxyResource(TargetHttpsProxy.newBuilder().build())
           .build();
   ApiFuture<Operation> future = targetHttpsProxiesClient.insertCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<InsertTargetHttpsProxyRequest,Operation>

insertOperationCallable()

public final OperationCallable<InsertTargetHttpsProxyRequest,Operation,Operation> insertOperationCallable()

Creates a TargetHttpsProxy resource in the specified project using the data included in the request.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   InsertTargetHttpsProxyRequest request =
       InsertTargetHttpsProxyRequest.newBuilder()
           .setProject("project-309310695")
           .setRequestId("requestId693933066")
           .setTargetHttpsProxyResource(TargetHttpsProxy.newBuilder().build())
           .build();
   OperationFuture<Operation, Operation> future =
       targetHttpsProxiesClient.insertOperationCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
TypeDescription
OperationCallable<InsertTargetHttpsProxyRequest,Operation,Operation>

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

list(ListTargetHttpsProxiesRequest request)

public final TargetHttpsProxiesClient.ListPagedResponse list(ListTargetHttpsProxiesRequest request)

Retrieves the list of TargetHttpsProxy resources available to the specified project.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   ListTargetHttpsProxiesRequest request =
       ListTargetHttpsProxiesRequest.newBuilder()
           .setFilter("filter-1274492040")
           .setMaxResults(1128457243)
           .setOrderBy("orderBy-1207110587")
           .setPageToken("pageToken873572522")
           .setProject("project-309310695")
           .setReturnPartialSuccess(true)
           .build();
   for (TargetHttpsProxy element : targetHttpsProxiesClient.list(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestListTargetHttpsProxiesRequest

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

Returns
TypeDescription
TargetHttpsProxiesClient.ListPagedResponse

list(String project)

public final TargetHttpsProxiesClient.ListPagedResponse list(String project)

Retrieves the list of TargetHttpsProxy resources available to the specified project.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   String project = "project-309310695";
   for (TargetHttpsProxy element : targetHttpsProxiesClient.list(project).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
projectString

Project ID for this request.

Returns
TypeDescription
TargetHttpsProxiesClient.ListPagedResponse

listCallable()

public final UnaryCallable<ListTargetHttpsProxiesRequest,TargetHttpsProxyList> listCallable()

Retrieves the list of TargetHttpsProxy resources available to the specified project.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   ListTargetHttpsProxiesRequest request =
       ListTargetHttpsProxiesRequest.newBuilder()
           .setFilter("filter-1274492040")
           .setMaxResults(1128457243)
           .setOrderBy("orderBy-1207110587")
           .setPageToken("pageToken873572522")
           .setProject("project-309310695")
           .setReturnPartialSuccess(true)
           .build();
   while (true) {
     TargetHttpsProxyList response = targetHttpsProxiesClient.listCallable().call(request);
     for (TargetHttpsProxy element : response.getItemsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListTargetHttpsProxiesRequest,TargetHttpsProxyList>

listPagedCallable()

public final UnaryCallable<ListTargetHttpsProxiesRequest,TargetHttpsProxiesClient.ListPagedResponse> listPagedCallable()

Retrieves the list of TargetHttpsProxy resources available to the specified project.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   ListTargetHttpsProxiesRequest request =
       ListTargetHttpsProxiesRequest.newBuilder()
           .setFilter("filter-1274492040")
           .setMaxResults(1128457243)
           .setOrderBy("orderBy-1207110587")
           .setPageToken("pageToken873572522")
           .setProject("project-309310695")
           .setReturnPartialSuccess(true)
           .build();
   ApiFuture<TargetHttpsProxy> future =
       targetHttpsProxiesClient.listPagedCallable().futureCall(request);
   // Do something.
   for (TargetHttpsProxy element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListTargetHttpsProxiesRequest,ListPagedResponse>

patchAsync(PatchTargetHttpsProxyRequest request)

public final OperationFuture<Operation,Operation> patchAsync(PatchTargetHttpsProxyRequest request)

Patches the specified TargetHttpsProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   PatchTargetHttpsProxyRequest request =
       PatchTargetHttpsProxyRequest.newBuilder()
           .setProject("project-309310695")
           .setRequestId("requestId693933066")
           .setTargetHttpsProxy("targetHttpsProxy833943732")
           .setTargetHttpsProxyResource(TargetHttpsProxy.newBuilder().build())
           .build();
   Operation response = targetHttpsProxiesClient.patchAsync(request).get();
 }
 
Parameter
NameDescription
requestPatchTargetHttpsProxyRequest

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

Returns
TypeDescription
OperationFuture<Operation,Operation>

patchAsync(String project, String targetHttpsProxy, TargetHttpsProxy targetHttpsProxyResource)

public final OperationFuture<Operation,Operation> patchAsync(String project, String targetHttpsProxy, TargetHttpsProxy targetHttpsProxyResource)

Patches the specified TargetHttpsProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   String project = "project-309310695";
   String targetHttpsProxy = "targetHttpsProxy833943732";
   TargetHttpsProxy targetHttpsProxyResource = TargetHttpsProxy.newBuilder().build();
   Operation response =
       targetHttpsProxiesClient
           .patchAsync(project, targetHttpsProxy, targetHttpsProxyResource)
           .get();
 }
 
Parameters
NameDescription
projectString

Project ID for this request.

targetHttpsProxyString

Name of the TargetHttpsProxy resource to patch.

targetHttpsProxyResourceTargetHttpsProxy

The body resource for this request

Returns
TypeDescription
OperationFuture<Operation,Operation>

patchCallable()

public final UnaryCallable<PatchTargetHttpsProxyRequest,Operation> patchCallable()

Patches the specified TargetHttpsProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   PatchTargetHttpsProxyRequest request =
       PatchTargetHttpsProxyRequest.newBuilder()
           .setProject("project-309310695")
           .setRequestId("requestId693933066")
           .setTargetHttpsProxy("targetHttpsProxy833943732")
           .setTargetHttpsProxyResource(TargetHttpsProxy.newBuilder().build())
           .build();
   ApiFuture<Operation> future = targetHttpsProxiesClient.patchCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<PatchTargetHttpsProxyRequest,Operation>

patchOperationCallable()

public final OperationCallable<PatchTargetHttpsProxyRequest,Operation,Operation> patchOperationCallable()

Patches the specified TargetHttpsProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   PatchTargetHttpsProxyRequest request =
       PatchTargetHttpsProxyRequest.newBuilder()
           .setProject("project-309310695")
           .setRequestId("requestId693933066")
           .setTargetHttpsProxy("targetHttpsProxy833943732")
           .setTargetHttpsProxyResource(TargetHttpsProxy.newBuilder().build())
           .build();
   OperationFuture<Operation, Operation> future =
       targetHttpsProxiesClient.patchOperationCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
TypeDescription
OperationCallable<PatchTargetHttpsProxyRequest,Operation,Operation>

setCertificateMapAsync(SetCertificateMapTargetHttpsProxyRequest request)

public final OperationFuture<Operation,Operation> setCertificateMapAsync(SetCertificateMapTargetHttpsProxyRequest request)

Changes the Certificate Map for TargetHttpsProxy.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   SetCertificateMapTargetHttpsProxyRequest request =
       SetCertificateMapTargetHttpsProxyRequest.newBuilder()
           .setProject("project-309310695")
           .setRequestId("requestId693933066")
           .setTargetHttpsProxiesSetCertificateMapRequestResource(
               TargetHttpsProxiesSetCertificateMapRequest.newBuilder().build())
           .setTargetHttpsProxy("targetHttpsProxy833943732")
           .build();
   Operation response = targetHttpsProxiesClient.setCertificateMapAsync(request).get();
 }
 
Parameter
NameDescription
requestSetCertificateMapTargetHttpsProxyRequest

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

Returns
TypeDescription
OperationFuture<Operation,Operation>

setCertificateMapAsync(String project, String targetHttpsProxy, TargetHttpsProxiesSetCertificateMapRequest targetHttpsProxiesSetCertificateMapRequestResource)

public final OperationFuture<Operation,Operation> setCertificateMapAsync(String project, String targetHttpsProxy, TargetHttpsProxiesSetCertificateMapRequest targetHttpsProxiesSetCertificateMapRequestResource)

Changes the Certificate Map for TargetHttpsProxy.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   String project = "project-309310695";
   String targetHttpsProxy = "targetHttpsProxy833943732";
   TargetHttpsProxiesSetCertificateMapRequest
       targetHttpsProxiesSetCertificateMapRequestResource =
           TargetHttpsProxiesSetCertificateMapRequest.newBuilder().build();
   Operation response =
       targetHttpsProxiesClient
           .setCertificateMapAsync(
               project, targetHttpsProxy, targetHttpsProxiesSetCertificateMapRequestResource)
           .get();
 }
 
Parameters
NameDescription
projectString

Project ID for this request.

targetHttpsProxyString

Name of the TargetHttpsProxy resource whose CertificateMap is to be set. The name must be 1-63 characters long, and comply with RFC1035.

targetHttpsProxiesSetCertificateMapRequestResourceTargetHttpsProxiesSetCertificateMapRequest

The body resource for this request

Returns
TypeDescription
OperationFuture<Operation,Operation>

setCertificateMapCallable()

public final UnaryCallable<SetCertificateMapTargetHttpsProxyRequest,Operation> setCertificateMapCallable()

Changes the Certificate Map for TargetHttpsProxy.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   SetCertificateMapTargetHttpsProxyRequest request =
       SetCertificateMapTargetHttpsProxyRequest.newBuilder()
           .setProject("project-309310695")
           .setRequestId("requestId693933066")
           .setTargetHttpsProxiesSetCertificateMapRequestResource(
               TargetHttpsProxiesSetCertificateMapRequest.newBuilder().build())
           .setTargetHttpsProxy("targetHttpsProxy833943732")
           .build();
   ApiFuture<Operation> future =
       targetHttpsProxiesClient.setCertificateMapCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<SetCertificateMapTargetHttpsProxyRequest,Operation>

setCertificateMapOperationCallable()

public final OperationCallable<SetCertificateMapTargetHttpsProxyRequest,Operation,Operation> setCertificateMapOperationCallable()

Changes the Certificate Map for TargetHttpsProxy.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   SetCertificateMapTargetHttpsProxyRequest request =
       SetCertificateMapTargetHttpsProxyRequest.newBuilder()
           .setProject("project-309310695")
           .setRequestId("requestId693933066")
           .setTargetHttpsProxiesSetCertificateMapRequestResource(
               TargetHttpsProxiesSetCertificateMapRequest.newBuilder().build())
           .setTargetHttpsProxy("targetHttpsProxy833943732")
           .build();
   OperationFuture<Operation, Operation> future =
       targetHttpsProxiesClient.setCertificateMapOperationCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
TypeDescription
OperationCallable<SetCertificateMapTargetHttpsProxyRequest,Operation,Operation>

setQuicOverrideAsync(SetQuicOverrideTargetHttpsProxyRequest request)

public final OperationFuture<Operation,Operation> setQuicOverrideAsync(SetQuicOverrideTargetHttpsProxyRequest request)

Sets the QUIC override policy for TargetHttpsProxy.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   SetQuicOverrideTargetHttpsProxyRequest request =
       SetQuicOverrideTargetHttpsProxyRequest.newBuilder()
           .setProject("project-309310695")
           .setRequestId("requestId693933066")
           .setTargetHttpsProxiesSetQuicOverrideRequestResource(
               TargetHttpsProxiesSetQuicOverrideRequest.newBuilder().build())
           .setTargetHttpsProxy("targetHttpsProxy833943732")
           .build();
   Operation response = targetHttpsProxiesClient.setQuicOverrideAsync(request).get();
 }
 
Parameter
NameDescription
requestSetQuicOverrideTargetHttpsProxyRequest

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

Returns
TypeDescription
OperationFuture<Operation,Operation>

setQuicOverrideAsync(String project, String targetHttpsProxy, TargetHttpsProxiesSetQuicOverrideRequest targetHttpsProxiesSetQuicOverrideRequestResource)

public final OperationFuture<Operation,Operation> setQuicOverrideAsync(String project, String targetHttpsProxy, TargetHttpsProxiesSetQuicOverrideRequest targetHttpsProxiesSetQuicOverrideRequestResource)

Sets the QUIC override policy for TargetHttpsProxy.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   String project = "project-309310695";
   String targetHttpsProxy = "targetHttpsProxy833943732";
   TargetHttpsProxiesSetQuicOverrideRequest targetHttpsProxiesSetQuicOverrideRequestResource =
       TargetHttpsProxiesSetQuicOverrideRequest.newBuilder().build();
   Operation response =
       targetHttpsProxiesClient
           .setQuicOverrideAsync(
               project, targetHttpsProxy, targetHttpsProxiesSetQuicOverrideRequestResource)
           .get();
 }
 
Parameters
NameDescription
projectString

Project ID for this request.

targetHttpsProxyString

Name of the TargetHttpsProxy resource to set the QUIC override policy for. The name should conform to RFC1035.

targetHttpsProxiesSetQuicOverrideRequestResourceTargetHttpsProxiesSetQuicOverrideRequest

The body resource for this request

Returns
TypeDescription
OperationFuture<Operation,Operation>

setQuicOverrideCallable()

public final UnaryCallable<SetQuicOverrideTargetHttpsProxyRequest,Operation> setQuicOverrideCallable()

Sets the QUIC override policy for TargetHttpsProxy.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   SetQuicOverrideTargetHttpsProxyRequest request =
       SetQuicOverrideTargetHttpsProxyRequest.newBuilder()
           .setProject("project-309310695")
           .setRequestId("requestId693933066")
           .setTargetHttpsProxiesSetQuicOverrideRequestResource(
               TargetHttpsProxiesSetQuicOverrideRequest.newBuilder().build())
           .setTargetHttpsProxy("targetHttpsProxy833943732")
           .build();
   ApiFuture<Operation> future =
       targetHttpsProxiesClient.setQuicOverrideCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<SetQuicOverrideTargetHttpsProxyRequest,Operation>

setQuicOverrideOperationCallable()

public final OperationCallable<SetQuicOverrideTargetHttpsProxyRequest,Operation,Operation> setQuicOverrideOperationCallable()

Sets the QUIC override policy for TargetHttpsProxy.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   SetQuicOverrideTargetHttpsProxyRequest request =
       SetQuicOverrideTargetHttpsProxyRequest.newBuilder()
           .setProject("project-309310695")
           .setRequestId("requestId693933066")
           .setTargetHttpsProxiesSetQuicOverrideRequestResource(
               TargetHttpsProxiesSetQuicOverrideRequest.newBuilder().build())
           .setTargetHttpsProxy("targetHttpsProxy833943732")
           .build();
   OperationFuture<Operation, Operation> future =
       targetHttpsProxiesClient.setQuicOverrideOperationCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
TypeDescription
OperationCallable<SetQuicOverrideTargetHttpsProxyRequest,Operation,Operation>

setSslCertificatesAsync(SetSslCertificatesTargetHttpsProxyRequest request)

public final OperationFuture<Operation,Operation> setSslCertificatesAsync(SetSslCertificatesTargetHttpsProxyRequest request)

Replaces SslCertificates for TargetHttpsProxy.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   SetSslCertificatesTargetHttpsProxyRequest request =
       SetSslCertificatesTargetHttpsProxyRequest.newBuilder()
           .setProject("project-309310695")
           .setRequestId("requestId693933066")
           .setTargetHttpsProxiesSetSslCertificatesRequestResource(
               TargetHttpsProxiesSetSslCertificatesRequest.newBuilder().build())
           .setTargetHttpsProxy("targetHttpsProxy833943732")
           .build();
   Operation response = targetHttpsProxiesClient.setSslCertificatesAsync(request).get();
 }
 
Parameter
NameDescription
requestSetSslCertificatesTargetHttpsProxyRequest

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

Returns
TypeDescription
OperationFuture<Operation,Operation>

setSslCertificatesAsync(String project, String targetHttpsProxy, TargetHttpsProxiesSetSslCertificatesRequest targetHttpsProxiesSetSslCertificatesRequestResource)

public final OperationFuture<Operation,Operation> setSslCertificatesAsync(String project, String targetHttpsProxy, TargetHttpsProxiesSetSslCertificatesRequest targetHttpsProxiesSetSslCertificatesRequestResource)

Replaces SslCertificates for TargetHttpsProxy.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   String project = "project-309310695";
   String targetHttpsProxy = "targetHttpsProxy833943732";
   TargetHttpsProxiesSetSslCertificatesRequest
       targetHttpsProxiesSetSslCertificatesRequestResource =
           TargetHttpsProxiesSetSslCertificatesRequest.newBuilder().build();
   Operation response =
       targetHttpsProxiesClient
           .setSslCertificatesAsync(
               project, targetHttpsProxy, targetHttpsProxiesSetSslCertificatesRequestResource)
           .get();
 }
 
Parameters
NameDescription
projectString

Project ID for this request.

targetHttpsProxyString

Name of the TargetHttpsProxy resource to set an SslCertificates resource for.

targetHttpsProxiesSetSslCertificatesRequestResourceTargetHttpsProxiesSetSslCertificatesRequest

The body resource for this request

Returns
TypeDescription
OperationFuture<Operation,Operation>

setSslCertificatesCallable()

public final UnaryCallable<SetSslCertificatesTargetHttpsProxyRequest,Operation> setSslCertificatesCallable()

Replaces SslCertificates for TargetHttpsProxy.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   SetSslCertificatesTargetHttpsProxyRequest request =
       SetSslCertificatesTargetHttpsProxyRequest.newBuilder()
           .setProject("project-309310695")
           .setRequestId("requestId693933066")
           .setTargetHttpsProxiesSetSslCertificatesRequestResource(
               TargetHttpsProxiesSetSslCertificatesRequest.newBuilder().build())
           .setTargetHttpsProxy("targetHttpsProxy833943732")
           .build();
   ApiFuture<Operation> future =
       targetHttpsProxiesClient.setSslCertificatesCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<SetSslCertificatesTargetHttpsProxyRequest,Operation>

setSslCertificatesOperationCallable()

public final OperationCallable<SetSslCertificatesTargetHttpsProxyRequest,Operation,Operation> setSslCertificatesOperationCallable()

Replaces SslCertificates for TargetHttpsProxy.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   SetSslCertificatesTargetHttpsProxyRequest request =
       SetSslCertificatesTargetHttpsProxyRequest.newBuilder()
           .setProject("project-309310695")
           .setRequestId("requestId693933066")
           .setTargetHttpsProxiesSetSslCertificatesRequestResource(
               TargetHttpsProxiesSetSslCertificatesRequest.newBuilder().build())
           .setTargetHttpsProxy("targetHttpsProxy833943732")
           .build();
   OperationFuture<Operation, Operation> future =
       targetHttpsProxiesClient.setSslCertificatesOperationCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
TypeDescription
OperationCallable<SetSslCertificatesTargetHttpsProxyRequest,Operation,Operation>

setSslPolicyAsync(SetSslPolicyTargetHttpsProxyRequest request)

public final OperationFuture<Operation,Operation> setSslPolicyAsync(SetSslPolicyTargetHttpsProxyRequest request)

Sets the SSL policy for TargetHttpsProxy. The SSL policy specifies the server-side support for SSL features. This affects connections between clients and the HTTPS proxy load balancer. They do not affect the connection between the load balancer and the backends.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   SetSslPolicyTargetHttpsProxyRequest request =
       SetSslPolicyTargetHttpsProxyRequest.newBuilder()
           .setProject("project-309310695")
           .setRequestId("requestId693933066")
           .setSslPolicyReferenceResource(SslPolicyReference.newBuilder().build())
           .setTargetHttpsProxy("targetHttpsProxy833943732")
           .build();
   Operation response = targetHttpsProxiesClient.setSslPolicyAsync(request).get();
 }
 
Parameter
NameDescription
requestSetSslPolicyTargetHttpsProxyRequest

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

Returns
TypeDescription
OperationFuture<Operation,Operation>

setSslPolicyAsync(String project, String targetHttpsProxy, SslPolicyReference sslPolicyReferenceResource)

public final OperationFuture<Operation,Operation> setSslPolicyAsync(String project, String targetHttpsProxy, SslPolicyReference sslPolicyReferenceResource)

Sets the SSL policy for TargetHttpsProxy. The SSL policy specifies the server-side support for SSL features. This affects connections between clients and the HTTPS proxy load balancer. They do not affect the connection between the load balancer and the backends.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   String project = "project-309310695";
   String targetHttpsProxy = "targetHttpsProxy833943732";
   SslPolicyReference sslPolicyReferenceResource = SslPolicyReference.newBuilder().build();
   Operation response =
       targetHttpsProxiesClient
           .setSslPolicyAsync(project, targetHttpsProxy, sslPolicyReferenceResource)
           .get();
 }
 
Parameters
NameDescription
projectString

Project ID for this request.

targetHttpsProxyString

Name of the TargetHttpsProxy resource whose SSL policy is to be set. The name must be 1-63 characters long, and comply with RFC1035.

sslPolicyReferenceResourceSslPolicyReference

The body resource for this request

Returns
TypeDescription
OperationFuture<Operation,Operation>

setSslPolicyCallable()

public final UnaryCallable<SetSslPolicyTargetHttpsProxyRequest,Operation> setSslPolicyCallable()

Sets the SSL policy for TargetHttpsProxy. The SSL policy specifies the server-side support for SSL features. This affects connections between clients and the HTTPS proxy load balancer. They do not affect the connection between the load balancer and the backends.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   SetSslPolicyTargetHttpsProxyRequest request =
       SetSslPolicyTargetHttpsProxyRequest.newBuilder()
           .setProject("project-309310695")
           .setRequestId("requestId693933066")
           .setSslPolicyReferenceResource(SslPolicyReference.newBuilder().build())
           .setTargetHttpsProxy("targetHttpsProxy833943732")
           .build();
   ApiFuture<Operation> future =
       targetHttpsProxiesClient.setSslPolicyCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<SetSslPolicyTargetHttpsProxyRequest,Operation>

setSslPolicyOperationCallable()

public final OperationCallable<SetSslPolicyTargetHttpsProxyRequest,Operation,Operation> setSslPolicyOperationCallable()

Sets the SSL policy for TargetHttpsProxy. The SSL policy specifies the server-side support for SSL features. This affects connections between clients and the HTTPS proxy load balancer. They do not affect the connection between the load balancer and the backends.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   SetSslPolicyTargetHttpsProxyRequest request =
       SetSslPolicyTargetHttpsProxyRequest.newBuilder()
           .setProject("project-309310695")
           .setRequestId("requestId693933066")
           .setSslPolicyReferenceResource(SslPolicyReference.newBuilder().build())
           .setTargetHttpsProxy("targetHttpsProxy833943732")
           .build();
   OperationFuture<Operation, Operation> future =
       targetHttpsProxiesClient.setSslPolicyOperationCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
TypeDescription
OperationCallable<SetSslPolicyTargetHttpsProxyRequest,Operation,Operation>

setUrlMapAsync(SetUrlMapTargetHttpsProxyRequest request)

public final OperationFuture<Operation,Operation> setUrlMapAsync(SetUrlMapTargetHttpsProxyRequest request)

Changes the URL map for TargetHttpsProxy.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   SetUrlMapTargetHttpsProxyRequest request =
       SetUrlMapTargetHttpsProxyRequest.newBuilder()
           .setProject("project-309310695")
           .setRequestId("requestId693933066")
           .setTargetHttpsProxy("targetHttpsProxy833943732")
           .setUrlMapReferenceResource(UrlMapReference.newBuilder().build())
           .build();
   Operation response = targetHttpsProxiesClient.setUrlMapAsync(request).get();
 }
 
Parameter
NameDescription
requestSetUrlMapTargetHttpsProxyRequest

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

Returns
TypeDescription
OperationFuture<Operation,Operation>

setUrlMapAsync(String project, String targetHttpsProxy, UrlMapReference urlMapReferenceResource)

public final OperationFuture<Operation,Operation> setUrlMapAsync(String project, String targetHttpsProxy, UrlMapReference urlMapReferenceResource)

Changes the URL map for TargetHttpsProxy.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   String project = "project-309310695";
   String targetHttpsProxy = "targetHttpsProxy833943732";
   UrlMapReference urlMapReferenceResource = UrlMapReference.newBuilder().build();
   Operation response =
       targetHttpsProxiesClient
           .setUrlMapAsync(project, targetHttpsProxy, urlMapReferenceResource)
           .get();
 }
 
Parameters
NameDescription
projectString

Project ID for this request.

targetHttpsProxyString

Name of the TargetHttpsProxy resource whose URL map is to be set.

urlMapReferenceResourceUrlMapReference

The body resource for this request

Returns
TypeDescription
OperationFuture<Operation,Operation>

setUrlMapCallable()

public final UnaryCallable<SetUrlMapTargetHttpsProxyRequest,Operation> setUrlMapCallable()

Changes the URL map for TargetHttpsProxy.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   SetUrlMapTargetHttpsProxyRequest request =
       SetUrlMapTargetHttpsProxyRequest.newBuilder()
           .setProject("project-309310695")
           .setRequestId("requestId693933066")
           .setTargetHttpsProxy("targetHttpsProxy833943732")
           .setUrlMapReferenceResource(UrlMapReference.newBuilder().build())
           .build();
   ApiFuture<Operation> future =
       targetHttpsProxiesClient.setUrlMapCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<SetUrlMapTargetHttpsProxyRequest,Operation>

setUrlMapOperationCallable()

public final OperationCallable<SetUrlMapTargetHttpsProxyRequest,Operation,Operation> setUrlMapOperationCallable()

Changes the URL map for TargetHttpsProxy.

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 (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   SetUrlMapTargetHttpsProxyRequest request =
       SetUrlMapTargetHttpsProxyRequest.newBuilder()
           .setProject("project-309310695")
           .setRequestId("requestId693933066")
           .setTargetHttpsProxy("targetHttpsProxy833943732")
           .setUrlMapReferenceResource(UrlMapReference.newBuilder().build())
           .build();
   OperationFuture<Operation, Operation> future =
       targetHttpsProxiesClient.setUrlMapOperationCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
TypeDescription
OperationCallable<SetUrlMapTargetHttpsProxyRequest,Operation,Operation>

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()