Class TargetHttpsProxiesClient

  • All Implemented Interfaces:
    com.google.api.gax.core.BackgroundResource, AutoCloseable

    @Generated("by gapic-generator-java")
    public class TargetHttpsProxiesClient
    extends Object
    implements com.google.api.gax.core.BackgroundResource
    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().

    The surface of this class includes several types of Java methods for each of the API's methods:

    1. A "flattened" method. With this type of method, the fields of the request type have been converted into function parameters. It may be the case that not all fields are available as parameters, and not every API method will have a flattened method entry point.
    2. A "request object" method. This type of method only takes one parameter, a request object, which must be constructed before the call. Not every API method will have a request object method.
    3. A "callable" method. This type of method takes no parameters and returns an immutable API callable object, which can be used to initiate calls to the service.

    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.

    • Constructor Detail

      • TargetHttpsProxiesClient

        protected TargetHttpsProxiesClient​(TargetHttpsProxiesSettings settings)
                                    throws IOException
        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.
        Throws:
        IOException
    • Method Detail

      • create

        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).
      • aggregatedList

        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);
           }
         }
         
        Parameters:
        project - Name of the project scoping this request.
        Throws:
        com.google.api.gax.rpc.ApiException - if the remote call fails
      • aggregatedList

        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)
                   .build();
           for (Map.Entry<String, TargetHttpsProxiesScopedList> element :
               targetHttpsProxiesClient.aggregatedList(request).iterateAll()) {
             // doThingsWith(element);
           }
         }
         
        Parameters:
        request - The request object containing all of the parameters for the API call.
        Throws:
        com.google.api.gax.rpc.ApiException - if the remote call fails
      • aggregatedListPagedCallable

        public final com.google.api.gax.rpc.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)
                   .build();
           ApiFuture<Map.Entry<String, TargetHttpsProxiesScopedList>> future =
               targetHttpsProxiesClient.aggregatedListPagedCallable().futureCall(request);
           // Do something.
           for (Map.Entry<String, TargetHttpsProxiesScopedList> element : future.get().iterateAll()) {
             // doThingsWith(element);
           }
         }
         
      • aggregatedListCallable

        public final com.google.api.gax.rpc.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)
                   .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;
             }
           }
         }
         
      • deleteAsync

        public final com.google.api.gax.longrunning.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:
        project - Project ID for this request.
        targetHttpsProxy - Name of the TargetHttpsProxy resource to delete.
        Throws:
        com.google.api.gax.rpc.ApiException - if the remote call fails
      • deleteAsync

        @BetaApi("The surface for long-running operations is not stable yet and may change in the future.")
        public final com.google.api.gax.longrunning.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();
         }
         
        Parameters:
        request - The request object containing all of the parameters for the API call.
        Throws:
        com.google.api.gax.rpc.ApiException - if the remote call fails
      • deleteOperationCallable

        public final com.google.api.gax.rpc.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();
         }
         
      • deleteCallable

        public final com.google.api.gax.rpc.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();
         }
         
      • get

        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:
        project - Project ID for this request.
        targetHttpsProxy - Name of the TargetHttpsProxy resource to return.
        Throws:
        com.google.api.gax.rpc.ApiException - if the remote call fails
      • get

        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);
         }
         
        Parameters:
        request - The request object containing all of the parameters for the API call.
        Throws:
        com.google.api.gax.rpc.ApiException - if the remote call fails
      • getCallable

        public final com.google.api.gax.rpc.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();
         }
         
      • insertAsync

        public final com.google.api.gax.longrunning.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:
        project - Project ID for this request.
        targetHttpsProxyResource - The body resource for this request
        Throws:
        com.google.api.gax.rpc.ApiException - if the remote call fails
      • insertAsync

        @BetaApi("The surface for long-running operations is not stable yet and may change in the future.")
        public final com.google.api.gax.longrunning.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();
         }
         
        Parameters:
        request - The request object containing all of the parameters for the API call.
        Throws:
        com.google.api.gax.rpc.ApiException - if the remote call fails
      • insertOperationCallable

        public final com.google.api.gax.rpc.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();
         }
         
      • insertCallable

        public final com.google.api.gax.rpc.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();
         }
         
      • list

        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);
           }
         }
         
        Parameters:
        project - Project ID for this request.
        Throws:
        com.google.api.gax.rpc.ApiException - if the remote call fails
      • list

        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);
           }
         }
         
        Parameters:
        request - The request object containing all of the parameters for the API call.
        Throws:
        com.google.api.gax.rpc.ApiException - if the remote call fails
      • listPagedCallable

        public final com.google.api.gax.rpc.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);
           }
         }
         
      • listCallable

        public final com.google.api.gax.rpc.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;
             }
           }
         }
         
      • patchAsync

        public final com.google.api.gax.longrunning.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:
        project - Project ID for this request.
        targetHttpsProxy - Name of the TargetHttpsProxy resource to patch.
        targetHttpsProxyResource - The body resource for this request
        Throws:
        com.google.api.gax.rpc.ApiException - if the remote call fails
      • patchAsync

        @BetaApi("The surface for long-running operations is not stable yet and may change in the future.")
        public final com.google.api.gax.longrunning.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();
         }
         
        Parameters:
        request - The request object containing all of the parameters for the API call.
        Throws:
        com.google.api.gax.rpc.ApiException - if the remote call fails
      • patchOperationCallable

        public final com.google.api.gax.rpc.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();
         }
         
      • patchCallable

        public final com.google.api.gax.rpc.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();
         }
         
      • setCertificateMapAsync

        public final com.google.api.gax.longrunning.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:
        project - Project ID for this request.
        targetHttpsProxy - Name of the TargetHttpsProxy resource whose CertificateMap is to be set. The name must be 1-63 characters long, and comply with RFC1035.
        targetHttpsProxiesSetCertificateMapRequestResource - The body resource for this request
        Throws:
        com.google.api.gax.rpc.ApiException - if the remote call fails
      • setCertificateMapAsync

        @BetaApi("The surface for long-running operations is not stable yet and may change in the future.")
        public final com.google.api.gax.longrunning.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();
         }
         
        Parameters:
        request - The request object containing all of the parameters for the API call.
        Throws:
        com.google.api.gax.rpc.ApiException - if the remote call fails
      • setCertificateMapOperationCallable

        public final com.google.api.gax.rpc.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();
         }
         
      • setCertificateMapCallable

        public final com.google.api.gax.rpc.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();
         }
         
      • setQuicOverrideAsync

        public final com.google.api.gax.longrunning.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:
        project - Project ID for this request.
        targetHttpsProxy - Name of the TargetHttpsProxy resource to set the QUIC override policy for. The name should conform to RFC1035.
        targetHttpsProxiesSetQuicOverrideRequestResource - The body resource for this request
        Throws:
        com.google.api.gax.rpc.ApiException - if the remote call fails
      • setQuicOverrideAsync

        @BetaApi("The surface for long-running operations is not stable yet and may change in the future.")
        public final com.google.api.gax.longrunning.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();
         }
         
        Parameters:
        request - The request object containing all of the parameters for the API call.
        Throws:
        com.google.api.gax.rpc.ApiException - if the remote call fails
      • setQuicOverrideOperationCallable

        public final com.google.api.gax.rpc.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();
         }
         
      • setQuicOverrideCallable

        public final com.google.api.gax.rpc.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();
         }
         
      • setSslCertificatesAsync

        public final com.google.api.gax.longrunning.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:
        project - Project ID for this request.
        targetHttpsProxy - Name of the TargetHttpsProxy resource to set an SslCertificates resource for.
        targetHttpsProxiesSetSslCertificatesRequestResource - The body resource for this request
        Throws:
        com.google.api.gax.rpc.ApiException - if the remote call fails
      • setSslCertificatesAsync

        @BetaApi("The surface for long-running operations is not stable yet and may change in the future.")
        public final com.google.api.gax.longrunning.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();
         }
         
        Parameters:
        request - The request object containing all of the parameters for the API call.
        Throws:
        com.google.api.gax.rpc.ApiException - if the remote call fails
      • setSslCertificatesOperationCallable

        public final com.google.api.gax.rpc.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();
         }
         
      • setSslCertificatesCallable

        public final com.google.api.gax.rpc.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();
         }
         
      • setSslPolicyAsync

        public final com.google.api.gax.longrunning.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:
        project - Project ID for this request.
        targetHttpsProxy - Name of the TargetHttpsProxy resource whose SSL policy is to be set. The name must be 1-63 characters long, and comply with RFC1035.
        sslPolicyReferenceResource - The body resource for this request
        Throws:
        com.google.api.gax.rpc.ApiException - if the remote call fails
      • setSslPolicyAsync

        @BetaApi("The surface for long-running operations is not stable yet and may change in the future.")
        public final com.google.api.gax.longrunning.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();
         }
         
        Parameters:
        request - The request object containing all of the parameters for the API call.
        Throws:
        com.google.api.gax.rpc.ApiException - if the remote call fails
      • setSslPolicyOperationCallable

        public final com.google.api.gax.rpc.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();
         }
         
      • setSslPolicyCallable

        public final com.google.api.gax.rpc.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();
         }
         
      • setUrlMapAsync

        public final com.google.api.gax.longrunning.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:
        project - Project ID for this request.
        targetHttpsProxy - Name of the TargetHttpsProxy resource whose URL map is to be set.
        urlMapReferenceResource - The body resource for this request
        Throws:
        com.google.api.gax.rpc.ApiException - if the remote call fails
      • setUrlMapAsync

        @BetaApi("The surface for long-running operations is not stable yet and may change in the future.")
        public final com.google.api.gax.longrunning.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();
         }
         
        Parameters:
        request - The request object containing all of the parameters for the API call.
        Throws:
        com.google.api.gax.rpc.ApiException - if the remote call fails
      • setUrlMapOperationCallable

        public final com.google.api.gax.rpc.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();
         }
         
      • setUrlMapCallable

        public final com.google.api.gax.rpc.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();
         }
         
      • shutdown

        public void shutdown()
        Specified by:
        shutdown in interface com.google.api.gax.core.BackgroundResource
      • isShutdown

        public boolean isShutdown()
        Specified by:
        isShutdown in interface com.google.api.gax.core.BackgroundResource
      • isTerminated

        public boolean isTerminated()
        Specified by:
        isTerminated in interface com.google.api.gax.core.BackgroundResource
      • shutdownNow

        public void shutdownNow()
        Specified by:
        shutdownNow in interface com.google.api.gax.core.BackgroundResource