diff --git a/java-vmwareengine/README.md b/java-vmwareengine/README.md index 7f1a9738d023..435c2b4244ce 100644 --- a/java-vmwareengine/README.md +++ b/java-vmwareengine/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.16.0 + 26.17.0 pom import diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineClient.java b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineClient.java index 777e7ddc284e..03f9a930bdd2 100644 --- a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineClient.java +++ b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineClient.java @@ -2239,6 +2239,262 @@ public final UnaryCallable listSubnetsC return stub.listSubnetsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single subnet. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   SubnetName name = SubnetName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[SUBNET]");
+   *   Subnet response = vmwareEngineClient.getSubnet(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the subnet to retrieve. Resource names are + * schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/subnets/my-subnet` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Subnet getSubnet(SubnetName name) { + GetSubnetRequest request = + GetSubnetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getSubnet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single subnet. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   String name =
+   *       SubnetName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[SUBNET]").toString();
+   *   Subnet response = vmwareEngineClient.getSubnet(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the subnet to retrieve. Resource names are + * schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/subnets/my-subnet` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Subnet getSubnet(String name) { + GetSubnetRequest request = GetSubnetRequest.newBuilder().setName(name).build(); + return getSubnet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single subnet. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   GetSubnetRequest request =
+   *       GetSubnetRequest.newBuilder()
+   *           .setName(
+   *               SubnetName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[SUBNET]")
+   *                   .toString())
+   *           .build();
+   *   Subnet response = vmwareEngineClient.getSubnet(request);
+   * }
+   * }
+ * + * @param 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 + */ + public final Subnet getSubnet(GetSubnetRequest request) { + return getSubnetCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single subnet. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   GetSubnetRequest request =
+   *       GetSubnetRequest.newBuilder()
+   *           .setName(
+   *               SubnetName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[SUBNET]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = vmwareEngineClient.getSubnetCallable().futureCall(request);
+   *   // Do something.
+   *   Subnet response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getSubnetCallable() { + return stub.getSubnetCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single subnet. Only fields specified in `update_mask` are applied. + * + *

*Note*: This API is synchronous and always returns a successful + * `google.longrunning.Operation` (LRO). The returned LRO will only have `done` and `response` + * fields. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   Subnet subnet = Subnet.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Subnet response = vmwareEngineClient.updateSubnetAsync(subnet, updateMask).get();
+   * }
+   * }
+ * + * @param subnet Required. Subnet description. + * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the + * `Subnet` resource by the update. The fields specified in the `update_mask` are relative to + * the resource, not the full request. A field will be overwritten if it is in the mask. If + * the user does not provide a mask then all fields will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateSubnetAsync( + Subnet subnet, FieldMask updateMask) { + UpdateSubnetRequest request = + UpdateSubnetRequest.newBuilder().setSubnet(subnet).setUpdateMask(updateMask).build(); + return updateSubnetAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single subnet. Only fields specified in `update_mask` are applied. + * + *

*Note*: This API is synchronous and always returns a successful + * `google.longrunning.Operation` (LRO). The returned LRO will only have `done` and `response` + * fields. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   UpdateSubnetRequest request =
+   *       UpdateSubnetRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setSubnet(Subnet.newBuilder().build())
+   *           .build();
+   *   Subnet response = vmwareEngineClient.updateSubnetAsync(request).get();
+   * }
+   * }
+ * + * @param 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 + */ + public final OperationFuture updateSubnetAsync( + UpdateSubnetRequest request) { + return updateSubnetOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single subnet. Only fields specified in `update_mask` are applied. + * + *

*Note*: This API is synchronous and always returns a successful + * `google.longrunning.Operation` (LRO). The returned LRO will only have `done` and `response` + * fields. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   UpdateSubnetRequest request =
+   *       UpdateSubnetRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setSubnet(Subnet.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.updateSubnetOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Subnet response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateSubnetOperationCallable() { + return stub.updateSubnetOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single subnet. Only fields specified in `update_mask` are applied. + * + *

*Note*: This API is synchronous and always returns a successful + * `google.longrunning.Operation` (LRO). The returned LRO will only have `done` and `response` + * fields. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   UpdateSubnetRequest request =
+   *       UpdateSubnetRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setSubnet(Subnet.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = vmwareEngineClient.updateSubnetCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateSubnetCallable() { + return stub.updateSubnetCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists node types @@ -5276,7 +5532,7 @@ public final ListVmwareEngineNetworksPagedResponse listVmwareEngineNetworks( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Creates a new private connection that can be used for accessing private Clouds. * *

Sample code: * @@ -5287,29 +5543,49 @@ public final ListVmwareEngineNetworksPagedResponse listVmwareEngineNetworks( * // - 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * for (Location element : vmwareEngineClient.listLocations(request).iterateAll()) { - * // doThingsWith(element); - * } + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * PrivateConnection privateConnection = PrivateConnection.newBuilder().build(); + * String privateConnectionId = "privateConnectionId-1926654532"; + * PrivateConnection response = + * vmwareEngineClient + * .createPrivateConnectionAsync(parent, privateConnection, privateConnectionId) + * .get(); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The resource name of the location to create the new private connection + * in. Private connection is a regional resource. Resource names are schemeless URIs that + * follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-central1` + * @param privateConnection Required. The initial description of the new private connection. + * @param privateConnectionId Required. The user-provided identifier of the new private + * connection. This identifier must be unique among private connection resources within the + * parent and becomes the final token in the name URI. The identifier must meet the following + * requirements: + *

    + *
  • Only contains 1-63 alphanumeric characters and hyphens + *
  • Begins with an alphabetical character + *
  • Ends with a non-hyphen character + *
  • Not formatted as a UUID + *
  • Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5) + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { - return listLocationsPagedCallable().call(request); + public final OperationFuture createPrivateConnectionAsync( + LocationName parent, PrivateConnection privateConnection, String privateConnectionId) { + CreatePrivateConnectionRequest request = + CreatePrivateConnectionRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setPrivateConnection(privateConnection) + .setPrivateConnectionId(privateConnectionId) + .build(); + return createPrivateConnectionAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Creates a new private connection that can be used for accessing private Clouds. * *

Sample code: * @@ -5320,30 +5596,49 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * // - 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * ApiFuture future = - * vmwareEngineClient.listLocationsPagedCallable().futureCall(request); - * // Do something. - * for (Location element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * PrivateConnection privateConnection = PrivateConnection.newBuilder().build(); + * String privateConnectionId = "privateConnectionId-1926654532"; + * PrivateConnection response = + * vmwareEngineClient + * .createPrivateConnectionAsync(parent, privateConnection, privateConnectionId) + * .get(); * } * } + * + * @param parent Required. The resource name of the location to create the new private connection + * in. Private connection is a regional resource. Resource names are schemeless URIs that + * follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-central1` + * @param privateConnection Required. The initial description of the new private connection. + * @param privateConnectionId Required. The user-provided identifier of the new private + * connection. This identifier must be unique among private connection resources within the + * parent and becomes the final token in the name URI. The identifier must meet the following + * requirements: + *

    + *
  • Only contains 1-63 alphanumeric characters and hyphens + *
  • Begins with an alphabetical character + *
  • Ends with a non-hyphen character + *
  • Not formatted as a UUID + *
  • Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5) + *
+ * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - listLocationsPagedCallable() { - return stub.listLocationsPagedCallable(); + public final OperationFuture createPrivateConnectionAsync( + String parent, PrivateConnection privateConnection, String privateConnectionId) { + CreatePrivateConnectionRequest request = + CreatePrivateConnectionRequest.newBuilder() + .setParent(parent) + .setPrivateConnection(privateConnection) + .setPrivateConnectionId(privateConnectionId) + .build(); + return createPrivateConnectionAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Creates a new private connection that can be used for accessing private Clouds. * *

Sample code: * @@ -5354,18 +5649,981 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * // - 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * CreatePrivateConnectionRequest request = + * CreatePrivateConnectionRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPrivateConnectionId("privateConnectionId-1926654532") + * .setPrivateConnection(PrivateConnection.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); - * while (true) { - * ListLocationsResponse response = vmwareEngineClient.listLocationsCallable().call(request); - * for (Location element : response.getLocationsList()) { - * // doThingsWith(element); - * } + * PrivateConnection response = vmwareEngineClient.createPrivateConnectionAsync(request).get(); + * } + * } + * + * @param 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 + */ + public final OperationFuture createPrivateConnectionAsync( + CreatePrivateConnectionRequest request) { + return createPrivateConnectionOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new private connection that can be used for accessing private Clouds. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   CreatePrivateConnectionRequest request =
+   *       CreatePrivateConnectionRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPrivateConnectionId("privateConnectionId-1926654532")
+   *           .setPrivateConnection(PrivateConnection.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.createPrivateConnectionOperationCallable().futureCall(request);
+   *   // Do something.
+   *   PrivateConnection response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CreatePrivateConnectionRequest, PrivateConnection, OperationMetadata> + createPrivateConnectionOperationCallable() { + return stub.createPrivateConnectionOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new private connection that can be used for accessing private Clouds. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   CreatePrivateConnectionRequest request =
+   *       CreatePrivateConnectionRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPrivateConnectionId("privateConnectionId-1926654532")
+   *           .setPrivateConnection(PrivateConnection.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.createPrivateConnectionCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createPrivateConnectionCallable() { + return stub.createPrivateConnectionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `PrivateConnection` resource by its resource name. The resource contains details of + * the private connection, such as connected network, routing mode and state. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   PrivateConnectionName name =
+   *       PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
+   *   PrivateConnection response = vmwareEngineClient.getPrivateConnection(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the private connection to retrieve. Resource names + * are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-central1/privateConnections/my-connection` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PrivateConnection getPrivateConnection(PrivateConnectionName name) { + GetPrivateConnectionRequest request = + GetPrivateConnectionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getPrivateConnection(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `PrivateConnection` resource by its resource name. The resource contains details of + * the private connection, such as connected network, routing mode and state. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   String name =
+   *       PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString();
+   *   PrivateConnection response = vmwareEngineClient.getPrivateConnection(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the private connection to retrieve. Resource names + * are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-central1/privateConnections/my-connection` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PrivateConnection getPrivateConnection(String name) { + GetPrivateConnectionRequest request = + GetPrivateConnectionRequest.newBuilder().setName(name).build(); + return getPrivateConnection(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `PrivateConnection` resource by its resource name. The resource contains details of + * the private connection, such as connected network, routing mode and state. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   GetPrivateConnectionRequest request =
+   *       GetPrivateConnectionRequest.newBuilder()
+   *           .setName(
+   *               PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+   *                   .toString())
+   *           .build();
+   *   PrivateConnection response = vmwareEngineClient.getPrivateConnection(request);
+   * }
+   * }
+ * + * @param 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 + */ + public final PrivateConnection getPrivateConnection(GetPrivateConnectionRequest request) { + return getPrivateConnectionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `PrivateConnection` resource by its resource name. The resource contains details of + * the private connection, such as connected network, routing mode and state. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   GetPrivateConnectionRequest request =
+   *       GetPrivateConnectionRequest.newBuilder()
+   *           .setName(
+   *               PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.getPrivateConnectionCallable().futureCall(request);
+   *   // Do something.
+   *   PrivateConnection response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getPrivateConnectionCallable() { + return stub.getPrivateConnectionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `PrivateConnection` resources in a given project and location. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (PrivateConnection element :
+   *       vmwareEngineClient.listPrivateConnections(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the location to query for private connections. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-central1` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPrivateConnectionsPagedResponse listPrivateConnections(LocationName parent) { + ListPrivateConnectionsRequest request = + ListPrivateConnectionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listPrivateConnections(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `PrivateConnection` resources in a given project and location. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (PrivateConnection element :
+   *       vmwareEngineClient.listPrivateConnections(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the location to query for private connections. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-central1` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPrivateConnectionsPagedResponse listPrivateConnections(String parent) { + ListPrivateConnectionsRequest request = + ListPrivateConnectionsRequest.newBuilder().setParent(parent).build(); + return listPrivateConnections(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `PrivateConnection` resources in a given project and location. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ListPrivateConnectionsRequest request =
+   *       ListPrivateConnectionsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (PrivateConnection element :
+   *       vmwareEngineClient.listPrivateConnections(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param 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 + */ + public final ListPrivateConnectionsPagedResponse listPrivateConnections( + ListPrivateConnectionsRequest request) { + return listPrivateConnectionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `PrivateConnection` resources in a given project and location. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ListPrivateConnectionsRequest request =
+   *       ListPrivateConnectionsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.listPrivateConnectionsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (PrivateConnection element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listPrivateConnectionsPagedCallable() { + return stub.listPrivateConnectionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `PrivateConnection` resources in a given project and location. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ListPrivateConnectionsRequest request =
+   *       ListPrivateConnectionsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListPrivateConnectionsResponse response =
+   *         vmwareEngineClient.listPrivateConnectionsCallable().call(request);
+   *     for (PrivateConnection element : response.getPrivateConnectionsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listPrivateConnectionsCallable() { + return stub.listPrivateConnectionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies a `PrivateConnection` resource. Only `description` and `routing_mode` fields can be + * updated. Only fields specified in `updateMask` are applied. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   PrivateConnection privateConnection = PrivateConnection.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   PrivateConnection response =
+   *       vmwareEngineClient.updatePrivateConnectionAsync(privateConnection, updateMask).get();
+   * }
+   * }
+ * + * @param privateConnection Required. Private connection description. + * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the + * `PrivateConnection` resource by the update. The fields specified in the `update_mask` are + * relative to the resource, not the full request. A field will be overwritten if it is in the + * mask. If the user does not provide a mask then all fields will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updatePrivateConnectionAsync( + PrivateConnection privateConnection, FieldMask updateMask) { + UpdatePrivateConnectionRequest request = + UpdatePrivateConnectionRequest.newBuilder() + .setPrivateConnection(privateConnection) + .setUpdateMask(updateMask) + .build(); + return updatePrivateConnectionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies a `PrivateConnection` resource. Only `description` and `routing_mode` fields can be + * updated. Only fields specified in `updateMask` are applied. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   UpdatePrivateConnectionRequest request =
+   *       UpdatePrivateConnectionRequest.newBuilder()
+   *           .setPrivateConnection(PrivateConnection.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   PrivateConnection response = vmwareEngineClient.updatePrivateConnectionAsync(request).get();
+   * }
+   * }
+ * + * @param 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 + */ + public final OperationFuture updatePrivateConnectionAsync( + UpdatePrivateConnectionRequest request) { + return updatePrivateConnectionOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies a `PrivateConnection` resource. Only `description` and `routing_mode` fields can be + * updated. Only fields specified in `updateMask` are applied. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   UpdatePrivateConnectionRequest request =
+   *       UpdatePrivateConnectionRequest.newBuilder()
+   *           .setPrivateConnection(PrivateConnection.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.updatePrivateConnectionOperationCallable().futureCall(request);
+   *   // Do something.
+   *   PrivateConnection response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + UpdatePrivateConnectionRequest, PrivateConnection, OperationMetadata> + updatePrivateConnectionOperationCallable() { + return stub.updatePrivateConnectionOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies a `PrivateConnection` resource. Only `description` and `routing_mode` fields can be + * updated. Only fields specified in `updateMask` are applied. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   UpdatePrivateConnectionRequest request =
+   *       UpdatePrivateConnectionRequest.newBuilder()
+   *           .setPrivateConnection(PrivateConnection.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.updatePrivateConnectionCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updatePrivateConnectionCallable() { + return stub.updatePrivateConnectionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `PrivateConnection` resource. When a private connection is deleted for a VMware + * Engine network, the connected network becomes inaccessible to that VMware Engine network. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   PrivateConnectionName name =
+   *       PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
+   *   vmwareEngineClient.deletePrivateConnectionAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the private connection to be deleted. Resource names + * are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-central1/privateConnections/my-connection` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deletePrivateConnectionAsync( + PrivateConnectionName name) { + DeletePrivateConnectionRequest request = + DeletePrivateConnectionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deletePrivateConnectionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `PrivateConnection` resource. When a private connection is deleted for a VMware + * Engine network, the connected network becomes inaccessible to that VMware Engine network. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   String name =
+   *       PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString();
+   *   vmwareEngineClient.deletePrivateConnectionAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the private connection to be deleted. Resource names + * are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-central1/privateConnections/my-connection` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deletePrivateConnectionAsync(String name) { + DeletePrivateConnectionRequest request = + DeletePrivateConnectionRequest.newBuilder().setName(name).build(); + return deletePrivateConnectionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `PrivateConnection` resource. When a private connection is deleted for a VMware + * Engine network, the connected network becomes inaccessible to that VMware Engine network. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   DeletePrivateConnectionRequest request =
+   *       DeletePrivateConnectionRequest.newBuilder()
+   *           .setName(
+   *               PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   vmwareEngineClient.deletePrivateConnectionAsync(request).get();
+   * }
+   * }
+ * + * @param 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 + */ + public final OperationFuture deletePrivateConnectionAsync( + DeletePrivateConnectionRequest request) { + return deletePrivateConnectionOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `PrivateConnection` resource. When a private connection is deleted for a VMware + * Engine network, the connected network becomes inaccessible to that VMware Engine network. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   DeletePrivateConnectionRequest request =
+   *       DeletePrivateConnectionRequest.newBuilder()
+   *           .setName(
+   *               PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.deletePrivateConnectionOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deletePrivateConnectionOperationCallable() { + return stub.deletePrivateConnectionOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `PrivateConnection` resource. When a private connection is deleted for a VMware + * Engine network, the connected network becomes inaccessible to that VMware Engine network. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   DeletePrivateConnectionRequest request =
+   *       DeletePrivateConnectionRequest.newBuilder()
+   *           .setName(
+   *               PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.deletePrivateConnectionCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deletePrivateConnectionCallable() { + return stub.deletePrivateConnectionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the private connection routes exchanged over a peering connection. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   PrivateConnectionName parent =
+   *       PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
+   *   for (PeeringRoute element :
+   *       vmwareEngineClient.listPrivateConnectionPeeringRoutes(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the private connection to retrieve peering routes + * from. Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-west1/privateConnections/my-connection` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPrivateConnectionPeeringRoutesPagedResponse listPrivateConnectionPeeringRoutes( + PrivateConnectionName parent) { + ListPrivateConnectionPeeringRoutesRequest request = + ListPrivateConnectionPeeringRoutesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listPrivateConnectionPeeringRoutes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the private connection routes exchanged over a peering connection. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   String parent =
+   *       PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString();
+   *   for (PeeringRoute element :
+   *       vmwareEngineClient.listPrivateConnectionPeeringRoutes(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the private connection to retrieve peering routes + * from. Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-west1/privateConnections/my-connection` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPrivateConnectionPeeringRoutesPagedResponse listPrivateConnectionPeeringRoutes( + String parent) { + ListPrivateConnectionPeeringRoutesRequest request = + ListPrivateConnectionPeeringRoutesRequest.newBuilder().setParent(parent).build(); + return listPrivateConnectionPeeringRoutes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the private connection routes exchanged over a peering connection. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ListPrivateConnectionPeeringRoutesRequest request =
+   *       ListPrivateConnectionPeeringRoutesRequest.newBuilder()
+   *           .setParent(
+   *               PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (PeeringRoute element :
+   *       vmwareEngineClient.listPrivateConnectionPeeringRoutes(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param 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 + */ + public final ListPrivateConnectionPeeringRoutesPagedResponse listPrivateConnectionPeeringRoutes( + ListPrivateConnectionPeeringRoutesRequest request) { + return listPrivateConnectionPeeringRoutesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the private connection routes exchanged over a peering connection. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ListPrivateConnectionPeeringRoutesRequest request =
+   *       ListPrivateConnectionPeeringRoutesRequest.newBuilder()
+   *           .setParent(
+   *               PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.listPrivateConnectionPeeringRoutesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (PeeringRoute element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListPrivateConnectionPeeringRoutesRequest, + ListPrivateConnectionPeeringRoutesPagedResponse> + listPrivateConnectionPeeringRoutesPagedCallable() { + return stub.listPrivateConnectionPeeringRoutesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the private connection routes exchanged over a peering connection. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ListPrivateConnectionPeeringRoutesRequest request =
+   *       ListPrivateConnectionPeeringRoutesRequest.newBuilder()
+   *           .setParent(
+   *               PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListPrivateConnectionPeeringRoutesResponse response =
+   *         vmwareEngineClient.listPrivateConnectionPeeringRoutesCallable().call(request);
+   *     for (PeeringRoute element : response.getPeeringRoutesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListPrivateConnectionPeeringRoutesRequest, ListPrivateConnectionPeeringRoutesResponse> + listPrivateConnectionPeeringRoutesCallable() { + return stub.listPrivateConnectionPeeringRoutesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : vmwareEngineClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param 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 + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response = vmwareEngineClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
    *     String nextPageToken = response.getNextPageToken();
    *     if (!Strings.isNullOrEmpty(nextPageToken)) {
    *       request = request.toBuilder().setPageToken(nextPageToken).build();
@@ -6226,6 +7484,192 @@ protected ListVmwareEngineNetworksFixedSizeCollection createCollection(
     }
   }
 
+  public static class ListPrivateConnectionsPagedResponse
+      extends AbstractPagedListResponse<
+          ListPrivateConnectionsRequest,
+          ListPrivateConnectionsResponse,
+          PrivateConnection,
+          ListPrivateConnectionsPage,
+          ListPrivateConnectionsFixedSizeCollection> {
+
+    public static ApiFuture createAsync(
+        PageContext<
+                ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection>
+            context,
+        ApiFuture futureResponse) {
+      ApiFuture futurePage =
+          ListPrivateConnectionsPage.createEmptyPage().createPageAsync(context, futureResponse);
+      return ApiFutures.transform(
+          futurePage,
+          input -> new ListPrivateConnectionsPagedResponse(input),
+          MoreExecutors.directExecutor());
+    }
+
+    private ListPrivateConnectionsPagedResponse(ListPrivateConnectionsPage page) {
+      super(page, ListPrivateConnectionsFixedSizeCollection.createEmptyCollection());
+    }
+  }
+
+  public static class ListPrivateConnectionsPage
+      extends AbstractPage<
+          ListPrivateConnectionsRequest,
+          ListPrivateConnectionsResponse,
+          PrivateConnection,
+          ListPrivateConnectionsPage> {
+
+    private ListPrivateConnectionsPage(
+        PageContext<
+                ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection>
+            context,
+        ListPrivateConnectionsResponse response) {
+      super(context, response);
+    }
+
+    private static ListPrivateConnectionsPage createEmptyPage() {
+      return new ListPrivateConnectionsPage(null, null);
+    }
+
+    @Override
+    protected ListPrivateConnectionsPage createPage(
+        PageContext<
+                ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection>
+            context,
+        ListPrivateConnectionsResponse response) {
+      return new ListPrivateConnectionsPage(context, response);
+    }
+
+    @Override
+    public ApiFuture createPageAsync(
+        PageContext<
+                ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection>
+            context,
+        ApiFuture futureResponse) {
+      return super.createPageAsync(context, futureResponse);
+    }
+  }
+
+  public static class ListPrivateConnectionsFixedSizeCollection
+      extends AbstractFixedSizeCollection<
+          ListPrivateConnectionsRequest,
+          ListPrivateConnectionsResponse,
+          PrivateConnection,
+          ListPrivateConnectionsPage,
+          ListPrivateConnectionsFixedSizeCollection> {
+
+    private ListPrivateConnectionsFixedSizeCollection(
+        List pages, int collectionSize) {
+      super(pages, collectionSize);
+    }
+
+    private static ListPrivateConnectionsFixedSizeCollection createEmptyCollection() {
+      return new ListPrivateConnectionsFixedSizeCollection(null, 0);
+    }
+
+    @Override
+    protected ListPrivateConnectionsFixedSizeCollection createCollection(
+        List pages, int collectionSize) {
+      return new ListPrivateConnectionsFixedSizeCollection(pages, collectionSize);
+    }
+  }
+
+  public static class ListPrivateConnectionPeeringRoutesPagedResponse
+      extends AbstractPagedListResponse<
+          ListPrivateConnectionPeeringRoutesRequest,
+          ListPrivateConnectionPeeringRoutesResponse,
+          PeeringRoute,
+          ListPrivateConnectionPeeringRoutesPage,
+          ListPrivateConnectionPeeringRoutesFixedSizeCollection> {
+
+    public static ApiFuture createAsync(
+        PageContext<
+                ListPrivateConnectionPeeringRoutesRequest,
+                ListPrivateConnectionPeeringRoutesResponse,
+                PeeringRoute>
+            context,
+        ApiFuture futureResponse) {
+      ApiFuture futurePage =
+          ListPrivateConnectionPeeringRoutesPage.createEmptyPage()
+              .createPageAsync(context, futureResponse);
+      return ApiFutures.transform(
+          futurePage,
+          input -> new ListPrivateConnectionPeeringRoutesPagedResponse(input),
+          MoreExecutors.directExecutor());
+    }
+
+    private ListPrivateConnectionPeeringRoutesPagedResponse(
+        ListPrivateConnectionPeeringRoutesPage page) {
+      super(page, ListPrivateConnectionPeeringRoutesFixedSizeCollection.createEmptyCollection());
+    }
+  }
+
+  public static class ListPrivateConnectionPeeringRoutesPage
+      extends AbstractPage<
+          ListPrivateConnectionPeeringRoutesRequest,
+          ListPrivateConnectionPeeringRoutesResponse,
+          PeeringRoute,
+          ListPrivateConnectionPeeringRoutesPage> {
+
+    private ListPrivateConnectionPeeringRoutesPage(
+        PageContext<
+                ListPrivateConnectionPeeringRoutesRequest,
+                ListPrivateConnectionPeeringRoutesResponse,
+                PeeringRoute>
+            context,
+        ListPrivateConnectionPeeringRoutesResponse response) {
+      super(context, response);
+    }
+
+    private static ListPrivateConnectionPeeringRoutesPage createEmptyPage() {
+      return new ListPrivateConnectionPeeringRoutesPage(null, null);
+    }
+
+    @Override
+    protected ListPrivateConnectionPeeringRoutesPage createPage(
+        PageContext<
+                ListPrivateConnectionPeeringRoutesRequest,
+                ListPrivateConnectionPeeringRoutesResponse,
+                PeeringRoute>
+            context,
+        ListPrivateConnectionPeeringRoutesResponse response) {
+      return new ListPrivateConnectionPeeringRoutesPage(context, response);
+    }
+
+    @Override
+    public ApiFuture createPageAsync(
+        PageContext<
+                ListPrivateConnectionPeeringRoutesRequest,
+                ListPrivateConnectionPeeringRoutesResponse,
+                PeeringRoute>
+            context,
+        ApiFuture futureResponse) {
+      return super.createPageAsync(context, futureResponse);
+    }
+  }
+
+  public static class ListPrivateConnectionPeeringRoutesFixedSizeCollection
+      extends AbstractFixedSizeCollection<
+          ListPrivateConnectionPeeringRoutesRequest,
+          ListPrivateConnectionPeeringRoutesResponse,
+          PeeringRoute,
+          ListPrivateConnectionPeeringRoutesPage,
+          ListPrivateConnectionPeeringRoutesFixedSizeCollection> {
+
+    private ListPrivateConnectionPeeringRoutesFixedSizeCollection(
+        List pages, int collectionSize) {
+      super(pages, collectionSize);
+    }
+
+    private static ListPrivateConnectionPeeringRoutesFixedSizeCollection createEmptyCollection() {
+      return new ListPrivateConnectionPeeringRoutesFixedSizeCollection(null, 0);
+    }
+
+    @Override
+    protected ListPrivateConnectionPeeringRoutesFixedSizeCollection createCollection(
+        List pages, int collectionSize) {
+      return new ListPrivateConnectionPeeringRoutesFixedSizeCollection(pages, collectionSize);
+    }
+  }
+
   public static class ListLocationsPagedResponse
       extends AbstractPagedListResponse<
           ListLocationsRequest,
diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineSettings.java b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineSettings.java
index 6e22b0a9643a..dee70f680e0b 100644
--- a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineSettings.java
+++ b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineSettings.java
@@ -22,6 +22,8 @@
 import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNetworkPoliciesPagedResponse;
 import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNodeTypesPagedResponse;
 import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateCloudsPagedResponse;
+import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateConnectionPeeringRoutesPagedResponse;
+import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateConnectionsPagedResponse;
 import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListSubnetsPagedResponse;
 import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListVmwareEngineNetworksPagedResponse;
 
@@ -199,6 +201,22 @@ public UnaryCallSettings deleteClusterSettings(
     return ((VmwareEngineStubSettings) getStubSettings()).listSubnetsSettings();
   }
 
+  /** Returns the object with the settings used for calls to getSubnet. */
+  public UnaryCallSettings getSubnetSettings() {
+    return ((VmwareEngineStubSettings) getStubSettings()).getSubnetSettings();
+  }
+
+  /** Returns the object with the settings used for calls to updateSubnet. */
+  public UnaryCallSettings updateSubnetSettings() {
+    return ((VmwareEngineStubSettings) getStubSettings()).updateSubnetSettings();
+  }
+
+  /** Returns the object with the settings used for calls to updateSubnet. */
+  public OperationCallSettings
+      updateSubnetOperationSettings() {
+    return ((VmwareEngineStubSettings) getStubSettings()).updateSubnetOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listNodeTypes. */
   public PagedCallSettings
       listNodeTypesSettings() {
@@ -373,6 +391,70 @@ public UnaryCallSettings deleteNetworkPol
     return ((VmwareEngineStubSettings) getStubSettings()).listVmwareEngineNetworksSettings();
   }
 
+  /** Returns the object with the settings used for calls to createPrivateConnection. */
+  public UnaryCallSettings
+      createPrivateConnectionSettings() {
+    return ((VmwareEngineStubSettings) getStubSettings()).createPrivateConnectionSettings();
+  }
+
+  /** Returns the object with the settings used for calls to createPrivateConnection. */
+  public OperationCallSettings
+      createPrivateConnectionOperationSettings() {
+    return ((VmwareEngineStubSettings) getStubSettings())
+        .createPrivateConnectionOperationSettings();
+  }
+
+  /** Returns the object with the settings used for calls to getPrivateConnection. */
+  public UnaryCallSettings
+      getPrivateConnectionSettings() {
+    return ((VmwareEngineStubSettings) getStubSettings()).getPrivateConnectionSettings();
+  }
+
+  /** Returns the object with the settings used for calls to listPrivateConnections. */
+  public PagedCallSettings<
+          ListPrivateConnectionsRequest,
+          ListPrivateConnectionsResponse,
+          ListPrivateConnectionsPagedResponse>
+      listPrivateConnectionsSettings() {
+    return ((VmwareEngineStubSettings) getStubSettings()).listPrivateConnectionsSettings();
+  }
+
+  /** Returns the object with the settings used for calls to updatePrivateConnection. */
+  public UnaryCallSettings
+      updatePrivateConnectionSettings() {
+    return ((VmwareEngineStubSettings) getStubSettings()).updatePrivateConnectionSettings();
+  }
+
+  /** Returns the object with the settings used for calls to updatePrivateConnection. */
+  public OperationCallSettings
+      updatePrivateConnectionOperationSettings() {
+    return ((VmwareEngineStubSettings) getStubSettings())
+        .updatePrivateConnectionOperationSettings();
+  }
+
+  /** Returns the object with the settings used for calls to deletePrivateConnection. */
+  public UnaryCallSettings
+      deletePrivateConnectionSettings() {
+    return ((VmwareEngineStubSettings) getStubSettings()).deletePrivateConnectionSettings();
+  }
+
+  /** Returns the object with the settings used for calls to deletePrivateConnection. */
+  public OperationCallSettings
+      deletePrivateConnectionOperationSettings() {
+    return ((VmwareEngineStubSettings) getStubSettings())
+        .deletePrivateConnectionOperationSettings();
+  }
+
+  /** Returns the object with the settings used for calls to listPrivateConnectionPeeringRoutes. */
+  public PagedCallSettings<
+          ListPrivateConnectionPeeringRoutesRequest,
+          ListPrivateConnectionPeeringRoutesResponse,
+          ListPrivateConnectionPeeringRoutesPagedResponse>
+      listPrivateConnectionPeeringRoutesSettings() {
+    return ((VmwareEngineStubSettings) getStubSettings())
+        .listPrivateConnectionPeeringRoutesSettings();
+  }
+
   /** Returns the object with the settings used for calls to listLocations. */
   public PagedCallSettings
       listLocationsSettings() {
@@ -629,6 +711,22 @@ public UnaryCallSettings.Builder deleteClusterS
       return getStubSettingsBuilder().listSubnetsSettings();
     }
 
+    /** Returns the builder for the settings used for calls to getSubnet. */
+    public UnaryCallSettings.Builder getSubnetSettings() {
+      return getStubSettingsBuilder().getSubnetSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to updateSubnet. */
+    public UnaryCallSettings.Builder updateSubnetSettings() {
+      return getStubSettingsBuilder().updateSubnetSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to updateSubnet. */
+    public OperationCallSettings.Builder
+        updateSubnetOperationSettings() {
+      return getStubSettingsBuilder().updateSubnetOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listNodeTypes. */
     public PagedCallSettings.Builder<
             ListNodeTypesRequest, ListNodeTypesResponse, ListNodeTypesPagedResponse>
@@ -813,6 +911,70 @@ public UnaryCallSettings.Builder getNodeTypeSettin
       return getStubSettingsBuilder().listVmwareEngineNetworksSettings();
     }
 
+    /** Returns the builder for the settings used for calls to createPrivateConnection. */
+    public UnaryCallSettings.Builder
+        createPrivateConnectionSettings() {
+      return getStubSettingsBuilder().createPrivateConnectionSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to createPrivateConnection. */
+    public OperationCallSettings.Builder<
+            CreatePrivateConnectionRequest, PrivateConnection, OperationMetadata>
+        createPrivateConnectionOperationSettings() {
+      return getStubSettingsBuilder().createPrivateConnectionOperationSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getPrivateConnection. */
+    public UnaryCallSettings.Builder
+        getPrivateConnectionSettings() {
+      return getStubSettingsBuilder().getPrivateConnectionSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to listPrivateConnections. */
+    public PagedCallSettings.Builder<
+            ListPrivateConnectionsRequest,
+            ListPrivateConnectionsResponse,
+            ListPrivateConnectionsPagedResponse>
+        listPrivateConnectionsSettings() {
+      return getStubSettingsBuilder().listPrivateConnectionsSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to updatePrivateConnection. */
+    public UnaryCallSettings.Builder
+        updatePrivateConnectionSettings() {
+      return getStubSettingsBuilder().updatePrivateConnectionSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to updatePrivateConnection. */
+    public OperationCallSettings.Builder<
+            UpdatePrivateConnectionRequest, PrivateConnection, OperationMetadata>
+        updatePrivateConnectionOperationSettings() {
+      return getStubSettingsBuilder().updatePrivateConnectionOperationSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to deletePrivateConnection. */
+    public UnaryCallSettings.Builder
+        deletePrivateConnectionSettings() {
+      return getStubSettingsBuilder().deletePrivateConnectionSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to deletePrivateConnection. */
+    public OperationCallSettings.Builder
+        deletePrivateConnectionOperationSettings() {
+      return getStubSettingsBuilder().deletePrivateConnectionOperationSettings();
+    }
+
+    /**
+     * Returns the builder for the settings used for calls to listPrivateConnectionPeeringRoutes.
+     */
+    public PagedCallSettings.Builder<
+            ListPrivateConnectionPeeringRoutesRequest,
+            ListPrivateConnectionPeeringRoutesResponse,
+            ListPrivateConnectionPeeringRoutesPagedResponse>
+        listPrivateConnectionPeeringRoutesSettings() {
+      return getStubSettingsBuilder().listPrivateConnectionPeeringRoutesSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listLocations. */
     public PagedCallSettings.Builder<
             ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/gapic_metadata.json b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/gapic_metadata.json
index 1db453fcc4a9..a4833973c88b 100644
--- a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/gapic_metadata.json
+++ b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/gapic_metadata.json
@@ -22,6 +22,9 @@
             "CreatePrivateCloud": {
               "methods": ["createPrivateCloudAsync", "createPrivateCloudAsync", "createPrivateCloudAsync", "createPrivateCloudOperationCallable", "createPrivateCloudCallable"]
             },
+            "CreatePrivateConnection": {
+              "methods": ["createPrivateConnectionAsync", "createPrivateConnectionAsync", "createPrivateConnectionAsync", "createPrivateConnectionOperationCallable", "createPrivateConnectionCallable"]
+            },
             "CreateVmwareEngineNetwork": {
               "methods": ["createVmwareEngineNetworkAsync", "createVmwareEngineNetworkAsync", "createVmwareEngineNetworkAsync", "createVmwareEngineNetworkOperationCallable", "createVmwareEngineNetworkCallable"]
             },
@@ -34,6 +37,9 @@
             "DeletePrivateCloud": {
               "methods": ["deletePrivateCloudAsync", "deletePrivateCloudAsync", "deletePrivateCloudAsync", "deletePrivateCloudOperationCallable", "deletePrivateCloudCallable"]
             },
+            "DeletePrivateConnection": {
+              "methods": ["deletePrivateConnectionAsync", "deletePrivateConnectionAsync", "deletePrivateConnectionAsync", "deletePrivateConnectionOperationCallable", "deletePrivateConnectionCallable"]
+            },
             "DeleteVmwareEngineNetwork": {
               "methods": ["deleteVmwareEngineNetworkAsync", "deleteVmwareEngineNetworkAsync", "deleteVmwareEngineNetworkAsync", "deleteVmwareEngineNetworkOperationCallable", "deleteVmwareEngineNetworkCallable"]
             },
@@ -58,6 +64,12 @@
             "GetPrivateCloud": {
               "methods": ["getPrivateCloud", "getPrivateCloud", "getPrivateCloud", "getPrivateCloudCallable"]
             },
+            "GetPrivateConnection": {
+              "methods": ["getPrivateConnection", "getPrivateConnection", "getPrivateConnection", "getPrivateConnectionCallable"]
+            },
+            "GetSubnet": {
+              "methods": ["getSubnet", "getSubnet", "getSubnet", "getSubnetCallable"]
+            },
             "GetVmwareEngineNetwork": {
               "methods": ["getVmwareEngineNetwork", "getVmwareEngineNetwork", "getVmwareEngineNetwork", "getVmwareEngineNetworkCallable"]
             },
@@ -79,6 +91,12 @@
             "ListPrivateClouds": {
               "methods": ["listPrivateClouds", "listPrivateClouds", "listPrivateClouds", "listPrivateCloudsPagedCallable", "listPrivateCloudsCallable"]
             },
+            "ListPrivateConnectionPeeringRoutes": {
+              "methods": ["listPrivateConnectionPeeringRoutes", "listPrivateConnectionPeeringRoutes", "listPrivateConnectionPeeringRoutes", "listPrivateConnectionPeeringRoutesPagedCallable", "listPrivateConnectionPeeringRoutesCallable"]
+            },
+            "ListPrivateConnections": {
+              "methods": ["listPrivateConnections", "listPrivateConnections", "listPrivateConnections", "listPrivateConnectionsPagedCallable", "listPrivateConnectionsCallable"]
+            },
             "ListSubnets": {
               "methods": ["listSubnets", "listSubnets", "listSubnets", "listSubnetsPagedCallable", "listSubnetsCallable"]
             },
@@ -115,6 +133,12 @@
             "UpdatePrivateCloud": {
               "methods": ["updatePrivateCloudAsync", "updatePrivateCloudAsync", "updatePrivateCloudOperationCallable", "updatePrivateCloudCallable"]
             },
+            "UpdatePrivateConnection": {
+              "methods": ["updatePrivateConnectionAsync", "updatePrivateConnectionAsync", "updatePrivateConnectionOperationCallable", "updatePrivateConnectionCallable"]
+            },
+            "UpdateSubnet": {
+              "methods": ["updateSubnetAsync", "updateSubnetAsync", "updateSubnetOperationCallable", "updateSubnetCallable"]
+            },
             "UpdateVmwareEngineNetwork": {
               "methods": ["updateVmwareEngineNetworkAsync", "updateVmwareEngineNetworkAsync", "updateVmwareEngineNetworkOperationCallable", "updateVmwareEngineNetworkCallable"]
             }
diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/GrpcVmwareEngineStub.java b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/GrpcVmwareEngineStub.java
index 85fd2419ce96..d126926ac2b4 100644
--- a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/GrpcVmwareEngineStub.java
+++ b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/GrpcVmwareEngineStub.java
@@ -22,6 +22,8 @@
 import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNetworkPoliciesPagedResponse;
 import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNodeTypesPagedResponse;
 import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateCloudsPagedResponse;
+import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateConnectionPeeringRoutesPagedResponse;
+import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateConnectionsPagedResponse;
 import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListSubnetsPagedResponse;
 import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListVmwareEngineNetworksPagedResponse;
 
@@ -42,17 +44,21 @@
 import com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest;
 import com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest;
 import com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest;
+import com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest;
 import com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest;
 import com.google.cloud.vmwareengine.v1.Credentials;
 import com.google.cloud.vmwareengine.v1.DeleteClusterRequest;
 import com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest;
 import com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest;
+import com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest;
 import com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest;
 import com.google.cloud.vmwareengine.v1.GetClusterRequest;
 import com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest;
 import com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest;
 import com.google.cloud.vmwareengine.v1.GetNodeTypeRequest;
 import com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest;
+import com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest;
+import com.google.cloud.vmwareengine.v1.GetSubnetRequest;
 import com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest;
 import com.google.cloud.vmwareengine.v1.HcxActivationKey;
 import com.google.cloud.vmwareengine.v1.ListClustersRequest;
@@ -65,6 +71,10 @@
 import com.google.cloud.vmwareengine.v1.ListNodeTypesResponse;
 import com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest;
 import com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse;
+import com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest;
+import com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse;
+import com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest;
+import com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse;
 import com.google.cloud.vmwareengine.v1.ListSubnetsRequest;
 import com.google.cloud.vmwareengine.v1.ListSubnetsResponse;
 import com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest;
@@ -73,14 +83,18 @@
 import com.google.cloud.vmwareengine.v1.NodeType;
 import com.google.cloud.vmwareengine.v1.OperationMetadata;
 import com.google.cloud.vmwareengine.v1.PrivateCloud;
+import com.google.cloud.vmwareengine.v1.PrivateConnection;
 import com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest;
 import com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest;
 import com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest;
 import com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest;
+import com.google.cloud.vmwareengine.v1.Subnet;
 import com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest;
 import com.google.cloud.vmwareengine.v1.UpdateClusterRequest;
 import com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest;
 import com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest;
+import com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest;
+import com.google.cloud.vmwareengine.v1.UpdateSubnetRequest;
 import com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest;
 import com.google.cloud.vmwareengine.v1.VmwareEngineNetwork;
 import com.google.iam.v1.GetIamPolicyRequest;
@@ -224,6 +238,23 @@ public class GrpcVmwareEngineStub extends VmwareEngineStub {
                   ProtoUtils.marshaller(ListSubnetsResponse.getDefaultInstance()))
               .build();
 
+  private static final MethodDescriptor getSubnetMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetSubnet")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetSubnetRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Subnet.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor
+      updateSubnetMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/UpdateSubnet")
+              .setRequestMarshaller(ProtoUtils.marshaller(UpdateSubnetRequest.getDefaultInstance()))
+              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+              .build();
+
   private static final MethodDescriptor
       listNodeTypesMethodDescriptor =
           MethodDescriptor.newBuilder()
@@ -424,6 +455,80 @@ public class GrpcVmwareEngineStub extends VmwareEngineStub {
                   ProtoUtils.marshaller(ListVmwareEngineNetworksResponse.getDefaultInstance()))
               .build();
 
+  private static final MethodDescriptor
+      createPrivateConnectionMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(
+                  "google.cloud.vmwareengine.v1.VmwareEngine/CreatePrivateConnection")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(CreatePrivateConnectionRequest.getDefaultInstance()))
+              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor
+      getPrivateConnectionMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetPrivateConnection")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(GetPrivateConnectionRequest.getDefaultInstance()))
+              .setResponseMarshaller(ProtoUtils.marshaller(PrivateConnection.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor<
+          ListPrivateConnectionsRequest, ListPrivateConnectionsResponse>
+      listPrivateConnectionsMethodDescriptor =
+          MethodDescriptor
+              .newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ListPrivateConnections")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ListPrivateConnectionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(ListPrivateConnectionsResponse.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor
+      updatePrivateConnectionMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(
+                  "google.cloud.vmwareengine.v1.VmwareEngine/UpdatePrivateConnection")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(UpdatePrivateConnectionRequest.getDefaultInstance()))
+              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor
+      deletePrivateConnectionMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(
+                  "google.cloud.vmwareengine.v1.VmwareEngine/DeletePrivateConnection")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(DeletePrivateConnectionRequest.getDefaultInstance()))
+              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor<
+          ListPrivateConnectionPeeringRoutesRequest, ListPrivateConnectionPeeringRoutesResponse>
+      listPrivateConnectionPeeringRoutesMethodDescriptor =
+          MethodDescriptor
+              .
+                  newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(
+                  "google.cloud.vmwareengine.v1.VmwareEngine/ListPrivateConnectionPeeringRoutes")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(
+                      ListPrivateConnectionPeeringRoutesRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(
+                      ListPrivateConnectionPeeringRoutesResponse.getDefaultInstance()))
+              .build();
+
   private static final MethodDescriptor
       listLocationsMethodDescriptor =
           MethodDescriptor.newBuilder()
@@ -503,6 +608,10 @@ public class GrpcVmwareEngineStub extends VmwareEngineStub {
   private final UnaryCallable listSubnetsCallable;
   private final UnaryCallable
       listSubnetsPagedCallable;
+  private final UnaryCallable getSubnetCallable;
+  private final UnaryCallable updateSubnetCallable;
+  private final OperationCallable
+      updateSubnetOperationCallable;
   private final UnaryCallable listNodeTypesCallable;
   private final UnaryCallable
       listNodeTypesPagedCallable;
@@ -563,6 +672,33 @@ public class GrpcVmwareEngineStub extends VmwareEngineStub {
   private final UnaryCallable<
           ListVmwareEngineNetworksRequest, ListVmwareEngineNetworksPagedResponse>
       listVmwareEngineNetworksPagedCallable;
+  private final UnaryCallable
+      createPrivateConnectionCallable;
+  private final OperationCallable<
+          CreatePrivateConnectionRequest, PrivateConnection, OperationMetadata>
+      createPrivateConnectionOperationCallable;
+  private final UnaryCallable
+      getPrivateConnectionCallable;
+  private final UnaryCallable
+      listPrivateConnectionsCallable;
+  private final UnaryCallable
+      listPrivateConnectionsPagedCallable;
+  private final UnaryCallable
+      updatePrivateConnectionCallable;
+  private final OperationCallable<
+          UpdatePrivateConnectionRequest, PrivateConnection, OperationMetadata>
+      updatePrivateConnectionOperationCallable;
+  private final UnaryCallable
+      deletePrivateConnectionCallable;
+  private final OperationCallable
+      deletePrivateConnectionOperationCallable;
+  private final UnaryCallable<
+          ListPrivateConnectionPeeringRoutesRequest, ListPrivateConnectionPeeringRoutesResponse>
+      listPrivateConnectionPeeringRoutesCallable;
+  private final UnaryCallable<
+          ListPrivateConnectionPeeringRoutesRequest,
+          ListPrivateConnectionPeeringRoutesPagedResponse>
+      listPrivateConnectionPeeringRoutesPagedCallable;
   private final UnaryCallable listLocationsCallable;
   private final UnaryCallable
       listLocationsPagedCallable;
@@ -736,6 +872,26 @@ protected GrpcVmwareEngineStub(
                   return builder.build();
                 })
             .build();
+    GrpcCallSettings getSubnetTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getSubnetMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  RequestParamsBuilder builder = RequestParamsBuilder.create();
+                  builder.add("name", String.valueOf(request.getName()));
+                  return builder.build();
+                })
+            .build();
+    GrpcCallSettings updateSubnetTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(updateSubnetMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  RequestParamsBuilder builder = RequestParamsBuilder.create();
+                  builder.add("subnet.name", String.valueOf(request.getSubnet().getName()));
+                  return builder.build();
+                })
+            .build();
     GrpcCallSettings listNodeTypesTransportSettings =
         GrpcCallSettings.newBuilder()
             .setMethodDescriptor(listNodeTypesMethodDescriptor)
@@ -942,6 +1098,79 @@ protected GrpcVmwareEngineStub(
                       return builder.build();
                     })
                 .build();
+    GrpcCallSettings
+        createPrivateConnectionTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(createPrivateConnectionMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      RequestParamsBuilder builder = RequestParamsBuilder.create();
+                      builder.add("parent", String.valueOf(request.getParent()));
+                      return builder.build();
+                    })
+                .build();
+    GrpcCallSettings
+        getPrivateConnectionTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(getPrivateConnectionMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      RequestParamsBuilder builder = RequestParamsBuilder.create();
+                      builder.add("name", String.valueOf(request.getName()));
+                      return builder.build();
+                    })
+                .build();
+    GrpcCallSettings
+        listPrivateConnectionsTransportSettings =
+            GrpcCallSettings
+                .newBuilder()
+                .setMethodDescriptor(listPrivateConnectionsMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      RequestParamsBuilder builder = RequestParamsBuilder.create();
+                      builder.add("parent", String.valueOf(request.getParent()));
+                      return builder.build();
+                    })
+                .build();
+    GrpcCallSettings
+        updatePrivateConnectionTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(updatePrivateConnectionMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      RequestParamsBuilder builder = RequestParamsBuilder.create();
+                      builder.add(
+                          "private_connection.name",
+                          String.valueOf(request.getPrivateConnection().getName()));
+                      return builder.build();
+                    })
+                .build();
+    GrpcCallSettings
+        deletePrivateConnectionTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(deletePrivateConnectionMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      RequestParamsBuilder builder = RequestParamsBuilder.create();
+                      builder.add("name", String.valueOf(request.getName()));
+                      return builder.build();
+                    })
+                .build();
+    GrpcCallSettings<
+            ListPrivateConnectionPeeringRoutesRequest, ListPrivateConnectionPeeringRoutesResponse>
+        listPrivateConnectionPeeringRoutesTransportSettings =
+            GrpcCallSettings
+                .
+                    newBuilder()
+                .setMethodDescriptor(listPrivateConnectionPeeringRoutesMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      RequestParamsBuilder builder = RequestParamsBuilder.create();
+                      builder.add("parent", String.valueOf(request.getParent()));
+                      return builder.build();
+                    })
+                .build();
     GrpcCallSettings listLocationsTransportSettings =
         GrpcCallSettings.newBuilder()
             .setMethodDescriptor(listLocationsMethodDescriptor)
@@ -1093,6 +1322,18 @@ protected GrpcVmwareEngineStub(
     this.listSubnetsPagedCallable =
         callableFactory.createPagedCallable(
             listSubnetsTransportSettings, settings.listSubnetsSettings(), clientContext);
+    this.getSubnetCallable =
+        callableFactory.createUnaryCallable(
+            getSubnetTransportSettings, settings.getSubnetSettings(), clientContext);
+    this.updateSubnetCallable =
+        callableFactory.createUnaryCallable(
+            updateSubnetTransportSettings, settings.updateSubnetSettings(), clientContext);
+    this.updateSubnetOperationCallable =
+        callableFactory.createOperationCallable(
+            updateSubnetTransportSettings,
+            settings.updateSubnetOperationSettings(),
+            clientContext,
+            operationsStub);
     this.listNodeTypesCallable =
         callableFactory.createUnaryCallable(
             listNodeTypesTransportSettings, settings.listNodeTypesSettings(), clientContext);
@@ -1254,6 +1495,64 @@ protected GrpcVmwareEngineStub(
             listVmwareEngineNetworksTransportSettings,
             settings.listVmwareEngineNetworksSettings(),
             clientContext);
+    this.createPrivateConnectionCallable =
+        callableFactory.createUnaryCallable(
+            createPrivateConnectionTransportSettings,
+            settings.createPrivateConnectionSettings(),
+            clientContext);
+    this.createPrivateConnectionOperationCallable =
+        callableFactory.createOperationCallable(
+            createPrivateConnectionTransportSettings,
+            settings.createPrivateConnectionOperationSettings(),
+            clientContext,
+            operationsStub);
+    this.getPrivateConnectionCallable =
+        callableFactory.createUnaryCallable(
+            getPrivateConnectionTransportSettings,
+            settings.getPrivateConnectionSettings(),
+            clientContext);
+    this.listPrivateConnectionsCallable =
+        callableFactory.createUnaryCallable(
+            listPrivateConnectionsTransportSettings,
+            settings.listPrivateConnectionsSettings(),
+            clientContext);
+    this.listPrivateConnectionsPagedCallable =
+        callableFactory.createPagedCallable(
+            listPrivateConnectionsTransportSettings,
+            settings.listPrivateConnectionsSettings(),
+            clientContext);
+    this.updatePrivateConnectionCallable =
+        callableFactory.createUnaryCallable(
+            updatePrivateConnectionTransportSettings,
+            settings.updatePrivateConnectionSettings(),
+            clientContext);
+    this.updatePrivateConnectionOperationCallable =
+        callableFactory.createOperationCallable(
+            updatePrivateConnectionTransportSettings,
+            settings.updatePrivateConnectionOperationSettings(),
+            clientContext,
+            operationsStub);
+    this.deletePrivateConnectionCallable =
+        callableFactory.createUnaryCallable(
+            deletePrivateConnectionTransportSettings,
+            settings.deletePrivateConnectionSettings(),
+            clientContext);
+    this.deletePrivateConnectionOperationCallable =
+        callableFactory.createOperationCallable(
+            deletePrivateConnectionTransportSettings,
+            settings.deletePrivateConnectionOperationSettings(),
+            clientContext,
+            operationsStub);
+    this.listPrivateConnectionPeeringRoutesCallable =
+        callableFactory.createUnaryCallable(
+            listPrivateConnectionPeeringRoutesTransportSettings,
+            settings.listPrivateConnectionPeeringRoutesSettings(),
+            clientContext);
+    this.listPrivateConnectionPeeringRoutesPagedCallable =
+        callableFactory.createPagedCallable(
+            listPrivateConnectionPeeringRoutesTransportSettings,
+            settings.listPrivateConnectionPeeringRoutesSettings(),
+            clientContext);
     this.listLocationsCallable =
         callableFactory.createUnaryCallable(
             listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
@@ -1402,6 +1701,22 @@ public UnaryCallable listSubnetsPa
     return listSubnetsPagedCallable;
   }
 
+  @Override
+  public UnaryCallable getSubnetCallable() {
+    return getSubnetCallable;
+  }
+
+  @Override
+  public UnaryCallable updateSubnetCallable() {
+    return updateSubnetCallable;
+  }
+
+  @Override
+  public OperationCallable
+      updateSubnetOperationCallable() {
+    return updateSubnetOperationCallable;
+  }
+
   @Override
   public UnaryCallable listNodeTypesCallable() {
     return listNodeTypesCallable;
@@ -1584,6 +1899,75 @@ public UnaryCallable deleteNetworkPolicyC
     return listVmwareEngineNetworksPagedCallable;
   }
 
+  @Override
+  public UnaryCallable
+      createPrivateConnectionCallable() {
+    return createPrivateConnectionCallable;
+  }
+
+  @Override
+  public OperationCallable
+      createPrivateConnectionOperationCallable() {
+    return createPrivateConnectionOperationCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      getPrivateConnectionCallable() {
+    return getPrivateConnectionCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      listPrivateConnectionsCallable() {
+    return listPrivateConnectionsCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      listPrivateConnectionsPagedCallable() {
+    return listPrivateConnectionsPagedCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      updatePrivateConnectionCallable() {
+    return updatePrivateConnectionCallable;
+  }
+
+  @Override
+  public OperationCallable
+      updatePrivateConnectionOperationCallable() {
+    return updatePrivateConnectionOperationCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      deletePrivateConnectionCallable() {
+    return deletePrivateConnectionCallable;
+  }
+
+  @Override
+  public OperationCallable
+      deletePrivateConnectionOperationCallable() {
+    return deletePrivateConnectionOperationCallable;
+  }
+
+  @Override
+  public UnaryCallable<
+          ListPrivateConnectionPeeringRoutesRequest, ListPrivateConnectionPeeringRoutesResponse>
+      listPrivateConnectionPeeringRoutesCallable() {
+    return listPrivateConnectionPeeringRoutesCallable;
+  }
+
+  @Override
+  public UnaryCallable<
+          ListPrivateConnectionPeeringRoutesRequest,
+          ListPrivateConnectionPeeringRoutesPagedResponse>
+      listPrivateConnectionPeeringRoutesPagedCallable() {
+    return listPrivateConnectionPeeringRoutesPagedCallable;
+  }
+
   @Override
   public UnaryCallable listLocationsCallable() {
     return listLocationsCallable;
diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/HttpJsonVmwareEngineStub.java b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/HttpJsonVmwareEngineStub.java
index 07c32b65f343..163e77283d74 100644
--- a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/HttpJsonVmwareEngineStub.java
+++ b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/HttpJsonVmwareEngineStub.java
@@ -22,6 +22,8 @@
 import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNetworkPoliciesPagedResponse;
 import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNodeTypesPagedResponse;
 import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateCloudsPagedResponse;
+import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateConnectionPeeringRoutesPagedResponse;
+import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateConnectionsPagedResponse;
 import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListSubnetsPagedResponse;
 import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListVmwareEngineNetworksPagedResponse;
 
@@ -51,17 +53,21 @@
 import com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest;
 import com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest;
 import com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest;
+import com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest;
 import com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest;
 import com.google.cloud.vmwareengine.v1.Credentials;
 import com.google.cloud.vmwareengine.v1.DeleteClusterRequest;
 import com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest;
 import com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest;
+import com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest;
 import com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest;
 import com.google.cloud.vmwareengine.v1.GetClusterRequest;
 import com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest;
 import com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest;
 import com.google.cloud.vmwareengine.v1.GetNodeTypeRequest;
 import com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest;
+import com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest;
+import com.google.cloud.vmwareengine.v1.GetSubnetRequest;
 import com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest;
 import com.google.cloud.vmwareengine.v1.HcxActivationKey;
 import com.google.cloud.vmwareengine.v1.ListClustersRequest;
@@ -74,6 +80,10 @@
 import com.google.cloud.vmwareengine.v1.ListNodeTypesResponse;
 import com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest;
 import com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse;
+import com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest;
+import com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse;
+import com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest;
+import com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse;
 import com.google.cloud.vmwareengine.v1.ListSubnetsRequest;
 import com.google.cloud.vmwareengine.v1.ListSubnetsResponse;
 import com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest;
@@ -82,14 +92,18 @@
 import com.google.cloud.vmwareengine.v1.NodeType;
 import com.google.cloud.vmwareengine.v1.OperationMetadata;
 import com.google.cloud.vmwareengine.v1.PrivateCloud;
+import com.google.cloud.vmwareengine.v1.PrivateConnection;
 import com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest;
 import com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest;
 import com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest;
 import com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest;
+import com.google.cloud.vmwareengine.v1.Subnet;
 import com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest;
 import com.google.cloud.vmwareengine.v1.UpdateClusterRequest;
 import com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest;
 import com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest;
+import com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest;
+import com.google.cloud.vmwareengine.v1.UpdateSubnetRequest;
 import com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest;
 import com.google.cloud.vmwareengine.v1.VmwareEngineNetwork;
 import com.google.common.collect.ImmutableMap;
@@ -122,6 +136,8 @@ public class HttpJsonVmwareEngineStub extends VmwareEngineStub {
       TypeRegistry.newBuilder()
           .add(Cluster.getDescriptor())
           .add(Empty.getDescriptor())
+          .add(Subnet.getDescriptor())
+          .add(PrivateConnection.getDescriptor())
           .add(OperationMetadata.getDescriptor())
           .add(PrivateCloud.getDescriptor())
           .add(HcxActivationKey.getDescriptor())
@@ -606,6 +622,81 @@ public class HttpJsonVmwareEngineStub extends VmwareEngineStub {
                       .build())
               .build();
 
+  private static final ApiMethodDescriptor getSubnetMethodDescriptor =
+      ApiMethodDescriptor.newBuilder()
+          .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetSubnet")
+          .setHttpMethod("GET")
+          .setType(ApiMethodDescriptor.MethodType.UNARY)
+          .setRequestFormatter(
+              ProtoMessageRequestFormatter.newBuilder()
+                  .setPath(
+                      "/v1/{name=projects/*/locations/*/privateClouds/*/subnets/*}",
+                      request -> {
+                        Map fields = new HashMap<>();
+                        ProtoRestSerializer serializer =
+                            ProtoRestSerializer.create();
+                        serializer.putPathParam(fields, "name", request.getName());
+                        return fields;
+                      })
+                  .setQueryParamsExtractor(
+                      request -> {
+                        Map> fields = new HashMap<>();
+                        ProtoRestSerializer serializer =
+                            ProtoRestSerializer.create();
+                        serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
+                        return fields;
+                      })
+                  .setRequestBodyExtractor(request -> null)
+                  .build())
+          .setResponseParser(
+              ProtoMessageResponseParser.newBuilder()
+                  .setDefaultInstance(Subnet.getDefaultInstance())
+                  .setDefaultTypeRegistry(typeRegistry)
+                  .build())
+          .build();
+
+  private static final ApiMethodDescriptor
+      updateSubnetMethodDescriptor =
+          ApiMethodDescriptor.newBuilder()
+              .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/UpdateSubnet")
+              .setHttpMethod("PATCH")
+              .setType(ApiMethodDescriptor.MethodType.UNARY)
+              .setRequestFormatter(
+                  ProtoMessageRequestFormatter.newBuilder()
+                      .setPath(
+                          "/v1/{subnet.name=projects/*/locations/*/privateClouds/*/subnets/*}",
+                          request -> {
+                            Map fields = new HashMap<>();
+                            ProtoRestSerializer serializer =
+                                ProtoRestSerializer.create();
+                            serializer.putPathParam(
+                                fields, "subnet.name", request.getSubnet().getName());
+                            return fields;
+                          })
+                      .setQueryParamsExtractor(
+                          request -> {
+                            Map> fields = new HashMap<>();
+                            ProtoRestSerializer serializer =
+                                ProtoRestSerializer.create();
+                            serializer.putQueryParam(fields, "updateMask", request.getUpdateMask());
+                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
+                            return fields;
+                          })
+                      .setRequestBodyExtractor(
+                          request ->
+                              ProtoRestSerializer.create()
+                                  .toBody("subnet", request.getSubnet(), true))
+                      .build())
+              .setResponseParser(
+                  ProtoMessageResponseParser.newBuilder()
+                      .setDefaultInstance(Operation.getDefaultInstance())
+                      .setDefaultTypeRegistry(typeRegistry)
+                      .build())
+              .setOperationSnapshotFactory(
+                  (UpdateSubnetRequest request, Operation response) ->
+                      HttpJsonOperationSnapshot.create(response))
+              .build();
+
   private static final ApiMethodDescriptor
       listNodeTypesMethodDescriptor =
           ApiMethodDescriptor.newBuilder()
@@ -1356,6 +1447,255 @@ public class HttpJsonVmwareEngineStub extends VmwareEngineStub {
                       .build())
               .build();
 
+  private static final ApiMethodDescriptor
+      createPrivateConnectionMethodDescriptor =
+          ApiMethodDescriptor.newBuilder()
+              .setFullMethodName(
+                  "google.cloud.vmwareengine.v1.VmwareEngine/CreatePrivateConnection")
+              .setHttpMethod("POST")
+              .setType(ApiMethodDescriptor.MethodType.UNARY)
+              .setRequestFormatter(
+                  ProtoMessageRequestFormatter.newBuilder()
+                      .setPath(
+                          "/v1/{parent=projects/*/locations/*}/privateConnections",
+                          request -> {
+                            Map fields = new HashMap<>();
+                            ProtoRestSerializer serializer =
+                                ProtoRestSerializer.create();
+                            serializer.putPathParam(fields, "parent", request.getParent());
+                            return fields;
+                          })
+                      .setQueryParamsExtractor(
+                          request -> {
+                            Map> fields = new HashMap<>();
+                            ProtoRestSerializer serializer =
+                                ProtoRestSerializer.create();
+                            serializer.putQueryParam(
+                                fields, "privateConnectionId", request.getPrivateConnectionId());
+                            serializer.putQueryParam(fields, "requestId", request.getRequestId());
+                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
+                            return fields;
+                          })
+                      .setRequestBodyExtractor(
+                          request ->
+                              ProtoRestSerializer.create()
+                                  .toBody(
+                                      "privateConnection", request.getPrivateConnection(), true))
+                      .build())
+              .setResponseParser(
+                  ProtoMessageResponseParser.newBuilder()
+                      .setDefaultInstance(Operation.getDefaultInstance())
+                      .setDefaultTypeRegistry(typeRegistry)
+                      .build())
+              .setOperationSnapshotFactory(
+                  (CreatePrivateConnectionRequest request, Operation response) ->
+                      HttpJsonOperationSnapshot.create(response))
+              .build();
+
+  private static final ApiMethodDescriptor
+      getPrivateConnectionMethodDescriptor =
+          ApiMethodDescriptor.newBuilder()
+              .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetPrivateConnection")
+              .setHttpMethod("GET")
+              .setType(ApiMethodDescriptor.MethodType.UNARY)
+              .setRequestFormatter(
+                  ProtoMessageRequestFormatter.newBuilder()
+                      .setPath(
+                          "/v1/{name=projects/*/locations/*/privateConnections/*}",
+                          request -> {
+                            Map fields = new HashMap<>();
+                            ProtoRestSerializer serializer =
+                                ProtoRestSerializer.create();
+                            serializer.putPathParam(fields, "name", request.getName());
+                            return fields;
+                          })
+                      .setQueryParamsExtractor(
+                          request -> {
+                            Map> fields = new HashMap<>();
+                            ProtoRestSerializer serializer =
+                                ProtoRestSerializer.create();
+                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
+                            return fields;
+                          })
+                      .setRequestBodyExtractor(request -> null)
+                      .build())
+              .setResponseParser(
+                  ProtoMessageResponseParser.newBuilder()
+                      .setDefaultInstance(PrivateConnection.getDefaultInstance())
+                      .setDefaultTypeRegistry(typeRegistry)
+                      .build())
+              .build();
+
+  private static final ApiMethodDescriptor<
+          ListPrivateConnectionsRequest, ListPrivateConnectionsResponse>
+      listPrivateConnectionsMethodDescriptor =
+          ApiMethodDescriptor
+              .newBuilder()
+              .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ListPrivateConnections")
+              .setHttpMethod("GET")
+              .setType(ApiMethodDescriptor.MethodType.UNARY)
+              .setRequestFormatter(
+                  ProtoMessageRequestFormatter.newBuilder()
+                      .setPath(
+                          "/v1/{parent=projects/*/locations/*}/privateConnections",
+                          request -> {
+                            Map fields = new HashMap<>();
+                            ProtoRestSerializer serializer =
+                                ProtoRestSerializer.create();
+                            serializer.putPathParam(fields, "parent", request.getParent());
+                            return fields;
+                          })
+                      .setQueryParamsExtractor(
+                          request -> {
+                            Map> fields = new HashMap<>();
+                            ProtoRestSerializer serializer =
+                                ProtoRestSerializer.create();
+                            serializer.putQueryParam(fields, "filter", request.getFilter());
+                            serializer.putQueryParam(fields, "orderBy", request.getOrderBy());
+                            serializer.putQueryParam(fields, "pageSize", request.getPageSize());
+                            serializer.putQueryParam(fields, "pageToken", request.getPageToken());
+                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
+                            return fields;
+                          })
+                      .setRequestBodyExtractor(request -> null)
+                      .build())
+              .setResponseParser(
+                  ProtoMessageResponseParser.newBuilder()
+                      .setDefaultInstance(ListPrivateConnectionsResponse.getDefaultInstance())
+                      .setDefaultTypeRegistry(typeRegistry)
+                      .build())
+              .build();
+
+  private static final ApiMethodDescriptor
+      updatePrivateConnectionMethodDescriptor =
+          ApiMethodDescriptor.newBuilder()
+              .setFullMethodName(
+                  "google.cloud.vmwareengine.v1.VmwareEngine/UpdatePrivateConnection")
+              .setHttpMethod("PATCH")
+              .setType(ApiMethodDescriptor.MethodType.UNARY)
+              .setRequestFormatter(
+                  ProtoMessageRequestFormatter.newBuilder()
+                      .setPath(
+                          "/v1/{privateConnection.name=projects/*/locations/*/privateConnections/*}",
+                          request -> {
+                            Map fields = new HashMap<>();
+                            ProtoRestSerializer serializer =
+                                ProtoRestSerializer.create();
+                            serializer.putPathParam(
+                                fields,
+                                "privateConnection.name",
+                                request.getPrivateConnection().getName());
+                            return fields;
+                          })
+                      .setQueryParamsExtractor(
+                          request -> {
+                            Map> fields = new HashMap<>();
+                            ProtoRestSerializer serializer =
+                                ProtoRestSerializer.create();
+                            serializer.putQueryParam(fields, "requestId", request.getRequestId());
+                            serializer.putQueryParam(fields, "updateMask", request.getUpdateMask());
+                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
+                            return fields;
+                          })
+                      .setRequestBodyExtractor(
+                          request ->
+                              ProtoRestSerializer.create()
+                                  .toBody(
+                                      "privateConnection", request.getPrivateConnection(), true))
+                      .build())
+              .setResponseParser(
+                  ProtoMessageResponseParser.newBuilder()
+                      .setDefaultInstance(Operation.getDefaultInstance())
+                      .setDefaultTypeRegistry(typeRegistry)
+                      .build())
+              .setOperationSnapshotFactory(
+                  (UpdatePrivateConnectionRequest request, Operation response) ->
+                      HttpJsonOperationSnapshot.create(response))
+              .build();
+
+  private static final ApiMethodDescriptor
+      deletePrivateConnectionMethodDescriptor =
+          ApiMethodDescriptor.newBuilder()
+              .setFullMethodName(
+                  "google.cloud.vmwareengine.v1.VmwareEngine/DeletePrivateConnection")
+              .setHttpMethod("DELETE")
+              .setType(ApiMethodDescriptor.MethodType.UNARY)
+              .setRequestFormatter(
+                  ProtoMessageRequestFormatter.newBuilder()
+                      .setPath(
+                          "/v1/{name=projects/*/locations/*/privateConnections/*}",
+                          request -> {
+                            Map fields = new HashMap<>();
+                            ProtoRestSerializer serializer =
+                                ProtoRestSerializer.create();
+                            serializer.putPathParam(fields, "name", request.getName());
+                            return fields;
+                          })
+                      .setQueryParamsExtractor(
+                          request -> {
+                            Map> fields = new HashMap<>();
+                            ProtoRestSerializer serializer =
+                                ProtoRestSerializer.create();
+                            serializer.putQueryParam(fields, "requestId", request.getRequestId());
+                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
+                            return fields;
+                          })
+                      .setRequestBodyExtractor(request -> null)
+                      .build())
+              .setResponseParser(
+                  ProtoMessageResponseParser.newBuilder()
+                      .setDefaultInstance(Operation.getDefaultInstance())
+                      .setDefaultTypeRegistry(typeRegistry)
+                      .build())
+              .setOperationSnapshotFactory(
+                  (DeletePrivateConnectionRequest request, Operation response) ->
+                      HttpJsonOperationSnapshot.create(response))
+              .build();
+
+  private static final ApiMethodDescriptor<
+          ListPrivateConnectionPeeringRoutesRequest, ListPrivateConnectionPeeringRoutesResponse>
+      listPrivateConnectionPeeringRoutesMethodDescriptor =
+          ApiMethodDescriptor
+              .
+                  newBuilder()
+              .setFullMethodName(
+                  "google.cloud.vmwareengine.v1.VmwareEngine/ListPrivateConnectionPeeringRoutes")
+              .setHttpMethod("GET")
+              .setType(ApiMethodDescriptor.MethodType.UNARY)
+              .setRequestFormatter(
+                  ProtoMessageRequestFormatter
+                      .newBuilder()
+                      .setPath(
+                          "/v1/{parent=projects/*/locations/*/privateConnections/*}/peeringRoutes",
+                          request -> {
+                            Map fields = new HashMap<>();
+                            ProtoRestSerializer
+                                serializer = ProtoRestSerializer.create();
+                            serializer.putPathParam(fields, "parent", request.getParent());
+                            return fields;
+                          })
+                      .setQueryParamsExtractor(
+                          request -> {
+                            Map> fields = new HashMap<>();
+                            ProtoRestSerializer
+                                serializer = ProtoRestSerializer.create();
+                            serializer.putQueryParam(fields, "pageSize", request.getPageSize());
+                            serializer.putQueryParam(fields, "pageToken", request.getPageToken());
+                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
+                            return fields;
+                          })
+                      .setRequestBodyExtractor(request -> null)
+                      .build())
+              .setResponseParser(
+                  ProtoMessageResponseParser
+                      .newBuilder()
+                      .setDefaultInstance(
+                          ListPrivateConnectionPeeringRoutesResponse.getDefaultInstance())
+                      .setDefaultTypeRegistry(typeRegistry)
+                      .build())
+              .build();
+
   private static final ApiMethodDescriptor
       listLocationsMethodDescriptor =
           ApiMethodDescriptor.newBuilder()
@@ -1574,6 +1914,10 @@ public class HttpJsonVmwareEngineStub extends VmwareEngineStub {
   private final UnaryCallable listSubnetsCallable;
   private final UnaryCallable
       listSubnetsPagedCallable;
+  private final UnaryCallable getSubnetCallable;
+  private final UnaryCallable updateSubnetCallable;
+  private final OperationCallable
+      updateSubnetOperationCallable;
   private final UnaryCallable listNodeTypesCallable;
   private final UnaryCallable
       listNodeTypesPagedCallable;
@@ -1634,6 +1978,33 @@ public class HttpJsonVmwareEngineStub extends VmwareEngineStub {
   private final UnaryCallable<
           ListVmwareEngineNetworksRequest, ListVmwareEngineNetworksPagedResponse>
       listVmwareEngineNetworksPagedCallable;
+  private final UnaryCallable
+      createPrivateConnectionCallable;
+  private final OperationCallable<
+          CreatePrivateConnectionRequest, PrivateConnection, OperationMetadata>
+      createPrivateConnectionOperationCallable;
+  private final UnaryCallable
+      getPrivateConnectionCallable;
+  private final UnaryCallable
+      listPrivateConnectionsCallable;
+  private final UnaryCallable
+      listPrivateConnectionsPagedCallable;
+  private final UnaryCallable
+      updatePrivateConnectionCallable;
+  private final OperationCallable<
+          UpdatePrivateConnectionRequest, PrivateConnection, OperationMetadata>
+      updatePrivateConnectionOperationCallable;
+  private final UnaryCallable
+      deletePrivateConnectionCallable;
+  private final OperationCallable
+      deletePrivateConnectionOperationCallable;
+  private final UnaryCallable<
+          ListPrivateConnectionPeeringRoutesRequest, ListPrivateConnectionPeeringRoutesResponse>
+      listPrivateConnectionPeeringRoutesCallable;
+  private final UnaryCallable<
+          ListPrivateConnectionPeeringRoutesRequest,
+          ListPrivateConnectionPeeringRoutesPagedResponse>
+      listPrivateConnectionPeeringRoutesPagedCallable;
   private final UnaryCallable listLocationsCallable;
   private final UnaryCallable
       listLocationsPagedCallable;
@@ -1843,6 +2214,28 @@ protected HttpJsonVmwareEngineStub(
                   return builder.build();
                 })
             .build();
+    HttpJsonCallSettings getSubnetTransportSettings =
+        HttpJsonCallSettings.newBuilder()
+            .setMethodDescriptor(getSubnetMethodDescriptor)
+            .setTypeRegistry(typeRegistry)
+            .setParamsExtractor(
+                request -> {
+                  RequestParamsBuilder builder = RequestParamsBuilder.create();
+                  builder.add("name", String.valueOf(request.getName()));
+                  return builder.build();
+                })
+            .build();
+    HttpJsonCallSettings updateSubnetTransportSettings =
+        HttpJsonCallSettings.newBuilder()
+            .setMethodDescriptor(updateSubnetMethodDescriptor)
+            .setTypeRegistry(typeRegistry)
+            .setParamsExtractor(
+                request -> {
+                  RequestParamsBuilder builder = RequestParamsBuilder.create();
+                  builder.add("subnet.name", String.valueOf(request.getSubnet().getName()));
+                  return builder.build();
+                })
+            .build();
     HttpJsonCallSettings
         listNodeTypesTransportSettings =
             HttpJsonCallSettings.newBuilder()
@@ -2076,6 +2469,85 @@ protected HttpJsonVmwareEngineStub(
                       return builder.build();
                     })
                 .build();
+    HttpJsonCallSettings
+        createPrivateConnectionTransportSettings =
+            HttpJsonCallSettings.newBuilder()
+                .setMethodDescriptor(createPrivateConnectionMethodDescriptor)
+                .setTypeRegistry(typeRegistry)
+                .setParamsExtractor(
+                    request -> {
+                      RequestParamsBuilder builder = RequestParamsBuilder.create();
+                      builder.add("parent", String.valueOf(request.getParent()));
+                      return builder.build();
+                    })
+                .build();
+    HttpJsonCallSettings
+        getPrivateConnectionTransportSettings =
+            HttpJsonCallSettings.newBuilder()
+                .setMethodDescriptor(getPrivateConnectionMethodDescriptor)
+                .setTypeRegistry(typeRegistry)
+                .setParamsExtractor(
+                    request -> {
+                      RequestParamsBuilder builder = RequestParamsBuilder.create();
+                      builder.add("name", String.valueOf(request.getName()));
+                      return builder.build();
+                    })
+                .build();
+    HttpJsonCallSettings
+        listPrivateConnectionsTransportSettings =
+            HttpJsonCallSettings
+                .newBuilder()
+                .setMethodDescriptor(listPrivateConnectionsMethodDescriptor)
+                .setTypeRegistry(typeRegistry)
+                .setParamsExtractor(
+                    request -> {
+                      RequestParamsBuilder builder = RequestParamsBuilder.create();
+                      builder.add("parent", String.valueOf(request.getParent()));
+                      return builder.build();
+                    })
+                .build();
+    HttpJsonCallSettings
+        updatePrivateConnectionTransportSettings =
+            HttpJsonCallSettings.newBuilder()
+                .setMethodDescriptor(updatePrivateConnectionMethodDescriptor)
+                .setTypeRegistry(typeRegistry)
+                .setParamsExtractor(
+                    request -> {
+                      RequestParamsBuilder builder = RequestParamsBuilder.create();
+                      builder.add(
+                          "private_connection.name",
+                          String.valueOf(request.getPrivateConnection().getName()));
+                      return builder.build();
+                    })
+                .build();
+    HttpJsonCallSettings
+        deletePrivateConnectionTransportSettings =
+            HttpJsonCallSettings.newBuilder()
+                .setMethodDescriptor(deletePrivateConnectionMethodDescriptor)
+                .setTypeRegistry(typeRegistry)
+                .setParamsExtractor(
+                    request -> {
+                      RequestParamsBuilder builder = RequestParamsBuilder.create();
+                      builder.add("name", String.valueOf(request.getName()));
+                      return builder.build();
+                    })
+                .build();
+    HttpJsonCallSettings<
+            ListPrivateConnectionPeeringRoutesRequest, ListPrivateConnectionPeeringRoutesResponse>
+        listPrivateConnectionPeeringRoutesTransportSettings =
+            HttpJsonCallSettings
+                .
+                    newBuilder()
+                .setMethodDescriptor(listPrivateConnectionPeeringRoutesMethodDescriptor)
+                .setTypeRegistry(typeRegistry)
+                .setParamsExtractor(
+                    request -> {
+                      RequestParamsBuilder builder = RequestParamsBuilder.create();
+                      builder.add("parent", String.valueOf(request.getParent()));
+                      return builder.build();
+                    })
+                .build();
     HttpJsonCallSettings
         listLocationsTransportSettings =
             HttpJsonCallSettings.newBuilder()
@@ -2233,6 +2705,18 @@ protected HttpJsonVmwareEngineStub(
     this.listSubnetsPagedCallable =
         callableFactory.createPagedCallable(
             listSubnetsTransportSettings, settings.listSubnetsSettings(), clientContext);
+    this.getSubnetCallable =
+        callableFactory.createUnaryCallable(
+            getSubnetTransportSettings, settings.getSubnetSettings(), clientContext);
+    this.updateSubnetCallable =
+        callableFactory.createUnaryCallable(
+            updateSubnetTransportSettings, settings.updateSubnetSettings(), clientContext);
+    this.updateSubnetOperationCallable =
+        callableFactory.createOperationCallable(
+            updateSubnetTransportSettings,
+            settings.updateSubnetOperationSettings(),
+            clientContext,
+            httpJsonOperationsStub);
     this.listNodeTypesCallable =
         callableFactory.createUnaryCallable(
             listNodeTypesTransportSettings, settings.listNodeTypesSettings(), clientContext);
@@ -2394,6 +2878,64 @@ protected HttpJsonVmwareEngineStub(
             listVmwareEngineNetworksTransportSettings,
             settings.listVmwareEngineNetworksSettings(),
             clientContext);
+    this.createPrivateConnectionCallable =
+        callableFactory.createUnaryCallable(
+            createPrivateConnectionTransportSettings,
+            settings.createPrivateConnectionSettings(),
+            clientContext);
+    this.createPrivateConnectionOperationCallable =
+        callableFactory.createOperationCallable(
+            createPrivateConnectionTransportSettings,
+            settings.createPrivateConnectionOperationSettings(),
+            clientContext,
+            httpJsonOperationsStub);
+    this.getPrivateConnectionCallable =
+        callableFactory.createUnaryCallable(
+            getPrivateConnectionTransportSettings,
+            settings.getPrivateConnectionSettings(),
+            clientContext);
+    this.listPrivateConnectionsCallable =
+        callableFactory.createUnaryCallable(
+            listPrivateConnectionsTransportSettings,
+            settings.listPrivateConnectionsSettings(),
+            clientContext);
+    this.listPrivateConnectionsPagedCallable =
+        callableFactory.createPagedCallable(
+            listPrivateConnectionsTransportSettings,
+            settings.listPrivateConnectionsSettings(),
+            clientContext);
+    this.updatePrivateConnectionCallable =
+        callableFactory.createUnaryCallable(
+            updatePrivateConnectionTransportSettings,
+            settings.updatePrivateConnectionSettings(),
+            clientContext);
+    this.updatePrivateConnectionOperationCallable =
+        callableFactory.createOperationCallable(
+            updatePrivateConnectionTransportSettings,
+            settings.updatePrivateConnectionOperationSettings(),
+            clientContext,
+            httpJsonOperationsStub);
+    this.deletePrivateConnectionCallable =
+        callableFactory.createUnaryCallable(
+            deletePrivateConnectionTransportSettings,
+            settings.deletePrivateConnectionSettings(),
+            clientContext);
+    this.deletePrivateConnectionOperationCallable =
+        callableFactory.createOperationCallable(
+            deletePrivateConnectionTransportSettings,
+            settings.deletePrivateConnectionOperationSettings(),
+            clientContext,
+            httpJsonOperationsStub);
+    this.listPrivateConnectionPeeringRoutesCallable =
+        callableFactory.createUnaryCallable(
+            listPrivateConnectionPeeringRoutesTransportSettings,
+            settings.listPrivateConnectionPeeringRoutesSettings(),
+            clientContext);
+    this.listPrivateConnectionPeeringRoutesPagedCallable =
+        callableFactory.createPagedCallable(
+            listPrivateConnectionPeeringRoutesTransportSettings,
+            settings.listPrivateConnectionPeeringRoutesSettings(),
+            clientContext);
     this.listLocationsCallable =
         callableFactory.createUnaryCallable(
             listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
@@ -2434,6 +2976,8 @@ public static List getMethodDescriptors() {
     methodDescriptors.add(updateClusterMethodDescriptor);
     methodDescriptors.add(deleteClusterMethodDescriptor);
     methodDescriptors.add(listSubnetsMethodDescriptor);
+    methodDescriptors.add(getSubnetMethodDescriptor);
+    methodDescriptors.add(updateSubnetMethodDescriptor);
     methodDescriptors.add(listNodeTypesMethodDescriptor);
     methodDescriptors.add(getNodeTypeMethodDescriptor);
     methodDescriptors.add(showNsxCredentialsMethodDescriptor);
@@ -2453,6 +2997,12 @@ public static List getMethodDescriptors() {
     methodDescriptors.add(deleteVmwareEngineNetworkMethodDescriptor);
     methodDescriptors.add(getVmwareEngineNetworkMethodDescriptor);
     methodDescriptors.add(listVmwareEngineNetworksMethodDescriptor);
+    methodDescriptors.add(createPrivateConnectionMethodDescriptor);
+    methodDescriptors.add(getPrivateConnectionMethodDescriptor);
+    methodDescriptors.add(listPrivateConnectionsMethodDescriptor);
+    methodDescriptors.add(updatePrivateConnectionMethodDescriptor);
+    methodDescriptors.add(deletePrivateConnectionMethodDescriptor);
+    methodDescriptors.add(listPrivateConnectionPeeringRoutesMethodDescriptor);
     methodDescriptors.add(listLocationsMethodDescriptor);
     methodDescriptors.add(getLocationMethodDescriptor);
     methodDescriptors.add(setIamPolicyMethodDescriptor);
@@ -2584,6 +3134,22 @@ public UnaryCallable listSubnetsPa
     return listSubnetsPagedCallable;
   }
 
+  @Override
+  public UnaryCallable getSubnetCallable() {
+    return getSubnetCallable;
+  }
+
+  @Override
+  public UnaryCallable updateSubnetCallable() {
+    return updateSubnetCallable;
+  }
+
+  @Override
+  public OperationCallable
+      updateSubnetOperationCallable() {
+    return updateSubnetOperationCallable;
+  }
+
   @Override
   public UnaryCallable listNodeTypesCallable() {
     return listNodeTypesCallable;
@@ -2766,6 +3332,75 @@ public UnaryCallable deleteNetworkPolicyC
     return listVmwareEngineNetworksPagedCallable;
   }
 
+  @Override
+  public UnaryCallable
+      createPrivateConnectionCallable() {
+    return createPrivateConnectionCallable;
+  }
+
+  @Override
+  public OperationCallable
+      createPrivateConnectionOperationCallable() {
+    return createPrivateConnectionOperationCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      getPrivateConnectionCallable() {
+    return getPrivateConnectionCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      listPrivateConnectionsCallable() {
+    return listPrivateConnectionsCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      listPrivateConnectionsPagedCallable() {
+    return listPrivateConnectionsPagedCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      updatePrivateConnectionCallable() {
+    return updatePrivateConnectionCallable;
+  }
+
+  @Override
+  public OperationCallable
+      updatePrivateConnectionOperationCallable() {
+    return updatePrivateConnectionOperationCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      deletePrivateConnectionCallable() {
+    return deletePrivateConnectionCallable;
+  }
+
+  @Override
+  public OperationCallable
+      deletePrivateConnectionOperationCallable() {
+    return deletePrivateConnectionOperationCallable;
+  }
+
+  @Override
+  public UnaryCallable<
+          ListPrivateConnectionPeeringRoutesRequest, ListPrivateConnectionPeeringRoutesResponse>
+      listPrivateConnectionPeeringRoutesCallable() {
+    return listPrivateConnectionPeeringRoutesCallable;
+  }
+
+  @Override
+  public UnaryCallable<
+          ListPrivateConnectionPeeringRoutesRequest,
+          ListPrivateConnectionPeeringRoutesPagedResponse>
+      listPrivateConnectionPeeringRoutesPagedCallable() {
+    return listPrivateConnectionPeeringRoutesPagedCallable;
+  }
+
   @Override
   public UnaryCallable listLocationsCallable() {
     return listLocationsCallable;
diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStub.java b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStub.java
index 20f450aeef02..95a7ec237574 100644
--- a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStub.java
+++ b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStub.java
@@ -22,6 +22,8 @@
 import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNetworkPoliciesPagedResponse;
 import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNodeTypesPagedResponse;
 import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateCloudsPagedResponse;
+import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateConnectionPeeringRoutesPagedResponse;
+import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateConnectionsPagedResponse;
 import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListSubnetsPagedResponse;
 import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListVmwareEngineNetworksPagedResponse;
 
@@ -37,17 +39,21 @@
 import com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest;
 import com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest;
 import com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest;
+import com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest;
 import com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest;
 import com.google.cloud.vmwareengine.v1.Credentials;
 import com.google.cloud.vmwareengine.v1.DeleteClusterRequest;
 import com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest;
 import com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest;
+import com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest;
 import com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest;
 import com.google.cloud.vmwareengine.v1.GetClusterRequest;
 import com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest;
 import com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest;
 import com.google.cloud.vmwareengine.v1.GetNodeTypeRequest;
 import com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest;
+import com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest;
+import com.google.cloud.vmwareengine.v1.GetSubnetRequest;
 import com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest;
 import com.google.cloud.vmwareengine.v1.HcxActivationKey;
 import com.google.cloud.vmwareengine.v1.ListClustersRequest;
@@ -60,6 +66,10 @@
 import com.google.cloud.vmwareengine.v1.ListNodeTypesResponse;
 import com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest;
 import com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse;
+import com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest;
+import com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse;
+import com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest;
+import com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse;
 import com.google.cloud.vmwareengine.v1.ListSubnetsRequest;
 import com.google.cloud.vmwareengine.v1.ListSubnetsResponse;
 import com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest;
@@ -68,14 +78,18 @@
 import com.google.cloud.vmwareengine.v1.NodeType;
 import com.google.cloud.vmwareengine.v1.OperationMetadata;
 import com.google.cloud.vmwareengine.v1.PrivateCloud;
+import com.google.cloud.vmwareengine.v1.PrivateConnection;
 import com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest;
 import com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest;
 import com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest;
 import com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest;
+import com.google.cloud.vmwareengine.v1.Subnet;
 import com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest;
 import com.google.cloud.vmwareengine.v1.UpdateClusterRequest;
 import com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest;
 import com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest;
+import com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest;
+import com.google.cloud.vmwareengine.v1.UpdateSubnetRequest;
 import com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest;
 import com.google.cloud.vmwareengine.v1.VmwareEngineNetwork;
 import com.google.iam.v1.GetIamPolicyRequest;
@@ -206,6 +220,19 @@ public UnaryCallable listSubnetsCallabl
     throw new UnsupportedOperationException("Not implemented: listSubnetsCallable()");
   }
 
+  public UnaryCallable getSubnetCallable() {
+    throw new UnsupportedOperationException("Not implemented: getSubnetCallable()");
+  }
+
+  public OperationCallable
+      updateSubnetOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: updateSubnetOperationCallable()");
+  }
+
+  public UnaryCallable updateSubnetCallable() {
+    throw new UnsupportedOperationException("Not implemented: updateSubnetCallable()");
+  }
+
   public UnaryCallable
       listNodeTypesPagedCallable() {
     throw new UnsupportedOperationException("Not implemented: listNodeTypesPagedCallable()");
@@ -367,6 +394,70 @@ public UnaryCallable deleteNetworkPolicyC
     throw new UnsupportedOperationException("Not implemented: listVmwareEngineNetworksCallable()");
   }
 
+  public OperationCallable
+      createPrivateConnectionOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: createPrivateConnectionOperationCallable()");
+  }
+
+  public UnaryCallable
+      createPrivateConnectionCallable() {
+    throw new UnsupportedOperationException("Not implemented: createPrivateConnectionCallable()");
+  }
+
+  public UnaryCallable
+      getPrivateConnectionCallable() {
+    throw new UnsupportedOperationException("Not implemented: getPrivateConnectionCallable()");
+  }
+
+  public UnaryCallable
+      listPrivateConnectionsPagedCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: listPrivateConnectionsPagedCallable()");
+  }
+
+  public UnaryCallable
+      listPrivateConnectionsCallable() {
+    throw new UnsupportedOperationException("Not implemented: listPrivateConnectionsCallable()");
+  }
+
+  public OperationCallable
+      updatePrivateConnectionOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: updatePrivateConnectionOperationCallable()");
+  }
+
+  public UnaryCallable
+      updatePrivateConnectionCallable() {
+    throw new UnsupportedOperationException("Not implemented: updatePrivateConnectionCallable()");
+  }
+
+  public OperationCallable
+      deletePrivateConnectionOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: deletePrivateConnectionOperationCallable()");
+  }
+
+  public UnaryCallable
+      deletePrivateConnectionCallable() {
+    throw new UnsupportedOperationException("Not implemented: deletePrivateConnectionCallable()");
+  }
+
+  public UnaryCallable<
+          ListPrivateConnectionPeeringRoutesRequest,
+          ListPrivateConnectionPeeringRoutesPagedResponse>
+      listPrivateConnectionPeeringRoutesPagedCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: listPrivateConnectionPeeringRoutesPagedCallable()");
+  }
+
+  public UnaryCallable<
+          ListPrivateConnectionPeeringRoutesRequest, ListPrivateConnectionPeeringRoutesResponse>
+      listPrivateConnectionPeeringRoutesCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: listPrivateConnectionPeeringRoutesCallable()");
+  }
+
   public UnaryCallable
       listLocationsPagedCallable() {
     throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStubSettings.java b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStubSettings.java
index b0b7c592d652..b1c75aaed9df 100644
--- a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStubSettings.java
+++ b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStubSettings.java
@@ -22,6 +22,8 @@
 import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNetworkPoliciesPagedResponse;
 import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNodeTypesPagedResponse;
 import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateCloudsPagedResponse;
+import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateConnectionPeeringRoutesPagedResponse;
+import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateConnectionsPagedResponse;
 import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListSubnetsPagedResponse;
 import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListVmwareEngineNetworksPagedResponse;
 
@@ -63,17 +65,21 @@
 import com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest;
 import com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest;
 import com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest;
+import com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest;
 import com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest;
 import com.google.cloud.vmwareengine.v1.Credentials;
 import com.google.cloud.vmwareengine.v1.DeleteClusterRequest;
 import com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest;
 import com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest;
+import com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest;
 import com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest;
 import com.google.cloud.vmwareengine.v1.GetClusterRequest;
 import com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest;
 import com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest;
 import com.google.cloud.vmwareengine.v1.GetNodeTypeRequest;
 import com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest;
+import com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest;
+import com.google.cloud.vmwareengine.v1.GetSubnetRequest;
 import com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest;
 import com.google.cloud.vmwareengine.v1.HcxActivationKey;
 import com.google.cloud.vmwareengine.v1.ListClustersRequest;
@@ -86,6 +92,10 @@
 import com.google.cloud.vmwareengine.v1.ListNodeTypesResponse;
 import com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest;
 import com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse;
+import com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest;
+import com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse;
+import com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest;
+import com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse;
 import com.google.cloud.vmwareengine.v1.ListSubnetsRequest;
 import com.google.cloud.vmwareengine.v1.ListSubnetsResponse;
 import com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest;
@@ -93,7 +103,9 @@
 import com.google.cloud.vmwareengine.v1.NetworkPolicy;
 import com.google.cloud.vmwareengine.v1.NodeType;
 import com.google.cloud.vmwareengine.v1.OperationMetadata;
+import com.google.cloud.vmwareengine.v1.PeeringRoute;
 import com.google.cloud.vmwareengine.v1.PrivateCloud;
+import com.google.cloud.vmwareengine.v1.PrivateConnection;
 import com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest;
 import com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest;
 import com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest;
@@ -103,6 +115,8 @@
 import com.google.cloud.vmwareengine.v1.UpdateClusterRequest;
 import com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest;
 import com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest;
+import com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest;
+import com.google.cloud.vmwareengine.v1.UpdateSubnetRequest;
 import com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest;
 import com.google.cloud.vmwareengine.v1.VmwareEngineNetwork;
 import com.google.common.collect.ImmutableList;
@@ -196,6 +210,10 @@ public class VmwareEngineStubSettings extends StubSettings
       listSubnetsSettings;
+  private final UnaryCallSettings getSubnetSettings;
+  private final UnaryCallSettings updateSubnetSettings;
+  private final OperationCallSettings
+      updateSubnetOperationSettings;
   private final PagedCallSettings<
           ListNodeTypesRequest, ListNodeTypesResponse, ListNodeTypesPagedResponse>
       listNodeTypesSettings;
@@ -262,6 +280,32 @@ public class VmwareEngineStubSettings extends StubSettings
       listVmwareEngineNetworksSettings;
+  private final UnaryCallSettings
+      createPrivateConnectionSettings;
+  private final OperationCallSettings<
+          CreatePrivateConnectionRequest, PrivateConnection, OperationMetadata>
+      createPrivateConnectionOperationSettings;
+  private final UnaryCallSettings
+      getPrivateConnectionSettings;
+  private final PagedCallSettings<
+          ListPrivateConnectionsRequest,
+          ListPrivateConnectionsResponse,
+          ListPrivateConnectionsPagedResponse>
+      listPrivateConnectionsSettings;
+  private final UnaryCallSettings
+      updatePrivateConnectionSettings;
+  private final OperationCallSettings<
+          UpdatePrivateConnectionRequest, PrivateConnection, OperationMetadata>
+      updatePrivateConnectionOperationSettings;
+  private final UnaryCallSettings
+      deletePrivateConnectionSettings;
+  private final OperationCallSettings
+      deletePrivateConnectionOperationSettings;
+  private final PagedCallSettings<
+          ListPrivateConnectionPeeringRoutesRequest,
+          ListPrivateConnectionPeeringRoutesResponse,
+          ListPrivateConnectionPeeringRoutesPagedResponse>
+      listPrivateConnectionPeeringRoutesSettings;
   private final PagedCallSettings<
           ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
       listLocationsSettings;
@@ -547,6 +591,98 @@ public Iterable extractResources(
             }
           };
 
+  private static final PagedListDescriptor<
+          ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection>
+      LIST_PRIVATE_CONNECTIONS_PAGE_STR_DESC =
+          new PagedListDescriptor<
+              ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection>() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListPrivateConnectionsRequest injectToken(
+                ListPrivateConnectionsRequest payload, String token) {
+              return ListPrivateConnectionsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListPrivateConnectionsRequest injectPageSize(
+                ListPrivateConnectionsRequest payload, int pageSize) {
+              return ListPrivateConnectionsRequest.newBuilder(payload)
+                  .setPageSize(pageSize)
+                  .build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListPrivateConnectionsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListPrivateConnectionsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(
+                ListPrivateConnectionsResponse payload) {
+              return payload.getPrivateConnectionsList() == null
+                  ? ImmutableList.of()
+                  : payload.getPrivateConnectionsList();
+            }
+          };
+
+  private static final PagedListDescriptor<
+          ListPrivateConnectionPeeringRoutesRequest,
+          ListPrivateConnectionPeeringRoutesResponse,
+          PeeringRoute>
+      LIST_PRIVATE_CONNECTION_PEERING_ROUTES_PAGE_STR_DESC =
+          new PagedListDescriptor<
+              ListPrivateConnectionPeeringRoutesRequest,
+              ListPrivateConnectionPeeringRoutesResponse,
+              PeeringRoute>() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListPrivateConnectionPeeringRoutesRequest injectToken(
+                ListPrivateConnectionPeeringRoutesRequest payload, String token) {
+              return ListPrivateConnectionPeeringRoutesRequest.newBuilder(payload)
+                  .setPageToken(token)
+                  .build();
+            }
+
+            @Override
+            public ListPrivateConnectionPeeringRoutesRequest injectPageSize(
+                ListPrivateConnectionPeeringRoutesRequest payload, int pageSize) {
+              return ListPrivateConnectionPeeringRoutesRequest.newBuilder(payload)
+                  .setPageSize(pageSize)
+                  .build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListPrivateConnectionPeeringRoutesRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListPrivateConnectionPeeringRoutesResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(
+                ListPrivateConnectionPeeringRoutesResponse payload) {
+              return payload.getPeeringRoutesList() == null
+                  ? ImmutableList.of()
+                  : payload.getPeeringRoutesList();
+            }
+          };
+
   private static final PagedListDescriptor
       LIST_LOCATIONS_PAGE_STR_DESC =
           new PagedListDescriptor() {
@@ -727,6 +863,67 @@ public ApiFuture getFuturePagedResponse(
             }
           };
 
+  private static final PagedListResponseFactory<
+          ListPrivateConnectionsRequest,
+          ListPrivateConnectionsResponse,
+          ListPrivateConnectionsPagedResponse>
+      LIST_PRIVATE_CONNECTIONS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListPrivateConnectionsRequest,
+              ListPrivateConnectionsResponse,
+              ListPrivateConnectionsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable
+                    callable,
+                ListPrivateConnectionsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext<
+                      ListPrivateConnectionsRequest,
+                      ListPrivateConnectionsResponse,
+                      PrivateConnection>
+                  pageContext =
+                      PageContext.create(
+                          callable, LIST_PRIVATE_CONNECTIONS_PAGE_STR_DESC, request, context);
+              return ListPrivateConnectionsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
+
+  private static final PagedListResponseFactory<
+          ListPrivateConnectionPeeringRoutesRequest,
+          ListPrivateConnectionPeeringRoutesResponse,
+          ListPrivateConnectionPeeringRoutesPagedResponse>
+      LIST_PRIVATE_CONNECTION_PEERING_ROUTES_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListPrivateConnectionPeeringRoutesRequest,
+              ListPrivateConnectionPeeringRoutesResponse,
+              ListPrivateConnectionPeeringRoutesPagedResponse>() {
+            @Override
+            public ApiFuture
+                getFuturePagedResponse(
+                    UnaryCallable<
+                            ListPrivateConnectionPeeringRoutesRequest,
+                            ListPrivateConnectionPeeringRoutesResponse>
+                        callable,
+                    ListPrivateConnectionPeeringRoutesRequest request,
+                    ApiCallContext context,
+                    ApiFuture futureResponse) {
+              PageContext<
+                      ListPrivateConnectionPeeringRoutesRequest,
+                      ListPrivateConnectionPeeringRoutesResponse,
+                      PeeringRoute>
+                  pageContext =
+                      PageContext.create(
+                          callable,
+                          LIST_PRIVATE_CONNECTION_PEERING_ROUTES_PAGE_STR_DESC,
+                          request,
+                          context);
+              return ListPrivateConnectionPeeringRoutesPagedResponse.createAsync(
+                  pageContext, futureResponse);
+            }
+          };
+
   private static final PagedListResponseFactory<
           ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
       LIST_LOCATIONS_PAGE_STR_FACT =
@@ -850,6 +1047,22 @@ public UnaryCallSettings deleteClusterSettings(
     return listSubnetsSettings;
   }
 
+  /** Returns the object with the settings used for calls to getSubnet. */
+  public UnaryCallSettings getSubnetSettings() {
+    return getSubnetSettings;
+  }
+
+  /** Returns the object with the settings used for calls to updateSubnet. */
+  public UnaryCallSettings updateSubnetSettings() {
+    return updateSubnetSettings;
+  }
+
+  /** Returns the object with the settings used for calls to updateSubnet. */
+  public OperationCallSettings
+      updateSubnetOperationSettings() {
+    return updateSubnetOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listNodeTypes. */
   public PagedCallSettings
       listNodeTypesSettings() {
@@ -1020,6 +1233,66 @@ public UnaryCallSettings deleteNetworkPol
     return listVmwareEngineNetworksSettings;
   }
 
+  /** Returns the object with the settings used for calls to createPrivateConnection. */
+  public UnaryCallSettings
+      createPrivateConnectionSettings() {
+    return createPrivateConnectionSettings;
+  }
+
+  /** Returns the object with the settings used for calls to createPrivateConnection. */
+  public OperationCallSettings
+      createPrivateConnectionOperationSettings() {
+    return createPrivateConnectionOperationSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getPrivateConnection. */
+  public UnaryCallSettings
+      getPrivateConnectionSettings() {
+    return getPrivateConnectionSettings;
+  }
+
+  /** Returns the object with the settings used for calls to listPrivateConnections. */
+  public PagedCallSettings<
+          ListPrivateConnectionsRequest,
+          ListPrivateConnectionsResponse,
+          ListPrivateConnectionsPagedResponse>
+      listPrivateConnectionsSettings() {
+    return listPrivateConnectionsSettings;
+  }
+
+  /** Returns the object with the settings used for calls to updatePrivateConnection. */
+  public UnaryCallSettings
+      updatePrivateConnectionSettings() {
+    return updatePrivateConnectionSettings;
+  }
+
+  /** Returns the object with the settings used for calls to updatePrivateConnection. */
+  public OperationCallSettings
+      updatePrivateConnectionOperationSettings() {
+    return updatePrivateConnectionOperationSettings;
+  }
+
+  /** Returns the object with the settings used for calls to deletePrivateConnection. */
+  public UnaryCallSettings
+      deletePrivateConnectionSettings() {
+    return deletePrivateConnectionSettings;
+  }
+
+  /** Returns the object with the settings used for calls to deletePrivateConnection. */
+  public OperationCallSettings
+      deletePrivateConnectionOperationSettings() {
+    return deletePrivateConnectionOperationSettings;
+  }
+
+  /** Returns the object with the settings used for calls to listPrivateConnectionPeeringRoutes. */
+  public PagedCallSettings<
+          ListPrivateConnectionPeeringRoutesRequest,
+          ListPrivateConnectionPeeringRoutesResponse,
+          ListPrivateConnectionPeeringRoutesPagedResponse>
+      listPrivateConnectionPeeringRoutesSettings() {
+    return listPrivateConnectionPeeringRoutesSettings;
+  }
+
   /** Returns the object with the settings used for calls to listLocations. */
   public PagedCallSettings
       listLocationsSettings() {
@@ -1176,6 +1449,9 @@ protected VmwareEngineStubSettings(Builder settingsBuilder) throws IOException {
     deleteClusterSettings = settingsBuilder.deleteClusterSettings().build();
     deleteClusterOperationSettings = settingsBuilder.deleteClusterOperationSettings().build();
     listSubnetsSettings = settingsBuilder.listSubnetsSettings().build();
+    getSubnetSettings = settingsBuilder.getSubnetSettings().build();
+    updateSubnetSettings = settingsBuilder.updateSubnetSettings().build();
+    updateSubnetOperationSettings = settingsBuilder.updateSubnetOperationSettings().build();
     listNodeTypesSettings = settingsBuilder.listNodeTypesSettings().build();
     getNodeTypeSettings = settingsBuilder.getNodeTypeSettings().build();
     showNsxCredentialsSettings = settingsBuilder.showNsxCredentialsSettings().build();
@@ -1213,6 +1489,19 @@ protected VmwareEngineStubSettings(Builder settingsBuilder) throws IOException {
         settingsBuilder.deleteVmwareEngineNetworkOperationSettings().build();
     getVmwareEngineNetworkSettings = settingsBuilder.getVmwareEngineNetworkSettings().build();
     listVmwareEngineNetworksSettings = settingsBuilder.listVmwareEngineNetworksSettings().build();
+    createPrivateConnectionSettings = settingsBuilder.createPrivateConnectionSettings().build();
+    createPrivateConnectionOperationSettings =
+        settingsBuilder.createPrivateConnectionOperationSettings().build();
+    getPrivateConnectionSettings = settingsBuilder.getPrivateConnectionSettings().build();
+    listPrivateConnectionsSettings = settingsBuilder.listPrivateConnectionsSettings().build();
+    updatePrivateConnectionSettings = settingsBuilder.updatePrivateConnectionSettings().build();
+    updatePrivateConnectionOperationSettings =
+        settingsBuilder.updatePrivateConnectionOperationSettings().build();
+    deletePrivateConnectionSettings = settingsBuilder.deletePrivateConnectionSettings().build();
+    deletePrivateConnectionOperationSettings =
+        settingsBuilder.deletePrivateConnectionOperationSettings().build();
+    listPrivateConnectionPeeringRoutesSettings =
+        settingsBuilder.listPrivateConnectionPeeringRoutesSettings().build();
     listLocationsSettings = settingsBuilder.listLocationsSettings().build();
     getLocationSettings = settingsBuilder.getLocationSettings().build();
     setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
@@ -1264,6 +1553,10 @@ public static class Builder extends StubSettings.Builder
         listSubnetsSettings;
+    private final UnaryCallSettings.Builder getSubnetSettings;
+    private final UnaryCallSettings.Builder updateSubnetSettings;
+    private final OperationCallSettings.Builder
+        updateSubnetOperationSettings;
     private final PagedCallSettings.Builder<
             ListNodeTypesRequest, ListNodeTypesResponse, ListNodeTypesPagedResponse>
         listNodeTypesSettings;
@@ -1338,6 +1631,33 @@ public static class Builder extends StubSettings.Builder
         listVmwareEngineNetworksSettings;
+    private final UnaryCallSettings.Builder
+        createPrivateConnectionSettings;
+    private final OperationCallSettings.Builder<
+            CreatePrivateConnectionRequest, PrivateConnection, OperationMetadata>
+        createPrivateConnectionOperationSettings;
+    private final UnaryCallSettings.Builder
+        getPrivateConnectionSettings;
+    private final PagedCallSettings.Builder<
+            ListPrivateConnectionsRequest,
+            ListPrivateConnectionsResponse,
+            ListPrivateConnectionsPagedResponse>
+        listPrivateConnectionsSettings;
+    private final UnaryCallSettings.Builder
+        updatePrivateConnectionSettings;
+    private final OperationCallSettings.Builder<
+            UpdatePrivateConnectionRequest, PrivateConnection, OperationMetadata>
+        updatePrivateConnectionOperationSettings;
+    private final UnaryCallSettings.Builder
+        deletePrivateConnectionSettings;
+    private final OperationCallSettings.Builder<
+            DeletePrivateConnectionRequest, Empty, OperationMetadata>
+        deletePrivateConnectionOperationSettings;
+    private final PagedCallSettings.Builder<
+            ListPrivateConnectionPeeringRoutesRequest,
+            ListPrivateConnectionPeeringRoutesResponse,
+            ListPrivateConnectionPeeringRoutesPagedResponse>
+        listPrivateConnectionPeeringRoutesSettings;
     private final PagedCallSettings.Builder<
             ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
         listLocationsSettings;
@@ -1355,6 +1675,8 @@ public static class Builder extends StubSettings.BuildernewArrayList(StatusCode.Code.UNAVAILABLE)));
+      definitions.put(
+          "no_retry_2_codes", ImmutableSet.copyOf(Lists.newArrayList()));
       definitions.put(
           "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList()));
       RETRYABLE_CODE_DEFINITIONS = definitions.build();
@@ -1383,6 +1705,14 @@ public static class Builder extends StubSettings.BuildernewUnaryCallSettingsBuilder()
-                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
-                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"))
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params"))
                   .build())
           .setResponseTransformer(
               ProtoOperationTransformers.ResponseTransformer.create(PrivateCloud.class))
@@ -1836,8 +2252,8 @@ private static Builder initDefaults(Builder builder) {
           .setInitialCallSettings(
               UnaryCallSettings
                   .newUnaryCallSettingsBuilder()
-                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
-                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"))
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params"))
                   .build())
           .setResponseTransformer(
               ProtoOperationTransformers.ResponseTransformer.create(PrivateCloud.class))
@@ -1860,8 +2276,8 @@ private static Builder initDefaults(Builder builder) {
           .setInitialCallSettings(
               UnaryCallSettings
                   .newUnaryCallSettingsBuilder()
-                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
-                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"))
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params"))
                   .build())
           .setResponseTransformer(
               ProtoOperationTransformers.ResponseTransformer.create(PrivateCloud.class))
@@ -1884,8 +2300,8 @@ private static Builder initDefaults(Builder builder) {
           .setInitialCallSettings(
               UnaryCallSettings
                   .newUnaryCallSettingsBuilder()
-                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
-                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"))
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params"))
                   .build())
           .setResponseTransformer(
               ProtoOperationTransformers.ResponseTransformer.create(PrivateCloud.class))
@@ -1908,8 +2324,8 @@ private static Builder initDefaults(Builder builder) {
           .setInitialCallSettings(
               UnaryCallSettings
                   .newUnaryCallSettingsBuilder()
-                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
-                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"))
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params"))
                   .build())
           .setResponseTransformer(
               ProtoOperationTransformers.ResponseTransformer.create(Cluster.class))
@@ -1932,8 +2348,8 @@ private static Builder initDefaults(Builder builder) {
           .setInitialCallSettings(
               UnaryCallSettings
                   .newUnaryCallSettingsBuilder()
-                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
-                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"))
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params"))
                   .build())
           .setResponseTransformer(
               ProtoOperationTransformers.ResponseTransformer.create(Cluster.class))
@@ -1956,11 +2372,35 @@ private static Builder initDefaults(Builder builder) {
           .setInitialCallSettings(
               UnaryCallSettings
                   .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params"))
+                  .build())
+          .setResponseTransformer(
+              ProtoOperationTransformers.ResponseTransformer.create(Empty.class))
+          .setMetadataTransformer(
+              ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(5000L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(45000L))
+                      .setInitialRpcTimeout(Duration.ZERO)
+                      .setRpcTimeoutMultiplier(1.0)
+                      .setMaxRpcTimeout(Duration.ZERO)
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+
+      builder
+          .updateSubnetOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
                   .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
                   .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"))
                   .build())
           .setResponseTransformer(
-              ProtoOperationTransformers.ResponseTransformer.create(Empty.class))
+              ProtoOperationTransformers.ResponseTransformer.create(Subnet.class))
           .setMetadataTransformer(
               ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class))
           .setPollingAlgorithm(
@@ -1980,8 +2420,8 @@ private static Builder initDefaults(Builder builder) {
           .setInitialCallSettings(
               UnaryCallSettings
                   .newUnaryCallSettingsBuilder()
-                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
-                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"))
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params"))
                   .build())
           .setResponseTransformer(
               ProtoOperationTransformers.ResponseTransformer.create(PrivateCloud.class))
@@ -2004,8 +2444,8 @@ private static Builder initDefaults(Builder builder) {
           .setInitialCallSettings(
               UnaryCallSettings
                   .newUnaryCallSettingsBuilder()
-                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
-                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"))
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params"))
                   .build())
           .setResponseTransformer(
               ProtoOperationTransformers.ResponseTransformer.create(PrivateCloud.class))
@@ -2028,8 +2468,8 @@ private static Builder initDefaults(Builder builder) {
           .setInitialCallSettings(
               UnaryCallSettings
                   .newUnaryCallSettingsBuilder()
-                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
-                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"))
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params"))
                   .build())
           .setResponseTransformer(
               ProtoOperationTransformers.ResponseTransformer.create(HcxActivationKey.class))
@@ -2052,8 +2492,8 @@ private static Builder initDefaults(Builder builder) {
           .setInitialCallSettings(
               UnaryCallSettings
                   .newUnaryCallSettingsBuilder()
-                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
-                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"))
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params"))
                   .build())
           .setResponseTransformer(
               ProtoOperationTransformers.ResponseTransformer.create(NetworkPolicy.class))
@@ -2076,8 +2516,8 @@ private static Builder initDefaults(Builder builder) {
           .setInitialCallSettings(
               UnaryCallSettings
                   .newUnaryCallSettingsBuilder()
-                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
-                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"))
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params"))
                   .build())
           .setResponseTransformer(
               ProtoOperationTransformers.ResponseTransformer.create(NetworkPolicy.class))
@@ -2100,8 +2540,8 @@ private static Builder initDefaults(Builder builder) {
           .setInitialCallSettings(
               UnaryCallSettings
                   .newUnaryCallSettingsBuilder()
-                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
-                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"))
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params"))
                   .build())
           .setResponseTransformer(
               ProtoOperationTransformers.ResponseTransformer.create(Empty.class))
@@ -2125,8 +2565,8 @@ private static Builder initDefaults(Builder builder) {
               UnaryCallSettings
                   .
                       newUnaryCallSettingsBuilder()
-                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
-                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"))
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params"))
                   .build())
           .setResponseTransformer(
               ProtoOperationTransformers.ResponseTransformer.create(VmwareEngineNetwork.class))
@@ -2150,8 +2590,8 @@ private static Builder initDefaults(Builder builder) {
               UnaryCallSettings
                   .
                       newUnaryCallSettingsBuilder()
-                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
-                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"))
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params"))
                   .build())
           .setResponseTransformer(
               ProtoOperationTransformers.ResponseTransformer.create(VmwareEngineNetwork.class))
@@ -2175,8 +2615,80 @@ private static Builder initDefaults(Builder builder) {
               UnaryCallSettings
                   .
                       newUnaryCallSettingsBuilder()
-                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
-                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"))
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params"))
+                  .build())
+          .setResponseTransformer(
+              ProtoOperationTransformers.ResponseTransformer.create(Empty.class))
+          .setMetadataTransformer(
+              ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(5000L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(45000L))
+                      .setInitialRpcTimeout(Duration.ZERO)
+                      .setRpcTimeoutMultiplier(1.0)
+                      .setMaxRpcTimeout(Duration.ZERO)
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+
+      builder
+          .createPrivateConnectionOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params"))
+                  .build())
+          .setResponseTransformer(
+              ProtoOperationTransformers.ResponseTransformer.create(PrivateConnection.class))
+          .setMetadataTransformer(
+              ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(5000L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(45000L))
+                      .setInitialRpcTimeout(Duration.ZERO)
+                      .setRpcTimeoutMultiplier(1.0)
+                      .setMaxRpcTimeout(Duration.ZERO)
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+
+      builder
+          .updatePrivateConnectionOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params"))
+                  .build())
+          .setResponseTransformer(
+              ProtoOperationTransformers.ResponseTransformer.create(PrivateConnection.class))
+          .setMetadataTransformer(
+              ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(5000L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(45000L))
+                      .setInitialRpcTimeout(Duration.ZERO)
+                      .setRpcTimeoutMultiplier(1.0)
+                      .setMaxRpcTimeout(Duration.ZERO)
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+
+      builder
+          .deletePrivateConnectionOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params"))
                   .build())
           .setResponseTransformer(
               ProtoOperationTransformers.ResponseTransformer.create(Empty.class))
@@ -2340,6 +2852,24 @@ public UnaryCallSettings.Builder deleteClusterS
       return listSubnetsSettings;
     }
 
+    /** Returns the builder for the settings used for calls to getSubnet. */
+    public UnaryCallSettings.Builder getSubnetSettings() {
+      return getSubnetSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to updateSubnet. */
+    public UnaryCallSettings.Builder updateSubnetSettings() {
+      return updateSubnetSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to updateSubnet. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        updateSubnetOperationSettings() {
+      return updateSubnetOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listNodeTypes. */
     public PagedCallSettings.Builder<
             ListNodeTypesRequest, ListNodeTypesResponse, ListNodeTypesPagedResponse>
@@ -2542,6 +3072,76 @@ public UnaryCallSettings.Builder getNodeTypeSettin
       return listVmwareEngineNetworksSettings;
     }
 
+    /** Returns the builder for the settings used for calls to createPrivateConnection. */
+    public UnaryCallSettings.Builder
+        createPrivateConnectionSettings() {
+      return createPrivateConnectionSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to createPrivateConnection. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            CreatePrivateConnectionRequest, PrivateConnection, OperationMetadata>
+        createPrivateConnectionOperationSettings() {
+      return createPrivateConnectionOperationSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getPrivateConnection. */
+    public UnaryCallSettings.Builder
+        getPrivateConnectionSettings() {
+      return getPrivateConnectionSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to listPrivateConnections. */
+    public PagedCallSettings.Builder<
+            ListPrivateConnectionsRequest,
+            ListPrivateConnectionsResponse,
+            ListPrivateConnectionsPagedResponse>
+        listPrivateConnectionsSettings() {
+      return listPrivateConnectionsSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to updatePrivateConnection. */
+    public UnaryCallSettings.Builder
+        updatePrivateConnectionSettings() {
+      return updatePrivateConnectionSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to updatePrivateConnection. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            UpdatePrivateConnectionRequest, PrivateConnection, OperationMetadata>
+        updatePrivateConnectionOperationSettings() {
+      return updatePrivateConnectionOperationSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to deletePrivateConnection. */
+    public UnaryCallSettings.Builder
+        deletePrivateConnectionSettings() {
+      return deletePrivateConnectionSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to deletePrivateConnection. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deletePrivateConnectionOperationSettings() {
+      return deletePrivateConnectionOperationSettings;
+    }
+
+    /**
+     * Returns the builder for the settings used for calls to listPrivateConnectionPeeringRoutes.
+     */
+    public PagedCallSettings.Builder<
+            ListPrivateConnectionPeeringRoutesRequest,
+            ListPrivateConnectionPeeringRoutesResponse,
+            ListPrivateConnectionPeeringRoutesPagedResponse>
+        listPrivateConnectionPeeringRoutesSettings() {
+      return listPrivateConnectionPeeringRoutesSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listLocations. */
     public PagedCallSettings.Builder<
             ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/MockVmwareEngineImpl.java b/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/MockVmwareEngineImpl.java
index 6fce1875bd0d..d44941f55975 100644
--- a/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/MockVmwareEngineImpl.java
+++ b/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/MockVmwareEngineImpl.java
@@ -311,6 +311,47 @@ public void listSubnets(
     }
   }
 
+  @Override
+  public void getSubnet(GetSubnetRequest request, StreamObserver responseObserver) {
+    Object response = responses.poll();
+    if (response instanceof Subnet) {
+      requests.add(request);
+      responseObserver.onNext(((Subnet) response));
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError(((Exception) response));
+    } else {
+      responseObserver.onError(
+          new IllegalArgumentException(
+              String.format(
+                  "Unrecognized response type %s for method GetSubnet, expected %s or %s",
+                  response == null ? "null" : response.getClass().getName(),
+                  Subnet.class.getName(),
+                  Exception.class.getName())));
+    }
+  }
+
+  @Override
+  public void updateSubnet(
+      UpdateSubnetRequest request, StreamObserver responseObserver) {
+    Object response = responses.poll();
+    if (response instanceof Operation) {
+      requests.add(request);
+      responseObserver.onNext(((Operation) response));
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError(((Exception) response));
+    } else {
+      responseObserver.onError(
+          new IllegalArgumentException(
+              String.format(
+                  "Unrecognized response type %s for method UpdateSubnet, expected %s or %s",
+                  response == null ? "null" : response.getClass().getName(),
+                  Operation.class.getName(),
+                  Exception.class.getName())));
+    }
+  }
+
   @Override
   public void listNodeTypes(
       ListNodeTypesRequest request, StreamObserver responseObserver) {
@@ -711,4 +752,132 @@ public void listVmwareEngineNetworks(
                   Exception.class.getName())));
     }
   }
+
+  @Override
+  public void createPrivateConnection(
+      CreatePrivateConnectionRequest request, StreamObserver responseObserver) {
+    Object response = responses.poll();
+    if (response instanceof Operation) {
+      requests.add(request);
+      responseObserver.onNext(((Operation) response));
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError(((Exception) response));
+    } else {
+      responseObserver.onError(
+          new IllegalArgumentException(
+              String.format(
+                  "Unrecognized response type %s for method CreatePrivateConnection, expected %s or %s",
+                  response == null ? "null" : response.getClass().getName(),
+                  Operation.class.getName(),
+                  Exception.class.getName())));
+    }
+  }
+
+  @Override
+  public void getPrivateConnection(
+      GetPrivateConnectionRequest request, StreamObserver responseObserver) {
+    Object response = responses.poll();
+    if (response instanceof PrivateConnection) {
+      requests.add(request);
+      responseObserver.onNext(((PrivateConnection) response));
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError(((Exception) response));
+    } else {
+      responseObserver.onError(
+          new IllegalArgumentException(
+              String.format(
+                  "Unrecognized response type %s for method GetPrivateConnection, expected %s or %s",
+                  response == null ? "null" : response.getClass().getName(),
+                  PrivateConnection.class.getName(),
+                  Exception.class.getName())));
+    }
+  }
+
+  @Override
+  public void listPrivateConnections(
+      ListPrivateConnectionsRequest request,
+      StreamObserver responseObserver) {
+    Object response = responses.poll();
+    if (response instanceof ListPrivateConnectionsResponse) {
+      requests.add(request);
+      responseObserver.onNext(((ListPrivateConnectionsResponse) response));
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError(((Exception) response));
+    } else {
+      responseObserver.onError(
+          new IllegalArgumentException(
+              String.format(
+                  "Unrecognized response type %s for method ListPrivateConnections, expected %s or %s",
+                  response == null ? "null" : response.getClass().getName(),
+                  ListPrivateConnectionsResponse.class.getName(),
+                  Exception.class.getName())));
+    }
+  }
+
+  @Override
+  public void updatePrivateConnection(
+      UpdatePrivateConnectionRequest request, StreamObserver responseObserver) {
+    Object response = responses.poll();
+    if (response instanceof Operation) {
+      requests.add(request);
+      responseObserver.onNext(((Operation) response));
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError(((Exception) response));
+    } else {
+      responseObserver.onError(
+          new IllegalArgumentException(
+              String.format(
+                  "Unrecognized response type %s for method UpdatePrivateConnection, expected %s or %s",
+                  response == null ? "null" : response.getClass().getName(),
+                  Operation.class.getName(),
+                  Exception.class.getName())));
+    }
+  }
+
+  @Override
+  public void deletePrivateConnection(
+      DeletePrivateConnectionRequest request, StreamObserver responseObserver) {
+    Object response = responses.poll();
+    if (response instanceof Operation) {
+      requests.add(request);
+      responseObserver.onNext(((Operation) response));
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError(((Exception) response));
+    } else {
+      responseObserver.onError(
+          new IllegalArgumentException(
+              String.format(
+                  "Unrecognized response type %s for method DeletePrivateConnection, expected %s or %s",
+                  response == null ? "null" : response.getClass().getName(),
+                  Operation.class.getName(),
+                  Exception.class.getName())));
+    }
+  }
+
+  @Override
+  public void listPrivateConnectionPeeringRoutes(
+      ListPrivateConnectionPeeringRoutesRequest request,
+      StreamObserver responseObserver) {
+    Object response = responses.poll();
+    if (response instanceof ListPrivateConnectionPeeringRoutesResponse) {
+      requests.add(request);
+      responseObserver.onNext(((ListPrivateConnectionPeeringRoutesResponse) response));
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError(((Exception) response));
+    } else {
+      responseObserver.onError(
+          new IllegalArgumentException(
+              String.format(
+                  "Unrecognized response type %s for method ListPrivateConnectionPeeringRoutes, expected %s or %s",
+                  response == null ? "null" : response.getClass().getName(),
+                  ListPrivateConnectionPeeringRoutesResponse.class.getName(),
+                  Exception.class.getName())));
+    }
+  }
 }
diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/VmwareEngineClientHttpJsonTest.java b/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/VmwareEngineClientHttpJsonTest.java
index 2b4629f98b75..18b427c40dfa 100644
--- a/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/VmwareEngineClientHttpJsonTest.java
+++ b/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/VmwareEngineClientHttpJsonTest.java
@@ -22,6 +22,8 @@
 import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNetworkPoliciesPagedResponse;
 import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNodeTypesPagedResponse;
 import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateCloudsPagedResponse;
+import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateConnectionPeeringRoutesPagedResponse;
+import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateConnectionsPagedResponse;
 import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListSubnetsPagedResponse;
 import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListVmwareEngineNetworksPagedResponse;
 
@@ -1370,6 +1372,174 @@ public void listSubnetsExceptionTest2() throws Exception {
     }
   }
 
+  @Test
+  public void getSubnetTest() throws Exception {
+    Subnet expectedResponse =
+        Subnet.newBuilder()
+            .setName(
+                SubnetName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[SUBNET]").toString())
+            .setIpCidrRange("ipCidrRange-866375486")
+            .setGatewayIp("gatewayIp-1354641781")
+            .setType("type3575610")
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    SubnetName name = SubnetName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[SUBNET]");
+
+    Subnet actualResponse = client.getSubnet(name);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void getSubnetExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      SubnetName name = SubnetName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[SUBNET]");
+      client.getSubnet(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getSubnetTest2() throws Exception {
+    Subnet expectedResponse =
+        Subnet.newBuilder()
+            .setName(
+                SubnetName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[SUBNET]").toString())
+            .setIpCidrRange("ipCidrRange-866375486")
+            .setGatewayIp("gatewayIp-1354641781")
+            .setType("type3575610")
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    String name =
+        "projects/project-2041/locations/location-2041/privateClouds/privateCloud-2041/subnets/subnet-2041";
+
+    Subnet actualResponse = client.getSubnet(name);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void getSubnetExceptionTest2() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String name =
+          "projects/project-2041/locations/location-2041/privateClouds/privateCloud-2041/subnets/subnet-2041";
+      client.getSubnet(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void updateSubnetTest() throws Exception {
+    Subnet expectedResponse =
+        Subnet.newBuilder()
+            .setName(
+                SubnetName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[SUBNET]").toString())
+            .setIpCidrRange("ipCidrRange-866375486")
+            .setGatewayIp("gatewayIp-1354641781")
+            .setType("type3575610")
+            .build();
+    Operation resultOperation =
+        Operation.newBuilder()
+            .setName("updateSubnetTest")
+            .setDone(true)
+            .setResponse(Any.pack(expectedResponse))
+            .build();
+    mockService.addResponse(resultOperation);
+
+    Subnet subnet =
+        Subnet.newBuilder()
+            .setName(
+                SubnetName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[SUBNET]").toString())
+            .setIpCidrRange("ipCidrRange-866375486")
+            .setGatewayIp("gatewayIp-1354641781")
+            .setType("type3575610")
+            .build();
+    FieldMask updateMask = FieldMask.newBuilder().build();
+
+    Subnet actualResponse = client.updateSubnetAsync(subnet, updateMask).get();
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void updateSubnetExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      Subnet subnet =
+          Subnet.newBuilder()
+              .setName(
+                  SubnetName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[SUBNET]")
+                      .toString())
+              .setIpCidrRange("ipCidrRange-866375486")
+              .setGatewayIp("gatewayIp-1354641781")
+              .setType("type3575610")
+              .build();
+      FieldMask updateMask = FieldMask.newBuilder().build();
+      client.updateSubnetAsync(subnet, updateMask).get();
+      Assert.fail("No exception raised");
+    } catch (ExecutionException e) {
+    }
+  }
+
   @Test
   public void listNodeTypesTest() throws Exception {
     NodeType responsesElement = NodeType.newBuilder().build();
@@ -3393,6 +3563,662 @@ public void listVmwareEngineNetworksExceptionTest2() throws Exception {
     }
   }
 
+  @Test
+  public void createPrivateConnectionTest() throws Exception {
+    PrivateConnection expectedResponse =
+        PrivateConnection.newBuilder()
+            .setName(
+                PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+                    .toString())
+            .setCreateTime(Timestamp.newBuilder().build())
+            .setUpdateTime(Timestamp.newBuilder().build())
+            .setDescription("description-1724546052")
+            .setVmwareEngineNetwork(
+                VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]")
+                    .toString())
+            .setVmwareEngineNetworkCanonical(
+                VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]")
+                    .toString())
+            .setPeeringId("peeringId-2128589701")
+            .setUid("uid115792")
+            .setServiceNetwork("serviceNetwork-195025479")
+            .build();
+    Operation resultOperation =
+        Operation.newBuilder()
+            .setName("createPrivateConnectionTest")
+            .setDone(true)
+            .setResponse(Any.pack(expectedResponse))
+            .build();
+    mockService.addResponse(resultOperation);
+
+    LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+    PrivateConnection privateConnection = PrivateConnection.newBuilder().build();
+    String privateConnectionId = "privateConnectionId-1926654532";
+
+    PrivateConnection actualResponse =
+        client.createPrivateConnectionAsync(parent, privateConnection, privateConnectionId).get();
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void createPrivateConnectionExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+      PrivateConnection privateConnection = PrivateConnection.newBuilder().build();
+      String privateConnectionId = "privateConnectionId-1926654532";
+      client.createPrivateConnectionAsync(parent, privateConnection, privateConnectionId).get();
+      Assert.fail("No exception raised");
+    } catch (ExecutionException e) {
+    }
+  }
+
+  @Test
+  public void createPrivateConnectionTest2() throws Exception {
+    PrivateConnection expectedResponse =
+        PrivateConnection.newBuilder()
+            .setName(
+                PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+                    .toString())
+            .setCreateTime(Timestamp.newBuilder().build())
+            .setUpdateTime(Timestamp.newBuilder().build())
+            .setDescription("description-1724546052")
+            .setVmwareEngineNetwork(
+                VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]")
+                    .toString())
+            .setVmwareEngineNetworkCanonical(
+                VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]")
+                    .toString())
+            .setPeeringId("peeringId-2128589701")
+            .setUid("uid115792")
+            .setServiceNetwork("serviceNetwork-195025479")
+            .build();
+    Operation resultOperation =
+        Operation.newBuilder()
+            .setName("createPrivateConnectionTest")
+            .setDone(true)
+            .setResponse(Any.pack(expectedResponse))
+            .build();
+    mockService.addResponse(resultOperation);
+
+    String parent = "projects/project-5833/locations/location-5833";
+    PrivateConnection privateConnection = PrivateConnection.newBuilder().build();
+    String privateConnectionId = "privateConnectionId-1926654532";
+
+    PrivateConnection actualResponse =
+        client.createPrivateConnectionAsync(parent, privateConnection, privateConnectionId).get();
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void createPrivateConnectionExceptionTest2() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String parent = "projects/project-5833/locations/location-5833";
+      PrivateConnection privateConnection = PrivateConnection.newBuilder().build();
+      String privateConnectionId = "privateConnectionId-1926654532";
+      client.createPrivateConnectionAsync(parent, privateConnection, privateConnectionId).get();
+      Assert.fail("No exception raised");
+    } catch (ExecutionException e) {
+    }
+  }
+
+  @Test
+  public void getPrivateConnectionTest() throws Exception {
+    PrivateConnection expectedResponse =
+        PrivateConnection.newBuilder()
+            .setName(
+                PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+                    .toString())
+            .setCreateTime(Timestamp.newBuilder().build())
+            .setUpdateTime(Timestamp.newBuilder().build())
+            .setDescription("description-1724546052")
+            .setVmwareEngineNetwork(
+                VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]")
+                    .toString())
+            .setVmwareEngineNetworkCanonical(
+                VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]")
+                    .toString())
+            .setPeeringId("peeringId-2128589701")
+            .setUid("uid115792")
+            .setServiceNetwork("serviceNetwork-195025479")
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    PrivateConnectionName name =
+        PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
+
+    PrivateConnection actualResponse = client.getPrivateConnection(name);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void getPrivateConnectionExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      PrivateConnectionName name =
+          PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
+      client.getPrivateConnection(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getPrivateConnectionTest2() throws Exception {
+    PrivateConnection expectedResponse =
+        PrivateConnection.newBuilder()
+            .setName(
+                PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+                    .toString())
+            .setCreateTime(Timestamp.newBuilder().build())
+            .setUpdateTime(Timestamp.newBuilder().build())
+            .setDescription("description-1724546052")
+            .setVmwareEngineNetwork(
+                VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]")
+                    .toString())
+            .setVmwareEngineNetworkCanonical(
+                VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]")
+                    .toString())
+            .setPeeringId("peeringId-2128589701")
+            .setUid("uid115792")
+            .setServiceNetwork("serviceNetwork-195025479")
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    String name =
+        "projects/project-9090/locations/location-9090/privateConnections/privateConnection-9090";
+
+    PrivateConnection actualResponse = client.getPrivateConnection(name);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void getPrivateConnectionExceptionTest2() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String name =
+          "projects/project-9090/locations/location-9090/privateConnections/privateConnection-9090";
+      client.getPrivateConnection(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void listPrivateConnectionsTest() throws Exception {
+    PrivateConnection responsesElement = PrivateConnection.newBuilder().build();
+    ListPrivateConnectionsResponse expectedResponse =
+        ListPrivateConnectionsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllPrivateConnections(Arrays.asList(responsesElement))
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+
+    ListPrivateConnectionsPagedResponse pagedListResponse = client.listPrivateConnections(parent);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getPrivateConnectionsList().get(0), resources.get(0));
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void listPrivateConnectionsExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+      client.listPrivateConnections(parent);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void listPrivateConnectionsTest2() throws Exception {
+    PrivateConnection responsesElement = PrivateConnection.newBuilder().build();
+    ListPrivateConnectionsResponse expectedResponse =
+        ListPrivateConnectionsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllPrivateConnections(Arrays.asList(responsesElement))
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    String parent = "projects/project-5833/locations/location-5833";
+
+    ListPrivateConnectionsPagedResponse pagedListResponse = client.listPrivateConnections(parent);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getPrivateConnectionsList().get(0), resources.get(0));
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void listPrivateConnectionsExceptionTest2() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String parent = "projects/project-5833/locations/location-5833";
+      client.listPrivateConnections(parent);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void updatePrivateConnectionTest() throws Exception {
+    PrivateConnection expectedResponse =
+        PrivateConnection.newBuilder()
+            .setName(
+                PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+                    .toString())
+            .setCreateTime(Timestamp.newBuilder().build())
+            .setUpdateTime(Timestamp.newBuilder().build())
+            .setDescription("description-1724546052")
+            .setVmwareEngineNetwork(
+                VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]")
+                    .toString())
+            .setVmwareEngineNetworkCanonical(
+                VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]")
+                    .toString())
+            .setPeeringId("peeringId-2128589701")
+            .setUid("uid115792")
+            .setServiceNetwork("serviceNetwork-195025479")
+            .build();
+    Operation resultOperation =
+        Operation.newBuilder()
+            .setName("updatePrivateConnectionTest")
+            .setDone(true)
+            .setResponse(Any.pack(expectedResponse))
+            .build();
+    mockService.addResponse(resultOperation);
+
+    PrivateConnection privateConnection =
+        PrivateConnection.newBuilder()
+            .setName(
+                PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+                    .toString())
+            .setCreateTime(Timestamp.newBuilder().build())
+            .setUpdateTime(Timestamp.newBuilder().build())
+            .setDescription("description-1724546052")
+            .setVmwareEngineNetwork(
+                VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]")
+                    .toString())
+            .setVmwareEngineNetworkCanonical(
+                VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]")
+                    .toString())
+            .setPeeringId("peeringId-2128589701")
+            .setUid("uid115792")
+            .setServiceNetwork("serviceNetwork-195025479")
+            .build();
+    FieldMask updateMask = FieldMask.newBuilder().build();
+
+    PrivateConnection actualResponse =
+        client.updatePrivateConnectionAsync(privateConnection, updateMask).get();
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void updatePrivateConnectionExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      PrivateConnection privateConnection =
+          PrivateConnection.newBuilder()
+              .setName(
+                  PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+                      .toString())
+              .setCreateTime(Timestamp.newBuilder().build())
+              .setUpdateTime(Timestamp.newBuilder().build())
+              .setDescription("description-1724546052")
+              .setVmwareEngineNetwork(
+                  VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]")
+                      .toString())
+              .setVmwareEngineNetworkCanonical(
+                  VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]")
+                      .toString())
+              .setPeeringId("peeringId-2128589701")
+              .setUid("uid115792")
+              .setServiceNetwork("serviceNetwork-195025479")
+              .build();
+      FieldMask updateMask = FieldMask.newBuilder().build();
+      client.updatePrivateConnectionAsync(privateConnection, updateMask).get();
+      Assert.fail("No exception raised");
+    } catch (ExecutionException e) {
+    }
+  }
+
+  @Test
+  public void deletePrivateConnectionTest() throws Exception {
+    Empty expectedResponse = Empty.newBuilder().build();
+    Operation resultOperation =
+        Operation.newBuilder()
+            .setName("deletePrivateConnectionTest")
+            .setDone(true)
+            .setResponse(Any.pack(expectedResponse))
+            .build();
+    mockService.addResponse(resultOperation);
+
+    PrivateConnectionName name =
+        PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
+
+    client.deletePrivateConnectionAsync(name).get();
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void deletePrivateConnectionExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      PrivateConnectionName name =
+          PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
+      client.deletePrivateConnectionAsync(name).get();
+      Assert.fail("No exception raised");
+    } catch (ExecutionException e) {
+    }
+  }
+
+  @Test
+  public void deletePrivateConnectionTest2() throws Exception {
+    Empty expectedResponse = Empty.newBuilder().build();
+    Operation resultOperation =
+        Operation.newBuilder()
+            .setName("deletePrivateConnectionTest")
+            .setDone(true)
+            .setResponse(Any.pack(expectedResponse))
+            .build();
+    mockService.addResponse(resultOperation);
+
+    String name =
+        "projects/project-9090/locations/location-9090/privateConnections/privateConnection-9090";
+
+    client.deletePrivateConnectionAsync(name).get();
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void deletePrivateConnectionExceptionTest2() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String name =
+          "projects/project-9090/locations/location-9090/privateConnections/privateConnection-9090";
+      client.deletePrivateConnectionAsync(name).get();
+      Assert.fail("No exception raised");
+    } catch (ExecutionException e) {
+    }
+  }
+
+  @Test
+  public void listPrivateConnectionPeeringRoutesTest() throws Exception {
+    PeeringRoute responsesElement = PeeringRoute.newBuilder().build();
+    ListPrivateConnectionPeeringRoutesResponse expectedResponse =
+        ListPrivateConnectionPeeringRoutesResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllPeeringRoutes(Arrays.asList(responsesElement))
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    PrivateConnectionName parent =
+        PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
+
+    ListPrivateConnectionPeeringRoutesPagedResponse pagedListResponse =
+        client.listPrivateConnectionPeeringRoutes(parent);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getPeeringRoutesList().get(0), resources.get(0));
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void listPrivateConnectionPeeringRoutesExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      PrivateConnectionName parent =
+          PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
+      client.listPrivateConnectionPeeringRoutes(parent);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void listPrivateConnectionPeeringRoutesTest2() throws Exception {
+    PeeringRoute responsesElement = PeeringRoute.newBuilder().build();
+    ListPrivateConnectionPeeringRoutesResponse expectedResponse =
+        ListPrivateConnectionPeeringRoutesResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllPeeringRoutes(Arrays.asList(responsesElement))
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    String parent =
+        "projects/project-9165/locations/location-9165/privateConnections/privateConnection-9165";
+
+    ListPrivateConnectionPeeringRoutesPagedResponse pagedListResponse =
+        client.listPrivateConnectionPeeringRoutes(parent);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getPeeringRoutesList().get(0), resources.get(0));
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void listPrivateConnectionPeeringRoutesExceptionTest2() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String parent =
+          "projects/project-9165/locations/location-9165/privateConnections/privateConnection-9165";
+      client.listPrivateConnectionPeeringRoutes(parent);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
   @Test
   public void listLocationsTest() throws Exception {
     Location responsesElement = Location.newBuilder().build();
diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/VmwareEngineClientTest.java b/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/VmwareEngineClientTest.java
index f95fff2fb91f..81c3710e9b1f 100644
--- a/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/VmwareEngineClientTest.java
+++ b/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/VmwareEngineClientTest.java
@@ -22,6 +22,8 @@
 import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNetworkPoliciesPagedResponse;
 import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNodeTypesPagedResponse;
 import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateCloudsPagedResponse;
+import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateConnectionPeeringRoutesPagedResponse;
+import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateConnectionsPagedResponse;
 import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListSubnetsPagedResponse;
 import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListVmwareEngineNetworksPagedResponse;
 
@@ -1240,6 +1242,143 @@ public void listSubnetsExceptionTest2() throws Exception {
     }
   }
 
+  @Test
+  public void getSubnetTest() throws Exception {
+    Subnet expectedResponse =
+        Subnet.newBuilder()
+            .setName(
+                SubnetName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[SUBNET]").toString())
+            .setIpCidrRange("ipCidrRange-866375486")
+            .setGatewayIp("gatewayIp-1354641781")
+            .setType("type3575610")
+            .build();
+    mockVmwareEngine.addResponse(expectedResponse);
+
+    SubnetName name = SubnetName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[SUBNET]");
+
+    Subnet actualResponse = client.getSubnet(name);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockVmwareEngine.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetSubnetRequest actualRequest = ((GetSubnetRequest) actualRequests.get(0));
+
+    Assert.assertEquals(name.toString(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getSubnetExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockVmwareEngine.addException(exception);
+
+    try {
+      SubnetName name = SubnetName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[SUBNET]");
+      client.getSubnet(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getSubnetTest2() throws Exception {
+    Subnet expectedResponse =
+        Subnet.newBuilder()
+            .setName(
+                SubnetName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[SUBNET]").toString())
+            .setIpCidrRange("ipCidrRange-866375486")
+            .setGatewayIp("gatewayIp-1354641781")
+            .setType("type3575610")
+            .build();
+    mockVmwareEngine.addResponse(expectedResponse);
+
+    String name = "name3373707";
+
+    Subnet actualResponse = client.getSubnet(name);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockVmwareEngine.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetSubnetRequest actualRequest = ((GetSubnetRequest) actualRequests.get(0));
+
+    Assert.assertEquals(name, actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getSubnetExceptionTest2() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockVmwareEngine.addException(exception);
+
+    try {
+      String name = "name3373707";
+      client.getSubnet(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void updateSubnetTest() throws Exception {
+    Subnet expectedResponse =
+        Subnet.newBuilder()
+            .setName(
+                SubnetName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[SUBNET]").toString())
+            .setIpCidrRange("ipCidrRange-866375486")
+            .setGatewayIp("gatewayIp-1354641781")
+            .setType("type3575610")
+            .build();
+    Operation resultOperation =
+        Operation.newBuilder()
+            .setName("updateSubnetTest")
+            .setDone(true)
+            .setResponse(Any.pack(expectedResponse))
+            .build();
+    mockVmwareEngine.addResponse(resultOperation);
+
+    Subnet subnet = Subnet.newBuilder().build();
+    FieldMask updateMask = FieldMask.newBuilder().build();
+
+    Subnet actualResponse = client.updateSubnetAsync(subnet, updateMask).get();
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockVmwareEngine.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    UpdateSubnetRequest actualRequest = ((UpdateSubnetRequest) actualRequests.get(0));
+
+    Assert.assertEquals(subnet, actualRequest.getSubnet());
+    Assert.assertEquals(updateMask, actualRequest.getUpdateMask());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void updateSubnetExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockVmwareEngine.addException(exception);
+
+    try {
+      Subnet subnet = Subnet.newBuilder().build();
+      FieldMask updateMask = FieldMask.newBuilder().build();
+      client.updateSubnetAsync(subnet, updateMask).get();
+      Assert.fail("No exception raised");
+    } catch (ExecutionException e) {
+      Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
+      InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
+      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+    }
+  }
+
   @Test
   public void listNodeTypesTest() throws Exception {
     NodeType responsesElement = NodeType.newBuilder().build();
@@ -3051,6 +3190,587 @@ public void listVmwareEngineNetworksExceptionTest2() throws Exception {
     }
   }
 
+  @Test
+  public void createPrivateConnectionTest() throws Exception {
+    PrivateConnection expectedResponse =
+        PrivateConnection.newBuilder()
+            .setName(
+                PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+                    .toString())
+            .setCreateTime(Timestamp.newBuilder().build())
+            .setUpdateTime(Timestamp.newBuilder().build())
+            .setDescription("description-1724546052")
+            .setVmwareEngineNetwork(
+                VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]")
+                    .toString())
+            .setVmwareEngineNetworkCanonical(
+                VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]")
+                    .toString())
+            .setPeeringId("peeringId-2128589701")
+            .setUid("uid115792")
+            .setServiceNetwork("serviceNetwork-195025479")
+            .build();
+    Operation resultOperation =
+        Operation.newBuilder()
+            .setName("createPrivateConnectionTest")
+            .setDone(true)
+            .setResponse(Any.pack(expectedResponse))
+            .build();
+    mockVmwareEngine.addResponse(resultOperation);
+
+    LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+    PrivateConnection privateConnection = PrivateConnection.newBuilder().build();
+    String privateConnectionId = "privateConnectionId-1926654532";
+
+    PrivateConnection actualResponse =
+        client.createPrivateConnectionAsync(parent, privateConnection, privateConnectionId).get();
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockVmwareEngine.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    CreatePrivateConnectionRequest actualRequest =
+        ((CreatePrivateConnectionRequest) actualRequests.get(0));
+
+    Assert.assertEquals(parent.toString(), actualRequest.getParent());
+    Assert.assertEquals(privateConnection, actualRequest.getPrivateConnection());
+    Assert.assertEquals(privateConnectionId, actualRequest.getPrivateConnectionId());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void createPrivateConnectionExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockVmwareEngine.addException(exception);
+
+    try {
+      LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+      PrivateConnection privateConnection = PrivateConnection.newBuilder().build();
+      String privateConnectionId = "privateConnectionId-1926654532";
+      client.createPrivateConnectionAsync(parent, privateConnection, privateConnectionId).get();
+      Assert.fail("No exception raised");
+    } catch (ExecutionException e) {
+      Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
+      InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
+      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+    }
+  }
+
+  @Test
+  public void createPrivateConnectionTest2() throws Exception {
+    PrivateConnection expectedResponse =
+        PrivateConnection.newBuilder()
+            .setName(
+                PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+                    .toString())
+            .setCreateTime(Timestamp.newBuilder().build())
+            .setUpdateTime(Timestamp.newBuilder().build())
+            .setDescription("description-1724546052")
+            .setVmwareEngineNetwork(
+                VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]")
+                    .toString())
+            .setVmwareEngineNetworkCanonical(
+                VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]")
+                    .toString())
+            .setPeeringId("peeringId-2128589701")
+            .setUid("uid115792")
+            .setServiceNetwork("serviceNetwork-195025479")
+            .build();
+    Operation resultOperation =
+        Operation.newBuilder()
+            .setName("createPrivateConnectionTest")
+            .setDone(true)
+            .setResponse(Any.pack(expectedResponse))
+            .build();
+    mockVmwareEngine.addResponse(resultOperation);
+
+    String parent = "parent-995424086";
+    PrivateConnection privateConnection = PrivateConnection.newBuilder().build();
+    String privateConnectionId = "privateConnectionId-1926654532";
+
+    PrivateConnection actualResponse =
+        client.createPrivateConnectionAsync(parent, privateConnection, privateConnectionId).get();
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockVmwareEngine.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    CreatePrivateConnectionRequest actualRequest =
+        ((CreatePrivateConnectionRequest) actualRequests.get(0));
+
+    Assert.assertEquals(parent, actualRequest.getParent());
+    Assert.assertEquals(privateConnection, actualRequest.getPrivateConnection());
+    Assert.assertEquals(privateConnectionId, actualRequest.getPrivateConnectionId());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void createPrivateConnectionExceptionTest2() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockVmwareEngine.addException(exception);
+
+    try {
+      String parent = "parent-995424086";
+      PrivateConnection privateConnection = PrivateConnection.newBuilder().build();
+      String privateConnectionId = "privateConnectionId-1926654532";
+      client.createPrivateConnectionAsync(parent, privateConnection, privateConnectionId).get();
+      Assert.fail("No exception raised");
+    } catch (ExecutionException e) {
+      Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
+      InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
+      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+    }
+  }
+
+  @Test
+  public void getPrivateConnectionTest() throws Exception {
+    PrivateConnection expectedResponse =
+        PrivateConnection.newBuilder()
+            .setName(
+                PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+                    .toString())
+            .setCreateTime(Timestamp.newBuilder().build())
+            .setUpdateTime(Timestamp.newBuilder().build())
+            .setDescription("description-1724546052")
+            .setVmwareEngineNetwork(
+                VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]")
+                    .toString())
+            .setVmwareEngineNetworkCanonical(
+                VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]")
+                    .toString())
+            .setPeeringId("peeringId-2128589701")
+            .setUid("uid115792")
+            .setServiceNetwork("serviceNetwork-195025479")
+            .build();
+    mockVmwareEngine.addResponse(expectedResponse);
+
+    PrivateConnectionName name =
+        PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
+
+    PrivateConnection actualResponse = client.getPrivateConnection(name);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockVmwareEngine.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetPrivateConnectionRequest actualRequest =
+        ((GetPrivateConnectionRequest) actualRequests.get(0));
+
+    Assert.assertEquals(name.toString(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getPrivateConnectionExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockVmwareEngine.addException(exception);
+
+    try {
+      PrivateConnectionName name =
+          PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
+      client.getPrivateConnection(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getPrivateConnectionTest2() throws Exception {
+    PrivateConnection expectedResponse =
+        PrivateConnection.newBuilder()
+            .setName(
+                PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+                    .toString())
+            .setCreateTime(Timestamp.newBuilder().build())
+            .setUpdateTime(Timestamp.newBuilder().build())
+            .setDescription("description-1724546052")
+            .setVmwareEngineNetwork(
+                VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]")
+                    .toString())
+            .setVmwareEngineNetworkCanonical(
+                VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]")
+                    .toString())
+            .setPeeringId("peeringId-2128589701")
+            .setUid("uid115792")
+            .setServiceNetwork("serviceNetwork-195025479")
+            .build();
+    mockVmwareEngine.addResponse(expectedResponse);
+
+    String name = "name3373707";
+
+    PrivateConnection actualResponse = client.getPrivateConnection(name);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockVmwareEngine.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetPrivateConnectionRequest actualRequest =
+        ((GetPrivateConnectionRequest) actualRequests.get(0));
+
+    Assert.assertEquals(name, actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getPrivateConnectionExceptionTest2() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockVmwareEngine.addException(exception);
+
+    try {
+      String name = "name3373707";
+      client.getPrivateConnection(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void listPrivateConnectionsTest() throws Exception {
+    PrivateConnection responsesElement = PrivateConnection.newBuilder().build();
+    ListPrivateConnectionsResponse expectedResponse =
+        ListPrivateConnectionsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllPrivateConnections(Arrays.asList(responsesElement))
+            .build();
+    mockVmwareEngine.addResponse(expectedResponse);
+
+    LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+
+    ListPrivateConnectionsPagedResponse pagedListResponse = client.listPrivateConnections(parent);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getPrivateConnectionsList().get(0), resources.get(0));
+
+    List actualRequests = mockVmwareEngine.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListPrivateConnectionsRequest actualRequest =
+        ((ListPrivateConnectionsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(parent.toString(), actualRequest.getParent());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listPrivateConnectionsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockVmwareEngine.addException(exception);
+
+    try {
+      LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+      client.listPrivateConnections(parent);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void listPrivateConnectionsTest2() throws Exception {
+    PrivateConnection responsesElement = PrivateConnection.newBuilder().build();
+    ListPrivateConnectionsResponse expectedResponse =
+        ListPrivateConnectionsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllPrivateConnections(Arrays.asList(responsesElement))
+            .build();
+    mockVmwareEngine.addResponse(expectedResponse);
+
+    String parent = "parent-995424086";
+
+    ListPrivateConnectionsPagedResponse pagedListResponse = client.listPrivateConnections(parent);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getPrivateConnectionsList().get(0), resources.get(0));
+
+    List actualRequests = mockVmwareEngine.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListPrivateConnectionsRequest actualRequest =
+        ((ListPrivateConnectionsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(parent, actualRequest.getParent());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listPrivateConnectionsExceptionTest2() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockVmwareEngine.addException(exception);
+
+    try {
+      String parent = "parent-995424086";
+      client.listPrivateConnections(parent);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void updatePrivateConnectionTest() throws Exception {
+    PrivateConnection expectedResponse =
+        PrivateConnection.newBuilder()
+            .setName(
+                PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+                    .toString())
+            .setCreateTime(Timestamp.newBuilder().build())
+            .setUpdateTime(Timestamp.newBuilder().build())
+            .setDescription("description-1724546052")
+            .setVmwareEngineNetwork(
+                VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]")
+                    .toString())
+            .setVmwareEngineNetworkCanonical(
+                VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]")
+                    .toString())
+            .setPeeringId("peeringId-2128589701")
+            .setUid("uid115792")
+            .setServiceNetwork("serviceNetwork-195025479")
+            .build();
+    Operation resultOperation =
+        Operation.newBuilder()
+            .setName("updatePrivateConnectionTest")
+            .setDone(true)
+            .setResponse(Any.pack(expectedResponse))
+            .build();
+    mockVmwareEngine.addResponse(resultOperation);
+
+    PrivateConnection privateConnection = PrivateConnection.newBuilder().build();
+    FieldMask updateMask = FieldMask.newBuilder().build();
+
+    PrivateConnection actualResponse =
+        client.updatePrivateConnectionAsync(privateConnection, updateMask).get();
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockVmwareEngine.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    UpdatePrivateConnectionRequest actualRequest =
+        ((UpdatePrivateConnectionRequest) actualRequests.get(0));
+
+    Assert.assertEquals(privateConnection, actualRequest.getPrivateConnection());
+    Assert.assertEquals(updateMask, actualRequest.getUpdateMask());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void updatePrivateConnectionExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockVmwareEngine.addException(exception);
+
+    try {
+      PrivateConnection privateConnection = PrivateConnection.newBuilder().build();
+      FieldMask updateMask = FieldMask.newBuilder().build();
+      client.updatePrivateConnectionAsync(privateConnection, updateMask).get();
+      Assert.fail("No exception raised");
+    } catch (ExecutionException e) {
+      Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
+      InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
+      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+    }
+  }
+
+  @Test
+  public void deletePrivateConnectionTest() throws Exception {
+    Empty expectedResponse = Empty.newBuilder().build();
+    Operation resultOperation =
+        Operation.newBuilder()
+            .setName("deletePrivateConnectionTest")
+            .setDone(true)
+            .setResponse(Any.pack(expectedResponse))
+            .build();
+    mockVmwareEngine.addResponse(resultOperation);
+
+    PrivateConnectionName name =
+        PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
+
+    client.deletePrivateConnectionAsync(name).get();
+
+    List actualRequests = mockVmwareEngine.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    DeletePrivateConnectionRequest actualRequest =
+        ((DeletePrivateConnectionRequest) actualRequests.get(0));
+
+    Assert.assertEquals(name.toString(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void deletePrivateConnectionExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockVmwareEngine.addException(exception);
+
+    try {
+      PrivateConnectionName name =
+          PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
+      client.deletePrivateConnectionAsync(name).get();
+      Assert.fail("No exception raised");
+    } catch (ExecutionException e) {
+      Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
+      InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
+      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+    }
+  }
+
+  @Test
+  public void deletePrivateConnectionTest2() throws Exception {
+    Empty expectedResponse = Empty.newBuilder().build();
+    Operation resultOperation =
+        Operation.newBuilder()
+            .setName("deletePrivateConnectionTest")
+            .setDone(true)
+            .setResponse(Any.pack(expectedResponse))
+            .build();
+    mockVmwareEngine.addResponse(resultOperation);
+
+    String name = "name3373707";
+
+    client.deletePrivateConnectionAsync(name).get();
+
+    List actualRequests = mockVmwareEngine.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    DeletePrivateConnectionRequest actualRequest =
+        ((DeletePrivateConnectionRequest) actualRequests.get(0));
+
+    Assert.assertEquals(name, actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void deletePrivateConnectionExceptionTest2() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockVmwareEngine.addException(exception);
+
+    try {
+      String name = "name3373707";
+      client.deletePrivateConnectionAsync(name).get();
+      Assert.fail("No exception raised");
+    } catch (ExecutionException e) {
+      Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
+      InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
+      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+    }
+  }
+
+  @Test
+  public void listPrivateConnectionPeeringRoutesTest() throws Exception {
+    PeeringRoute responsesElement = PeeringRoute.newBuilder().build();
+    ListPrivateConnectionPeeringRoutesResponse expectedResponse =
+        ListPrivateConnectionPeeringRoutesResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllPeeringRoutes(Arrays.asList(responsesElement))
+            .build();
+    mockVmwareEngine.addResponse(expectedResponse);
+
+    PrivateConnectionName parent =
+        PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
+
+    ListPrivateConnectionPeeringRoutesPagedResponse pagedListResponse =
+        client.listPrivateConnectionPeeringRoutes(parent);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getPeeringRoutesList().get(0), resources.get(0));
+
+    List actualRequests = mockVmwareEngine.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListPrivateConnectionPeeringRoutesRequest actualRequest =
+        ((ListPrivateConnectionPeeringRoutesRequest) actualRequests.get(0));
+
+    Assert.assertEquals(parent.toString(), actualRequest.getParent());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listPrivateConnectionPeeringRoutesExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockVmwareEngine.addException(exception);
+
+    try {
+      PrivateConnectionName parent =
+          PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
+      client.listPrivateConnectionPeeringRoutes(parent);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void listPrivateConnectionPeeringRoutesTest2() throws Exception {
+    PeeringRoute responsesElement = PeeringRoute.newBuilder().build();
+    ListPrivateConnectionPeeringRoutesResponse expectedResponse =
+        ListPrivateConnectionPeeringRoutesResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllPeeringRoutes(Arrays.asList(responsesElement))
+            .build();
+    mockVmwareEngine.addResponse(expectedResponse);
+
+    String parent = "parent-995424086";
+
+    ListPrivateConnectionPeeringRoutesPagedResponse pagedListResponse =
+        client.listPrivateConnectionPeeringRoutes(parent);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getPeeringRoutesList().get(0), resources.get(0));
+
+    List actualRequests = mockVmwareEngine.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListPrivateConnectionPeeringRoutesRequest actualRequest =
+        ((ListPrivateConnectionPeeringRoutesRequest) actualRequests.get(0));
+
+    Assert.assertEquals(parent, actualRequest.getParent());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listPrivateConnectionPeeringRoutesExceptionTest2() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockVmwareEngine.addException(exception);
+
+    try {
+      String parent = "parent-995424086";
+      client.listPrivateConnectionPeeringRoutes(parent);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
   @Test
   public void listLocationsTest() throws Exception {
     Location responsesElement = Location.newBuilder().build();
diff --git a/java-vmwareengine/grpc-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineGrpc.java b/java-vmwareengine/grpc-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineGrpc.java
index 644d92e60e20..3c21e0cc49bf 100644
--- a/java-vmwareengine/grpc-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineGrpc.java
+++ b/java-vmwareengine/grpc-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineGrpc.java
@@ -580,6 +580,93 @@ private VmwareEngineGrpc() {}
     return getListSubnetsMethod;
   }
 
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vmwareengine.v1.GetSubnetRequest,
+          com.google.cloud.vmwareengine.v1.Subnet>
+      getGetSubnetMethod;
+
+  @io.grpc.stub.annotations.RpcMethod(
+      fullMethodName = SERVICE_NAME + '/' + "GetSubnet",
+      requestType = com.google.cloud.vmwareengine.v1.GetSubnetRequest.class,
+      responseType = com.google.cloud.vmwareengine.v1.Subnet.class,
+      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vmwareengine.v1.GetSubnetRequest,
+          com.google.cloud.vmwareengine.v1.Subnet>
+      getGetSubnetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vmwareengine.v1.GetSubnetRequest,
+            com.google.cloud.vmwareengine.v1.Subnet>
+        getGetSubnetMethod;
+    if ((getGetSubnetMethod = VmwareEngineGrpc.getGetSubnetMethod) == null) {
+      synchronized (VmwareEngineGrpc.class) {
+        if ((getGetSubnetMethod = VmwareEngineGrpc.getGetSubnetMethod) == null) {
+          VmwareEngineGrpc.getGetSubnetMethod =
+              getGetSubnetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSubnet"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vmwareengine.v1.GetSubnetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vmwareengine.v1.Subnet.getDefaultInstance()))
+                      .setSchemaDescriptor(new VmwareEngineMethodDescriptorSupplier("GetSubnet"))
+                      .build();
+        }
+      }
+    }
+    return getGetSubnetMethod;
+  }
+
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vmwareengine.v1.UpdateSubnetRequest, com.google.longrunning.Operation>
+      getUpdateSubnetMethod;
+
+  @io.grpc.stub.annotations.RpcMethod(
+      fullMethodName = SERVICE_NAME + '/' + "UpdateSubnet",
+      requestType = com.google.cloud.vmwareengine.v1.UpdateSubnetRequest.class,
+      responseType = com.google.longrunning.Operation.class,
+      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vmwareengine.v1.UpdateSubnetRequest, com.google.longrunning.Operation>
+      getUpdateSubnetMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vmwareengine.v1.UpdateSubnetRequest, com.google.longrunning.Operation>
+        getUpdateSubnetMethod;
+    if ((getUpdateSubnetMethod = VmwareEngineGrpc.getUpdateSubnetMethod) == null) {
+      synchronized (VmwareEngineGrpc.class) {
+        if ((getUpdateSubnetMethod = VmwareEngineGrpc.getUpdateSubnetMethod) == null) {
+          VmwareEngineGrpc.getUpdateSubnetMethod =
+              getUpdateSubnetMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSubnet"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vmwareengine.v1.UpdateSubnetRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(new VmwareEngineMethodDescriptorSupplier("UpdateSubnet"))
+                      .build();
+        }
+      }
+    }
+    return getUpdateSubnetMethod;
+  }
+
   private static volatile io.grpc.MethodDescriptor<
           com.google.cloud.vmwareengine.v1.ListNodeTypesRequest,
           com.google.cloud.vmwareengine.v1.ListNodeTypesResponse>
@@ -1501,6 +1588,309 @@ private VmwareEngineGrpc() {}
     return getListVmwareEngineNetworksMethod;
   }
 
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest,
+          com.google.longrunning.Operation>
+      getCreatePrivateConnectionMethod;
+
+  @io.grpc.stub.annotations.RpcMethod(
+      fullMethodName = SERVICE_NAME + '/' + "CreatePrivateConnection",
+      requestType = com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest.class,
+      responseType = com.google.longrunning.Operation.class,
+      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest,
+          com.google.longrunning.Operation>
+      getCreatePrivateConnectionMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest,
+            com.google.longrunning.Operation>
+        getCreatePrivateConnectionMethod;
+    if ((getCreatePrivateConnectionMethod = VmwareEngineGrpc.getCreatePrivateConnectionMethod)
+        == null) {
+      synchronized (VmwareEngineGrpc.class) {
+        if ((getCreatePrivateConnectionMethod = VmwareEngineGrpc.getCreatePrivateConnectionMethod)
+            == null) {
+          VmwareEngineGrpc.getCreatePrivateConnectionMethod =
+              getCreatePrivateConnectionMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "CreatePrivateConnection"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new VmwareEngineMethodDescriptorSupplier("CreatePrivateConnection"))
+                      .build();
+        }
+      }
+    }
+    return getCreatePrivateConnectionMethod;
+  }
+
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest,
+          com.google.cloud.vmwareengine.v1.PrivateConnection>
+      getGetPrivateConnectionMethod;
+
+  @io.grpc.stub.annotations.RpcMethod(
+      fullMethodName = SERVICE_NAME + '/' + "GetPrivateConnection",
+      requestType = com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest.class,
+      responseType = com.google.cloud.vmwareengine.v1.PrivateConnection.class,
+      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest,
+          com.google.cloud.vmwareengine.v1.PrivateConnection>
+      getGetPrivateConnectionMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest,
+            com.google.cloud.vmwareengine.v1.PrivateConnection>
+        getGetPrivateConnectionMethod;
+    if ((getGetPrivateConnectionMethod = VmwareEngineGrpc.getGetPrivateConnectionMethod) == null) {
+      synchronized (VmwareEngineGrpc.class) {
+        if ((getGetPrivateConnectionMethod = VmwareEngineGrpc.getGetPrivateConnectionMethod)
+            == null) {
+          VmwareEngineGrpc.getGetPrivateConnectionMethod =
+              getGetPrivateConnectionMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "GetPrivateConnection"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vmwareengine.v1.PrivateConnection
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new VmwareEngineMethodDescriptorSupplier("GetPrivateConnection"))
+                      .build();
+        }
+      }
+    }
+    return getGetPrivateConnectionMethod;
+  }
+
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest,
+          com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse>
+      getListPrivateConnectionsMethod;
+
+  @io.grpc.stub.annotations.RpcMethod(
+      fullMethodName = SERVICE_NAME + '/' + "ListPrivateConnections",
+      requestType = com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest.class,
+      responseType = com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse.class,
+      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest,
+          com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse>
+      getListPrivateConnectionsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest,
+            com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse>
+        getListPrivateConnectionsMethod;
+    if ((getListPrivateConnectionsMethod = VmwareEngineGrpc.getListPrivateConnectionsMethod)
+        == null) {
+      synchronized (VmwareEngineGrpc.class) {
+        if ((getListPrivateConnectionsMethod = VmwareEngineGrpc.getListPrivateConnectionsMethod)
+            == null) {
+          VmwareEngineGrpc.getListPrivateConnectionsMethod =
+              getListPrivateConnectionsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "ListPrivateConnections"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new VmwareEngineMethodDescriptorSupplier("ListPrivateConnections"))
+                      .build();
+        }
+      }
+    }
+    return getListPrivateConnectionsMethod;
+  }
+
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest,
+          com.google.longrunning.Operation>
+      getUpdatePrivateConnectionMethod;
+
+  @io.grpc.stub.annotations.RpcMethod(
+      fullMethodName = SERVICE_NAME + '/' + "UpdatePrivateConnection",
+      requestType = com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest.class,
+      responseType = com.google.longrunning.Operation.class,
+      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest,
+          com.google.longrunning.Operation>
+      getUpdatePrivateConnectionMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest,
+            com.google.longrunning.Operation>
+        getUpdatePrivateConnectionMethod;
+    if ((getUpdatePrivateConnectionMethod = VmwareEngineGrpc.getUpdatePrivateConnectionMethod)
+        == null) {
+      synchronized (VmwareEngineGrpc.class) {
+        if ((getUpdatePrivateConnectionMethod = VmwareEngineGrpc.getUpdatePrivateConnectionMethod)
+            == null) {
+          VmwareEngineGrpc.getUpdatePrivateConnectionMethod =
+              getUpdatePrivateConnectionMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "UpdatePrivateConnection"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new VmwareEngineMethodDescriptorSupplier("UpdatePrivateConnection"))
+                      .build();
+        }
+      }
+    }
+    return getUpdatePrivateConnectionMethod;
+  }
+
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest,
+          com.google.longrunning.Operation>
+      getDeletePrivateConnectionMethod;
+
+  @io.grpc.stub.annotations.RpcMethod(
+      fullMethodName = SERVICE_NAME + '/' + "DeletePrivateConnection",
+      requestType = com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest.class,
+      responseType = com.google.longrunning.Operation.class,
+      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest,
+          com.google.longrunning.Operation>
+      getDeletePrivateConnectionMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest,
+            com.google.longrunning.Operation>
+        getDeletePrivateConnectionMethod;
+    if ((getDeletePrivateConnectionMethod = VmwareEngineGrpc.getDeletePrivateConnectionMethod)
+        == null) {
+      synchronized (VmwareEngineGrpc.class) {
+        if ((getDeletePrivateConnectionMethod = VmwareEngineGrpc.getDeletePrivateConnectionMethod)
+            == null) {
+          VmwareEngineGrpc.getDeletePrivateConnectionMethod =
+              getDeletePrivateConnectionMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "DeletePrivateConnection"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new VmwareEngineMethodDescriptorSupplier("DeletePrivateConnection"))
+                      .build();
+        }
+      }
+    }
+    return getDeletePrivateConnectionMethod;
+  }
+
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest,
+          com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse>
+      getListPrivateConnectionPeeringRoutesMethod;
+
+  @io.grpc.stub.annotations.RpcMethod(
+      fullMethodName = SERVICE_NAME + '/' + "ListPrivateConnectionPeeringRoutes",
+      requestType =
+          com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest.class,
+      responseType =
+          com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse.class,
+      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest,
+          com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse>
+      getListPrivateConnectionPeeringRoutesMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest,
+            com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse>
+        getListPrivateConnectionPeeringRoutesMethod;
+    if ((getListPrivateConnectionPeeringRoutesMethod =
+            VmwareEngineGrpc.getListPrivateConnectionPeeringRoutesMethod)
+        == null) {
+      synchronized (VmwareEngineGrpc.class) {
+        if ((getListPrivateConnectionPeeringRoutesMethod =
+                VmwareEngineGrpc.getListPrivateConnectionPeeringRoutesMethod)
+            == null) {
+          VmwareEngineGrpc.getListPrivateConnectionPeeringRoutesMethod =
+              getListPrivateConnectionPeeringRoutesMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(
+                              SERVICE_NAME, "ListPrivateConnectionPeeringRoutes"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vmwareengine.v1
+                                  .ListPrivateConnectionPeeringRoutesRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.vmwareengine.v1
+                                  .ListPrivateConnectionPeeringRoutesResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new VmwareEngineMethodDescriptorSupplier(
+                              "ListPrivateConnectionPeeringRoutes"))
+                      .build();
+        }
+      }
+    }
+    return getListPrivateConnectionPeeringRoutesMethod;
+  }
+
   /** Creates a new async stub that supports all call types for the service */
   public static VmwareEngineStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
@@ -1761,6 +2151,37 @@ default void listSubnets(
           getListSubnetsMethod(), responseObserver);
     }
 
+    /**
+     *
+     *
+     * 
+     * Gets details of a single subnet.
+     * 
+ */ + default void getSubnet( + com.google.cloud.vmwareengine.v1.GetSubnetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSubnetMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single subnet. Only fields specified in
+     * `update_mask` are applied.
+     * *Note*: This API is synchronous and always returns a successful
+     * `google.longrunning.Operation` (LRO). The returned LRO will only have
+     * `done` and `response` fields.
+     * 
+ */ + default void updateSubnet( + com.google.cloud.vmwareengine.v1.UpdateSubnetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSubnetMethod(), responseObserver); + } + /** * * @@ -2058,6 +2479,101 @@ default void listVmwareEngineNetworks( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListVmwareEngineNetworksMethod(), responseObserver); } + + /** + * + * + *
+     * Creates a new private connection that can be used for accessing private
+     * Clouds.
+     * 
+ */ + default void createPrivateConnection( + com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreatePrivateConnectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves a `PrivateConnection` resource by its resource name. The resource
+     * contains details of the private connection, such as connected
+     * network, routing mode and state.
+     * 
+ */ + default void getPrivateConnection( + com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetPrivateConnectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists `PrivateConnection` resources in a given project and location.
+     * 
+ */ + default void listPrivateConnections( + com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListPrivateConnectionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Modifies a `PrivateConnection` resource. Only `description` and
+     * `routing_mode` fields can be updated. Only fields specified in `updateMask`
+     * are applied.
+     * 
+ */ + default void updatePrivateConnection( + com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdatePrivateConnectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a `PrivateConnection` resource. When a private connection is
+     * deleted for a VMware Engine network, the connected network becomes
+     * inaccessible to that VMware Engine network.
+     * 
+ */ + default void deletePrivateConnection( + com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeletePrivateConnectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists the private connection routes exchanged over a peering connection.
+     * 
+ */ + default void listPrivateConnectionPeeringRoutes( + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListPrivateConnectionPeeringRoutesMethod(), responseObserver); + } } /** @@ -2327,6 +2843,40 @@ public void listSubnets( responseObserver); } + /** + * + * + *
+     * Gets details of a single subnet.
+     * 
+ */ + public void getSubnet( + com.google.cloud.vmwareengine.v1.GetSubnetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSubnetMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single subnet. Only fields specified in
+     * `update_mask` are applied.
+     * *Note*: This API is synchronous and always returns a successful
+     * `google.longrunning.Operation` (LRO). The returned LRO will only have
+     * `done` and `response` fields.
+     * 
+ */ + public void updateSubnet( + com.google.cloud.vmwareengine.v1.UpdateSubnetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSubnetMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -2545,11 +3095,120 @@ public void createNetworkPolicy( * processing fully completes. *
*/ - public void updateNetworkPolicy( - com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void updateNetworkPolicy( + com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateNetworkPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a `NetworkPolicy` resource. A network policy cannot be deleted
+     * when `NetworkService.state` is set to `RECONCILING` for either its external
+     * IP or internet access service.
+     * 
+ */ + public void deleteNetworkPolicy( + com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteNetworkPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new VMware Engine network that can be used by a private cloud.
+     * 
+ */ + public void createVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateVmwareEngineNetworkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Modifies a VMware Engine network resource. Only the following fields can be
+     * updated: `description`. Only fields specified in `updateMask` are
+     * applied.
+     * 
+ */ + public void updateVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateVmwareEngineNetworkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a `VmwareEngineNetwork` resource. You can only delete a VMware
+     * Engine network after all resources that refer to it are deleted. For
+     * example, a private cloud, a network peering, and a network policy can all
+     * refer to the same VMware Engine network.
+     * 
+ */ + public void deleteVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteVmwareEngineNetworkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves a `VmwareEngineNetwork` resource by its resource name. The
+     * resource contains details of the VMware Engine network, such as its VMware
+     * Engine network type, peered networks in a service project, and state
+     * (for example, `CREATING`, `ACTIVE`, `DELETING`).
+     * 
+ */ + public void getVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetVmwareEngineNetworkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists `VmwareEngineNetwork` resources in a given project and location.
+     * 
+ */ + public void listVmwareEngineNetworks( + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse> + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateNetworkPolicyMethod(), getCallOptions()), + getChannel().newCall(getListVmwareEngineNetworksMethod(), getCallOptions()), request, responseObserver); } @@ -2558,16 +3217,15 @@ public void updateNetworkPolicy( * * *
-     * Deletes a `NetworkPolicy` resource. A network policy cannot be deleted
-     * when `NetworkService.state` is set to `RECONCILING` for either its external
-     * IP or internet access service.
+     * Creates a new private connection that can be used for accessing private
+     * Clouds.
      * 
*/ - public void deleteNetworkPolicy( - com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest request, + public void createPrivateConnection( + com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteNetworkPolicyMethod(), getCallOptions()), + getChannel().newCall(getCreatePrivateConnectionMethod(), getCallOptions()), request, responseObserver); } @@ -2576,14 +3234,17 @@ public void deleteNetworkPolicy( * * *
-     * Creates a new VMware Engine network that can be used by a private cloud.
+     * Retrieves a `PrivateConnection` resource by its resource name. The resource
+     * contains details of the private connection, such as connected
+     * network, routing mode and state.
      * 
*/ - public void createVmwareEngineNetwork( - com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void getPrivateConnection( + com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateVmwareEngineNetworkMethod(), getCallOptions()), + getChannel().newCall(getGetPrivateConnectionMethod(), getCallOptions()), request, responseObserver); } @@ -2592,16 +3253,15 @@ public void createVmwareEngineNetwork( * * *
-     * Modifies a VMware Engine network resource. Only the following fields can be
-     * updated: `description`. Only fields specified in `updateMask` are
-     * applied.
+     * Lists `PrivateConnection` resources in a given project and location.
      * 
*/ - public void updateVmwareEngineNetwork( - com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listPrivateConnections( + com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateVmwareEngineNetworkMethod(), getCallOptions()), + getChannel().newCall(getListPrivateConnectionsMethod(), getCallOptions()), request, responseObserver); } @@ -2610,17 +3270,16 @@ public void updateVmwareEngineNetwork( * * *
-     * Deletes a `VmwareEngineNetwork` resource. You can only delete a VMware
-     * Engine network after all resources that refer to it are deleted. For
-     * example, a private cloud, a network peering, and a network policy can all
-     * refer to the same VMware Engine network.
+     * Modifies a `PrivateConnection` resource. Only `description` and
+     * `routing_mode` fields can be updated. Only fields specified in `updateMask`
+     * are applied.
      * 
*/ - public void deleteVmwareEngineNetwork( - com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest request, + public void updatePrivateConnection( + com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteVmwareEngineNetworkMethod(), getCallOptions()), + getChannel().newCall(getUpdatePrivateConnectionMethod(), getCallOptions()), request, responseObserver); } @@ -2629,18 +3288,16 @@ public void deleteVmwareEngineNetwork( * * *
-     * Retrieves a `VmwareEngineNetwork` resource by its resource name. The
-     * resource contains details of the VMware Engine network, such as its VMware
-     * Engine network type, peered networks in a service project, and state
-     * (for example, `CREATING`, `ACTIVE`, `DELETING`).
+     * Deletes a `PrivateConnection` resource. When a private connection is
+     * deleted for a VMware Engine network, the connected network becomes
+     * inaccessible to that VMware Engine network.
      * 
*/ - public void getVmwareEngineNetwork( - com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void deletePrivateConnection( + com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetVmwareEngineNetworkMethod(), getCallOptions()), + getChannel().newCall(getDeletePrivateConnectionMethod(), getCallOptions()), request, responseObserver); } @@ -2649,16 +3306,16 @@ public void getVmwareEngineNetwork( * * *
-     * Lists `VmwareEngineNetwork` resources in a given project and location.
+     * Lists the private connection routes exchanged over a peering connection.
      * 
*/ - public void listVmwareEngineNetworks( - com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest request, + public void listPrivateConnectionPeeringRoutes( + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest request, io.grpc.stub.StreamObserver< - com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse> + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListVmwareEngineNetworksMethod(), getCallOptions()), + getChannel().newCall(getListPrivateConnectionPeeringRoutesMethod(), getCallOptions()), request, responseObserver); } @@ -2878,6 +3535,36 @@ public com.google.cloud.vmwareengine.v1.ListSubnetsResponse listSubnets( getChannel(), getListSubnetsMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Gets details of a single subnet.
+     * 
+ */ + public com.google.cloud.vmwareengine.v1.Subnet getSubnet( + com.google.cloud.vmwareengine.v1.GetSubnetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSubnetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the parameters of a single subnet. Only fields specified in
+     * `update_mask` are applied.
+     * *Note*: This API is synchronous and always returns a successful
+     * `google.longrunning.Operation` (LRO). The returned LRO will only have
+     * `done` and `response` fields.
+     * 
+ */ + public com.google.longrunning.Operation updateSubnet( + com.google.cloud.vmwareengine.v1.UpdateSubnetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSubnetMethod(), getCallOptions(), request); + } + /** * * @@ -3147,6 +3834,92 @@ public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork getVmwareEngineNetwo return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListVmwareEngineNetworksMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Creates a new private connection that can be used for accessing private
+     * Clouds.
+     * 
+ */ + public com.google.longrunning.Operation createPrivateConnection( + com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreatePrivateConnectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves a `PrivateConnection` resource by its resource name. The resource
+     * contains details of the private connection, such as connected
+     * network, routing mode and state.
+     * 
+ */ + public com.google.cloud.vmwareengine.v1.PrivateConnection getPrivateConnection( + com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPrivateConnectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists `PrivateConnection` resources in a given project and location.
+     * 
+ */ + public com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse listPrivateConnections( + com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPrivateConnectionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Modifies a `PrivateConnection` resource. Only `description` and
+     * `routing_mode` fields can be updated. Only fields specified in `updateMask`
+     * are applied.
+     * 
+ */ + public com.google.longrunning.Operation updatePrivateConnection( + com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdatePrivateConnectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a `PrivateConnection` resource. When a private connection is
+     * deleted for a VMware Engine network, the connected network becomes
+     * inaccessible to that VMware Engine network.
+     * 
+ */ + public com.google.longrunning.Operation deletePrivateConnection( + com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeletePrivateConnectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the private connection routes exchanged over a peering connection.
+     * 
+ */ + public com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + listPrivateConnectionPeeringRoutes( + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPrivateConnectionPeeringRoutesMethod(), getCallOptions(), request); + } } /** @@ -3368,6 +4141,37 @@ protected VmwareEngineFutureStub build( getChannel().newCall(getListSubnetsMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Gets details of a single subnet.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.Subnet> + getSubnet(com.google.cloud.vmwareengine.v1.GetSubnetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSubnetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the parameters of a single subnet. Only fields specified in
+     * `update_mask` are applied.
+     * *Note*: This API is synchronous and always returns a successful
+     * `google.longrunning.Operation` (LRO). The returned LRO will only have
+     * `done` and `response` fields.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateSubnet(com.google.cloud.vmwareengine.v1.UpdateSubnetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSubnetMethod(), getCallOptions()), request); + } + /** * * @@ -3655,6 +4459,100 @@ protected VmwareEngineFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListVmwareEngineNetworksMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Creates a new private connection that can be used for accessing private
+     * Clouds.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createPrivateConnection( + com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreatePrivateConnectionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves a `PrivateConnection` resource by its resource name. The resource
+     * contains details of the private connection, such as connected
+     * network, routing mode and state.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.PrivateConnection> + getPrivateConnection(com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPrivateConnectionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists `PrivateConnection` resources in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse> + listPrivateConnections( + com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPrivateConnectionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Modifies a `PrivateConnection` resource. Only `description` and
+     * `routing_mode` fields can be updated. Only fields specified in `updateMask`
+     * are applied.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updatePrivateConnection( + com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdatePrivateConnectionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a `PrivateConnection` resource. When a private connection is
+     * deleted for a VMware Engine network, the connected network becomes
+     * inaccessible to that VMware Engine network.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deletePrivateConnection( + com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeletePrivateConnectionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists the private connection routes exchanged over a peering connection.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse> + listPrivateConnectionPeeringRoutes( + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPrivateConnectionPeeringRoutesMethod(), getCallOptions()), + request); + } } private static final int METHODID_LIST_PRIVATE_CLOUDS = 0; @@ -3669,25 +4567,33 @@ protected VmwareEngineFutureStub build( private static final int METHODID_UPDATE_CLUSTER = 9; private static final int METHODID_DELETE_CLUSTER = 10; private static final int METHODID_LIST_SUBNETS = 11; - private static final int METHODID_LIST_NODE_TYPES = 12; - private static final int METHODID_GET_NODE_TYPE = 13; - private static final int METHODID_SHOW_NSX_CREDENTIALS = 14; - private static final int METHODID_SHOW_VCENTER_CREDENTIALS = 15; - private static final int METHODID_RESET_NSX_CREDENTIALS = 16; - private static final int METHODID_RESET_VCENTER_CREDENTIALS = 17; - private static final int METHODID_CREATE_HCX_ACTIVATION_KEY = 18; - private static final int METHODID_LIST_HCX_ACTIVATION_KEYS = 19; - private static final int METHODID_GET_HCX_ACTIVATION_KEY = 20; - private static final int METHODID_GET_NETWORK_POLICY = 21; - private static final int METHODID_LIST_NETWORK_POLICIES = 22; - private static final int METHODID_CREATE_NETWORK_POLICY = 23; - private static final int METHODID_UPDATE_NETWORK_POLICY = 24; - private static final int METHODID_DELETE_NETWORK_POLICY = 25; - private static final int METHODID_CREATE_VMWARE_ENGINE_NETWORK = 26; - private static final int METHODID_UPDATE_VMWARE_ENGINE_NETWORK = 27; - private static final int METHODID_DELETE_VMWARE_ENGINE_NETWORK = 28; - private static final int METHODID_GET_VMWARE_ENGINE_NETWORK = 29; - private static final int METHODID_LIST_VMWARE_ENGINE_NETWORKS = 30; + private static final int METHODID_GET_SUBNET = 12; + private static final int METHODID_UPDATE_SUBNET = 13; + private static final int METHODID_LIST_NODE_TYPES = 14; + private static final int METHODID_GET_NODE_TYPE = 15; + private static final int METHODID_SHOW_NSX_CREDENTIALS = 16; + private static final int METHODID_SHOW_VCENTER_CREDENTIALS = 17; + private static final int METHODID_RESET_NSX_CREDENTIALS = 18; + private static final int METHODID_RESET_VCENTER_CREDENTIALS = 19; + private static final int METHODID_CREATE_HCX_ACTIVATION_KEY = 20; + private static final int METHODID_LIST_HCX_ACTIVATION_KEYS = 21; + private static final int METHODID_GET_HCX_ACTIVATION_KEY = 22; + private static final int METHODID_GET_NETWORK_POLICY = 23; + private static final int METHODID_LIST_NETWORK_POLICIES = 24; + private static final int METHODID_CREATE_NETWORK_POLICY = 25; + private static final int METHODID_UPDATE_NETWORK_POLICY = 26; + private static final int METHODID_DELETE_NETWORK_POLICY = 27; + private static final int METHODID_CREATE_VMWARE_ENGINE_NETWORK = 28; + private static final int METHODID_UPDATE_VMWARE_ENGINE_NETWORK = 29; + private static final int METHODID_DELETE_VMWARE_ENGINE_NETWORK = 30; + private static final int METHODID_GET_VMWARE_ENGINE_NETWORK = 31; + private static final int METHODID_LIST_VMWARE_ENGINE_NETWORKS = 32; + private static final int METHODID_CREATE_PRIVATE_CONNECTION = 33; + private static final int METHODID_GET_PRIVATE_CONNECTION = 34; + private static final int METHODID_LIST_PRIVATE_CONNECTIONS = 35; + private static final int METHODID_UPDATE_PRIVATE_CONNECTION = 36; + private static final int METHODID_DELETE_PRIVATE_CONNECTION = 37; + private static final int METHODID_LIST_PRIVATE_CONNECTION_PEERING_ROUTES = 38; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -3772,6 +4678,17 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_SUBNET: + serviceImpl.getSubnet( + (com.google.cloud.vmwareengine.v1.GetSubnetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_SUBNET: + serviceImpl.updateSubnet( + (com.google.cloud.vmwareengine.v1.UpdateSubnetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_LIST_NODE_TYPES: serviceImpl.listNodeTypes( (com.google.cloud.vmwareengine.v1.ListNodeTypesRequest) request, @@ -3880,6 +4797,41 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse>) responseObserver); break; + case METHODID_CREATE_PRIVATE_CONNECTION: + serviceImpl.createPrivateConnection( + (com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_PRIVATE_CONNECTION: + serviceImpl.getPrivateConnection( + (com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_PRIVATE_CONNECTIONS: + serviceImpl.listPrivateConnections( + (com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse>) + responseObserver); + break; + case METHODID_UPDATE_PRIVATE_CONNECTION: + serviceImpl.updatePrivateConnection( + (com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_PRIVATE_CONNECTION: + serviceImpl.deletePrivateConnection( + (com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_PRIVATE_CONNECTION_PEERING_ROUTES: + serviceImpl.listPrivateConnectionPeeringRoutes( + (com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse>) + responseObserver); + break; default: throw new AssertionError(); } @@ -3974,6 +4926,18 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.vmwareengine.v1.ListSubnetsRequest, com.google.cloud.vmwareengine.v1.ListSubnetsResponse>( service, METHODID_LIST_SUBNETS))) + .addMethod( + getGetSubnetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.GetSubnetRequest, + com.google.cloud.vmwareengine.v1.Subnet>(service, METHODID_GET_SUBNET))) + .addMethod( + getUpdateSubnetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.UpdateSubnetRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_SUBNET))) .addMethod( getListNodeTypesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -4100,6 +5064,45 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest, com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse>( service, METHODID_LIST_VMWARE_ENGINE_NETWORKS))) + .addMethod( + getCreatePrivateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_PRIVATE_CONNECTION))) + .addMethod( + getGetPrivateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest, + com.google.cloud.vmwareengine.v1.PrivateConnection>( + service, METHODID_GET_PRIVATE_CONNECTION))) + .addMethod( + getListPrivateConnectionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest, + com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse>( + service, METHODID_LIST_PRIVATE_CONNECTIONS))) + .addMethod( + getUpdatePrivateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_PRIVATE_CONNECTION))) + .addMethod( + getDeletePrivateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_PRIVATE_CONNECTION))) + .addMethod( + getListPrivateConnectionPeeringRoutesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest, + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse>( + service, METHODID_LIST_PRIVATE_CONNECTION_PEERING_ROUTES))) .build(); } @@ -4163,6 +5166,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getUpdateClusterMethod()) .addMethod(getDeleteClusterMethod()) .addMethod(getListSubnetsMethod()) + .addMethod(getGetSubnetMethod()) + .addMethod(getUpdateSubnetMethod()) .addMethod(getListNodeTypesMethod()) .addMethod(getGetNodeTypeMethod()) .addMethod(getShowNsxCredentialsMethod()) @@ -4182,6 +5187,12 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getDeleteVmwareEngineNetworkMethod()) .addMethod(getGetVmwareEngineNetworkMethod()) .addMethod(getListVmwareEngineNetworksMethod()) + .addMethod(getCreatePrivateConnectionMethod()) + .addMethod(getGetPrivateConnectionMethod()) + .addMethod(getListPrivateConnectionsMethod()) + .addMethod(getUpdatePrivateConnectionMethod()) + .addMethod(getDeletePrivateConnectionMethod()) + .addMethod(getListPrivateConnectionPeeringRoutesMethod()) .build(); } } diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreatePrivateConnectionRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreatePrivateConnectionRequest.java new file mode 100644 index 000000000000..9dbb11a61718 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreatePrivateConnectionRequest.java @@ -0,0 +1,1500 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for
+ * [VmwareEngine.CreatePrivateConnection][google.cloud.vmwareengine.v1.VmwareEngine.CreatePrivateConnection]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest} + */ +public final class CreatePrivateConnectionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest) + CreatePrivateConnectionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreatePrivateConnectionRequest.newBuilder() to construct. + private CreatePrivateConnectionRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreatePrivateConnectionRequest() { + parent_ = ""; + privateConnectionId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreatePrivateConnectionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreatePrivateConnectionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreatePrivateConnectionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest.class, + com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The resource name of the location to create the new private
+   * connection in. Private connection is a regional resource.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names. For example:
+   * `projects/my-project/locations/us-central1`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the location to create the new private
+   * connection in. Private connection is a regional resource.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names. For example:
+   * `projects/my-project/locations/us-central1`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRIVATE_CONNECTION_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object privateConnectionId_ = ""; + /** + * + * + *
+   * Required. The user-provided identifier of the new private connection.
+   * This identifier must be unique among private connection resources
+   * within the parent and becomes the final token in the name URI. The
+   * identifier must meet the following requirements:
+   *
+   * * Only contains 1-63 alphanumeric characters and hyphens
+   * * Begins with an alphabetical character
+   * * Ends with a non-hyphen character
+   * * Not formatted as a UUID
+   * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+   * (section 3.5)
+   * 
+ * + * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The privateConnectionId. + */ + @java.lang.Override + public java.lang.String getPrivateConnectionId() { + java.lang.Object ref = privateConnectionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateConnectionId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The user-provided identifier of the new private connection.
+   * This identifier must be unique among private connection resources
+   * within the parent and becomes the final token in the name URI. The
+   * identifier must meet the following requirements:
+   *
+   * * Only contains 1-63 alphanumeric characters and hyphens
+   * * Begins with an alphabetical character
+   * * Ends with a non-hyphen character
+   * * Not formatted as a UUID
+   * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+   * (section 3.5)
+   * 
+ * + * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for privateConnectionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrivateConnectionIdBytes() { + java.lang.Object ref = privateConnectionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateConnectionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRIVATE_CONNECTION_FIELD_NUMBER = 3; + private com.google.cloud.vmwareengine.v1.PrivateConnection privateConnection_; + /** + * + * + *
+   * Required. The initial description of the new private connection.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the privateConnection field is set. + */ + @java.lang.Override + public boolean hasPrivateConnection() { + return privateConnection_ != null; + } + /** + * + * + *
+   * Required. The initial description of the new private connection.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The privateConnection. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateConnection getPrivateConnection() { + return privateConnection_ == null + ? com.google.cloud.vmwareengine.v1.PrivateConnection.getDefaultInstance() + : privateConnection_; + } + /** + * + * + *
+   * Required. The initial description of the new private connection.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateConnectionOrBuilder + getPrivateConnectionOrBuilder() { + return privateConnection_ == null + ? com.google.cloud.vmwareengine.v1.PrivateConnection.getDefaultInstance() + : privateConnection_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateConnectionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, privateConnectionId_); + } + if (privateConnection_ != null) { + output.writeMessage(3, getPrivateConnection()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateConnectionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, privateConnectionId_); + } + if (privateConnection_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPrivateConnection()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest other = + (com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getPrivateConnectionId().equals(other.getPrivateConnectionId())) return false; + if (hasPrivateConnection() != other.hasPrivateConnection()) return false; + if (hasPrivateConnection()) { + if (!getPrivateConnection().equals(other.getPrivateConnection())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PRIVATE_CONNECTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getPrivateConnectionId().hashCode(); + if (hasPrivateConnection()) { + hash = (37 * hash) + PRIVATE_CONNECTION_FIELD_NUMBER; + hash = (53 * hash) + getPrivateConnection().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for
+   * [VmwareEngine.CreatePrivateConnection][google.cloud.vmwareengine.v1.VmwareEngine.CreatePrivateConnection]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest) + com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreatePrivateConnectionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreatePrivateConnectionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest.class, + com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + privateConnectionId_ = ""; + privateConnection_ = null; + if (privateConnectionBuilder_ != null) { + privateConnectionBuilder_.dispose(); + privateConnectionBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreatePrivateConnectionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest build() { + com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest buildPartial() { + com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest result = + new com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.privateConnectionId_ = privateConnectionId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.privateConnection_ = + privateConnectionBuilder_ == null + ? privateConnection_ + : privateConnectionBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPrivateConnectionId().isEmpty()) { + privateConnectionId_ = other.privateConnectionId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasPrivateConnection()) { + mergePrivateConnection(other.getPrivateConnection()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + privateConnectionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getPrivateConnectionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the location to create the new private
+     * connection in. Private connection is a regional resource.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names. For example:
+     * `projects/my-project/locations/us-central1`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the location to create the new private
+     * connection in. Private connection is a regional resource.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names. For example:
+     * `projects/my-project/locations/us-central1`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the location to create the new private
+     * connection in. Private connection is a regional resource.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names. For example:
+     * `projects/my-project/locations/us-central1`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the location to create the new private
+     * connection in. Private connection is a regional resource.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names. For example:
+     * `projects/my-project/locations/us-central1`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the location to create the new private
+     * connection in. Private connection is a regional resource.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names. For example:
+     * `projects/my-project/locations/us-central1`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object privateConnectionId_ = ""; + /** + * + * + *
+     * Required. The user-provided identifier of the new private connection.
+     * This identifier must be unique among private connection resources
+     * within the parent and becomes the final token in the name URI. The
+     * identifier must meet the following requirements:
+     *
+     * * Only contains 1-63 alphanumeric characters and hyphens
+     * * Begins with an alphabetical character
+     * * Ends with a non-hyphen character
+     * * Not formatted as a UUID
+     * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+     * (section 3.5)
+     * 
+ * + * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The privateConnectionId. + */ + public java.lang.String getPrivateConnectionId() { + java.lang.Object ref = privateConnectionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateConnectionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The user-provided identifier of the new private connection.
+     * This identifier must be unique among private connection resources
+     * within the parent and becomes the final token in the name URI. The
+     * identifier must meet the following requirements:
+     *
+     * * Only contains 1-63 alphanumeric characters and hyphens
+     * * Begins with an alphabetical character
+     * * Ends with a non-hyphen character
+     * * Not formatted as a UUID
+     * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+     * (section 3.5)
+     * 
+ * + * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for privateConnectionId. + */ + public com.google.protobuf.ByteString getPrivateConnectionIdBytes() { + java.lang.Object ref = privateConnectionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateConnectionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The user-provided identifier of the new private connection.
+     * This identifier must be unique among private connection resources
+     * within the parent and becomes the final token in the name URI. The
+     * identifier must meet the following requirements:
+     *
+     * * Only contains 1-63 alphanumeric characters and hyphens
+     * * Begins with an alphabetical character
+     * * Ends with a non-hyphen character
+     * * Not formatted as a UUID
+     * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+     * (section 3.5)
+     * 
+ * + * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The privateConnectionId to set. + * @return This builder for chaining. + */ + public Builder setPrivateConnectionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + privateConnectionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The user-provided identifier of the new private connection.
+     * This identifier must be unique among private connection resources
+     * within the parent and becomes the final token in the name URI. The
+     * identifier must meet the following requirements:
+     *
+     * * Only contains 1-63 alphanumeric characters and hyphens
+     * * Begins with an alphabetical character
+     * * Ends with a non-hyphen character
+     * * Not formatted as a UUID
+     * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+     * (section 3.5)
+     * 
+ * + * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPrivateConnectionId() { + privateConnectionId_ = getDefaultInstance().getPrivateConnectionId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The user-provided identifier of the new private connection.
+     * This identifier must be unique among private connection resources
+     * within the parent and becomes the final token in the name URI. The
+     * identifier must meet the following requirements:
+     *
+     * * Only contains 1-63 alphanumeric characters and hyphens
+     * * Begins with an alphabetical character
+     * * Ends with a non-hyphen character
+     * * Not formatted as a UUID
+     * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+     * (section 3.5)
+     * 
+ * + * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for privateConnectionId to set. + * @return This builder for chaining. + */ + public Builder setPrivateConnectionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + privateConnectionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.vmwareengine.v1.PrivateConnection privateConnection_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.PrivateConnection, + com.google.cloud.vmwareengine.v1.PrivateConnection.Builder, + com.google.cloud.vmwareengine.v1.PrivateConnectionOrBuilder> + privateConnectionBuilder_; + /** + * + * + *
+     * Required. The initial description of the new private connection.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the privateConnection field is set. + */ + public boolean hasPrivateConnection() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Required. The initial description of the new private connection.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The privateConnection. + */ + public com.google.cloud.vmwareengine.v1.PrivateConnection getPrivateConnection() { + if (privateConnectionBuilder_ == null) { + return privateConnection_ == null + ? com.google.cloud.vmwareengine.v1.PrivateConnection.getDefaultInstance() + : privateConnection_; + } else { + return privateConnectionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The initial description of the new private connection.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPrivateConnection(com.google.cloud.vmwareengine.v1.PrivateConnection value) { + if (privateConnectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + privateConnection_ = value; + } else { + privateConnectionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The initial description of the new private connection.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPrivateConnection( + com.google.cloud.vmwareengine.v1.PrivateConnection.Builder builderForValue) { + if (privateConnectionBuilder_ == null) { + privateConnection_ = builderForValue.build(); + } else { + privateConnectionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The initial description of the new private connection.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePrivateConnection( + com.google.cloud.vmwareengine.v1.PrivateConnection value) { + if (privateConnectionBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && privateConnection_ != null + && privateConnection_ + != com.google.cloud.vmwareengine.v1.PrivateConnection.getDefaultInstance()) { + getPrivateConnectionBuilder().mergeFrom(value); + } else { + privateConnection_ = value; + } + } else { + privateConnectionBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The initial description of the new private connection.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPrivateConnection() { + bitField0_ = (bitField0_ & ~0x00000004); + privateConnection_ = null; + if (privateConnectionBuilder_ != null) { + privateConnectionBuilder_.dispose(); + privateConnectionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The initial description of the new private connection.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.PrivateConnection.Builder + getPrivateConnectionBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getPrivateConnectionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The initial description of the new private connection.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.PrivateConnectionOrBuilder + getPrivateConnectionOrBuilder() { + if (privateConnectionBuilder_ != null) { + return privateConnectionBuilder_.getMessageOrBuilder(); + } else { + return privateConnection_ == null + ? com.google.cloud.vmwareengine.v1.PrivateConnection.getDefaultInstance() + : privateConnection_; + } + } + /** + * + * + *
+     * Required. The initial description of the new private connection.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.PrivateConnection, + com.google.cloud.vmwareengine.v1.PrivateConnection.Builder, + com.google.cloud.vmwareengine.v1.PrivateConnectionOrBuilder> + getPrivateConnectionFieldBuilder() { + if (privateConnectionBuilder_ == null) { + privateConnectionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.PrivateConnection, + com.google.cloud.vmwareengine.v1.PrivateConnection.Builder, + com.google.cloud.vmwareengine.v1.PrivateConnectionOrBuilder>( + getPrivateConnection(), getParentForChildren(), isClean()); + privateConnection_ = null; + } + return privateConnectionBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest) + private static final com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest(); + } + + public static com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatePrivateConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreatePrivateConnectionRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreatePrivateConnectionRequestOrBuilder.java new file mode 100644 index 000000000000..1e34531bdf5d --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreatePrivateConnectionRequestOrBuilder.java @@ -0,0 +1,199 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface CreatePrivateConnectionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the location to create the new private
+   * connection in. Private connection is a regional resource.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names. For example:
+   * `projects/my-project/locations/us-central1`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the location to create the new private
+   * connection in. Private connection is a regional resource.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names. For example:
+   * `projects/my-project/locations/us-central1`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The user-provided identifier of the new private connection.
+   * This identifier must be unique among private connection resources
+   * within the parent and becomes the final token in the name URI. The
+   * identifier must meet the following requirements:
+   *
+   * * Only contains 1-63 alphanumeric characters and hyphens
+   * * Begins with an alphabetical character
+   * * Ends with a non-hyphen character
+   * * Not formatted as a UUID
+   * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+   * (section 3.5)
+   * 
+ * + * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The privateConnectionId. + */ + java.lang.String getPrivateConnectionId(); + /** + * + * + *
+   * Required. The user-provided identifier of the new private connection.
+   * This identifier must be unique among private connection resources
+   * within the parent and becomes the final token in the name URI. The
+   * identifier must meet the following requirements:
+   *
+   * * Only contains 1-63 alphanumeric characters and hyphens
+   * * Begins with an alphabetical character
+   * * Ends with a non-hyphen character
+   * * Not formatted as a UUID
+   * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+   * (section 3.5)
+   * 
+ * + * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for privateConnectionId. + */ + com.google.protobuf.ByteString getPrivateConnectionIdBytes(); + + /** + * + * + *
+   * Required. The initial description of the new private connection.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the privateConnection field is set. + */ + boolean hasPrivateConnection(); + /** + * + * + *
+   * Required. The initial description of the new private connection.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The privateConnection. + */ + com.google.cloud.vmwareengine.v1.PrivateConnection getPrivateConnection(); + /** + * + * + *
+   * Required. The initial description of the new private connection.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmwareengine.v1.PrivateConnectionOrBuilder getPrivateConnectionOrBuilder(); + + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeletePrivateConnectionRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeletePrivateConnectionRequest.java new file mode 100644 index 000000000000..c6b1af65fb2a --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeletePrivateConnectionRequest.java @@ -0,0 +1,950 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for
+ * [VmwareEngine.DeletePrivateConnection][google.cloud.vmwareengine.v1.VmwareEngine.DeletePrivateConnection]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest} + */ +public final class DeletePrivateConnectionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest) + DeletePrivateConnectionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeletePrivateConnectionRequest.newBuilder() to construct. + private DeletePrivateConnectionRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeletePrivateConnectionRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeletePrivateConnectionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeletePrivateConnectionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeletePrivateConnectionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest.class, + com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The resource name of the private connection to be deleted.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1/privateConnections/my-connection`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the private connection to be deleted.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1/privateConnections/my-connection`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest other = + (com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for
+   * [VmwareEngine.DeletePrivateConnection][google.cloud.vmwareengine.v1.VmwareEngine.DeletePrivateConnection]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest) + com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeletePrivateConnectionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeletePrivateConnectionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest.class, + com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeletePrivateConnectionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest build() { + com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest buildPartial() { + com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest result = + new com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the private connection to be deleted.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/privateConnections/my-connection`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the private connection to be deleted.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/privateConnections/my-connection`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the private connection to be deleted.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/privateConnections/my-connection`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the private connection to be deleted.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/privateConnections/my-connection`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the private connection to be deleted.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/privateConnections/my-connection`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest) + private static final com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest(); + } + + public static com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeletePrivateConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeletePrivateConnectionRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeletePrivateConnectionRequestOrBuilder.java new file mode 100644 index 000000000000..c3ff6419e5f1 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeletePrivateConnectionRequestOrBuilder.java @@ -0,0 +1,113 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface DeletePrivateConnectionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the private connection to be deleted.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1/privateConnections/my-connection`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the private connection to be deleted.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1/privateConnections/my-connection`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetPrivateConnectionRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetPrivateConnectionRequest.java new file mode 100644 index 000000000000..1b6b936e6a6f --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetPrivateConnectionRequest.java @@ -0,0 +1,673 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for
+ * [VmwareEngine.GetPrivateConnection][google.cloud.vmwareengine.v1.VmwareEngine.GetPrivateConnection]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.GetPrivateConnectionRequest} + */ +public final class GetPrivateConnectionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.GetPrivateConnectionRequest) + GetPrivateConnectionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetPrivateConnectionRequest.newBuilder() to construct. + private GetPrivateConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetPrivateConnectionRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetPrivateConnectionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetPrivateConnectionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetPrivateConnectionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest.class, + com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The resource name of the private connection to retrieve.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1/privateConnections/my-connection`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the private connection to retrieve.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1/privateConnections/my-connection`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest other = + (com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for
+   * [VmwareEngine.GetPrivateConnection][google.cloud.vmwareengine.v1.VmwareEngine.GetPrivateConnection]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.GetPrivateConnectionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.GetPrivateConnectionRequest) + com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetPrivateConnectionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetPrivateConnectionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest.class, + com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetPrivateConnectionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest build() { + com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest buildPartial() { + com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest result = + new com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the private connection to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/privateConnections/my-connection`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the private connection to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/privateConnections/my-connection`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the private connection to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/privateConnections/my-connection`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the private connection to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/privateConnections/my-connection`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the private connection to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/privateConnections/my-connection`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.GetPrivateConnectionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.GetPrivateConnectionRequest) + private static final com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest(); + } + + public static com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPrivateConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetPrivateConnectionRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetPrivateConnectionRequestOrBuilder.java new file mode 100644 index 000000000000..198a3634d425 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetPrivateConnectionRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface GetPrivateConnectionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.GetPrivateConnectionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the private connection to retrieve.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1/privateConnections/my-connection`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the private connection to retrieve.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1/privateConnections/my-connection`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetSubnetRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetSubnetRequest.java new file mode 100644 index 000000000000..0e427bf7e670 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetSubnetRequest.java @@ -0,0 +1,668 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for
+ * [VmwareEngine.GetSubnet][google.cloud.vmwareengine.v1.VmwareEngine.GetSubnet]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.GetSubnetRequest} + */ +public final class GetSubnetRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.GetSubnetRequest) + GetSubnetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetSubnetRequest.newBuilder() to construct. + private GetSubnetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetSubnetRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetSubnetRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetSubnetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetSubnetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.GetSubnetRequest.class, + com.google.cloud.vmwareengine.v1.GetSubnetRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The resource name of the subnet to retrieve.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/subnets/my-subnet`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the subnet to retrieve.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/subnets/my-subnet`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.GetSubnetRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.GetSubnetRequest other = + (com.google.cloud.vmwareengine.v1.GetSubnetRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.GetSubnetRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetSubnetRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.GetSubnetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetSubnetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.GetSubnetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetSubnetRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.GetSubnetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetSubnetRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.GetSubnetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetSubnetRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.GetSubnetRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetSubnetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.vmwareengine.v1.GetSubnetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for
+   * [VmwareEngine.GetSubnet][google.cloud.vmwareengine.v1.VmwareEngine.GetSubnet]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.GetSubnetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.GetSubnetRequest) + com.google.cloud.vmwareengine.v1.GetSubnetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetSubnetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetSubnetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.GetSubnetRequest.class, + com.google.cloud.vmwareengine.v1.GetSubnetRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.GetSubnetRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetSubnetRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetSubnetRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.GetSubnetRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetSubnetRequest build() { + com.google.cloud.vmwareengine.v1.GetSubnetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetSubnetRequest buildPartial() { + com.google.cloud.vmwareengine.v1.GetSubnetRequest result = + new com.google.cloud.vmwareengine.v1.GetSubnetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmwareengine.v1.GetSubnetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.GetSubnetRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.GetSubnetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.GetSubnetRequest other) { + if (other == com.google.cloud.vmwareengine.v1.GetSubnetRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the subnet to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/subnets/my-subnet`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the subnet to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/subnets/my-subnet`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the subnet to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/subnets/my-subnet`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the subnet to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/subnets/my-subnet`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the subnet to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/subnets/my-subnet`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.GetSubnetRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.GetSubnetRequest) + private static final com.google.cloud.vmwareengine.v1.GetSubnetRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.GetSubnetRequest(); + } + + public static com.google.cloud.vmwareengine.v1.GetSubnetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSubnetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetSubnetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetSubnetRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetSubnetRequestOrBuilder.java new file mode 100644 index 000000000000..23e07a28be81 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetSubnetRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface GetSubnetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.GetSubnetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the subnet to retrieve.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/subnets/my-subnet`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the subnet to retrieve.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/subnets/my-subnet`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateConnectionPeeringRoutesRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateConnectionPeeringRoutesRequest.java new file mode 100644 index 000000000000..9838fa1d7018 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateConnectionPeeringRoutesRequest.java @@ -0,0 +1,997 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for
+ * [VmwareEngine.ListPrivateConnectionPeeringRoutes][google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateConnectionPeeringRoutes]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest} + */ +public final class ListPrivateConnectionPeeringRoutesRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest) + ListPrivateConnectionPeeringRoutesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListPrivateConnectionPeeringRoutesRequest.newBuilder() to construct. + private ListPrivateConnectionPeeringRoutesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListPrivateConnectionPeeringRoutesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListPrivateConnectionPeeringRoutesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionPeeringRoutesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionPeeringRoutesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest.class, + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The resource name of the private connection to retrieve peering
+   * routes from. Resource names are schemeless URIs that follow the conventions
+   * in https://cloud.google.com/apis/design/resource_names. For example:
+   * `projects/my-project/locations/us-west1/privateConnections/my-connection`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the private connection to retrieve peering
+   * routes from. Resource names are schemeless URIs that follow the conventions
+   * in https://cloud.google.com/apis/design/resource_names. For example:
+   * `projects/my-project/locations/us-west1/privateConnections/my-connection`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of peering routes to return in one page.
+   * The service may return fewer than this value.
+   * The maximum value is coerced to 1000.
+   * The default value of this field is 500.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token, received from a previous `ListPrivateConnectionPeeringRoutes`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListPrivateConnectionPeeringRoutes` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListPrivateConnectionPeeringRoutes`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListPrivateConnectionPeeringRoutes` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest other = + (com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for
+   * [VmwareEngine.ListPrivateConnectionPeeringRoutes][google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateConnectionPeeringRoutes]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest) + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionPeeringRoutesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionPeeringRoutesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest.class, + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionPeeringRoutesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest build() { + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + buildPartial() { + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest result = + new com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest) { + return mergeFrom( + (com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the private connection to retrieve peering
+     * routes from. Resource names are schemeless URIs that follow the conventions
+     * in https://cloud.google.com/apis/design/resource_names. For example:
+     * `projects/my-project/locations/us-west1/privateConnections/my-connection`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the private connection to retrieve peering
+     * routes from. Resource names are schemeless URIs that follow the conventions
+     * in https://cloud.google.com/apis/design/resource_names. For example:
+     * `projects/my-project/locations/us-west1/privateConnections/my-connection`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the private connection to retrieve peering
+     * routes from. Resource names are schemeless URIs that follow the conventions
+     * in https://cloud.google.com/apis/design/resource_names. For example:
+     * `projects/my-project/locations/us-west1/privateConnections/my-connection`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the private connection to retrieve peering
+     * routes from. Resource names are schemeless URIs that follow the conventions
+     * in https://cloud.google.com/apis/design/resource_names. For example:
+     * `projects/my-project/locations/us-west1/privateConnections/my-connection`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the private connection to retrieve peering
+     * routes from. Resource names are schemeless URIs that follow the conventions
+     * in https://cloud.google.com/apis/design/resource_names. For example:
+     * `projects/my-project/locations/us-west1/privateConnections/my-connection`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of peering routes to return in one page.
+     * The service may return fewer than this value.
+     * The maximum value is coerced to 1000.
+     * The default value of this field is 500.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of peering routes to return in one page.
+     * The service may return fewer than this value.
+     * The maximum value is coerced to 1000.
+     * The default value of this field is 500.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of peering routes to return in one page.
+     * The service may return fewer than this value.
+     * The maximum value is coerced to 1000.
+     * The default value of this field is 500.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListPrivateConnectionPeeringRoutes`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListPrivateConnectionPeeringRoutes` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListPrivateConnectionPeeringRoutes`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListPrivateConnectionPeeringRoutes` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListPrivateConnectionPeeringRoutes`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListPrivateConnectionPeeringRoutes` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListPrivateConnectionPeeringRoutes`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListPrivateConnectionPeeringRoutes` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListPrivateConnectionPeeringRoutes`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListPrivateConnectionPeeringRoutes` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest) + private static final com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest(); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPrivateConnectionPeeringRoutesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateConnectionPeeringRoutesRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateConnectionPeeringRoutesRequestOrBuilder.java new file mode 100644 index 000000000000..6437b097d410 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateConnectionPeeringRoutesRequestOrBuilder.java @@ -0,0 +1,107 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface ListPrivateConnectionPeeringRoutesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the private connection to retrieve peering
+   * routes from. Resource names are schemeless URIs that follow the conventions
+   * in https://cloud.google.com/apis/design/resource_names. For example:
+   * `projects/my-project/locations/us-west1/privateConnections/my-connection`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the private connection to retrieve peering
+   * routes from. Resource names are schemeless URIs that follow the conventions
+   * in https://cloud.google.com/apis/design/resource_names. For example:
+   * `projects/my-project/locations/us-west1/privateConnections/my-connection`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of peering routes to return in one page.
+   * The service may return fewer than this value.
+   * The maximum value is coerced to 1000.
+   * The default value of this field is 500.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListPrivateConnectionPeeringRoutes`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListPrivateConnectionPeeringRoutes` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListPrivateConnectionPeeringRoutes`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListPrivateConnectionPeeringRoutes` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateConnectionPeeringRoutesResponse.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateConnectionPeeringRoutesResponse.java new file mode 100644 index 000000000000..23cbbaa164f1 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateConnectionPeeringRoutesResponse.java @@ -0,0 +1,1165 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Response message for
+ * [VmwareEngine.ListPrivateConnectionPeeringRoutes][google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateConnectionPeeringRoutes]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse} + */ +public final class ListPrivateConnectionPeeringRoutesResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse) + ListPrivateConnectionPeeringRoutesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListPrivateConnectionPeeringRoutesResponse.newBuilder() to construct. + private ListPrivateConnectionPeeringRoutesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListPrivateConnectionPeeringRoutesResponse() { + peeringRoutes_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListPrivateConnectionPeeringRoutesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionPeeringRoutesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionPeeringRoutesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse.class, + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse.Builder + .class); + } + + public static final int PEERING_ROUTES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List peeringRoutes_; + /** + * + * + *
+   * A list of peering routes.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.PeeringRoute peering_routes = 1; + */ + @java.lang.Override + public java.util.List getPeeringRoutesList() { + return peeringRoutes_; + } + /** + * + * + *
+   * A list of peering routes.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.PeeringRoute peering_routes = 1; + */ + @java.lang.Override + public java.util.List + getPeeringRoutesOrBuilderList() { + return peeringRoutes_; + } + /** + * + * + *
+   * A list of peering routes.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.PeeringRoute peering_routes = 1; + */ + @java.lang.Override + public int getPeeringRoutesCount() { + return peeringRoutes_.size(); + } + /** + * + * + *
+   * A list of peering routes.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.PeeringRoute peering_routes = 1; + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PeeringRoute getPeeringRoutes(int index) { + return peeringRoutes_.get(index); + } + /** + * + * + *
+   * A list of peering routes.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.PeeringRoute peering_routes = 1; + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PeeringRouteOrBuilder getPeeringRoutesOrBuilder( + int index) { + return peeringRoutes_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < peeringRoutes_.size(); i++) { + output.writeMessage(1, peeringRoutes_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < peeringRoutes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, peeringRoutes_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse other = + (com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse) obj; + + if (!getPeeringRoutesList().equals(other.getPeeringRoutesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPeeringRoutesCount() > 0) { + hash = (37 * hash) + PEERING_ROUTES_FIELD_NUMBER; + hash = (53 * hash) + getPeeringRoutesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for
+   * [VmwareEngine.ListPrivateConnectionPeeringRoutes][google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateConnectionPeeringRoutes]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse) + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionPeeringRoutesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionPeeringRoutesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse.class, + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (peeringRoutesBuilder_ == null) { + peeringRoutes_ = java.util.Collections.emptyList(); + } else { + peeringRoutes_ = null; + peeringRoutesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionPeeringRoutesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse build() { + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + buildPartial() { + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse result = + new com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse result) { + if (peeringRoutesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + peeringRoutes_ = java.util.Collections.unmodifiableList(peeringRoutes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.peeringRoutes_ = peeringRoutes_; + } else { + result.peeringRoutes_ = peeringRoutesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse) { + return mergeFrom( + (com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse other) { + if (other + == com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + .getDefaultInstance()) return this; + if (peeringRoutesBuilder_ == null) { + if (!other.peeringRoutes_.isEmpty()) { + if (peeringRoutes_.isEmpty()) { + peeringRoutes_ = other.peeringRoutes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePeeringRoutesIsMutable(); + peeringRoutes_.addAll(other.peeringRoutes_); + } + onChanged(); + } + } else { + if (!other.peeringRoutes_.isEmpty()) { + if (peeringRoutesBuilder_.isEmpty()) { + peeringRoutesBuilder_.dispose(); + peeringRoutesBuilder_ = null; + peeringRoutes_ = other.peeringRoutes_; + bitField0_ = (bitField0_ & ~0x00000001); + peeringRoutesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPeeringRoutesFieldBuilder() + : null; + } else { + peeringRoutesBuilder_.addAllMessages(other.peeringRoutes_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.vmwareengine.v1.PeeringRoute m = + input.readMessage( + com.google.cloud.vmwareengine.v1.PeeringRoute.parser(), extensionRegistry); + if (peeringRoutesBuilder_ == null) { + ensurePeeringRoutesIsMutable(); + peeringRoutes_.add(m); + } else { + peeringRoutesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List peeringRoutes_ = + java.util.Collections.emptyList(); + + private void ensurePeeringRoutesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + peeringRoutes_ = + new java.util.ArrayList(peeringRoutes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.PeeringRoute, + com.google.cloud.vmwareengine.v1.PeeringRoute.Builder, + com.google.cloud.vmwareengine.v1.PeeringRouteOrBuilder> + peeringRoutesBuilder_; + + /** + * + * + *
+     * A list of peering routes.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PeeringRoute peering_routes = 1; + */ + public java.util.List getPeeringRoutesList() { + if (peeringRoutesBuilder_ == null) { + return java.util.Collections.unmodifiableList(peeringRoutes_); + } else { + return peeringRoutesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of peering routes.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PeeringRoute peering_routes = 1; + */ + public int getPeeringRoutesCount() { + if (peeringRoutesBuilder_ == null) { + return peeringRoutes_.size(); + } else { + return peeringRoutesBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of peering routes.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PeeringRoute peering_routes = 1; + */ + public com.google.cloud.vmwareengine.v1.PeeringRoute getPeeringRoutes(int index) { + if (peeringRoutesBuilder_ == null) { + return peeringRoutes_.get(index); + } else { + return peeringRoutesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of peering routes.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PeeringRoute peering_routes = 1; + */ + public Builder setPeeringRoutes( + int index, com.google.cloud.vmwareengine.v1.PeeringRoute value) { + if (peeringRoutesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePeeringRoutesIsMutable(); + peeringRoutes_.set(index, value); + onChanged(); + } else { + peeringRoutesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of peering routes.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PeeringRoute peering_routes = 1; + */ + public Builder setPeeringRoutes( + int index, com.google.cloud.vmwareengine.v1.PeeringRoute.Builder builderForValue) { + if (peeringRoutesBuilder_ == null) { + ensurePeeringRoutesIsMutable(); + peeringRoutes_.set(index, builderForValue.build()); + onChanged(); + } else { + peeringRoutesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of peering routes.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PeeringRoute peering_routes = 1; + */ + public Builder addPeeringRoutes(com.google.cloud.vmwareengine.v1.PeeringRoute value) { + if (peeringRoutesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePeeringRoutesIsMutable(); + peeringRoutes_.add(value); + onChanged(); + } else { + peeringRoutesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of peering routes.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PeeringRoute peering_routes = 1; + */ + public Builder addPeeringRoutes( + int index, com.google.cloud.vmwareengine.v1.PeeringRoute value) { + if (peeringRoutesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePeeringRoutesIsMutable(); + peeringRoutes_.add(index, value); + onChanged(); + } else { + peeringRoutesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of peering routes.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PeeringRoute peering_routes = 1; + */ + public Builder addPeeringRoutes( + com.google.cloud.vmwareengine.v1.PeeringRoute.Builder builderForValue) { + if (peeringRoutesBuilder_ == null) { + ensurePeeringRoutesIsMutable(); + peeringRoutes_.add(builderForValue.build()); + onChanged(); + } else { + peeringRoutesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of peering routes.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PeeringRoute peering_routes = 1; + */ + public Builder addPeeringRoutes( + int index, com.google.cloud.vmwareengine.v1.PeeringRoute.Builder builderForValue) { + if (peeringRoutesBuilder_ == null) { + ensurePeeringRoutesIsMutable(); + peeringRoutes_.add(index, builderForValue.build()); + onChanged(); + } else { + peeringRoutesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of peering routes.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PeeringRoute peering_routes = 1; + */ + public Builder addAllPeeringRoutes( + java.lang.Iterable values) { + if (peeringRoutesBuilder_ == null) { + ensurePeeringRoutesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, peeringRoutes_); + onChanged(); + } else { + peeringRoutesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of peering routes.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PeeringRoute peering_routes = 1; + */ + public Builder clearPeeringRoutes() { + if (peeringRoutesBuilder_ == null) { + peeringRoutes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + peeringRoutesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of peering routes.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PeeringRoute peering_routes = 1; + */ + public Builder removePeeringRoutes(int index) { + if (peeringRoutesBuilder_ == null) { + ensurePeeringRoutesIsMutable(); + peeringRoutes_.remove(index); + onChanged(); + } else { + peeringRoutesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of peering routes.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PeeringRoute peering_routes = 1; + */ + public com.google.cloud.vmwareengine.v1.PeeringRoute.Builder getPeeringRoutesBuilder( + int index) { + return getPeeringRoutesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of peering routes.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PeeringRoute peering_routes = 1; + */ + public com.google.cloud.vmwareengine.v1.PeeringRouteOrBuilder getPeeringRoutesOrBuilder( + int index) { + if (peeringRoutesBuilder_ == null) { + return peeringRoutes_.get(index); + } else { + return peeringRoutesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of peering routes.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PeeringRoute peering_routes = 1; + */ + public java.util.List + getPeeringRoutesOrBuilderList() { + if (peeringRoutesBuilder_ != null) { + return peeringRoutesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(peeringRoutes_); + } + } + /** + * + * + *
+     * A list of peering routes.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PeeringRoute peering_routes = 1; + */ + public com.google.cloud.vmwareengine.v1.PeeringRoute.Builder addPeeringRoutesBuilder() { + return getPeeringRoutesFieldBuilder() + .addBuilder(com.google.cloud.vmwareengine.v1.PeeringRoute.getDefaultInstance()); + } + /** + * + * + *
+     * A list of peering routes.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PeeringRoute peering_routes = 1; + */ + public com.google.cloud.vmwareengine.v1.PeeringRoute.Builder addPeeringRoutesBuilder( + int index) { + return getPeeringRoutesFieldBuilder() + .addBuilder(index, com.google.cloud.vmwareengine.v1.PeeringRoute.getDefaultInstance()); + } + /** + * + * + *
+     * A list of peering routes.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PeeringRoute peering_routes = 1; + */ + public java.util.List + getPeeringRoutesBuilderList() { + return getPeeringRoutesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.PeeringRoute, + com.google.cloud.vmwareengine.v1.PeeringRoute.Builder, + com.google.cloud.vmwareengine.v1.PeeringRouteOrBuilder> + getPeeringRoutesFieldBuilder() { + if (peeringRoutesBuilder_ == null) { + peeringRoutesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.PeeringRoute, + com.google.cloud.vmwareengine.v1.PeeringRoute.Builder, + com.google.cloud.vmwareengine.v1.PeeringRouteOrBuilder>( + peeringRoutes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + peeringRoutes_ = null; + } + return peeringRoutesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse) + private static final com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse(); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPrivateConnectionPeeringRoutesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateConnectionPeeringRoutesResponseOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateConnectionPeeringRoutesResponseOrBuilder.java new file mode 100644 index 000000000000..f2c165fd0db8 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateConnectionPeeringRoutesResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface ListPrivateConnectionPeeringRoutesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of peering routes.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.PeeringRoute peering_routes = 1; + */ + java.util.List getPeeringRoutesList(); + /** + * + * + *
+   * A list of peering routes.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.PeeringRoute peering_routes = 1; + */ + com.google.cloud.vmwareengine.v1.PeeringRoute getPeeringRoutes(int index); + /** + * + * + *
+   * A list of peering routes.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.PeeringRoute peering_routes = 1; + */ + int getPeeringRoutesCount(); + /** + * + * + *
+   * A list of peering routes.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.PeeringRoute peering_routes = 1; + */ + java.util.List + getPeeringRoutesOrBuilderList(); + /** + * + * + *
+   * A list of peering routes.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.PeeringRoute peering_routes = 1; + */ + com.google.cloud.vmwareengine.v1.PeeringRouteOrBuilder getPeeringRoutesOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateConnectionsRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateConnectionsRequest.java new file mode 100644 index 000000000000..95ac210bfae5 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateConnectionsRequest.java @@ -0,0 +1,1546 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for
+ * [VmwareEngine.ListPrivateConnections][google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateConnections]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest} + */ +public final class ListPrivateConnectionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest) + ListPrivateConnectionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListPrivateConnectionsRequest.newBuilder() to construct. + private ListPrivateConnectionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListPrivateConnectionsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListPrivateConnectionsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest.class, + com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The resource name of the location to query for
+   * private connections. Resource names are schemeless URIs that follow the
+   * conventions in https://cloud.google.com/apis/design/resource_names. For
+   * example: `projects/my-project/locations/us-central1`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the location to query for
+   * private connections. Resource names are schemeless URIs that follow the
+   * conventions in https://cloud.google.com/apis/design/resource_names. For
+   * example: `projects/my-project/locations/us-central1`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of private connections to return in one page.
+   * The maximum value is coerced to 1000.
+   * The default value of this field is 500.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token, received from a previous `ListPrivateConnections` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * `ListPrivateConnections` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListPrivateConnections` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * `ListPrivateConnections` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+   * A filter expression that matches resources returned in the response.
+   * The expression must specify the field name, a comparison
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The comparison operator
+   * must be `=`, `!=`, `>`, or `<`.
+   *
+   * For example, if you are filtering a list of private connections, you can
+   * exclude the ones named `example-connection` by specifying
+   * `name != "example-connection"`.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (name = "example-connection")
+   * (createTime > "2022-09-22T08:15:10.40Z")
+   * ```
+   *
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (name = "example-connection-1") AND
+   * (createTime > "2021-04-12T08:15:10.40Z") OR
+   * (name = "example-connection-2")
+   * ```
+   * 
+ * + * string filter = 4; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * A filter expression that matches resources returned in the response.
+   * The expression must specify the field name, a comparison
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The comparison operator
+   * must be `=`, `!=`, `>`, or `<`.
+   *
+   * For example, if you are filtering a list of private connections, you can
+   * exclude the ones named `example-connection` by specifying
+   * `name != "example-connection"`.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (name = "example-connection")
+   * (createTime > "2022-09-22T08:15:10.40Z")
+   * ```
+   *
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (name = "example-connection-1") AND
+   * (createTime > "2021-04-12T08:15:10.40Z") OR
+   * (name = "example-connection-2")
+   * ```
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + /** + * + * + *
+   * Sorts list results by a certain order. By default, returned results
+   * are ordered by `name` in ascending order.
+   * You can also sort results in descending order based on the `name` value
+   * using `orderBy="name desc"`.
+   * Currently, only ordering by `name` is supported.
+   * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
+   * Sorts list results by a certain order. By default, returned results
+   * are ordered by `name` in ascending order.
+   * You can also sort results in descending order based on the `name` value
+   * using `orderBy="name desc"`.
+   * Currently, only ordering by `name` is supported.
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest other = + (com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for
+   * [VmwareEngine.ListPrivateConnections][google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateConnections]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest) + com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest.class, + com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest build() { + com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest buildPartial() { + com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest result = + new com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the location to query for
+     * private connections. Resource names are schemeless URIs that follow the
+     * conventions in https://cloud.google.com/apis/design/resource_names. For
+     * example: `projects/my-project/locations/us-central1`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the location to query for
+     * private connections. Resource names are schemeless URIs that follow the
+     * conventions in https://cloud.google.com/apis/design/resource_names. For
+     * example: `projects/my-project/locations/us-central1`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the location to query for
+     * private connections. Resource names are schemeless URIs that follow the
+     * conventions in https://cloud.google.com/apis/design/resource_names. For
+     * example: `projects/my-project/locations/us-central1`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the location to query for
+     * private connections. Resource names are schemeless URIs that follow the
+     * conventions in https://cloud.google.com/apis/design/resource_names. For
+     * example: `projects/my-project/locations/us-central1`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the location to query for
+     * private connections. Resource names are schemeless URIs that follow the
+     * conventions in https://cloud.google.com/apis/design/resource_names. For
+     * example: `projects/my-project/locations/us-central1`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of private connections to return in one page.
+     * The maximum value is coerced to 1000.
+     * The default value of this field is 500.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of private connections to return in one page.
+     * The maximum value is coerced to 1000.
+     * The default value of this field is 500.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of private connections to return in one page.
+     * The maximum value is coerced to 1000.
+     * The default value of this field is 500.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListPrivateConnections` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListPrivateConnections` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListPrivateConnections` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListPrivateConnections` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListPrivateConnections` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListPrivateConnections` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListPrivateConnections` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListPrivateConnections` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListPrivateConnections` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListPrivateConnections` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * A filter expression that matches resources returned in the response.
+     * The expression must specify the field name, a comparison
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The comparison operator
+     * must be `=`, `!=`, `>`, or `<`.
+     *
+     * For example, if you are filtering a list of private connections, you can
+     * exclude the ones named `example-connection` by specifying
+     * `name != "example-connection"`.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (name = "example-connection")
+     * (createTime > "2022-09-22T08:15:10.40Z")
+     * ```
+     *
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (name = "example-connection-1") AND
+     * (createTime > "2021-04-12T08:15:10.40Z") OR
+     * (name = "example-connection-2")
+     * ```
+     * 
+ * + * string filter = 4; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A filter expression that matches resources returned in the response.
+     * The expression must specify the field name, a comparison
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The comparison operator
+     * must be `=`, `!=`, `>`, or `<`.
+     *
+     * For example, if you are filtering a list of private connections, you can
+     * exclude the ones named `example-connection` by specifying
+     * `name != "example-connection"`.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (name = "example-connection")
+     * (createTime > "2022-09-22T08:15:10.40Z")
+     * ```
+     *
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (name = "example-connection-1") AND
+     * (createTime > "2021-04-12T08:15:10.40Z") OR
+     * (name = "example-connection-2")
+     * ```
+     * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A filter expression that matches resources returned in the response.
+     * The expression must specify the field name, a comparison
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The comparison operator
+     * must be `=`, `!=`, `>`, or `<`.
+     *
+     * For example, if you are filtering a list of private connections, you can
+     * exclude the ones named `example-connection` by specifying
+     * `name != "example-connection"`.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (name = "example-connection")
+     * (createTime > "2022-09-22T08:15:10.40Z")
+     * ```
+     *
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (name = "example-connection-1") AND
+     * (createTime > "2021-04-12T08:15:10.40Z") OR
+     * (name = "example-connection-2")
+     * ```
+     * 
+ * + * string filter = 4; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * A filter expression that matches resources returned in the response.
+     * The expression must specify the field name, a comparison
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The comparison operator
+     * must be `=`, `!=`, `>`, or `<`.
+     *
+     * For example, if you are filtering a list of private connections, you can
+     * exclude the ones named `example-connection` by specifying
+     * `name != "example-connection"`.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (name = "example-connection")
+     * (createTime > "2022-09-22T08:15:10.40Z")
+     * ```
+     *
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (name = "example-connection-1") AND
+     * (createTime > "2021-04-12T08:15:10.40Z") OR
+     * (name = "example-connection-2")
+     * ```
+     * 
+ * + * string filter = 4; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * A filter expression that matches resources returned in the response.
+     * The expression must specify the field name, a comparison
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The comparison operator
+     * must be `=`, `!=`, `>`, or `<`.
+     *
+     * For example, if you are filtering a list of private connections, you can
+     * exclude the ones named `example-connection` by specifying
+     * `name != "example-connection"`.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (name = "example-connection")
+     * (createTime > "2022-09-22T08:15:10.40Z")
+     * ```
+     *
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (name = "example-connection-1") AND
+     * (createTime > "2021-04-12T08:15:10.40Z") OR
+     * (name = "example-connection-2")
+     * ```
+     * 
+ * + * string filter = 4; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+     * Sorts list results by a certain order. By default, returned results
+     * are ordered by `name` in ascending order.
+     * You can also sort results in descending order based on the `name` value
+     * using `orderBy="name desc"`.
+     * Currently, only ordering by `name` is supported.
+     * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Sorts list results by a certain order. By default, returned results
+     * are ordered by `name` in ascending order.
+     * You can also sort results in descending order based on the `name` value
+     * using `orderBy="name desc"`.
+     * Currently, only ordering by `name` is supported.
+     * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Sorts list results by a certain order. By default, returned results
+     * are ordered by `name` in ascending order.
+     * You can also sort results in descending order based on the `name` value
+     * using `orderBy="name desc"`.
+     * Currently, only ordering by `name` is supported.
+     * 
+ * + * string order_by = 5; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Sorts list results by a certain order. By default, returned results
+     * are ordered by `name` in ascending order.
+     * You can also sort results in descending order based on the `name` value
+     * using `orderBy="name desc"`.
+     * Currently, only ordering by `name` is supported.
+     * 
+ * + * string order_by = 5; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Sorts list results by a certain order. By default, returned results
+     * are ordered by `name` in ascending order.
+     * You can also sort results in descending order based on the `name` value
+     * using `orderBy="name desc"`.
+     * Currently, only ordering by `name` is supported.
+     * 
+ * + * string order_by = 5; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest) + private static final com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest(); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPrivateConnectionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateConnectionsRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateConnectionsRequestOrBuilder.java new file mode 100644 index 000000000000..349ee0008b16 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateConnectionsRequestOrBuilder.java @@ -0,0 +1,216 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface ListPrivateConnectionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the location to query for
+   * private connections. Resource names are schemeless URIs that follow the
+   * conventions in https://cloud.google.com/apis/design/resource_names. For
+   * example: `projects/my-project/locations/us-central1`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the location to query for
+   * private connections. Resource names are schemeless URIs that follow the
+   * conventions in https://cloud.google.com/apis/design/resource_names. For
+   * example: `projects/my-project/locations/us-central1`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of private connections to return in one page.
+   * The maximum value is coerced to 1000.
+   * The default value of this field is 500.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListPrivateConnections` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * `ListPrivateConnections` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListPrivateConnections` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * `ListPrivateConnections` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * A filter expression that matches resources returned in the response.
+   * The expression must specify the field name, a comparison
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The comparison operator
+   * must be `=`, `!=`, `>`, or `<`.
+   *
+   * For example, if you are filtering a list of private connections, you can
+   * exclude the ones named `example-connection` by specifying
+   * `name != "example-connection"`.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (name = "example-connection")
+   * (createTime > "2022-09-22T08:15:10.40Z")
+   * ```
+   *
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (name = "example-connection-1") AND
+   * (createTime > "2021-04-12T08:15:10.40Z") OR
+   * (name = "example-connection-2")
+   * ```
+   * 
+ * + * string filter = 4; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * A filter expression that matches resources returned in the response.
+   * The expression must specify the field name, a comparison
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The comparison operator
+   * must be `=`, `!=`, `>`, or `<`.
+   *
+   * For example, if you are filtering a list of private connections, you can
+   * exclude the ones named `example-connection` by specifying
+   * `name != "example-connection"`.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (name = "example-connection")
+   * (createTime > "2022-09-22T08:15:10.40Z")
+   * ```
+   *
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (name = "example-connection-1") AND
+   * (createTime > "2021-04-12T08:15:10.40Z") OR
+   * (name = "example-connection-2")
+   * ```
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Sorts list results by a certain order. By default, returned results
+   * are ordered by `name` in ascending order.
+   * You can also sort results in descending order based on the `name` value
+   * using `orderBy="name desc"`.
+   * Currently, only ordering by `name` is supported.
+   * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * Sorts list results by a certain order. By default, returned results
+   * are ordered by `name` in ascending order.
+   * You can also sort results in descending order based on the `name` value
+   * using `orderBy="name desc"`.
+   * Currently, only ordering by `name` is supported.
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateConnectionsResponse.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateConnectionsResponse.java new file mode 100644 index 000000000000..c02b587bc13d --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateConnectionsResponse.java @@ -0,0 +1,1448 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Response message for
+ * [VmwareEngine.ListPrivateConnections][google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateConnections]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse} + */ +public final class ListPrivateConnectionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse) + ListPrivateConnectionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListPrivateConnectionsResponse.newBuilder() to construct. + private ListPrivateConnectionsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListPrivateConnectionsResponse() { + privateConnections_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListPrivateConnectionsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse.class, + com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse.Builder.class); + } + + public static final int PRIVATE_CONNECTIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List privateConnections_; + /** + * + * + *
+   * A list of private connections.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateConnection private_connections = 1; + */ + @java.lang.Override + public java.util.List + getPrivateConnectionsList() { + return privateConnections_; + } + /** + * + * + *
+   * A list of private connections.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateConnection private_connections = 1; + */ + @java.lang.Override + public java.util.List + getPrivateConnectionsOrBuilderList() { + return privateConnections_; + } + /** + * + * + *
+   * A list of private connections.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateConnection private_connections = 1; + */ + @java.lang.Override + public int getPrivateConnectionsCount() { + return privateConnections_.size(); + } + /** + * + * + *
+   * A list of private connections.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateConnection private_connections = 1; + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateConnection getPrivateConnections(int index) { + return privateConnections_.get(index); + } + /** + * + * + *
+   * A list of private connections.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateConnection private_connections = 1; + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateConnectionOrBuilder getPrivateConnectionsOrBuilder( + int index) { + return privateConnections_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < privateConnections_.size(); i++) { + output.writeMessage(1, privateConnections_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < privateConnections_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, privateConnections_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse other = + (com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse) obj; + + if (!getPrivateConnectionsList().equals(other.getPrivateConnectionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPrivateConnectionsCount() > 0) { + hash = (37 * hash) + PRIVATE_CONNECTIONS_FIELD_NUMBER; + hash = (53 * hash) + getPrivateConnectionsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for
+   * [VmwareEngine.ListPrivateConnections][google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateConnections]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse) + com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse.class, + com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (privateConnectionsBuilder_ == null) { + privateConnections_ = java.util.Collections.emptyList(); + } else { + privateConnections_ = null; + privateConnectionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse build() { + com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse buildPartial() { + com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse result = + new com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse result) { + if (privateConnectionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + privateConnections_ = java.util.Collections.unmodifiableList(privateConnections_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.privateConnections_ = privateConnections_; + } else { + result.privateConnections_ = privateConnectionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse other) { + if (other + == com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse.getDefaultInstance()) + return this; + if (privateConnectionsBuilder_ == null) { + if (!other.privateConnections_.isEmpty()) { + if (privateConnections_.isEmpty()) { + privateConnections_ = other.privateConnections_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePrivateConnectionsIsMutable(); + privateConnections_.addAll(other.privateConnections_); + } + onChanged(); + } + } else { + if (!other.privateConnections_.isEmpty()) { + if (privateConnectionsBuilder_.isEmpty()) { + privateConnectionsBuilder_.dispose(); + privateConnectionsBuilder_ = null; + privateConnections_ = other.privateConnections_; + bitField0_ = (bitField0_ & ~0x00000001); + privateConnectionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPrivateConnectionsFieldBuilder() + : null; + } else { + privateConnectionsBuilder_.addAllMessages(other.privateConnections_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.vmwareengine.v1.PrivateConnection m = + input.readMessage( + com.google.cloud.vmwareengine.v1.PrivateConnection.parser(), + extensionRegistry); + if (privateConnectionsBuilder_ == null) { + ensurePrivateConnectionsIsMutable(); + privateConnections_.add(m); + } else { + privateConnectionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List privateConnections_ = + java.util.Collections.emptyList(); + + private void ensurePrivateConnectionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + privateConnections_ = + new java.util.ArrayList( + privateConnections_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.PrivateConnection, + com.google.cloud.vmwareengine.v1.PrivateConnection.Builder, + com.google.cloud.vmwareengine.v1.PrivateConnectionOrBuilder> + privateConnectionsBuilder_; + + /** + * + * + *
+     * A list of private connections.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateConnection private_connections = 1; + * + */ + public java.util.List + getPrivateConnectionsList() { + if (privateConnectionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(privateConnections_); + } else { + return privateConnectionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of private connections.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateConnection private_connections = 1; + * + */ + public int getPrivateConnectionsCount() { + if (privateConnectionsBuilder_ == null) { + return privateConnections_.size(); + } else { + return privateConnectionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of private connections.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateConnection private_connections = 1; + * + */ + public com.google.cloud.vmwareengine.v1.PrivateConnection getPrivateConnections(int index) { + if (privateConnectionsBuilder_ == null) { + return privateConnections_.get(index); + } else { + return privateConnectionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of private connections.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateConnection private_connections = 1; + * + */ + public Builder setPrivateConnections( + int index, com.google.cloud.vmwareengine.v1.PrivateConnection value) { + if (privateConnectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrivateConnectionsIsMutable(); + privateConnections_.set(index, value); + onChanged(); + } else { + privateConnectionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of private connections.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateConnection private_connections = 1; + * + */ + public Builder setPrivateConnections( + int index, com.google.cloud.vmwareengine.v1.PrivateConnection.Builder builderForValue) { + if (privateConnectionsBuilder_ == null) { + ensurePrivateConnectionsIsMutable(); + privateConnections_.set(index, builderForValue.build()); + onChanged(); + } else { + privateConnectionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of private connections.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateConnection private_connections = 1; + * + */ + public Builder addPrivateConnections(com.google.cloud.vmwareengine.v1.PrivateConnection value) { + if (privateConnectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrivateConnectionsIsMutable(); + privateConnections_.add(value); + onChanged(); + } else { + privateConnectionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of private connections.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateConnection private_connections = 1; + * + */ + public Builder addPrivateConnections( + int index, com.google.cloud.vmwareengine.v1.PrivateConnection value) { + if (privateConnectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrivateConnectionsIsMutable(); + privateConnections_.add(index, value); + onChanged(); + } else { + privateConnectionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of private connections.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateConnection private_connections = 1; + * + */ + public Builder addPrivateConnections( + com.google.cloud.vmwareengine.v1.PrivateConnection.Builder builderForValue) { + if (privateConnectionsBuilder_ == null) { + ensurePrivateConnectionsIsMutable(); + privateConnections_.add(builderForValue.build()); + onChanged(); + } else { + privateConnectionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of private connections.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateConnection private_connections = 1; + * + */ + public Builder addPrivateConnections( + int index, com.google.cloud.vmwareengine.v1.PrivateConnection.Builder builderForValue) { + if (privateConnectionsBuilder_ == null) { + ensurePrivateConnectionsIsMutable(); + privateConnections_.add(index, builderForValue.build()); + onChanged(); + } else { + privateConnectionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of private connections.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateConnection private_connections = 1; + * + */ + public Builder addAllPrivateConnections( + java.lang.Iterable values) { + if (privateConnectionsBuilder_ == null) { + ensurePrivateConnectionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, privateConnections_); + onChanged(); + } else { + privateConnectionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of private connections.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateConnection private_connections = 1; + * + */ + public Builder clearPrivateConnections() { + if (privateConnectionsBuilder_ == null) { + privateConnections_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + privateConnectionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of private connections.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateConnection private_connections = 1; + * + */ + public Builder removePrivateConnections(int index) { + if (privateConnectionsBuilder_ == null) { + ensurePrivateConnectionsIsMutable(); + privateConnections_.remove(index); + onChanged(); + } else { + privateConnectionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of private connections.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateConnection private_connections = 1; + * + */ + public com.google.cloud.vmwareengine.v1.PrivateConnection.Builder getPrivateConnectionsBuilder( + int index) { + return getPrivateConnectionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of private connections.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateConnection private_connections = 1; + * + */ + public com.google.cloud.vmwareengine.v1.PrivateConnectionOrBuilder + getPrivateConnectionsOrBuilder(int index) { + if (privateConnectionsBuilder_ == null) { + return privateConnections_.get(index); + } else { + return privateConnectionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of private connections.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateConnection private_connections = 1; + * + */ + public java.util.List + getPrivateConnectionsOrBuilderList() { + if (privateConnectionsBuilder_ != null) { + return privateConnectionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(privateConnections_); + } + } + /** + * + * + *
+     * A list of private connections.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateConnection private_connections = 1; + * + */ + public com.google.cloud.vmwareengine.v1.PrivateConnection.Builder + addPrivateConnectionsBuilder() { + return getPrivateConnectionsFieldBuilder() + .addBuilder(com.google.cloud.vmwareengine.v1.PrivateConnection.getDefaultInstance()); + } + /** + * + * + *
+     * A list of private connections.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateConnection private_connections = 1; + * + */ + public com.google.cloud.vmwareengine.v1.PrivateConnection.Builder addPrivateConnectionsBuilder( + int index) { + return getPrivateConnectionsFieldBuilder() + .addBuilder( + index, com.google.cloud.vmwareengine.v1.PrivateConnection.getDefaultInstance()); + } + /** + * + * + *
+     * A list of private connections.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateConnection private_connections = 1; + * + */ + public java.util.List + getPrivateConnectionsBuilderList() { + return getPrivateConnectionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.PrivateConnection, + com.google.cloud.vmwareengine.v1.PrivateConnection.Builder, + com.google.cloud.vmwareengine.v1.PrivateConnectionOrBuilder> + getPrivateConnectionsFieldBuilder() { + if (privateConnectionsBuilder_ == null) { + privateConnectionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.PrivateConnection, + com.google.cloud.vmwareengine.v1.PrivateConnection.Builder, + com.google.cloud.vmwareengine.v1.PrivateConnectionOrBuilder>( + privateConnections_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + privateConnections_ = null; + } + return privateConnectionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + /** + * + * + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse) + private static final com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse(); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPrivateConnectionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateConnectionsResponseOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateConnectionsResponseOrBuilder.java new file mode 100644 index 000000000000..f2f4ff169302 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateConnectionsResponseOrBuilder.java @@ -0,0 +1,156 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface ListPrivateConnectionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of private connections.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateConnection private_connections = 1; + */ + java.util.List getPrivateConnectionsList(); + /** + * + * + *
+   * A list of private connections.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateConnection private_connections = 1; + */ + com.google.cloud.vmwareengine.v1.PrivateConnection getPrivateConnections(int index); + /** + * + * + *
+   * A list of private connections.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateConnection private_connections = 1; + */ + int getPrivateConnectionsCount(); + /** + * + * + *
+   * A list of private connections.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateConnection private_connections = 1; + */ + java.util.List + getPrivateConnectionsOrBuilderList(); + /** + * + * + *
+   * A list of private connections.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateConnection private_connections = 1; + */ + com.google.cloud.vmwareengine.v1.PrivateConnectionOrBuilder getPrivateConnectionsOrBuilder( + int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListSubnetsResponse.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListSubnetsResponse.java index 71a653382df7..dcc47d7ebabe 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListSubnetsResponse.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListSubnetsResponse.java @@ -41,6 +41,7 @@ private ListSubnetsResponse(com.google.protobuf.GeneratedMessageV3.Builder bu private ListSubnetsResponse() { subnets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -188,6 +189,74 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -208,6 +277,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -223,6 +295,14 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -241,6 +321,7 @@ public boolean equals(final java.lang.Object obj) { if (!getSubnetsList().equals(other.getSubnetsList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -258,6 +339,10 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -406,6 +491,7 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -459,6 +545,10 @@ private void buildPartial0(com.google.cloud.vmwareengine.v1.ListSubnetsResponse if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } } @java.lang.Override @@ -539,6 +629,16 @@ public Builder mergeFrom(com.google.cloud.vmwareengine.v1.ListSubnetsResponse ot bitField0_ |= 0x00000002; onChanged(); } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -584,6 +684,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1062,6 +1169,189 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListSubnetsResponseOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListSubnetsResponseOrBuilder.java index 291d29f2c571..f3d39a8ec04a 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListSubnetsResponseOrBuilder.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListSubnetsResponseOrBuilder.java @@ -101,4 +101,59 @@ public interface ListSubnetsResponseOrBuilder * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PeeringRoute.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PeeringRoute.java new file mode 100644 index 000000000000..95ec06190bea --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PeeringRoute.java @@ -0,0 +1,1723 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine_resources.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Exchanged network peering route.
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.PeeringRoute} + */ +public final class PeeringRoute extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.PeeringRoute) + PeeringRouteOrBuilder { + private static final long serialVersionUID = 0L; + // Use PeeringRoute.newBuilder() to construct. + private PeeringRoute(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PeeringRoute() { + destRange_ = ""; + type_ = 0; + nextHopRegion_ = ""; + direction_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PeeringRoute(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_PeeringRoute_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_PeeringRoute_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.PeeringRoute.class, + com.google.cloud.vmwareengine.v1.PeeringRoute.Builder.class); + } + + /** + * + * + *
+   * The type of the peering route.
+   * 
+ * + * Protobuf enum {@code google.cloud.vmwareengine.v1.PeeringRoute.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified peering route type. This is the default value.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Dynamic routes in the peer network.
+     * 
+ * + * DYNAMIC_PEERING_ROUTE = 1; + */ + DYNAMIC_PEERING_ROUTE(1), + /** + * + * + *
+     * Static routes in the peer network.
+     * 
+ * + * STATIC_PEERING_ROUTE = 2; + */ + STATIC_PEERING_ROUTE(2), + /** + * + * + *
+     * Created, updated, and removed automatically by Google Cloud when subnets
+     * are created, modified, or deleted in the peer network.
+     * 
+ * + * SUBNET_PEERING_ROUTE = 3; + */ + SUBNET_PEERING_ROUTE(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified peering route type. This is the default value.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Dynamic routes in the peer network.
+     * 
+ * + * DYNAMIC_PEERING_ROUTE = 1; + */ + public static final int DYNAMIC_PEERING_ROUTE_VALUE = 1; + /** + * + * + *
+     * Static routes in the peer network.
+     * 
+ * + * STATIC_PEERING_ROUTE = 2; + */ + public static final int STATIC_PEERING_ROUTE_VALUE = 2; + /** + * + * + *
+     * Created, updated, and removed automatically by Google Cloud when subnets
+     * are created, modified, or deleted in the peer network.
+     * 
+ * + * SUBNET_PEERING_ROUTE = 3; + */ + public static final int SUBNET_PEERING_ROUTE_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: + return TYPE_UNSPECIFIED; + case 1: + return DYNAMIC_PEERING_ROUTE; + case 2: + return STATIC_PEERING_ROUTE; + case 3: + return SUBNET_PEERING_ROUTE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.PeeringRoute.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmwareengine.v1.PeeringRoute.Type) + } + + /** + * + * + *
+   * The direction of the exchanged routes.
+   * 
+ * + * Protobuf enum {@code google.cloud.vmwareengine.v1.PeeringRoute.Direction} + */ + public enum Direction implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified exchanged routes direction. This is default.
+     * 
+ * + * DIRECTION_UNSPECIFIED = 0; + */ + DIRECTION_UNSPECIFIED(0), + /** + * + * + *
+     * Routes imported from the peer network.
+     * 
+ * + * INCOMING = 1; + */ + INCOMING(1), + /** + * + * + *
+     * Routes exported to the peer network.
+     * 
+ * + * OUTGOING = 2; + */ + OUTGOING(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified exchanged routes direction. This is default.
+     * 
+ * + * DIRECTION_UNSPECIFIED = 0; + */ + public static final int DIRECTION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Routes imported from the peer network.
+     * 
+ * + * INCOMING = 1; + */ + public static final int INCOMING_VALUE = 1; + /** + * + * + *
+     * Routes exported to the peer network.
+     * 
+ * + * OUTGOING = 2; + */ + public static final int OUTGOING_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Direction valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Direction forNumber(int value) { + switch (value) { + case 0: + return DIRECTION_UNSPECIFIED; + case 1: + return INCOMING; + case 2: + return OUTGOING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Direction findValueByNumber(int number) { + return Direction.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.PeeringRoute.getDescriptor().getEnumTypes().get(1); + } + + private static final Direction[] VALUES = values(); + + public static Direction valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Direction(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmwareengine.v1.PeeringRoute.Direction) + } + + public static final int DEST_RANGE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object destRange_ = ""; + /** + * + * + *
+   * Output only. Destination range of the peering route in CIDR notation.
+   * 
+ * + * string dest_range = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The destRange. + */ + @java.lang.Override + public java.lang.String getDestRange() { + java.lang.Object ref = destRange_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destRange_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Destination range of the peering route in CIDR notation.
+   * 
+ * + * string dest_range = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for destRange. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDestRangeBytes() { + java.lang.Object ref = destRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_ = 0; + /** + * + * + *
+   * Output only. Type of the route in the peer VPC network.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PeeringRoute.Type type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Output only. Type of the route in the peer VPC network.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PeeringRoute.Type type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PeeringRoute.Type getType() { + com.google.cloud.vmwareengine.v1.PeeringRoute.Type result = + com.google.cloud.vmwareengine.v1.PeeringRoute.Type.forNumber(type_); + return result == null + ? com.google.cloud.vmwareengine.v1.PeeringRoute.Type.UNRECOGNIZED + : result; + } + + public static final int NEXT_HOP_REGION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextHopRegion_ = ""; + /** + * + * + *
+   * Output only. Region containing the next hop of the peering route. This
+   * field only applies to dynamic routes in the peer VPC network.
+   * 
+ * + * string next_hop_region = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The nextHopRegion. + */ + @java.lang.Override + public java.lang.String getNextHopRegion() { + java.lang.Object ref = nextHopRegion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextHopRegion_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Region containing the next hop of the peering route. This
+   * field only applies to dynamic routes in the peer VPC network.
+   * 
+ * + * string next_hop_region = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nextHopRegion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextHopRegionBytes() { + java.lang.Object ref = nextHopRegion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextHopRegion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRIORITY_FIELD_NUMBER = 4; + private long priority_ = 0L; + /** + * + * + *
+   * Output only. The priority of the peering route.
+   * 
+ * + * int64 priority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The priority. + */ + @java.lang.Override + public long getPriority() { + return priority_; + } + + public static final int IMPORTED_FIELD_NUMBER = 5; + private boolean imported_ = false; + /** + * + * + *
+   * Output only. True if the peering route has been imported from a peered
+   * VPC network; false otherwise. The import happens if the field
+   * `NetworkPeering.importCustomRoutes` is true for this network,
+   * `NetworkPeering.exportCustomRoutes` is true for the peer VPC network, and
+   * the import does not result in a route conflict.
+   * 
+ * + * bool imported = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The imported. + */ + @java.lang.Override + public boolean getImported() { + return imported_; + } + + public static final int DIRECTION_FIELD_NUMBER = 6; + private int direction_ = 0; + /** + * + * + *
+   * Output only. Direction of the routes exchanged with the peer network, from
+   * the VMware Engine network perspective:
+   *
+   * * Routes of direction `INCOMING` are imported from the peer network.
+   * * Routes of direction `OUTGOING` are exported from the intranet VPC network
+   * of the VMware Engine network.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PeeringRoute.Direction direction = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for direction. + */ + @java.lang.Override + public int getDirectionValue() { + return direction_; + } + /** + * + * + *
+   * Output only. Direction of the routes exchanged with the peer network, from
+   * the VMware Engine network perspective:
+   *
+   * * Routes of direction `INCOMING` are imported from the peer network.
+   * * Routes of direction `OUTGOING` are exported from the intranet VPC network
+   * of the VMware Engine network.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PeeringRoute.Direction direction = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The direction. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PeeringRoute.Direction getDirection() { + com.google.cloud.vmwareengine.v1.PeeringRoute.Direction result = + com.google.cloud.vmwareengine.v1.PeeringRoute.Direction.forNumber(direction_); + return result == null + ? com.google.cloud.vmwareengine.v1.PeeringRoute.Direction.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destRange_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, destRange_); + } + if (type_ != com.google.cloud.vmwareengine.v1.PeeringRoute.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextHopRegion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nextHopRegion_); + } + if (priority_ != 0L) { + output.writeInt64(4, priority_); + } + if (imported_ != false) { + output.writeBool(5, imported_); + } + if (direction_ + != com.google.cloud.vmwareengine.v1.PeeringRoute.Direction.DIRECTION_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, direction_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destRange_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, destRange_); + } + if (type_ != com.google.cloud.vmwareengine.v1.PeeringRoute.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextHopRegion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextHopRegion_); + } + if (priority_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, priority_); + } + if (imported_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, imported_); + } + if (direction_ + != com.google.cloud.vmwareengine.v1.PeeringRoute.Direction.DIRECTION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, direction_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.PeeringRoute)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.PeeringRoute other = + (com.google.cloud.vmwareengine.v1.PeeringRoute) obj; + + if (!getDestRange().equals(other.getDestRange())) return false; + if (type_ != other.type_) return false; + if (!getNextHopRegion().equals(other.getNextHopRegion())) return false; + if (getPriority() != other.getPriority()) return false; + if (getImported() != other.getImported()) return false; + if (direction_ != other.direction_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DEST_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getDestRange().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + NEXT_HOP_REGION_FIELD_NUMBER; + hash = (53 * hash) + getNextHopRegion().hashCode(); + hash = (37 * hash) + PRIORITY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPriority()); + hash = (37 * hash) + IMPORTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getImported()); + hash = (37 * hash) + DIRECTION_FIELD_NUMBER; + hash = (53 * hash) + direction_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.PeeringRoute parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.PeeringRoute parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.PeeringRoute parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.PeeringRoute parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.PeeringRoute parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.PeeringRoute parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.PeeringRoute parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.PeeringRoute parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.PeeringRoute parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.PeeringRoute parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.PeeringRoute parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.PeeringRoute parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.vmwareengine.v1.PeeringRoute prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Exchanged network peering route.
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.PeeringRoute} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.PeeringRoute) + com.google.cloud.vmwareengine.v1.PeeringRouteOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_PeeringRoute_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_PeeringRoute_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.PeeringRoute.class, + com.google.cloud.vmwareengine.v1.PeeringRoute.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.PeeringRoute.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + destRange_ = ""; + type_ = 0; + nextHopRegion_ = ""; + priority_ = 0L; + imported_ = false; + direction_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_PeeringRoute_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PeeringRoute getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.PeeringRoute.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PeeringRoute build() { + com.google.cloud.vmwareengine.v1.PeeringRoute result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PeeringRoute buildPartial() { + com.google.cloud.vmwareengine.v1.PeeringRoute result = + new com.google.cloud.vmwareengine.v1.PeeringRoute(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmwareengine.v1.PeeringRoute result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.destRange_ = destRange_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.nextHopRegion_ = nextHopRegion_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.priority_ = priority_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.imported_ = imported_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.direction_ = direction_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.PeeringRoute) { + return mergeFrom((com.google.cloud.vmwareengine.v1.PeeringRoute) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.PeeringRoute other) { + if (other == com.google.cloud.vmwareengine.v1.PeeringRoute.getDefaultInstance()) return this; + if (!other.getDestRange().isEmpty()) { + destRange_ = other.destRange_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getNextHopRegion().isEmpty()) { + nextHopRegion_ = other.nextHopRegion_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getPriority() != 0L) { + setPriority(other.getPriority()); + } + if (other.getImported() != false) { + setImported(other.getImported()); + } + if (other.direction_ != 0) { + setDirectionValue(other.getDirectionValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + destRange_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + nextHopRegion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + priority_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + imported_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + direction_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object destRange_ = ""; + /** + * + * + *
+     * Output only. Destination range of the peering route in CIDR notation.
+     * 
+ * + * string dest_range = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The destRange. + */ + public java.lang.String getDestRange() { + java.lang.Object ref = destRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Destination range of the peering route in CIDR notation.
+     * 
+ * + * string dest_range = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for destRange. + */ + public com.google.protobuf.ByteString getDestRangeBytes() { + java.lang.Object ref = destRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Destination range of the peering route in CIDR notation.
+     * 
+ * + * string dest_range = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The destRange to set. + * @return This builder for chaining. + */ + public Builder setDestRange(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destRange_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Destination range of the peering route in CIDR notation.
+     * 
+ * + * string dest_range = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDestRange() { + destRange_ = getDefaultInstance().getDestRange(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Destination range of the peering route in CIDR notation.
+     * 
+ * + * string dest_range = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for destRange to set. + * @return This builder for chaining. + */ + public Builder setDestRangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destRange_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * + * + *
+     * Output only. Type of the route in the peer VPC network.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PeeringRoute.Type type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Output only. Type of the route in the peer VPC network.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PeeringRoute.Type type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Type of the route in the peer VPC network.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PeeringRoute.Type type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PeeringRoute.Type getType() { + com.google.cloud.vmwareengine.v1.PeeringRoute.Type result = + com.google.cloud.vmwareengine.v1.PeeringRoute.Type.forNumber(type_); + return result == null + ? com.google.cloud.vmwareengine.v1.PeeringRoute.Type.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. Type of the route in the peer VPC network.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PeeringRoute.Type type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.vmwareengine.v1.PeeringRoute.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Type of the route in the peer VPC network.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PeeringRoute.Type type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000002); + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object nextHopRegion_ = ""; + /** + * + * + *
+     * Output only. Region containing the next hop of the peering route. This
+     * field only applies to dynamic routes in the peer VPC network.
+     * 
+ * + * string next_hop_region = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The nextHopRegion. + */ + public java.lang.String getNextHopRegion() { + java.lang.Object ref = nextHopRegion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextHopRegion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Region containing the next hop of the peering route. This
+     * field only applies to dynamic routes in the peer VPC network.
+     * 
+ * + * string next_hop_region = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nextHopRegion. + */ + public com.google.protobuf.ByteString getNextHopRegionBytes() { + java.lang.Object ref = nextHopRegion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextHopRegion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Region containing the next hop of the peering route. This
+     * field only applies to dynamic routes in the peer VPC network.
+     * 
+ * + * string next_hop_region = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The nextHopRegion to set. + * @return This builder for chaining. + */ + public Builder setNextHopRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextHopRegion_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Region containing the next hop of the peering route. This
+     * field only applies to dynamic routes in the peer VPC network.
+     * 
+ * + * string next_hop_region = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearNextHopRegion() { + nextHopRegion_ = getDefaultInstance().getNextHopRegion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Region containing the next hop of the peering route. This
+     * field only applies to dynamic routes in the peer VPC network.
+     * 
+ * + * string next_hop_region = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for nextHopRegion to set. + * @return This builder for chaining. + */ + public Builder setNextHopRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextHopRegion_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private long priority_; + /** + * + * + *
+     * Output only. The priority of the peering route.
+     * 
+ * + * int64 priority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The priority. + */ + @java.lang.Override + public long getPriority() { + return priority_; + } + /** + * + * + *
+     * Output only. The priority of the peering route.
+     * 
+ * + * int64 priority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The priority to set. + * @return This builder for chaining. + */ + public Builder setPriority(long value) { + + priority_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The priority of the peering route.
+     * 
+ * + * int64 priority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPriority() { + bitField0_ = (bitField0_ & ~0x00000008); + priority_ = 0L; + onChanged(); + return this; + } + + private boolean imported_; + /** + * + * + *
+     * Output only. True if the peering route has been imported from a peered
+     * VPC network; false otherwise. The import happens if the field
+     * `NetworkPeering.importCustomRoutes` is true for this network,
+     * `NetworkPeering.exportCustomRoutes` is true for the peer VPC network, and
+     * the import does not result in a route conflict.
+     * 
+ * + * bool imported = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The imported. + */ + @java.lang.Override + public boolean getImported() { + return imported_; + } + /** + * + * + *
+     * Output only. True if the peering route has been imported from a peered
+     * VPC network; false otherwise. The import happens if the field
+     * `NetworkPeering.importCustomRoutes` is true for this network,
+     * `NetworkPeering.exportCustomRoutes` is true for the peer VPC network, and
+     * the import does not result in a route conflict.
+     * 
+ * + * bool imported = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The imported to set. + * @return This builder for chaining. + */ + public Builder setImported(boolean value) { + + imported_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. True if the peering route has been imported from a peered
+     * VPC network; false otherwise. The import happens if the field
+     * `NetworkPeering.importCustomRoutes` is true for this network,
+     * `NetworkPeering.exportCustomRoutes` is true for the peer VPC network, and
+     * the import does not result in a route conflict.
+     * 
+ * + * bool imported = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearImported() { + bitField0_ = (bitField0_ & ~0x00000010); + imported_ = false; + onChanged(); + return this; + } + + private int direction_ = 0; + /** + * + * + *
+     * Output only. Direction of the routes exchanged with the peer network, from
+     * the VMware Engine network perspective:
+     *
+     * * Routes of direction `INCOMING` are imported from the peer network.
+     * * Routes of direction `OUTGOING` are exported from the intranet VPC network
+     * of the VMware Engine network.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PeeringRoute.Direction direction = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for direction. + */ + @java.lang.Override + public int getDirectionValue() { + return direction_; + } + /** + * + * + *
+     * Output only. Direction of the routes exchanged with the peer network, from
+     * the VMware Engine network perspective:
+     *
+     * * Routes of direction `INCOMING` are imported from the peer network.
+     * * Routes of direction `OUTGOING` are exported from the intranet VPC network
+     * of the VMware Engine network.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PeeringRoute.Direction direction = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for direction to set. + * @return This builder for chaining. + */ + public Builder setDirectionValue(int value) { + direction_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Direction of the routes exchanged with the peer network, from
+     * the VMware Engine network perspective:
+     *
+     * * Routes of direction `INCOMING` are imported from the peer network.
+     * * Routes of direction `OUTGOING` are exported from the intranet VPC network
+     * of the VMware Engine network.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PeeringRoute.Direction direction = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The direction. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PeeringRoute.Direction getDirection() { + com.google.cloud.vmwareengine.v1.PeeringRoute.Direction result = + com.google.cloud.vmwareengine.v1.PeeringRoute.Direction.forNumber(direction_); + return result == null + ? com.google.cloud.vmwareengine.v1.PeeringRoute.Direction.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. Direction of the routes exchanged with the peer network, from
+     * the VMware Engine network perspective:
+     *
+     * * Routes of direction `INCOMING` are imported from the peer network.
+     * * Routes of direction `OUTGOING` are exported from the intranet VPC network
+     * of the VMware Engine network.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PeeringRoute.Direction direction = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The direction to set. + * @return This builder for chaining. + */ + public Builder setDirection(com.google.cloud.vmwareengine.v1.PeeringRoute.Direction value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + direction_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Direction of the routes exchanged with the peer network, from
+     * the VMware Engine network perspective:
+     *
+     * * Routes of direction `INCOMING` are imported from the peer network.
+     * * Routes of direction `OUTGOING` are exported from the intranet VPC network
+     * of the VMware Engine network.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PeeringRoute.Direction direction = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearDirection() { + bitField0_ = (bitField0_ & ~0x00000020); + direction_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.PeeringRoute) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.PeeringRoute) + private static final com.google.cloud.vmwareengine.v1.PeeringRoute DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.PeeringRoute(); + } + + public static com.google.cloud.vmwareengine.v1.PeeringRoute getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PeeringRoute parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PeeringRoute getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PeeringRouteOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PeeringRouteOrBuilder.java new file mode 100644 index 000000000000..1841ed83a301 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PeeringRouteOrBuilder.java @@ -0,0 +1,175 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine_resources.proto + +package com.google.cloud.vmwareengine.v1; + +public interface PeeringRouteOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.PeeringRoute) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Destination range of the peering route in CIDR notation.
+   * 
+ * + * string dest_range = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The destRange. + */ + java.lang.String getDestRange(); + /** + * + * + *
+   * Output only. Destination range of the peering route in CIDR notation.
+   * 
+ * + * string dest_range = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for destRange. + */ + com.google.protobuf.ByteString getDestRangeBytes(); + + /** + * + * + *
+   * Output only. Type of the route in the peer VPC network.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PeeringRoute.Type type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
+   * Output only. Type of the route in the peer VPC network.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PeeringRoute.Type type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + com.google.cloud.vmwareengine.v1.PeeringRoute.Type getType(); + + /** + * + * + *
+   * Output only. Region containing the next hop of the peering route. This
+   * field only applies to dynamic routes in the peer VPC network.
+   * 
+ * + * string next_hop_region = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The nextHopRegion. + */ + java.lang.String getNextHopRegion(); + /** + * + * + *
+   * Output only. Region containing the next hop of the peering route. This
+   * field only applies to dynamic routes in the peer VPC network.
+   * 
+ * + * string next_hop_region = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nextHopRegion. + */ + com.google.protobuf.ByteString getNextHopRegionBytes(); + + /** + * + * + *
+   * Output only. The priority of the peering route.
+   * 
+ * + * int64 priority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The priority. + */ + long getPriority(); + + /** + * + * + *
+   * Output only. True if the peering route has been imported from a peered
+   * VPC network; false otherwise. The import happens if the field
+   * `NetworkPeering.importCustomRoutes` is true for this network,
+   * `NetworkPeering.exportCustomRoutes` is true for the peer VPC network, and
+   * the import does not result in a route conflict.
+   * 
+ * + * bool imported = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The imported. + */ + boolean getImported(); + + /** + * + * + *
+   * Output only. Direction of the routes exchanged with the peer network, from
+   * the VMware Engine network perspective:
+   *
+   * * Routes of direction `INCOMING` are imported from the peer network.
+   * * Routes of direction `OUTGOING` are exported from the intranet VPC network
+   * of the VMware Engine network.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PeeringRoute.Direction direction = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for direction. + */ + int getDirectionValue(); + /** + * + * + *
+   * Output only. Direction of the routes exchanged with the peer network, from
+   * the VMware Engine network perspective:
+   *
+   * * Routes of direction `INCOMING` are imported from the peer network.
+   * * Routes of direction `OUTGOING` are exported from the intranet VPC network
+   * of the VMware Engine network.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PeeringRoute.Direction direction = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The direction. + */ + com.google.cloud.vmwareengine.v1.PeeringRoute.Direction getDirection(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateCloud.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateCloud.java index dfc388117262..54ae115fa94a 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateCloud.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateCloud.java @@ -42,6 +42,7 @@ private PrivateCloud() { state_ = 0; description_ = ""; uid_ = ""; + type_ = 0; } @java.lang.Override @@ -314,6 +315,147 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.vmwareengine.v1.PrivateCloud.State) } + /** + * + * + *
+   * Enum Type defines private cloud type.
+   * 
+ * + * Protobuf enum {@code google.cloud.vmwareengine.v1.PrivateCloud.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Standard private is a zonal resource, with 3+ nodes. Default type.
+     * 
+ * + * STANDARD = 0; + */ + STANDARD(0), + /** + * + * + *
+     * Time limited private cloud is a zonal resource, can have only 1 node and
+     * has limited life span. Will be deleted after defined period of time,
+     * can be converted into standard private cloud by expanding it up to 3
+     * or more nodes.
+     * 
+ * + * TIME_LIMITED = 1; + */ + TIME_LIMITED(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Standard private is a zonal resource, with 3+ nodes. Default type.
+     * 
+ * + * STANDARD = 0; + */ + public static final int STANDARD_VALUE = 0; + /** + * + * + *
+     * Time limited private cloud is a zonal resource, can have only 1 node and
+     * has limited life span. Will be deleted after defined period of time,
+     * can be converted into standard private cloud by expanding it up to 3
+     * or more nodes.
+     * 
+ * + * TIME_LIMITED = 1; + */ + public static final int TIME_LIMITED_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: + return STANDARD; + case 1: + return TIME_LIMITED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.PrivateCloud.getDescriptor().getEnumTypes().get(1); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmwareengine.v1.PrivateCloud.Type) + } + public interface ManagementClusterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster) @@ -2195,6 +2337,47 @@ public com.google.protobuf.ByteString getUidBytes() { } } + public static final int TYPE_FIELD_NUMBER = 22; + private int type_ = 0; + /** + * + * + *
+   * Optional. Type of the private cloud. Defaults to STANDARD.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud.Type type = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Optional. Type of the private cloud. Defaults to STANDARD.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud.Type type = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateCloud.Type getType() { + com.google.cloud.vmwareengine.v1.PrivateCloud.Type result = + com.google.cloud.vmwareengine.v1.PrivateCloud.Type.forNumber(type_); + return result == null + ? com.google.cloud.vmwareengine.v1.PrivateCloud.Type.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2249,6 +2432,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 20, uid_); } + if (type_ != com.google.cloud.vmwareengine.v1.PrivateCloud.Type.STANDARD.getNumber()) { + output.writeEnum(22, type_); + } getUnknownFields().writeTo(output); } @@ -2298,6 +2484,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, uid_); } + if (type_ != com.google.cloud.vmwareengine.v1.PrivateCloud.Type.STANDARD.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(22, type_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2354,6 +2543,7 @@ public boolean equals(final java.lang.Object obj) { if (!getVcenter().equals(other.getVcenter())) return false; } if (!getUid().equals(other.getUid())) return false; + if (type_ != other.type_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2409,6 +2599,8 @@ public int hashCode() { } hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2597,6 +2789,7 @@ public Builder clear() { vcenterBuilder_ = null; } uid_ = ""; + type_ = 0; return this; } @@ -2676,6 +2869,9 @@ private void buildPartial0(com.google.cloud.vmwareengine.v1.PrivateCloud result) if (((from_bitField0_ & 0x00001000) != 0)) { result.uid_ = uid_; } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.type_ = type_; + } } @java.lang.Override @@ -2768,6 +2964,9 @@ public Builder mergeFrom(com.google.cloud.vmwareengine.v1.PrivateCloud other) { bitField0_ |= 0x00001000; onChanged(); } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2873,6 +3072,12 @@ public Builder mergeFrom( bitField0_ |= 0x00001000; break; } // case 162 + case 176: + { + type_ = input.readEnum(); + bitField0_ |= 0x00002000; + break; + } // case 176 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5192,6 +5397,108 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) { return this; } + private int type_ = 0; + /** + * + * + *
+     * Optional. Type of the private cloud. Defaults to STANDARD.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud.Type type = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Optional. Type of the private cloud. Defaults to STANDARD.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud.Type type = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Type of the private cloud. Defaults to STANDARD.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud.Type type = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateCloud.Type getType() { + com.google.cloud.vmwareengine.v1.PrivateCloud.Type result = + com.google.cloud.vmwareengine.v1.PrivateCloud.Type.forNumber(type_); + return result == null + ? com.google.cloud.vmwareengine.v1.PrivateCloud.Type.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. Type of the private cloud. Defaults to STANDARD.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud.Type type = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.vmwareengine.v1.PrivateCloud.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00002000; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Type of the private cloud. Defaults to STANDARD.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud.Type type = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00002000); + type_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateCloudOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateCloudOrBuilder.java index 41de0582c4a7..b297acfebba7 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateCloudOrBuilder.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateCloudOrBuilder.java @@ -503,4 +503,33 @@ public interface PrivateCloudOrBuilder * @return The bytes for uid. */ com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
+   * Optional. Type of the private cloud. Defaults to STANDARD.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud.Type type = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
+   * Optional. Type of the private cloud. Defaults to STANDARD.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud.Type type = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + com.google.cloud.vmwareengine.v1.PrivateCloud.Type getType(); } diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateConnection.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateConnection.java new file mode 100644 index 000000000000..237d15d21a63 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateConnection.java @@ -0,0 +1,3967 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine_resources.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Private connection resource that provides connectivity for VMware Engine
+ * private clouds.
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.PrivateConnection} + */ +public final class PrivateConnection extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.PrivateConnection) + PrivateConnectionOrBuilder { + private static final long serialVersionUID = 0L; + // Use PrivateConnection.newBuilder() to construct. + private PrivateConnection(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PrivateConnection() { + name_ = ""; + description_ = ""; + state_ = 0; + vmwareEngineNetwork_ = ""; + vmwareEngineNetworkCanonical_ = ""; + type_ = 0; + peeringId_ = ""; + routingMode_ = 0; + uid_ = ""; + serviceNetwork_ = ""; + peeringState_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PrivateConnection(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_PrivateConnection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_PrivateConnection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.PrivateConnection.class, + com.google.cloud.vmwareengine.v1.PrivateConnection.Builder.class); + } + + /** + * + * + *
+   * Enum State defines possible states of private connection.
+   * 
+ * + * Protobuf enum {@code google.cloud.vmwareengine.v1.PrivateConnection.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The default value. This value is used if the state is omitted.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The private connection is being created.
+     * 
+ * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
+     * The private connection is ready.
+     * 
+ * + * ACTIVE = 2; + */ + ACTIVE(2), + /** + * + * + *
+     * The private connection is being updated.
+     * 
+ * + * UPDATING = 3; + */ + UPDATING(3), + /** + * + * + *
+     * The private connection is being deleted.
+     * 
+ * + * DELETING = 4; + */ + DELETING(4), + /** + * + * + *
+     * The private connection is not provisioned, since no private cloud is
+     * present for which this private connection is needed.
+     * 
+ * + * UNPROVISIONED = 5; + */ + UNPROVISIONED(5), + /** + * + * + *
+     * The private connection is in failed state.
+     * 
+ * + * FAILED = 6; + */ + FAILED(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The default value. This value is used if the state is omitted.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The private connection is being created.
+     * 
+ * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + /** + * + * + *
+     * The private connection is ready.
+     * 
+ * + * ACTIVE = 2; + */ + public static final int ACTIVE_VALUE = 2; + /** + * + * + *
+     * The private connection is being updated.
+     * 
+ * + * UPDATING = 3; + */ + public static final int UPDATING_VALUE = 3; + /** + * + * + *
+     * The private connection is being deleted.
+     * 
+ * + * DELETING = 4; + */ + public static final int DELETING_VALUE = 4; + /** + * + * + *
+     * The private connection is not provisioned, since no private cloud is
+     * present for which this private connection is needed.
+     * 
+ * + * UNPROVISIONED = 5; + */ + public static final int UNPROVISIONED_VALUE = 5; + /** + * + * + *
+     * The private connection is in failed state.
+     * 
+ * + * FAILED = 6; + */ + public static final int FAILED_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return ACTIVE; + case 3: + return UPDATING; + case 4: + return DELETING; + case 5: + return UNPROVISIONED; + case 6: + return FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.PrivateConnection.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmwareengine.v1.PrivateConnection.State) + } + + /** + * + * + *
+   * Enum Type defines possible types of private connection.
+   * 
+ * + * Protobuf enum {@code google.cloud.vmwareengine.v1.PrivateConnection.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The default value. This value should never be used.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Connection used for establishing [private services
+     * access](https://cloud.google.com/vpc/docs/private-services-access).
+     * 
+ * + * PRIVATE_SERVICE_ACCESS = 1; + */ + PRIVATE_SERVICE_ACCESS(1), + /** + * + * + *
+     * Connection used for connecting to NetApp Cloud Volumes.
+     * 
+ * + * NETAPP_CLOUD_VOLUMES = 2; + */ + NETAPP_CLOUD_VOLUMES(2), + /** + * + * + *
+     * Connection used for connecting to Dell PowerScale.
+     * 
+ * + * DELL_POWERSCALE = 3; + */ + DELL_POWERSCALE(3), + /** + * + * + *
+     * Connection used for connecting to third-party services.
+     * 
+ * + * THIRD_PARTY_SERVICE = 4; + */ + THIRD_PARTY_SERVICE(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The default value. This value should never be used.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Connection used for establishing [private services
+     * access](https://cloud.google.com/vpc/docs/private-services-access).
+     * 
+ * + * PRIVATE_SERVICE_ACCESS = 1; + */ + public static final int PRIVATE_SERVICE_ACCESS_VALUE = 1; + /** + * + * + *
+     * Connection used for connecting to NetApp Cloud Volumes.
+     * 
+ * + * NETAPP_CLOUD_VOLUMES = 2; + */ + public static final int NETAPP_CLOUD_VOLUMES_VALUE = 2; + /** + * + * + *
+     * Connection used for connecting to Dell PowerScale.
+     * 
+ * + * DELL_POWERSCALE = 3; + */ + public static final int DELL_POWERSCALE_VALUE = 3; + /** + * + * + *
+     * Connection used for connecting to third-party services.
+     * 
+ * + * THIRD_PARTY_SERVICE = 4; + */ + public static final int THIRD_PARTY_SERVICE_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: + return TYPE_UNSPECIFIED; + case 1: + return PRIVATE_SERVICE_ACCESS; + case 2: + return NETAPP_CLOUD_VOLUMES; + case 3: + return DELL_POWERSCALE; + case 4: + return THIRD_PARTY_SERVICE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.PrivateConnection.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmwareengine.v1.PrivateConnection.Type) + } + + /** + * + * + *
+   * Possible types for RoutingMode
+   * 
+ * + * Protobuf enum {@code google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode} + */ + public enum RoutingMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The default value. This value should never be used.
+     * 
+ * + * ROUTING_MODE_UNSPECIFIED = 0; + */ + ROUTING_MODE_UNSPECIFIED(0), + /** + * + * + *
+     * Global Routing Mode
+     * 
+ * + * GLOBAL = 1; + */ + GLOBAL(1), + /** + * + * + *
+     * Regional Routing Mode
+     * 
+ * + * REGIONAL = 2; + */ + REGIONAL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The default value. This value should never be used.
+     * 
+ * + * ROUTING_MODE_UNSPECIFIED = 0; + */ + public static final int ROUTING_MODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Global Routing Mode
+     * 
+ * + * GLOBAL = 1; + */ + public static final int GLOBAL_VALUE = 1; + /** + * + * + *
+     * Regional Routing Mode
+     * 
+ * + * REGIONAL = 2; + */ + public static final int REGIONAL_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RoutingMode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static RoutingMode forNumber(int value) { + switch (value) { + case 0: + return ROUTING_MODE_UNSPECIFIED; + case 1: + return GLOBAL; + case 2: + return REGIONAL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RoutingMode findValueByNumber(int number) { + return RoutingMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.PrivateConnection.getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final RoutingMode[] VALUES = values(); + + public static RoutingMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private RoutingMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode) + } + + /** + * + * + *
+   * Enum PeeringState defines the possible states of peering between service
+   * network and the vpc network peered to service network
+   * 
+ * + * Protobuf enum {@code google.cloud.vmwareengine.v1.PrivateConnection.PeeringState} + */ + public enum PeeringState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The default value. This value is used if the peering state is omitted or
+     * unknown.
+     * 
+ * + * PEERING_STATE_UNSPECIFIED = 0; + */ + PEERING_STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The peering is in active state.
+     * 
+ * + * PEERING_ACTIVE = 1; + */ + PEERING_ACTIVE(1), + /** + * + * + *
+     * The peering is in inactive state.
+     * 
+ * + * PEERING_INACTIVE = 2; + */ + PEERING_INACTIVE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The default value. This value is used if the peering state is omitted or
+     * unknown.
+     * 
+ * + * PEERING_STATE_UNSPECIFIED = 0; + */ + public static final int PEERING_STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The peering is in active state.
+     * 
+ * + * PEERING_ACTIVE = 1; + */ + public static final int PEERING_ACTIVE_VALUE = 1; + /** + * + * + *
+     * The peering is in inactive state.
+     * 
+ * + * PEERING_INACTIVE = 2; + */ + public static final int PEERING_INACTIVE_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PeeringState valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static PeeringState forNumber(int value) { + switch (value) { + case 0: + return PEERING_STATE_UNSPECIFIED; + case 1: + return PEERING_ACTIVE; + case 2: + return PEERING_INACTIVE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PeeringState findValueByNumber(int number) { + return PeeringState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.PrivateConnection.getDescriptor() + .getEnumTypes() + .get(3); + } + + private static final PeeringState[] VALUES = values(); + + public static PeeringState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private PeeringState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmwareengine.v1.PrivateConnection.PeeringState) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. The resource name of the private connection.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1/privateConnections/my-connection`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The resource name of the private connection.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1/privateConnections/my-connection`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Creation time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Creation time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Creation time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Last update time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. Last update time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. Last update time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int DESCRIPTION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * + * + *
+   * Optional. User-provided description for this private connection.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. User-provided description for this private connection.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 5; + private int state_ = 0; + /** + * + * + *
+   * Output only. State of the private connection.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Output only. State of the private connection.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateConnection.State getState() { + com.google.cloud.vmwareengine.v1.PrivateConnection.State result = + com.google.cloud.vmwareengine.v1.PrivateConnection.State.forNumber(state_); + return result == null + ? com.google.cloud.vmwareengine.v1.PrivateConnection.State.UNRECOGNIZED + : result; + } + + public static final int VMWARE_ENGINE_NETWORK_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object vmwareEngineNetwork_ = ""; + /** + * + * + *
+   * Required. The relative resource name of Legacy VMware Engine network.
+   * Specify the name in the following form:
+   * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+   * where `{project}`, `{location}` will be same as specified in private
+   * connection resource name and `{vmware_engine_network_id}` will be in the
+   * form of `{location}`-default e.g.
+   * projects/project/locations/us-central1/vmwareEngineNetworks/us-central1-default.
+   * 
+ * + * + * string vmware_engine_network = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The vmwareEngineNetwork. + */ + @java.lang.Override + public java.lang.String getVmwareEngineNetwork() { + java.lang.Object ref = vmwareEngineNetwork_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vmwareEngineNetwork_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The relative resource name of Legacy VMware Engine network.
+   * Specify the name in the following form:
+   * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+   * where `{project}`, `{location}` will be same as specified in private
+   * connection resource name and `{vmware_engine_network_id}` will be in the
+   * form of `{location}`-default e.g.
+   * projects/project/locations/us-central1/vmwareEngineNetworks/us-central1-default.
+   * 
+ * + * + * string vmware_engine_network = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for vmwareEngineNetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVmwareEngineNetworkBytes() { + java.lang.Object ref = vmwareEngineNetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmwareEngineNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VMWARE_ENGINE_NETWORK_CANONICAL_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object vmwareEngineNetworkCanonical_ = ""; + /** + * + * + *
+   * Output only. The canonical name of the VMware Engine network in the form:
+   * `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+   * 
+ * + * + * string vmware_engine_network_canonical = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The vmwareEngineNetworkCanonical. + */ + @java.lang.Override + public java.lang.String getVmwareEngineNetworkCanonical() { + java.lang.Object ref = vmwareEngineNetworkCanonical_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vmwareEngineNetworkCanonical_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The canonical name of the VMware Engine network in the form:
+   * `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+   * 
+ * + * + * string vmware_engine_network_canonical = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for vmwareEngineNetworkCanonical. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVmwareEngineNetworkCanonicalBytes() { + java.lang.Object ref = vmwareEngineNetworkCanonical_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmwareEngineNetworkCanonical_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 10; + private int type_ = 0; + /** + * + * + *
+   * Required. Private connection type.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.Type type = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Required. Private connection type.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.Type type = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateConnection.Type getType() { + com.google.cloud.vmwareengine.v1.PrivateConnection.Type result = + com.google.cloud.vmwareengine.v1.PrivateConnection.Type.forNumber(type_); + return result == null + ? com.google.cloud.vmwareengine.v1.PrivateConnection.Type.UNRECOGNIZED + : result; + } + + public static final int PEERING_ID_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object peeringId_ = ""; + /** + * + * + *
+   * Output only. VPC network peering id between given network VPC and
+   * VMwareEngineNetwork.
+   * 
+ * + * string peering_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The peeringId. + */ + @java.lang.Override + public java.lang.String getPeeringId() { + java.lang.Object ref = peeringId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + peeringId_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. VPC network peering id between given network VPC and
+   * VMwareEngineNetwork.
+   * 
+ * + * string peering_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for peeringId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPeeringIdBytes() { + java.lang.Object ref = peeringId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peeringId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROUTING_MODE_FIELD_NUMBER = 13; + private int routingMode_ = 0; + /** + * + * + *
+   * Optional. Routing Mode.
+   * Default value is set to GLOBAL.
+   * For type = PRIVATE_SERVICE_ACCESS, this field can be set to GLOBAL or
+   * REGIONAL, for other types only GLOBAL is supported.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode routing_mode = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for routingMode. + */ + @java.lang.Override + public int getRoutingModeValue() { + return routingMode_; + } + /** + * + * + *
+   * Optional. Routing Mode.
+   * Default value is set to GLOBAL.
+   * For type = PRIVATE_SERVICE_ACCESS, this field can be set to GLOBAL or
+   * REGIONAL, for other types only GLOBAL is supported.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode routing_mode = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The routingMode. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode getRoutingMode() { + com.google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode result = + com.google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode.forNumber(routingMode_); + return result == null + ? com.google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode.UNRECOGNIZED + : result; + } + + public static final int UID_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + /** + * + * + *
+   * Output only. System-generated unique identifier for the resource.
+   * 
+ * + * string uid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. System-generated unique identifier for the resource.
+   * 
+ * + * string uid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICE_NETWORK_FIELD_NUMBER = 16; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceNetwork_ = ""; + /** + * + * + *
+   * Required. Service network to create private connection.
+   * Specify the name in the following form:
+   * `projects/{project}/global/networks/{network_id}`
+   * For type = PRIVATE_SERVICE_ACCESS, this field represents servicenetworking
+   * VPC, e.g. projects/project-tp/global/networks/servicenetworking.
+   * For type = NETAPP_CLOUD_VOLUME, this field represents NetApp service VPC,
+   * e.g. projects/project-tp/global/networks/netapp-tenant-vpc.
+   * For type = DELL_POWERSCALE, this field represent Dell service VPC, e.g.
+   * projects/project-tp/global/networks/dell-tenant-vpc.
+   * For type= THIRD_PARTY_SERVICE, this field could represent a consumer VPC or
+   * any other producer VPC to which the VMware Engine Network needs to be
+   * connected, e.g. projects/project/global/networks/vpc.
+   * 
+ * + * + * string service_network = 16 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The serviceNetwork. + */ + @java.lang.Override + public java.lang.String getServiceNetwork() { + java.lang.Object ref = serviceNetwork_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceNetwork_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Service network to create private connection.
+   * Specify the name in the following form:
+   * `projects/{project}/global/networks/{network_id}`
+   * For type = PRIVATE_SERVICE_ACCESS, this field represents servicenetworking
+   * VPC, e.g. projects/project-tp/global/networks/servicenetworking.
+   * For type = NETAPP_CLOUD_VOLUME, this field represents NetApp service VPC,
+   * e.g. projects/project-tp/global/networks/netapp-tenant-vpc.
+   * For type = DELL_POWERSCALE, this field represent Dell service VPC, e.g.
+   * projects/project-tp/global/networks/dell-tenant-vpc.
+   * For type= THIRD_PARTY_SERVICE, this field could represent a consumer VPC or
+   * any other producer VPC to which the VMware Engine Network needs to be
+   * connected, e.g. projects/project/global/networks/vpc.
+   * 
+ * + * + * string service_network = 16 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for serviceNetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceNetworkBytes() { + java.lang.Object ref = serviceNetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PEERING_STATE_FIELD_NUMBER = 17; + private int peeringState_ = 0; + /** + * + * + *
+   * Output only. Peering state between service network and VMware Engine
+   * network.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.PeeringState peering_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for peeringState. + */ + @java.lang.Override + public int getPeeringStateValue() { + return peeringState_; + } + /** + * + * + *
+   * Output only. Peering state between service network and VMware Engine
+   * network.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.PeeringState peering_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The peeringState. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateConnection.PeeringState getPeeringState() { + com.google.cloud.vmwareengine.v1.PrivateConnection.PeeringState result = + com.google.cloud.vmwareengine.v1.PrivateConnection.PeeringState.forNumber(peeringState_); + return result == null + ? com.google.cloud.vmwareengine.v1.PrivateConnection.PeeringState.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (createTime_ != null) { + output.writeMessage(2, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(3, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); + } + if (state_ + != com.google.cloud.vmwareengine.v1.PrivateConnection.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(5, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmwareEngineNetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, vmwareEngineNetwork_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmwareEngineNetworkCanonical_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, vmwareEngineNetworkCanonical_); + } + if (type_ + != com.google.cloud.vmwareengine.v1.PrivateConnection.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(10, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peeringId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, peeringId_); + } + if (routingMode_ + != com.google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode.ROUTING_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(13, routingMode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceNetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, serviceNetwork_); + } + if (peeringState_ + != com.google.cloud.vmwareengine.v1.PrivateConnection.PeeringState.PEERING_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(17, peeringState_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); + } + if (state_ + != com.google.cloud.vmwareengine.v1.PrivateConnection.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmwareEngineNetwork_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, vmwareEngineNetwork_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmwareEngineNetworkCanonical_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 9, vmwareEngineNetworkCanonical_); + } + if (type_ + != com.google.cloud.vmwareengine.v1.PrivateConnection.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peeringId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, peeringId_); + } + if (routingMode_ + != com.google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode.ROUTING_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, routingMode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceNetwork_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, serviceNetwork_); + } + if (peeringState_ + != com.google.cloud.vmwareengine.v1.PrivateConnection.PeeringState.PEERING_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, peeringState_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.PrivateConnection)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.PrivateConnection other = + (com.google.cloud.vmwareengine.v1.PrivateConnection) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getDescription().equals(other.getDescription())) return false; + if (state_ != other.state_) return false; + if (!getVmwareEngineNetwork().equals(other.getVmwareEngineNetwork())) return false; + if (!getVmwareEngineNetworkCanonical().equals(other.getVmwareEngineNetworkCanonical())) + return false; + if (type_ != other.type_) return false; + if (!getPeeringId().equals(other.getPeeringId())) return false; + if (routingMode_ != other.routingMode_) return false; + if (!getUid().equals(other.getUid())) return false; + if (!getServiceNetwork().equals(other.getServiceNetwork())) return false; + if (peeringState_ != other.peeringState_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + VMWARE_ENGINE_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getVmwareEngineNetwork().hashCode(); + hash = (37 * hash) + VMWARE_ENGINE_NETWORK_CANONICAL_FIELD_NUMBER; + hash = (53 * hash) + getVmwareEngineNetworkCanonical().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + PEERING_ID_FIELD_NUMBER; + hash = (53 * hash) + getPeeringId().hashCode(); + hash = (37 * hash) + ROUTING_MODE_FIELD_NUMBER; + hash = (53 * hash) + routingMode_; + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (37 * hash) + SERVICE_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getServiceNetwork().hashCode(); + hash = (37 * hash) + PEERING_STATE_FIELD_NUMBER; + hash = (53 * hash) + peeringState_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.PrivateConnection parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.PrivateConnection parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.PrivateConnection parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.PrivateConnection parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.PrivateConnection parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.PrivateConnection parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.PrivateConnection parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.PrivateConnection parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.PrivateConnection parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.PrivateConnection parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.PrivateConnection parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.PrivateConnection parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.vmwareengine.v1.PrivateConnection prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Private connection resource that provides connectivity for VMware Engine
+   * private clouds.
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.PrivateConnection} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.PrivateConnection) + com.google.cloud.vmwareengine.v1.PrivateConnectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_PrivateConnection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_PrivateConnection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.PrivateConnection.class, + com.google.cloud.vmwareengine.v1.PrivateConnection.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.PrivateConnection.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + description_ = ""; + state_ = 0; + vmwareEngineNetwork_ = ""; + vmwareEngineNetworkCanonical_ = ""; + type_ = 0; + peeringId_ = ""; + routingMode_ = 0; + uid_ = ""; + serviceNetwork_ = ""; + peeringState_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_PrivateConnection_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateConnection getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.PrivateConnection.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateConnection build() { + com.google.cloud.vmwareengine.v1.PrivateConnection result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateConnection buildPartial() { + com.google.cloud.vmwareengine.v1.PrivateConnection result = + new com.google.cloud.vmwareengine.v1.PrivateConnection(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmwareengine.v1.PrivateConnection result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.vmwareEngineNetwork_ = vmwareEngineNetwork_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.vmwareEngineNetworkCanonical_ = vmwareEngineNetworkCanonical_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.peeringId_ = peeringId_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.routingMode_ = routingMode_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.uid_ = uid_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.serviceNetwork_ = serviceNetwork_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.peeringState_ = peeringState_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.PrivateConnection) { + return mergeFrom((com.google.cloud.vmwareengine.v1.PrivateConnection) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.PrivateConnection other) { + if (other == com.google.cloud.vmwareengine.v1.PrivateConnection.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getVmwareEngineNetwork().isEmpty()) { + vmwareEngineNetwork_ = other.vmwareEngineNetwork_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getVmwareEngineNetworkCanonical().isEmpty()) { + vmwareEngineNetworkCanonical_ = other.vmwareEngineNetworkCanonical_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getPeeringId().isEmpty()) { + peeringId_ = other.peeringId_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.routingMode_ != 0) { + setRoutingModeValue(other.getRoutingModeValue()); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (!other.getServiceNetwork().isEmpty()) { + serviceNetwork_ = other.serviceNetwork_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (other.peeringState_ != 0) { + setPeeringStateValue(other.getPeeringStateValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 66: + { + vmwareEngineNetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 66 + case 74: + { + vmwareEngineNetworkCanonical_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 74 + case 80: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 80 + case 98: + { + peeringId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 98 + case 104: + { + routingMode_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 104 + case 114: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 114 + case 130: + { + serviceNetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 130 + case 136: + { + peeringState_ = input.readEnum(); + bitField0_ |= 0x00001000; + break; + } // case 136 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name of the private connection.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/privateConnections/my-connection`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of the private connection.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/privateConnections/my-connection`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of the private connection.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/privateConnections/my-connection`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the private connection.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/privateConnections/my-connection`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the private connection.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/privateConnections/my-connection`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Optional. User-provided description for this private connection.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. User-provided description for this private connection.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. User-provided description for this private connection.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. User-provided description for this private connection.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. User-provided description for this private connection.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. State of the private connection.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. State of the private connection.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the private connection.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateConnection.State getState() { + com.google.cloud.vmwareengine.v1.PrivateConnection.State result = + com.google.cloud.vmwareengine.v1.PrivateConnection.State.forNumber(state_); + return result == null + ? com.google.cloud.vmwareengine.v1.PrivateConnection.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. State of the private connection.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.vmwareengine.v1.PrivateConnection.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the private connection.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000010); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object vmwareEngineNetwork_ = ""; + /** + * + * + *
+     * Required. The relative resource name of Legacy VMware Engine network.
+     * Specify the name in the following form:
+     * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+     * where `{project}`, `{location}` will be same as specified in private
+     * connection resource name and `{vmware_engine_network_id}` will be in the
+     * form of `{location}`-default e.g.
+     * projects/project/locations/us-central1/vmwareEngineNetworks/us-central1-default.
+     * 
+ * + * + * string vmware_engine_network = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The vmwareEngineNetwork. + */ + public java.lang.String getVmwareEngineNetwork() { + java.lang.Object ref = vmwareEngineNetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vmwareEngineNetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The relative resource name of Legacy VMware Engine network.
+     * Specify the name in the following form:
+     * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+     * where `{project}`, `{location}` will be same as specified in private
+     * connection resource name and `{vmware_engine_network_id}` will be in the
+     * form of `{location}`-default e.g.
+     * projects/project/locations/us-central1/vmwareEngineNetworks/us-central1-default.
+     * 
+ * + * + * string vmware_engine_network = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for vmwareEngineNetwork. + */ + public com.google.protobuf.ByteString getVmwareEngineNetworkBytes() { + java.lang.Object ref = vmwareEngineNetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmwareEngineNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The relative resource name of Legacy VMware Engine network.
+     * Specify the name in the following form:
+     * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+     * where `{project}`, `{location}` will be same as specified in private
+     * connection resource name and `{vmware_engine_network_id}` will be in the
+     * form of `{location}`-default e.g.
+     * projects/project/locations/us-central1/vmwareEngineNetworks/us-central1-default.
+     * 
+ * + * + * string vmware_engine_network = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The vmwareEngineNetwork to set. + * @return This builder for chaining. + */ + public Builder setVmwareEngineNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + vmwareEngineNetwork_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The relative resource name of Legacy VMware Engine network.
+     * Specify the name in the following form:
+     * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+     * where `{project}`, `{location}` will be same as specified in private
+     * connection resource name and `{vmware_engine_network_id}` will be in the
+     * form of `{location}`-default e.g.
+     * projects/project/locations/us-central1/vmwareEngineNetworks/us-central1-default.
+     * 
+ * + * + * string vmware_engine_network = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearVmwareEngineNetwork() { + vmwareEngineNetwork_ = getDefaultInstance().getVmwareEngineNetwork(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The relative resource name of Legacy VMware Engine network.
+     * Specify the name in the following form:
+     * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+     * where `{project}`, `{location}` will be same as specified in private
+     * connection resource name and `{vmware_engine_network_id}` will be in the
+     * form of `{location}`-default e.g.
+     * projects/project/locations/us-central1/vmwareEngineNetworks/us-central1-default.
+     * 
+ * + * + * string vmware_engine_network = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for vmwareEngineNetwork to set. + * @return This builder for chaining. + */ + public Builder setVmwareEngineNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vmwareEngineNetwork_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object vmwareEngineNetworkCanonical_ = ""; + /** + * + * + *
+     * Output only. The canonical name of the VMware Engine network in the form:
+     * `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+     * 
+ * + * + * string vmware_engine_network_canonical = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The vmwareEngineNetworkCanonical. + */ + public java.lang.String getVmwareEngineNetworkCanonical() { + java.lang.Object ref = vmwareEngineNetworkCanonical_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vmwareEngineNetworkCanonical_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The canonical name of the VMware Engine network in the form:
+     * `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+     * 
+ * + * + * string vmware_engine_network_canonical = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for vmwareEngineNetworkCanonical. + */ + public com.google.protobuf.ByteString getVmwareEngineNetworkCanonicalBytes() { + java.lang.Object ref = vmwareEngineNetworkCanonical_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmwareEngineNetworkCanonical_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The canonical name of the VMware Engine network in the form:
+     * `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+     * 
+ * + * + * string vmware_engine_network_canonical = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The vmwareEngineNetworkCanonical to set. + * @return This builder for chaining. + */ + public Builder setVmwareEngineNetworkCanonical(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + vmwareEngineNetworkCanonical_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The canonical name of the VMware Engine network in the form:
+     * `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+     * 
+ * + * + * string vmware_engine_network_canonical = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearVmwareEngineNetworkCanonical() { + vmwareEngineNetworkCanonical_ = getDefaultInstance().getVmwareEngineNetworkCanonical(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The canonical name of the VMware Engine network in the form:
+     * `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+     * 
+ * + * + * string vmware_engine_network_canonical = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for vmwareEngineNetworkCanonical to set. + * @return This builder for chaining. + */ + public Builder setVmwareEngineNetworkCanonicalBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vmwareEngineNetworkCanonical_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * + * + *
+     * Required. Private connection type.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.Type type = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Required. Private connection type.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.Type type = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Private connection type.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.Type type = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateConnection.Type getType() { + com.google.cloud.vmwareengine.v1.PrivateConnection.Type result = + com.google.cloud.vmwareengine.v1.PrivateConnection.Type.forNumber(type_); + return result == null + ? com.google.cloud.vmwareengine.v1.PrivateConnection.Type.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. Private connection type.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.Type type = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.vmwareengine.v1.PrivateConnection.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Private connection type.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.Type type = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000080); + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object peeringId_ = ""; + /** + * + * + *
+     * Output only. VPC network peering id between given network VPC and
+     * VMwareEngineNetwork.
+     * 
+ * + * string peering_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The peeringId. + */ + public java.lang.String getPeeringId() { + java.lang.Object ref = peeringId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + peeringId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. VPC network peering id between given network VPC and
+     * VMwareEngineNetwork.
+     * 
+ * + * string peering_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for peeringId. + */ + public com.google.protobuf.ByteString getPeeringIdBytes() { + java.lang.Object ref = peeringId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peeringId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. VPC network peering id between given network VPC and
+     * VMwareEngineNetwork.
+     * 
+ * + * string peering_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The peeringId to set. + * @return This builder for chaining. + */ + public Builder setPeeringId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + peeringId_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. VPC network peering id between given network VPC and
+     * VMwareEngineNetwork.
+     * 
+ * + * string peering_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPeeringId() { + peeringId_ = getDefaultInstance().getPeeringId(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. VPC network peering id between given network VPC and
+     * VMwareEngineNetwork.
+     * 
+ * + * string peering_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for peeringId to set. + * @return This builder for chaining. + */ + public Builder setPeeringIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + peeringId_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private int routingMode_ = 0; + /** + * + * + *
+     * Optional. Routing Mode.
+     * Default value is set to GLOBAL.
+     * For type = PRIVATE_SERVICE_ACCESS, this field can be set to GLOBAL or
+     * REGIONAL, for other types only GLOBAL is supported.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode routing_mode = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for routingMode. + */ + @java.lang.Override + public int getRoutingModeValue() { + return routingMode_; + } + /** + * + * + *
+     * Optional. Routing Mode.
+     * Default value is set to GLOBAL.
+     * For type = PRIVATE_SERVICE_ACCESS, this field can be set to GLOBAL or
+     * REGIONAL, for other types only GLOBAL is supported.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode routing_mode = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for routingMode to set. + * @return This builder for chaining. + */ + public Builder setRoutingModeValue(int value) { + routingMode_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Routing Mode.
+     * Default value is set to GLOBAL.
+     * For type = PRIVATE_SERVICE_ACCESS, this field can be set to GLOBAL or
+     * REGIONAL, for other types only GLOBAL is supported.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode routing_mode = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The routingMode. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode getRoutingMode() { + com.google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode result = + com.google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode.forNumber(routingMode_); + return result == null + ? com.google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. Routing Mode.
+     * Default value is set to GLOBAL.
+     * For type = PRIVATE_SERVICE_ACCESS, this field can be set to GLOBAL or
+     * REGIONAL, for other types only GLOBAL is supported.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode routing_mode = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The routingMode to set. + * @return This builder for chaining. + */ + public Builder setRoutingMode( + com.google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + routingMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Routing Mode.
+     * Default value is set to GLOBAL.
+     * For type = PRIVATE_SERVICE_ACCESS, this field can be set to GLOBAL or
+     * REGIONAL, for other types only GLOBAL is supported.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode routing_mode = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearRoutingMode() { + bitField0_ = (bitField0_ & ~0x00000200); + routingMode_ = 0; + onChanged(); + return this; + } + + private java.lang.Object uid_ = ""; + /** + * + * + *
+     * Output only. System-generated unique identifier for the resource.
+     * 
+ * + * string uid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. System-generated unique identifier for the resource.
+     * 
+ * + * string uid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. System-generated unique identifier for the resource.
+     * 
+ * + * string uid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. System-generated unique identifier for the resource.
+     * 
+ * + * string uid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. System-generated unique identifier for the resource.
+     * 
+ * + * string uid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private java.lang.Object serviceNetwork_ = ""; + /** + * + * + *
+     * Required. Service network to create private connection.
+     * Specify the name in the following form:
+     * `projects/{project}/global/networks/{network_id}`
+     * For type = PRIVATE_SERVICE_ACCESS, this field represents servicenetworking
+     * VPC, e.g. projects/project-tp/global/networks/servicenetworking.
+     * For type = NETAPP_CLOUD_VOLUME, this field represents NetApp service VPC,
+     * e.g. projects/project-tp/global/networks/netapp-tenant-vpc.
+     * For type = DELL_POWERSCALE, this field represent Dell service VPC, e.g.
+     * projects/project-tp/global/networks/dell-tenant-vpc.
+     * For type= THIRD_PARTY_SERVICE, this field could represent a consumer VPC or
+     * any other producer VPC to which the VMware Engine Network needs to be
+     * connected, e.g. projects/project/global/networks/vpc.
+     * 
+ * + * + * string service_network = 16 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The serviceNetwork. + */ + public java.lang.String getServiceNetwork() { + java.lang.Object ref = serviceNetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceNetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Service network to create private connection.
+     * Specify the name in the following form:
+     * `projects/{project}/global/networks/{network_id}`
+     * For type = PRIVATE_SERVICE_ACCESS, this field represents servicenetworking
+     * VPC, e.g. projects/project-tp/global/networks/servicenetworking.
+     * For type = NETAPP_CLOUD_VOLUME, this field represents NetApp service VPC,
+     * e.g. projects/project-tp/global/networks/netapp-tenant-vpc.
+     * For type = DELL_POWERSCALE, this field represent Dell service VPC, e.g.
+     * projects/project-tp/global/networks/dell-tenant-vpc.
+     * For type= THIRD_PARTY_SERVICE, this field could represent a consumer VPC or
+     * any other producer VPC to which the VMware Engine Network needs to be
+     * connected, e.g. projects/project/global/networks/vpc.
+     * 
+ * + * + * string service_network = 16 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for serviceNetwork. + */ + public com.google.protobuf.ByteString getServiceNetworkBytes() { + java.lang.Object ref = serviceNetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Service network to create private connection.
+     * Specify the name in the following form:
+     * `projects/{project}/global/networks/{network_id}`
+     * For type = PRIVATE_SERVICE_ACCESS, this field represents servicenetworking
+     * VPC, e.g. projects/project-tp/global/networks/servicenetworking.
+     * For type = NETAPP_CLOUD_VOLUME, this field represents NetApp service VPC,
+     * e.g. projects/project-tp/global/networks/netapp-tenant-vpc.
+     * For type = DELL_POWERSCALE, this field represent Dell service VPC, e.g.
+     * projects/project-tp/global/networks/dell-tenant-vpc.
+     * For type= THIRD_PARTY_SERVICE, this field could represent a consumer VPC or
+     * any other producer VPC to which the VMware Engine Network needs to be
+     * connected, e.g. projects/project/global/networks/vpc.
+     * 
+ * + * + * string service_network = 16 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The serviceNetwork to set. + * @return This builder for chaining. + */ + public Builder setServiceNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceNetwork_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Service network to create private connection.
+     * Specify the name in the following form:
+     * `projects/{project}/global/networks/{network_id}`
+     * For type = PRIVATE_SERVICE_ACCESS, this field represents servicenetworking
+     * VPC, e.g. projects/project-tp/global/networks/servicenetworking.
+     * For type = NETAPP_CLOUD_VOLUME, this field represents NetApp service VPC,
+     * e.g. projects/project-tp/global/networks/netapp-tenant-vpc.
+     * For type = DELL_POWERSCALE, this field represent Dell service VPC, e.g.
+     * projects/project-tp/global/networks/dell-tenant-vpc.
+     * For type= THIRD_PARTY_SERVICE, this field could represent a consumer VPC or
+     * any other producer VPC to which the VMware Engine Network needs to be
+     * connected, e.g. projects/project/global/networks/vpc.
+     * 
+ * + * + * string service_network = 16 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearServiceNetwork() { + serviceNetwork_ = getDefaultInstance().getServiceNetwork(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Service network to create private connection.
+     * Specify the name in the following form:
+     * `projects/{project}/global/networks/{network_id}`
+     * For type = PRIVATE_SERVICE_ACCESS, this field represents servicenetworking
+     * VPC, e.g. projects/project-tp/global/networks/servicenetworking.
+     * For type = NETAPP_CLOUD_VOLUME, this field represents NetApp service VPC,
+     * e.g. projects/project-tp/global/networks/netapp-tenant-vpc.
+     * For type = DELL_POWERSCALE, this field represent Dell service VPC, e.g.
+     * projects/project-tp/global/networks/dell-tenant-vpc.
+     * For type= THIRD_PARTY_SERVICE, this field could represent a consumer VPC or
+     * any other producer VPC to which the VMware Engine Network needs to be
+     * connected, e.g. projects/project/global/networks/vpc.
+     * 
+ * + * + * string service_network = 16 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for serviceNetwork to set. + * @return This builder for chaining. + */ + public Builder setServiceNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceNetwork_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private int peeringState_ = 0; + /** + * + * + *
+     * Output only. Peering state between service network and VMware Engine
+     * network.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.PeeringState peering_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for peeringState. + */ + @java.lang.Override + public int getPeeringStateValue() { + return peeringState_; + } + /** + * + * + *
+     * Output only. Peering state between service network and VMware Engine
+     * network.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.PeeringState peering_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for peeringState to set. + * @return This builder for chaining. + */ + public Builder setPeeringStateValue(int value) { + peeringState_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Peering state between service network and VMware Engine
+     * network.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.PeeringState peering_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The peeringState. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateConnection.PeeringState getPeeringState() { + com.google.cloud.vmwareengine.v1.PrivateConnection.PeeringState result = + com.google.cloud.vmwareengine.v1.PrivateConnection.PeeringState.forNumber(peeringState_); + return result == null + ? com.google.cloud.vmwareengine.v1.PrivateConnection.PeeringState.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. Peering state between service network and VMware Engine
+     * network.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.PeeringState peering_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The peeringState to set. + * @return This builder for chaining. + */ + public Builder setPeeringState( + com.google.cloud.vmwareengine.v1.PrivateConnection.PeeringState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; + peeringState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Peering state between service network and VMware Engine
+     * network.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.PeeringState peering_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearPeeringState() { + bitField0_ = (bitField0_ & ~0x00001000); + peeringState_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.PrivateConnection) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.PrivateConnection) + private static final com.google.cloud.vmwareengine.v1.PrivateConnection DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.PrivateConnection(); + } + + public static com.google.cloud.vmwareengine.v1.PrivateConnection getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateConnection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateConnection getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateConnectionName.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateConnectionName.java new file mode 100644 index 000000000000..b1e2a3bc3817 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateConnectionName.java @@ -0,0 +1,231 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class PrivateConnectionName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_PRIVATE_CONNECTION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/privateConnections/{private_connection}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String privateConnection; + + @Deprecated + protected PrivateConnectionName() { + project = null; + location = null; + privateConnection = null; + } + + private PrivateConnectionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + privateConnection = Preconditions.checkNotNull(builder.getPrivateConnection()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPrivateConnection() { + return privateConnection; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static PrivateConnectionName of( + String project, String location, String privateConnection) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPrivateConnection(privateConnection) + .build(); + } + + public static String format(String project, String location, String privateConnection) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPrivateConnection(privateConnection) + .build() + .toString(); + } + + public static PrivateConnectionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_PRIVATE_CONNECTION.validatedMatch( + formattedString, "PrivateConnectionName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), matchMap.get("location"), matchMap.get("private_connection")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (PrivateConnectionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_PRIVATE_CONNECTION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (privateConnection != null) { + fieldMapBuilder.put("private_connection", privateConnection); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_PRIVATE_CONNECTION.instantiate( + "project", project, "location", location, "private_connection", privateConnection); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + PrivateConnectionName that = ((PrivateConnectionName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.privateConnection, that.privateConnection); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(privateConnection); + return h; + } + + /** + * Builder for projects/{project}/locations/{location}/privateConnections/{private_connection}. + */ + public static class Builder { + private String project; + private String location; + private String privateConnection; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPrivateConnection() { + return privateConnection; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setPrivateConnection(String privateConnection) { + this.privateConnection = privateConnection; + return this; + } + + private Builder(PrivateConnectionName privateConnectionName) { + this.project = privateConnectionName.project; + this.location = privateConnectionName.location; + this.privateConnection = privateConnectionName.privateConnection; + } + + public PrivateConnectionName build() { + return new PrivateConnectionName(this); + } + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateConnectionOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateConnectionOrBuilder.java new file mode 100644 index 000000000000..35e623eef815 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateConnectionOrBuilder.java @@ -0,0 +1,458 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine_resources.proto + +package com.google.cloud.vmwareengine.v1; + +public interface PrivateConnectionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.PrivateConnection) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource name of the private connection.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1/privateConnections/my-connection`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The resource name of the private connection.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1/privateConnections/my-connection`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Creation time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Creation time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Creation time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Last update time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. Last update time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. Last update time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Optional. User-provided description for this private connection.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Optional. User-provided description for this private connection.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Output only. State of the private connection.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. State of the private connection.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.vmwareengine.v1.PrivateConnection.State getState(); + + /** + * + * + *
+   * Required. The relative resource name of Legacy VMware Engine network.
+   * Specify the name in the following form:
+   * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+   * where `{project}`, `{location}` will be same as specified in private
+   * connection resource name and `{vmware_engine_network_id}` will be in the
+   * form of `{location}`-default e.g.
+   * projects/project/locations/us-central1/vmwareEngineNetworks/us-central1-default.
+   * 
+ * + * + * string vmware_engine_network = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The vmwareEngineNetwork. + */ + java.lang.String getVmwareEngineNetwork(); + /** + * + * + *
+   * Required. The relative resource name of Legacy VMware Engine network.
+   * Specify the name in the following form:
+   * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+   * where `{project}`, `{location}` will be same as specified in private
+   * connection resource name and `{vmware_engine_network_id}` will be in the
+   * form of `{location}`-default e.g.
+   * projects/project/locations/us-central1/vmwareEngineNetworks/us-central1-default.
+   * 
+ * + * + * string vmware_engine_network = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for vmwareEngineNetwork. + */ + com.google.protobuf.ByteString getVmwareEngineNetworkBytes(); + + /** + * + * + *
+   * Output only. The canonical name of the VMware Engine network in the form:
+   * `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+   * 
+ * + * + * string vmware_engine_network_canonical = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The vmwareEngineNetworkCanonical. + */ + java.lang.String getVmwareEngineNetworkCanonical(); + /** + * + * + *
+   * Output only. The canonical name of the VMware Engine network in the form:
+   * `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+   * 
+ * + * + * string vmware_engine_network_canonical = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for vmwareEngineNetworkCanonical. + */ + com.google.protobuf.ByteString getVmwareEngineNetworkCanonicalBytes(); + + /** + * + * + *
+   * Required. Private connection type.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.Type type = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
+   * Required. Private connection type.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.Type type = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + com.google.cloud.vmwareengine.v1.PrivateConnection.Type getType(); + + /** + * + * + *
+   * Output only. VPC network peering id between given network VPC and
+   * VMwareEngineNetwork.
+   * 
+ * + * string peering_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The peeringId. + */ + java.lang.String getPeeringId(); + /** + * + * + *
+   * Output only. VPC network peering id between given network VPC and
+   * VMwareEngineNetwork.
+   * 
+ * + * string peering_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for peeringId. + */ + com.google.protobuf.ByteString getPeeringIdBytes(); + + /** + * + * + *
+   * Optional. Routing Mode.
+   * Default value is set to GLOBAL.
+   * For type = PRIVATE_SERVICE_ACCESS, this field can be set to GLOBAL or
+   * REGIONAL, for other types only GLOBAL is supported.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode routing_mode = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for routingMode. + */ + int getRoutingModeValue(); + /** + * + * + *
+   * Optional. Routing Mode.
+   * Default value is set to GLOBAL.
+   * For type = PRIVATE_SERVICE_ACCESS, this field can be set to GLOBAL or
+   * REGIONAL, for other types only GLOBAL is supported.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode routing_mode = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The routingMode. + */ + com.google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode getRoutingMode(); + + /** + * + * + *
+   * Output only. System-generated unique identifier for the resource.
+   * 
+ * + * string uid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + java.lang.String getUid(); + /** + * + * + *
+   * Output only. System-generated unique identifier for the resource.
+   * 
+ * + * string uid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
+   * Required. Service network to create private connection.
+   * Specify the name in the following form:
+   * `projects/{project}/global/networks/{network_id}`
+   * For type = PRIVATE_SERVICE_ACCESS, this field represents servicenetworking
+   * VPC, e.g. projects/project-tp/global/networks/servicenetworking.
+   * For type = NETAPP_CLOUD_VOLUME, this field represents NetApp service VPC,
+   * e.g. projects/project-tp/global/networks/netapp-tenant-vpc.
+   * For type = DELL_POWERSCALE, this field represent Dell service VPC, e.g.
+   * projects/project-tp/global/networks/dell-tenant-vpc.
+   * For type= THIRD_PARTY_SERVICE, this field could represent a consumer VPC or
+   * any other producer VPC to which the VMware Engine Network needs to be
+   * connected, e.g. projects/project/global/networks/vpc.
+   * 
+ * + * + * string service_network = 16 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The serviceNetwork. + */ + java.lang.String getServiceNetwork(); + /** + * + * + *
+   * Required. Service network to create private connection.
+   * Specify the name in the following form:
+   * `projects/{project}/global/networks/{network_id}`
+   * For type = PRIVATE_SERVICE_ACCESS, this field represents servicenetworking
+   * VPC, e.g. projects/project-tp/global/networks/servicenetworking.
+   * For type = NETAPP_CLOUD_VOLUME, this field represents NetApp service VPC,
+   * e.g. projects/project-tp/global/networks/netapp-tenant-vpc.
+   * For type = DELL_POWERSCALE, this field represent Dell service VPC, e.g.
+   * projects/project-tp/global/networks/dell-tenant-vpc.
+   * For type= THIRD_PARTY_SERVICE, this field could represent a consumer VPC or
+   * any other producer VPC to which the VMware Engine Network needs to be
+   * connected, e.g. projects/project/global/networks/vpc.
+   * 
+ * + * + * string service_network = 16 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for serviceNetwork. + */ + com.google.protobuf.ByteString getServiceNetworkBytes(); + + /** + * + * + *
+   * Output only. Peering state between service network and VMware Engine
+   * network.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.PeeringState peering_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for peeringState. + */ + int getPeeringStateValue(); + /** + * + * + *
+   * Output only. Peering state between service network and VMware Engine
+   * network.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection.PeeringState peering_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The peeringState. + */ + com.google.cloud.vmwareengine.v1.PrivateConnection.PeeringState getPeeringState(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Subnet.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Subnet.java index f764f70847ba..0ec183820f2c 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Subnet.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Subnet.java @@ -127,6 +127,27 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * DELETING = 4; */ DELETING(4), + /** + * + * + *
+     * Changes requested in the last operation are being propagated.
+     * 
+ * + * RECONCILING = 5; + */ + RECONCILING(5), + /** + * + * + *
+     * Last operation on the subnet did not succeed. Subnet's payload is
+     * reverted back to its most recent working state.
+     * 
+ * + * FAILED = 6; + */ + FAILED(6), UNRECOGNIZED(-1), ; @@ -180,6 +201,27 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * DELETING = 4; */ public static final int DELETING_VALUE = 4; + /** + * + * + *
+     * Changes requested in the last operation are being propagated.
+     * 
+ * + * RECONCILING = 5; + */ + public static final int RECONCILING_VALUE = 5; + /** + * + * + *
+     * Last operation on the subnet did not succeed. Subnet's payload is
+     * reverted back to its most recent working state.
+     * 
+ * + * FAILED = 6; + */ + public static final int FAILED_VALUE = 6; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -215,6 +257,10 @@ public static State forNumber(int value) { return UPDATING; case 4: return DELETING; + case 5: + return RECONCILING; + case 6: + return FAILED; default: return null; } diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/SubnetName.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/SubnetName.java new file mode 100644 index 000000000000..80cc271ea4db --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/SubnetName.java @@ -0,0 +1,260 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class SubnetName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_PRIVATE_CLOUD_SUBNET = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/privateClouds/{private_cloud}/subnets/{subnet}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String privateCloud; + private final String subnet; + + @Deprecated + protected SubnetName() { + project = null; + location = null; + privateCloud = null; + subnet = null; + } + + private SubnetName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + privateCloud = Preconditions.checkNotNull(builder.getPrivateCloud()); + subnet = Preconditions.checkNotNull(builder.getSubnet()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPrivateCloud() { + return privateCloud; + } + + public String getSubnet() { + return subnet; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static SubnetName of(String project, String location, String privateCloud, String subnet) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPrivateCloud(privateCloud) + .setSubnet(subnet) + .build(); + } + + public static String format(String project, String location, String privateCloud, String subnet) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPrivateCloud(privateCloud) + .setSubnet(subnet) + .build() + .toString(); + } + + public static SubnetName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_PRIVATE_CLOUD_SUBNET.validatedMatch( + formattedString, "SubnetName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("private_cloud"), + matchMap.get("subnet")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (SubnetName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_PRIVATE_CLOUD_SUBNET.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (privateCloud != null) { + fieldMapBuilder.put("private_cloud", privateCloud); + } + if (subnet != null) { + fieldMapBuilder.put("subnet", subnet); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_PRIVATE_CLOUD_SUBNET.instantiate( + "project", project, "location", location, "private_cloud", privateCloud, "subnet", subnet); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + SubnetName that = ((SubnetName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.privateCloud, that.privateCloud) + && Objects.equals(this.subnet, that.subnet); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(privateCloud); + h *= 1000003; + h ^= Objects.hashCode(subnet); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/privateClouds/{private_cloud}/subnets/{subnet}. + */ + public static class Builder { + private String project; + private String location; + private String privateCloud; + private String subnet; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPrivateCloud() { + return privateCloud; + } + + public String getSubnet() { + return subnet; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setPrivateCloud(String privateCloud) { + this.privateCloud = privateCloud; + return this; + } + + public Builder setSubnet(String subnet) { + this.subnet = subnet; + return this; + } + + private Builder(SubnetName subnetName) { + this.project = subnetName.project; + this.location = subnetName.location; + this.privateCloud = subnetName.privateCloud; + this.subnet = subnetName.subnet; + } + + public SubnetName build() { + return new SubnetName(this); + } + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdatePrivateConnectionRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdatePrivateConnectionRequest.java new file mode 100644 index 000000000000..5225e3542e4f --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdatePrivateConnectionRequest.java @@ -0,0 +1,1344 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for
+ * [VmwareEngine.UpdatePrivateConnection][google.cloud.vmwareengine.v1.VmwareEngine.UpdatePrivateConnection]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest} + */ +public final class UpdatePrivateConnectionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest) + UpdatePrivateConnectionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdatePrivateConnectionRequest.newBuilder() to construct. + private UpdatePrivateConnectionRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdatePrivateConnectionRequest() { + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdatePrivateConnectionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdatePrivateConnectionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdatePrivateConnectionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest.class, + com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest.Builder.class); + } + + public static final int PRIVATE_CONNECTION_FIELD_NUMBER = 1; + private com.google.cloud.vmwareengine.v1.PrivateConnection privateConnection_; + /** + * + * + *
+   * Required. Private connection description.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection private_connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the privateConnection field is set. + */ + @java.lang.Override + public boolean hasPrivateConnection() { + return privateConnection_ != null; + } + /** + * + * + *
+   * Required. Private connection description.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection private_connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The privateConnection. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateConnection getPrivateConnection() { + return privateConnection_ == null + ? com.google.cloud.vmwareengine.v1.PrivateConnection.getDefaultInstance() + : privateConnection_; + } + /** + * + * + *
+   * Required. Private connection description.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection private_connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateConnectionOrBuilder + getPrivateConnectionOrBuilder() { + return privateConnection_ == null + ? com.google.cloud.vmwareengine.v1.PrivateConnection.getDefaultInstance() + : privateConnection_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `PrivateConnection` resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `PrivateConnection` resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `PrivateConnection` resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (privateConnection_ != null) { + output.writeMessage(1, getPrivateConnection()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (privateConnection_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPrivateConnection()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest other = + (com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest) obj; + + if (hasPrivateConnection() != other.hasPrivateConnection()) return false; + if (hasPrivateConnection()) { + if (!getPrivateConnection().equals(other.getPrivateConnection())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPrivateConnection()) { + hash = (37 * hash) + PRIVATE_CONNECTION_FIELD_NUMBER; + hash = (53 * hash) + getPrivateConnection().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for
+   * [VmwareEngine.UpdatePrivateConnection][google.cloud.vmwareengine.v1.VmwareEngine.UpdatePrivateConnection]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest) + com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdatePrivateConnectionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdatePrivateConnectionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest.class, + com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + privateConnection_ = null; + if (privateConnectionBuilder_ != null) { + privateConnectionBuilder_.dispose(); + privateConnectionBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdatePrivateConnectionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest build() { + com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest buildPartial() { + com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest result = + new com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.privateConnection_ = + privateConnectionBuilder_ == null + ? privateConnection_ + : privateConnectionBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest.getDefaultInstance()) + return this; + if (other.hasPrivateConnection()) { + mergePrivateConnection(other.getPrivateConnection()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getPrivateConnectionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.vmwareengine.v1.PrivateConnection privateConnection_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.PrivateConnection, + com.google.cloud.vmwareengine.v1.PrivateConnection.Builder, + com.google.cloud.vmwareengine.v1.PrivateConnectionOrBuilder> + privateConnectionBuilder_; + /** + * + * + *
+     * Required. Private connection description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection private_connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the privateConnection field is set. + */ + public boolean hasPrivateConnection() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Private connection description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection private_connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The privateConnection. + */ + public com.google.cloud.vmwareengine.v1.PrivateConnection getPrivateConnection() { + if (privateConnectionBuilder_ == null) { + return privateConnection_ == null + ? com.google.cloud.vmwareengine.v1.PrivateConnection.getDefaultInstance() + : privateConnection_; + } else { + return privateConnectionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Private connection description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection private_connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPrivateConnection(com.google.cloud.vmwareengine.v1.PrivateConnection value) { + if (privateConnectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + privateConnection_ = value; + } else { + privateConnectionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Private connection description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection private_connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPrivateConnection( + com.google.cloud.vmwareengine.v1.PrivateConnection.Builder builderForValue) { + if (privateConnectionBuilder_ == null) { + privateConnection_ = builderForValue.build(); + } else { + privateConnectionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Private connection description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection private_connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePrivateConnection( + com.google.cloud.vmwareengine.v1.PrivateConnection value) { + if (privateConnectionBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && privateConnection_ != null + && privateConnection_ + != com.google.cloud.vmwareengine.v1.PrivateConnection.getDefaultInstance()) { + getPrivateConnectionBuilder().mergeFrom(value); + } else { + privateConnection_ = value; + } + } else { + privateConnectionBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Private connection description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection private_connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPrivateConnection() { + bitField0_ = (bitField0_ & ~0x00000001); + privateConnection_ = null; + if (privateConnectionBuilder_ != null) { + privateConnectionBuilder_.dispose(); + privateConnectionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Private connection description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection private_connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.PrivateConnection.Builder + getPrivateConnectionBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPrivateConnectionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Private connection description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection private_connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.PrivateConnectionOrBuilder + getPrivateConnectionOrBuilder() { + if (privateConnectionBuilder_ != null) { + return privateConnectionBuilder_.getMessageOrBuilder(); + } else { + return privateConnection_ == null + ? com.google.cloud.vmwareengine.v1.PrivateConnection.getDefaultInstance() + : privateConnection_; + } + } + /** + * + * + *
+     * Required. Private connection description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection private_connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.PrivateConnection, + com.google.cloud.vmwareengine.v1.PrivateConnection.Builder, + com.google.cloud.vmwareengine.v1.PrivateConnectionOrBuilder> + getPrivateConnectionFieldBuilder() { + if (privateConnectionBuilder_ == null) { + privateConnectionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.PrivateConnection, + com.google.cloud.vmwareengine.v1.PrivateConnection.Builder, + com.google.cloud.vmwareengine.v1.PrivateConnectionOrBuilder>( + getPrivateConnection(), getParentForChildren(), isClean()); + privateConnection_ = null; + } + return privateConnectionBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `PrivateConnection` resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `PrivateConnection` resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `PrivateConnection` resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `PrivateConnection` resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `PrivateConnection` resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `PrivateConnection` resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `PrivateConnection` resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `PrivateConnection` resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `PrivateConnection` resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest) + private static final com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest(); + } + + public static com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdatePrivateConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdatePrivateConnectionRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdatePrivateConnectionRequestOrBuilder.java new file mode 100644 index 000000000000..70f1385a93db --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdatePrivateConnectionRequestOrBuilder.java @@ -0,0 +1,167 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface UpdatePrivateConnectionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Private connection description.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection private_connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the privateConnection field is set. + */ + boolean hasPrivateConnection(); + /** + * + * + *
+   * Required. Private connection description.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection private_connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The privateConnection. + */ + com.google.cloud.vmwareengine.v1.PrivateConnection getPrivateConnection(); + /** + * + * + *
+   * Required. Private connection description.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateConnection private_connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmwareengine.v1.PrivateConnectionOrBuilder getPrivateConnectionOrBuilder(); + + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `PrivateConnection` resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `PrivateConnection` resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `PrivateConnection` resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateSubnetRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateSubnetRequest.java new file mode 100644 index 000000000000..fe8a578388a1 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateSubnetRequest.java @@ -0,0 +1,1047 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for
+ * [VmwareEngine.UpdateSubnet][google.cloud.vmwareengine.v1.VmwareEngine.UpdateSubnet]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.UpdateSubnetRequest} + */ +public final class UpdateSubnetRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.UpdateSubnetRequest) + UpdateSubnetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateSubnetRequest.newBuilder() to construct. + private UpdateSubnetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateSubnetRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateSubnetRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateSubnetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateSubnetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.UpdateSubnetRequest.class, + com.google.cloud.vmwareengine.v1.UpdateSubnetRequest.Builder.class); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `Subnet` resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `Subnet` resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `Subnet` resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int SUBNET_FIELD_NUMBER = 2; + private com.google.cloud.vmwareengine.v1.Subnet subnet_; + /** + * + * + *
+   * Required. Subnet description.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Subnet subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the subnet field is set. + */ + @java.lang.Override + public boolean hasSubnet() { + return subnet_ != null; + } + /** + * + * + *
+   * Required. Subnet description.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Subnet subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The subnet. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Subnet getSubnet() { + return subnet_ == null ? com.google.cloud.vmwareengine.v1.Subnet.getDefaultInstance() : subnet_; + } + /** + * + * + *
+   * Required. Subnet description.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Subnet subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.SubnetOrBuilder getSubnetOrBuilder() { + return subnet_ == null ? com.google.cloud.vmwareengine.v1.Subnet.getDefaultInstance() : subnet_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (updateMask_ != null) { + output.writeMessage(1, getUpdateMask()); + } + if (subnet_ != null) { + output.writeMessage(2, getSubnet()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (subnet_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSubnet()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.UpdateSubnetRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.UpdateSubnetRequest other = + (com.google.cloud.vmwareengine.v1.UpdateSubnetRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasSubnet() != other.hasSubnet()) return false; + if (hasSubnet()) { + if (!getSubnet().equals(other.getSubnet())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasSubnet()) { + hash = (37 * hash) + SUBNET_FIELD_NUMBER; + hash = (53 * hash) + getSubnet().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.UpdateSubnetRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdateSubnetRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.UpdateSubnetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdateSubnetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.UpdateSubnetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdateSubnetRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.UpdateSubnetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.UpdateSubnetRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.UpdateSubnetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.UpdateSubnetRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.UpdateSubnetRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.UpdateSubnetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.vmwareengine.v1.UpdateSubnetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for
+   * [VmwareEngine.UpdateSubnet][google.cloud.vmwareengine.v1.VmwareEngine.UpdateSubnet]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.UpdateSubnetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.UpdateSubnetRequest) + com.google.cloud.vmwareengine.v1.UpdateSubnetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateSubnetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateSubnetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.UpdateSubnetRequest.class, + com.google.cloud.vmwareengine.v1.UpdateSubnetRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.UpdateSubnetRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + subnet_ = null; + if (subnetBuilder_ != null) { + subnetBuilder_.dispose(); + subnetBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateSubnetRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdateSubnetRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.UpdateSubnetRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdateSubnetRequest build() { + com.google.cloud.vmwareengine.v1.UpdateSubnetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdateSubnetRequest buildPartial() { + com.google.cloud.vmwareengine.v1.UpdateSubnetRequest result = + new com.google.cloud.vmwareengine.v1.UpdateSubnetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmwareengine.v1.UpdateSubnetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.subnet_ = subnetBuilder_ == null ? subnet_ : subnetBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.UpdateSubnetRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.UpdateSubnetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.UpdateSubnetRequest other) { + if (other == com.google.cloud.vmwareengine.v1.UpdateSubnetRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasSubnet()) { + mergeSubnet(other.getSubnet()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getSubnetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `Subnet` resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `Subnet` resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `Subnet` resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `Subnet` resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `Subnet` resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `Subnet` resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `Subnet` resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `Subnet` resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `Subnet` resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.vmwareengine.v1.Subnet subnet_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Subnet, + com.google.cloud.vmwareengine.v1.Subnet.Builder, + com.google.cloud.vmwareengine.v1.SubnetOrBuilder> + subnetBuilder_; + /** + * + * + *
+     * Required. Subnet description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Subnet subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the subnet field is set. + */ + public boolean hasSubnet() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. Subnet description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Subnet subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The subnet. + */ + public com.google.cloud.vmwareengine.v1.Subnet getSubnet() { + if (subnetBuilder_ == null) { + return subnet_ == null + ? com.google.cloud.vmwareengine.v1.Subnet.getDefaultInstance() + : subnet_; + } else { + return subnetBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Subnet description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Subnet subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSubnet(com.google.cloud.vmwareengine.v1.Subnet value) { + if (subnetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + subnet_ = value; + } else { + subnetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Subnet description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Subnet subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSubnet(com.google.cloud.vmwareengine.v1.Subnet.Builder builderForValue) { + if (subnetBuilder_ == null) { + subnet_ = builderForValue.build(); + } else { + subnetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Subnet description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Subnet subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSubnet(com.google.cloud.vmwareengine.v1.Subnet value) { + if (subnetBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && subnet_ != null + && subnet_ != com.google.cloud.vmwareengine.v1.Subnet.getDefaultInstance()) { + getSubnetBuilder().mergeFrom(value); + } else { + subnet_ = value; + } + } else { + subnetBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Subnet description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Subnet subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSubnet() { + bitField0_ = (bitField0_ & ~0x00000002); + subnet_ = null; + if (subnetBuilder_ != null) { + subnetBuilder_.dispose(); + subnetBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Subnet description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Subnet subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.Subnet.Builder getSubnetBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSubnetFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Subnet description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Subnet subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.SubnetOrBuilder getSubnetOrBuilder() { + if (subnetBuilder_ != null) { + return subnetBuilder_.getMessageOrBuilder(); + } else { + return subnet_ == null + ? com.google.cloud.vmwareengine.v1.Subnet.getDefaultInstance() + : subnet_; + } + } + /** + * + * + *
+     * Required. Subnet description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Subnet subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Subnet, + com.google.cloud.vmwareengine.v1.Subnet.Builder, + com.google.cloud.vmwareengine.v1.SubnetOrBuilder> + getSubnetFieldBuilder() { + if (subnetBuilder_ == null) { + subnetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Subnet, + com.google.cloud.vmwareengine.v1.Subnet.Builder, + com.google.cloud.vmwareengine.v1.SubnetOrBuilder>( + getSubnet(), getParentForChildren(), isClean()); + subnet_ = null; + } + return subnetBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.UpdateSubnetRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.UpdateSubnetRequest) + private static final com.google.cloud.vmwareengine.v1.UpdateSubnetRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.UpdateSubnetRequest(); + } + + public static com.google.cloud.vmwareengine.v1.UpdateSubnetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSubnetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdateSubnetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateSubnetRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateSubnetRequestOrBuilder.java new file mode 100644 index 000000000000..109b0276f33c --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateSubnetRequestOrBuilder.java @@ -0,0 +1,116 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface UpdateSubnetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.UpdateSubnetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `Subnet` resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `Subnet` resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `Subnet` resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Required. Subnet description.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Subnet subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the subnet field is set. + */ + boolean hasSubnet(); + /** + * + * + *
+   * Required. Subnet description.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Subnet subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The subnet. + */ + com.google.cloud.vmwareengine.v1.Subnet getSubnet(); + /** + * + * + *
+   * Required. Subnet description.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Subnet subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmwareengine.v1.SubnetOrBuilder getSubnetOrBuilder(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareengineProto.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareengineProto.java index f0dd15c225a3..04723910ffbe 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareengineProto.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareengineProto.java @@ -87,6 +87,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vmwareengine_v1_ListSubnetsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vmwareengine_v1_ListSubnetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_GetSubnetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_GetSubnetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_UpdateSubnetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_UpdateSubnetRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vmwareengine_v1_OperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -183,6 +191,38 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vmwareengine_v1_ListVmwareEngineNetworksResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vmwareengine_v1_ListVmwareEngineNetworksResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_CreatePrivateConnectionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_CreatePrivateConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_GetPrivateConnectionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_GetPrivateConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_UpdatePrivateConnectionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_UpdatePrivateConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_DeletePrivateConnectionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_DeletePrivateConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionPeeringRoutesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionPeeringRoutesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionPeeringRoutesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionPeeringRoutesResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -199,350 +239,439 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "r.proto\032\031google/api/resource.proto\0329goog" + "le/cloud/vmwareengine/v1/vmwareengine_re" + "sources.proto\032#google/longrunning/operat" - + "ions.proto\032 google/protobuf/field_mask.p" - + "roto\032\037google/protobuf/timestamp.proto\"\237\001" - + "\n\030ListPrivateCloudsRequest\022:\n\006parent\030\001 \001" - + "(\tB*\342A\001\002\372A#\n!locations.googleapis.com/Lo" - + "cation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030" - + "\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"" - + "\215\001\n\031ListPrivateCloudsResponse\022B\n\016private" - + "_clouds\030\001 \003(\0132*.google.cloud.vmwareengin" - + "e.v1.PrivateCloud\022\027\n\017next_page_token\030\002 \001" - + "(\t\022\023\n\013unreachable\030\003 \003(\t\"Y\n\026GetPrivateClo" - + "udRequest\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(vmware" - + "engine.googleapis.com/PrivateCloud\"\367\001\n\031C" - + "reatePrivateCloudRequest\022:\n\006parent\030\001 \001(\t" - + "B*\342A\001\002\372A#\n!locations.googleapis.com/Loca" - + "tion\022\036\n\020private_cloud_id\030\002 \001(\tB\004\342A\001\002\022G\n\r" - + "private_cloud\030\003 \001(\0132*.google.cloud.vmwar" - + "eengine.v1.PrivateCloudB\004\342A\001\002\022\030\n\nrequest" - + "_id\030\004 \001(\tB\004\342A\001\001\022\033\n\rvalidate_only\030\005 \001(\010B\004" - + "\342A\001\001\"\265\001\n\031UpdatePrivateCloudRequest\022G\n\rpr" - + "ivate_cloud\030\001 \001(\0132*.google.cloud.vmwaree" - + "ngine.v1.PrivateCloudB\004\342A\001\002\0225\n\013update_ma" - + "sk\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A" - + "\001\002\022\030\n\nrequest_id\030\003 \001(\tB\004\342A\001\001\"\273\001\n\031DeleteP" - + "rivateCloudRequest\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A" - + "*\n(vmwareengine.googleapis.com/PrivateCl" - + "oud\022\030\n\nrequest_id\030\002 \001(\tB\004\342A\001\001\022\023\n\005force\030\003" - + " \001(\010B\004\342A\001\001\022\036\n\013delay_hours\030\004 \001(\005B\004\342A\001\001H\000\210" - + "\001\001B\016\n\014_delay_hours\"x\n\033UndeletePrivateClo" - + "udRequest\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(vmware" - + "engine.googleapis.com/PrivateCloud\022\030\n\nre" - + "quest_id\030\002 \001(\tB\004\342A\001\001\"\241\001\n\023ListClustersReq" - + "uest\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(vmwareeng" - + "ine.googleapis.com/PrivateCloud\022\021\n\tpage_" - + "size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter" - + "\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"}\n\024ListClusters" - + "Response\0227\n\010clusters\030\001 \003(\0132%.google.clou" - + "d.vmwareengine.v1.Cluster\022\027\n\017next_page_t" - + "oken\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"O\n\021GetCl" - + "usterRequest\022:\n\004name\030\001 \001(\tB,\342A\001\002\372A%\n#vmw" - + "areengine.googleapis.com/Cluster\"\350\001\n\024Cre" - + "ateClusterRequest\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372" - + "A*\n(vmwareengine.googleapis.com/PrivateC" - + "loud\022\030\n\ncluster_id\030\002 \001(\tB\004\342A\001\002\022<\n\007cluste" - + "r\030\003 \001(\0132%.google.cloud.vmwareengine.v1.C" - + "lusterB\004\342A\001\002\022\030\n\nrequest_id\030\004 \001(\tB\004\342A\001\001\022\033" - + "\n\rvalidate_only\030\005 \001(\010B\004\342A\001\001\"\302\001\n\024UpdateCl" - + "usterRequest\0225\n\013update_mask\030\001 \001(\0132\032.goog" - + "le.protobuf.FieldMaskB\004\342A\001\002\022<\n\007cluster\030\002" - + " \001(\0132%.google.cloud.vmwareengine.v1.Clus" - + "terB\004\342A\001\002\022\030\n\nrequest_id\030\003 \001(\tB\004\342A\001\001\022\033\n\rv" - + "alidate_only\030\004 \001(\010B\004\342A\001\001\"l\n\024DeleteCluste" - + "rRequest\022:\n\004name\030\001 \001(\tB,\342A\001\002\372A%\n#vmwaree" - + "ngine.googleapis.com/Cluster\022\030\n\nrequest_" - + "id\030\002 \001(\tB\004\342A\001\001\"~\n\022ListSubnetsRequest\022A\n\006" - + "parent\030\001 \001(\tB1\342A\001\002\372A*\n(vmwareengine.goog" - + "leapis.com/PrivateCloud\022\021\n\tpage_size\030\002 \001" - + "(\005\022\022\n\npage_token\030\003 \001(\t\"e\n\023ListSubnetsRes" - + "ponse\0225\n\007subnets\030\001 \003(\0132$.google.cloud.vm" - + "wareengine.v1.Subnet\022\027\n\017next_page_token\030" - + "\002 \001(\t\"\207\002\n\021OperationMetadata\0225\n\013create_ti" - + "me\030\001 \001(\0132\032.google.protobuf.TimestampB\004\342A" - + "\001\003\0222\n\010end_time\030\002 \001(\0132\032.google.protobuf.T" - + "imestampB\004\342A\001\003\022\024\n\006target\030\003 \001(\tB\004\342A\001\003\022\022\n\004" - + "verb\030\004 \001(\tB\004\342A\001\003\022\034\n\016status_message\030\005 \001(\t" - + "B\004\342A\001\003\022$\n\026requested_cancellation\030\006 \001(\010B\004" - + "\342A\001\003\022\031\n\013api_version\030\007 \001(\tB\004\342A\001\003\"\211\001\n\024List" - + "NodeTypesRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A" - + "#\n!locations.googleapis.com/Location\022\021\n\t" - + "page_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006f" - + "ilter\030\004 \001(\t\"\201\001\n\025ListNodeTypesResponse\022:\n" - + "\nnode_types\030\001 \003(\0132&.google.cloud.vmwaree" - + "ngine.v1.NodeType\022\027\n\017next_page_token\030\002 \001" - + "(\t\022\023\n\013unreachable\030\003 \003(\t\"Q\n\022GetNodeTypeRe" - + "quest\022;\n\004name\030\001 \001(\tB-\342A\001\002\372A&\n$vmwareengi" - + "ne.googleapis.com/NodeType\"e\n\031ShowNsxCre" + + "ions.proto\032\033google/protobuf/empty.proto\032" + + " google/protobuf/field_mask.proto\032\037googl" + + "e/protobuf/timestamp.proto\"\237\001\n\030ListPriva" + + "teCloudsRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#" + + "\n!locations.googleapis.com/Location\022\021\n\tp" + + "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006fi" + + "lter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\215\001\n\031ListPri" + + "vateCloudsResponse\022B\n\016private_clouds\030\001 \003" + + "(\0132*.google.cloud.vmwareengine.v1.Privat" + + "eCloud\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" + + "chable\030\003 \003(\t\"Y\n\026GetPrivateCloudRequest\022?" + + "\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(vmwareengine.goog" + + "leapis.com/PrivateCloud\"\367\001\n\031CreatePrivat" + + "eCloudRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!" + + "locations.googleapis.com/Location\022\036\n\020pri" + + "vate_cloud_id\030\002 \001(\tB\004\342A\001\002\022G\n\rprivate_clo" + + "ud\030\003 \001(\0132*.google.cloud.vmwareengine.v1." + + "PrivateCloudB\004\342A\001\002\022\030\n\nrequest_id\030\004 \001(\tB\004" + + "\342A\001\001\022\033\n\rvalidate_only\030\005 \001(\010B\004\342A\001\001\"\265\001\n\031Up" + + "datePrivateCloudRequest\022G\n\rprivate_cloud" + + "\030\001 \001(\0132*.google.cloud.vmwareengine.v1.Pr" + + "ivateCloudB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032." + + "google.protobuf.FieldMaskB\004\342A\001\002\022\030\n\nreque" + + "st_id\030\003 \001(\tB\004\342A\001\001\"\273\001\n\031DeletePrivateCloud" + + "Request\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(vmwareen" + + "gine.googleapis.com/PrivateCloud\022\030\n\nrequ" + + "est_id\030\002 \001(\tB\004\342A\001\001\022\023\n\005force\030\003 \001(\010B\004\342A\001\001\022" + + "\036\n\013delay_hours\030\004 \001(\005B\004\342A\001\001H\000\210\001\001B\016\n\014_dela" + + "y_hours\"x\n\033UndeletePrivateCloudRequest\022?" + + "\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(vmwareengine.goog" + + "leapis.com/PrivateCloud\022\030\n\nrequest_id\030\002 " + + "\001(\tB\004\342A\001\001\"\241\001\n\023ListClustersRequest\022A\n\006par" + + "ent\030\001 \001(\tB1\342A\001\002\372A*\n(vmwareengine.googlea" + + "pis.com/PrivateCloud\022\021\n\tpage_size\030\002 \001(\005\022" + + "\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010o" + + "rder_by\030\005 \001(\t\"}\n\024ListClustersResponse\0227\n" + + "\010clusters\030\001 \003(\0132%.google.cloud.vmwareeng" + + "ine.v1.Cluster\022\027\n\017next_page_token\030\002 \001(\t\022" + + "\023\n\013unreachable\030\003 \003(\t\"O\n\021GetClusterReques" + + "t\022:\n\004name\030\001 \001(\tB,\342A\001\002\372A%\n#vmwareengine.g" + + "oogleapis.com/Cluster\"\350\001\n\024CreateClusterR" + + "equest\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(vmwaree" + + "ngine.googleapis.com/PrivateCloud\022\030\n\nclu" + + "ster_id\030\002 \001(\tB\004\342A\001\002\022<\n\007cluster\030\003 \001(\0132%.g" + + "oogle.cloud.vmwareengine.v1.ClusterB\004\342A\001" + + "\002\022\030\n\nrequest_id\030\004 \001(\tB\004\342A\001\001\022\033\n\rvalidate_" + + "only\030\005 \001(\010B\004\342A\001\001\"\302\001\n\024UpdateClusterReques" + + "t\0225\n\013update_mask\030\001 \001(\0132\032.google.protobuf" + + ".FieldMaskB\004\342A\001\002\022<\n\007cluster\030\002 \001(\0132%.goog" + + "le.cloud.vmwareengine.v1.ClusterB\004\342A\001\002\022\030" + + "\n\nrequest_id\030\003 \001(\tB\004\342A\001\001\022\033\n\rvalidate_onl" + + "y\030\004 \001(\010B\004\342A\001\001\"l\n\024DeleteClusterRequest\022:\n" + + "\004name\030\001 \001(\tB,\342A\001\002\372A%\n#vmwareengine.googl" + + "eapis.com/Cluster\022\030\n\nrequest_id\030\002 \001(\tB\004\342" + + "A\001\001\"~\n\022ListSubnetsRequest\022A\n\006parent\030\001 \001(" + + "\tB1\342A\001\002\372A*\n(vmwareengine.googleapis.com/" + + "PrivateCloud\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" + + "token\030\003 \001(\t\"z\n\023ListSubnetsResponse\0225\n\007su" + + "bnets\030\001 \003(\0132$.google.cloud.vmwareengine." + + "v1.Subnet\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013un" + + "reachable\030\003 \003(\t\"M\n\020GetSubnetRequest\0229\n\004n" + + "ame\030\001 \001(\tB+\342A\001\002\372A$\n\"vmwareengine.googlea" + + "pis.com/Subnet\"\210\001\n\023UpdateSubnetRequest\0225" + + "\n\013update_mask\030\001 \001(\0132\032.google.protobuf.Fi" + + "eldMaskB\004\342A\001\002\022:\n\006subnet\030\002 \001(\0132$.google.c" + + "loud.vmwareengine.v1.SubnetB\004\342A\001\002\"\207\002\n\021Op" + + "erationMetadata\0225\n\013create_time\030\001 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\004\342A\001\003\0222\n\010end_ti" + + "me\030\002 \001(\0132\032.google.protobuf.TimestampB\004\342A" + + "\001\003\022\024\n\006target\030\003 \001(\tB\004\342A\001\003\022\022\n\004verb\030\004 \001(\tB\004" + + "\342A\001\003\022\034\n\016status_message\030\005 \001(\tB\004\342A\001\003\022$\n\026re" + + "quested_cancellation\030\006 \001(\010B\004\342A\001\003\022\031\n\013api_" + + "version\030\007 \001(\tB\004\342A\001\003\"\211\001\n\024ListNodeTypesReq" + + "uest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations" + + ".googleapis.com/Location\022\021\n\tpage_size\030\002 " + + "\001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"" + + "\201\001\n\025ListNodeTypesResponse\022:\n\nnode_types\030" + + "\001 \003(\0132&.google.cloud.vmwareengine.v1.Nod" + + "eType\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreac" + + "hable\030\003 \003(\t\"Q\n\022GetNodeTypeRequest\022;\n\004nam" + + "e\030\001 \001(\tB-\342A\001\002\372A&\n$vmwareengine.googleapi" + + "s.com/NodeType\"e\n\031ShowNsxCredentialsRequ" + + "est\022H\n\rprivate_cloud\030\001 \001(\tB1\342A\001\002\372A*\n(vmw" + + "areengine.googleapis.com/PrivateCloud\"i\n" + + "\035ShowVcenterCredentialsRequest\022H\n\rprivat" + + "e_cloud\030\001 \001(\tB1\342A\001\002\372A*\n(vmwareengine.goo" + + "gleapis.com/PrivateCloud\"\200\001\n\032ResetNsxCre" + "dentialsRequest\022H\n\rprivate_cloud\030\001 \001(\tB1" + "\342A\001\002\372A*\n(vmwareengine.googleapis.com/Pri" - + "vateCloud\"i\n\035ShowVcenterCredentialsReque" - + "st\022H\n\rprivate_cloud\030\001 \001(\tB1\342A\001\002\372A*\n(vmwa" - + "reengine.googleapis.com/PrivateCloud\"\200\001\n" - + "\032ResetNsxCredentialsRequest\022H\n\rprivate_c" - + "loud\030\001 \001(\tB1\342A\001\002\372A*\n(vmwareengine.google" - + "apis.com/PrivateCloud\022\030\n\nrequest_id\030\002 \001(" - + "\tB\004\342A\001\001\"\204\001\n\036ResetVcenterCredentialsReque" - + "st\022H\n\rprivate_cloud\030\001 \001(\tB1\342A\001\002\372A*\n(vmwa" - + "reengine.googleapis.com/PrivateCloud\022\030\n\n" - + "request_id\030\002 \001(\tB\004\342A\001\001\"\232\001\n\035ListHcxActiva" - + "tionKeysResponse\022K\n\023hcx_activation_keys\030" - + "\001 \003(\0132..google.cloud.vmwareengine.v1.Hcx" - + "ActivationKey\022\027\n\017next_page_token\030\002 \001(\t\022\023" - + "\n\013unreachable\030\003 \003(\t\"\210\001\n\034ListHcxActivatio" - + "nKeysRequest\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(v" - + "mwareengine.googleapis.com/PrivateCloud\022" - + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"a" - + "\n\032GetHcxActivationKeyRequest\022C\n\004name\030\001 \001" - + "(\tB5\342A\001\002\372A.\n,vmwareengine.googleapis.com" - + "/HcxActivationKey\"\355\001\n\035CreateHcxActivatio" - + "nKeyRequest\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(vm" - + "wareengine.googleapis.com/PrivateCloud\022P" - + "\n\022hcx_activation_key\030\002 \001(\0132..google.clou" - + "d.vmwareengine.v1.HcxActivationKeyB\004\342A\001\002" - + "\022#\n\025hcx_activation_key_id\030\003 \001(\tB\004\342A\001\002\022\022\n" - + "\nrequest_id\030\004 \001(\t\"\251\001\n\032ListNetworkPolicie" - + "sRequest\022B\n\006parent\030\001 \001(\tB2\342A\001\002\372A+\022)vmwar" - + "eengine.googleapis.com/NetworkPolicy\022\021\n\t" - + "page_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006f" - + "ilter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\222\001\n\033ListNe" - + "tworkPoliciesResponse\022E\n\020network_policie" - + "s\030\001 \003(\0132+.google.cloud.vmwareengine.v1.N" - + "etworkPolicy\022\027\n\017next_page_token\030\002 \001(\t\022\023\n" - + "\013unreachable\030\003 \003(\t\"[\n\027GetNetworkPolicyRe" - + "quest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n)vmwareengi" - + "ne.googleapis.com/NetworkPolicy\"\270\001\n\032Upda" - + "teNetworkPolicyRequest\022I\n\016network_policy" - + "\030\001 \001(\0132+.google.cloud.vmwareengine.v1.Ne" - + "tworkPolicyB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032" - + ".google.protobuf.FieldMaskB\004\342A\001\002\022\030\n\nrequ" - + "est_id\030\003 \001(\tB\004\342A\001\001\"\346\001\n\032CreateNetworkPoli" - + "cyRequest\022B\n\006parent\030\001 \001(\tB2\342A\001\002\372A+\022)vmwa" - + "reengine.googleapis.com/NetworkPolicy\022\037\n" - + "\021network_policy_id\030\002 \001(\tB\004\342A\001\002\022I\n\016networ" - + "k_policy\030\003 \001(\0132+.google.cloud.vmwareengi" - + "ne.v1.NetworkPolicyB\004\342A\001\002\022\030\n\nrequest_id\030" - + "\004 \001(\tB\004\342A\001\001\"x\n\032DeleteNetworkPolicyReques" - + "t\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n)vmwareengine.g" - + "oogleapis.com/NetworkPolicy\022\030\n\nrequest_i" - + "d\030\002 \001(\tB\004\342A\001\001\"\206\002\n CreateVmwareEngineNetw" - + "orkRequest\022H\n\006parent\030\001 \001(\tB8\342A\001\002\372A1\022/vmw" - + "areengine.googleapis.com/VmwareEngineNet" - + "work\022&\n\030vmware_engine_network_id\030\002 \001(\tB\004" - + "\342A\001\002\022V\n\025vmware_engine_network\030\003 \001(\01321.go" - + "ogle.cloud.vmwareengine.v1.VmwareEngineN" - + "etworkB\004\342A\001\002\022\030\n\nrequest_id\030\004 \001(\tB\004\342A\001\001\"\313" - + "\001\n UpdateVmwareEngineNetworkRequest\022V\n\025v" - + "mware_engine_network\030\001 \001(\01321.google.clou" - + "d.vmwareengine.v1.VmwareEngineNetworkB\004\342" - + "A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.protob" - + "uf.FieldMaskB\004\342A\001\002\022\030\n\nrequest_id\030\003 \001(\tB\004" - + "\342A\001\001\"\230\001\n DeleteVmwareEngineNetworkReques" - + "t\022F\n\004name\030\001 \001(\tB8\342A\001\002\372A1\n/vmwareengine.g" - + "oogleapis.com/VmwareEngineNetwork\022\030\n\nreq" - + "uest_id\030\002 \001(\tB\004\342A\001\001\022\022\n\004etag\030\003 \001(\tB\004\342A\001\001\"" - + "g\n\035GetVmwareEngineNetworkRequest\022F\n\004name" - + "\030\001 \001(\tB8\342A\001\002\372A1\n/vmwareengine.googleapis" - + ".com/VmwareEngineNetwork\"\246\001\n\037ListVmwareE" - + "ngineNetworksRequest\022:\n\006parent\030\001 \001(\tB*\342A" - + "\001\002\372A#\n!locations.googleapis.com/Location" - + "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022" - + "\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\243\001\n Li" - + "stVmwareEngineNetworksResponse\022Q\n\026vmware" - + "_engine_networks\030\001 \003(\01321.google.cloud.vm" - + "wareengine.v1.VmwareEngineNetwork\022\027\n\017nex" - + "t_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t2" - + "\2269\n\014VmwareEngine\022\310\001\n\021ListPrivateClouds\0226" - + ".google.cloud.vmwareengine.v1.ListPrivat" - + "eCloudsRequest\0327.google.cloud.vmwareengi" - + "ne.v1.ListPrivateCloudsResponse\"B\332A\006pare" - + "nt\202\323\344\223\0023\0221/v1/{parent=projects/*/locatio" - + "ns/*}/privateClouds\022\265\001\n\017GetPrivateCloud\022" - + "4.google.cloud.vmwareengine.v1.GetPrivat" - + "eCloudRequest\032*.google.cloud.vmwareengin" - + "e.v1.PrivateCloud\"@\332A\004name\202\323\344\223\0023\0221/v1/{n" + + "vateCloud\022\030\n\nrequest_id\030\002 \001(\tB\004\342A\001\001\"\204\001\n\036" + + "ResetVcenterCredentialsRequest\022H\n\rprivat" + + "e_cloud\030\001 \001(\tB1\342A\001\002\372A*\n(vmwareengine.goo" + + "gleapis.com/PrivateCloud\022\030\n\nrequest_id\030\002" + + " \001(\tB\004\342A\001\001\"\232\001\n\035ListHcxActivationKeysResp" + + "onse\022K\n\023hcx_activation_keys\030\001 \003(\0132..goog" + + "le.cloud.vmwareengine.v1.HcxActivationKe" + + "y\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachabl" + + "e\030\003 \003(\t\"\210\001\n\034ListHcxActivationKeysRequest" + + "\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(vmwareengine." + + "googleapis.com/PrivateCloud\022\021\n\tpage_size" + + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"a\n\032GetHcxActi" + + "vationKeyRequest\022C\n\004name\030\001 \001(\tB5\342A\001\002\372A.\n" + + ",vmwareengine.googleapis.com/HcxActivati" + + "onKey\"\355\001\n\035CreateHcxActivationKeyRequest\022" + + "A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(vmwareengine.g" + + "oogleapis.com/PrivateCloud\022P\n\022hcx_activa" + + "tion_key\030\002 \001(\0132..google.cloud.vmwareengi" + + "ne.v1.HcxActivationKeyB\004\342A\001\002\022#\n\025hcx_acti" + + "vation_key_id\030\003 \001(\tB\004\342A\001\002\022\022\n\nrequest_id\030" + + "\004 \001(\t\"\251\001\n\032ListNetworkPoliciesRequest\022B\n\006" + + "parent\030\001 \001(\tB2\342A\001\002\372A+\022)vmwareengine.goog" + + "leapis.com/NetworkPolicy\022\021\n\tpage_size\030\002 " + + "\001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022" + + "\020\n\010order_by\030\005 \001(\t\"\222\001\n\033ListNetworkPolicie" + + "sResponse\022E\n\020network_policies\030\001 \003(\0132+.go" + + "ogle.cloud.vmwareengine.v1.NetworkPolicy" + + "\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachable" + + "\030\003 \003(\t\"[\n\027GetNetworkPolicyRequest\022@\n\004nam" + + "e\030\001 \001(\tB2\342A\001\002\372A+\n)vmwareengine.googleapi" + + "s.com/NetworkPolicy\"\270\001\n\032UpdateNetworkPol" + + "icyRequest\022I\n\016network_policy\030\001 \001(\0132+.goo" + + "gle.cloud.vmwareengine.v1.NetworkPolicyB" + + "\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.prot" + + "obuf.FieldMaskB\004\342A\001\002\022\030\n\nrequest_id\030\003 \001(\t" + + "B\004\342A\001\001\"\346\001\n\032CreateNetworkPolicyRequest\022B\n" + + "\006parent\030\001 \001(\tB2\342A\001\002\372A+\022)vmwareengine.goo" + + "gleapis.com/NetworkPolicy\022\037\n\021network_pol" + + "icy_id\030\002 \001(\tB\004\342A\001\002\022I\n\016network_policy\030\003 \001" + + "(\0132+.google.cloud.vmwareengine.v1.Networ" + + "kPolicyB\004\342A\001\002\022\030\n\nrequest_id\030\004 \001(\tB\004\342A\001\001\"" + + "x\n\032DeleteNetworkPolicyRequest\022@\n\004name\030\001 " + + "\001(\tB2\342A\001\002\372A+\n)vmwareengine.googleapis.co" + + "m/NetworkPolicy\022\030\n\nrequest_id\030\002 \001(\tB\004\342A\001" + + "\001\"\206\002\n CreateVmwareEngineNetworkRequest\022H" + + "\n\006parent\030\001 \001(\tB8\342A\001\002\372A1\022/vmwareengine.go" + + "ogleapis.com/VmwareEngineNetwork\022&\n\030vmwa" + + "re_engine_network_id\030\002 \001(\tB\004\342A\001\002\022V\n\025vmwa" + + "re_engine_network\030\003 \001(\01321.google.cloud.v" + + "mwareengine.v1.VmwareEngineNetworkB\004\342A\001\002" + + "\022\030\n\nrequest_id\030\004 \001(\tB\004\342A\001\001\"\313\001\n UpdateVmw" + + "areEngineNetworkRequest\022V\n\025vmware_engine" + + "_network\030\001 \001(\01321.google.cloud.vmwareengi" + + "ne.v1.VmwareEngineNetworkB\004\342A\001\002\0225\n\013updat" + + "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" + + "B\004\342A\001\002\022\030\n\nrequest_id\030\003 \001(\tB\004\342A\001\001\"\230\001\n Del" + + "eteVmwareEngineNetworkRequest\022F\n\004name\030\001 " + + "\001(\tB8\342A\001\002\372A1\n/vmwareengine.googleapis.co" + + "m/VmwareEngineNetwork\022\030\n\nrequest_id\030\002 \001(" + + "\tB\004\342A\001\001\022\022\n\004etag\030\003 \001(\tB\004\342A\001\001\"g\n\035GetVmware" + + "EngineNetworkRequest\022F\n\004name\030\001 \001(\tB8\342A\001\002" + + "\372A1\n/vmwareengine.googleapis.com/VmwareE" + + "ngineNetwork\"\246\001\n\037ListVmwareEngineNetwork" + + "sRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locat" + + "ions.googleapis.com/Location\022\021\n\tpage_siz" + + "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 " + + "\001(\t\022\020\n\010order_by\030\005 \001(\t\"\243\001\n ListVmwareEngi" + + "neNetworksResponse\022Q\n\026vmware_engine_netw" + + "orks\030\001 \003(\01321.google.cloud.vmwareengine.v" + + "1.VmwareEngineNetwork\022\027\n\017next_page_token" + + "\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\372\001\n\036CreatePr" + + "ivateConnectionRequest\022F\n\006parent\030\001 \001(\tB6" + + "\342A\001\002\372A/\022-vmwareengine.googleapis.com/Pri" + + "vateConnection\022#\n\025private_connection_id\030" + + "\002 \001(\tB\004\342A\001\002\022Q\n\022private_connection\030\003 \001(\0132" + + "/.google.cloud.vmwareengine.v1.PrivateCo" + + "nnectionB\004\342A\001\002\022\030\n\nrequest_id\030\004 \001(\tB\004\342A\001\001" + + "\"c\n\033GetPrivateConnectionRequest\022D\n\004name\030" + + "\001 \001(\tB6\342A\001\002\372A/\n-vmwareengine.googleapis." + + "com/PrivateConnection\"\260\001\n\035ListPrivateCon" + + "nectionsRequest\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/" + + "\022-vmwareengine.googleapis.com/PrivateCon" + + "nection\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + + "\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t" + + "\"\234\001\n\036ListPrivateConnectionsResponse\022L\n\023p" + + "rivate_connections\030\001 \003(\0132/.google.cloud." + + "vmwareengine.v1.PrivateConnection\022\027\n\017nex" + + "t_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"" + + "\304\001\n\036UpdatePrivateConnectionRequest\022Q\n\022pr" + + "ivate_connection\030\001 \001(\0132/.google.cloud.vm" + + "wareengine.v1.PrivateConnectionB\004\342A\001\002\0225\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" + + "ldMaskB\004\342A\001\002\022\030\n\nrequest_id\030\003 \001(\tB\004\342A\001\001\"\200" + + "\001\n\036DeletePrivateConnectionRequest\022D\n\004nam" + + "e\030\001 \001(\tB6\342A\001\002\372A/\n-vmwareengine.googleapi" + + "s.com/PrivateConnection\022\030\n\nrequest_id\030\002 " + + "\001(\tB\004\342A\001\001\"\232\001\n)ListPrivateConnectionPeeri" + + "ngRoutesRequest\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/" + + "\n-vmwareengine.googleapis.com/PrivateCon" + + "nection\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + + "\030\003 \001(\t\"\211\001\n*ListPrivateConnectionPeeringR" + + "outesResponse\022B\n\016peering_routes\030\001 \003(\0132*." + + "google.cloud.vmwareengine.v1.PeeringRout" + + "e\022\027\n\017next_page_token\030\002 \001(\t2\260H\n\014VmwareEng" + + "ine\022\310\001\n\021ListPrivateClouds\0226.google.cloud" + + ".vmwareengine.v1.ListPrivateCloudsReques" + + "t\0327.google.cloud.vmwareengine.v1.ListPri" + + "vateCloudsResponse\"B\332A\006parent\202\323\344\223\0023\0221/v1" + + "/{parent=projects/*/locations/*}/private" + + "Clouds\022\265\001\n\017GetPrivateCloud\0224.google.clou" + + "d.vmwareengine.v1.GetPrivateCloudRequest" + + "\032*.google.cloud.vmwareengine.v1.PrivateC" + + "loud\"@\332A\004name\202\323\344\223\0023\0221/v1/{name=projects/" + + "*/locations/*/privateClouds/*}\022\203\002\n\022Creat" + + "ePrivateCloud\0227.google.cloud.vmwareengin" + + "e.v1.CreatePrivateCloudRequest\032\035.google." + + "longrunning.Operation\"\224\001\312A!\n\014PrivateClou" + + "d\022\021OperationMetadata\332A%parent,private_cl" + + "oud,private_cloud_id\202\323\344\223\002B\"1/v1/{parent=" + + "projects/*/locations/*}/privateClouds:\rp" + + "rivate_cloud\022\205\002\n\022UpdatePrivateCloud\0227.go" + + "ogle.cloud.vmwareengine.v1.UpdatePrivate" + + "CloudRequest\032\035.google.longrunning.Operat" + + "ion\"\226\001\312A!\n\014PrivateCloud\022\021OperationMetada" + + "ta\332A\031private_cloud,update_mask\202\323\344\223\002P2?/v" + + "1/{private_cloud.name=projects/*/locatio" + + "ns/*/privateClouds/*}:\rprivate_cloud\022\322\001\n" + + "\022DeletePrivateCloud\0227.google.cloud.vmwar" + + "eengine.v1.DeletePrivateCloudRequest\032\035.g" + + "oogle.longrunning.Operation\"d\312A!\n\014Privat" + + "eCloud\022\021OperationMetadata\332A\004name\202\323\344\223\0023*1" + + "/v1/{name=projects/*/locations/*/private" + + "Clouds/*}\022\342\001\n\024UndeletePrivateCloud\0229.goo" + + "gle.cloud.vmwareengine.v1.UndeletePrivat" + + "eCloudRequest\032\035.google.longrunning.Opera" + + "tion\"p\312A!\n\014PrivateCloud\022\021OperationMetada" + + "ta\332A\004name\202\323\344\223\002?\":/v1/{name=projects/*/lo" + + "cations/*/privateClouds/*}:undelete:\001*\022\304" + + "\001\n\014ListClusters\0221.google.cloud.vmwareeng" + + "ine.v1.ListClustersRequest\0322.google.clou" + + "d.vmwareengine.v1.ListClustersResponse\"M" + + "\332A\006parent\202\323\344\223\002>\022\022*\022\022*\332A\006parent\202\323\344\223\002/\022-/v1/{par" - + "ent=projects/*/locations/*}/nodeTypes\022\245\001" - + "\n\013GetNodeType\0220.google.cloud.vmwareengin" - + "e.v1.GetNodeTypeRequest\032&.google.cloud.v" - + "mwareengine.v1.NodeType\"<\332A\004name\202\323\344\223\002/\022-" - + "/v1/{name=projects/*/locations/*/nodeTyp" - + "es/*}\022\337\001\n\022ShowNsxCredentials\0227.google.cl" - + "oud.vmwareengine.v1.ShowNsxCredentialsRe" - + "quest\032).google.cloud.vmwareengine.v1.Cre" - + "dentials\"e\332A\rprivate_cloud\202\323\344\223\002O\022M/v1/{p" - + "rivate_cloud=projects/*/locations/*/priv" - + "ateClouds/*}:showNsxCredentials\022\353\001\n\026Show" - + "VcenterCredentials\022;.google.cloud.vmware" - + "engine.v1.ShowVcenterCredentialsRequest\032" - + ").google.cloud.vmwareengine.v1.Credentia" - + "ls\"i\332A\rprivate_cloud\202\323\344\223\002S\022Q/v1/{private" + + "/*/subnets/*}\022\350\001\n\014UpdateSubnet\0221.google." + + "cloud.vmwareengine.v1.UpdateSubnetReques" + + "t\032\035.google.longrunning.Operation\"\205\001\312A\033\n\006" + + "Subnet\022\021OperationMetadata\332A\022subnet,updat" + + "e_mask\202\323\344\223\002L2B/v1/{subnet.name=projects/" + + "*/locations/*/privateClouds/*/subnets/*}" + + ":\006subnet\022\270\001\n\rListNodeTypes\0222.google.clou" + + "d.vmwareengine.v1.ListNodeTypesRequest\0323" + + ".google.cloud.vmwareengine.v1.ListNodeTy" + + "pesResponse\">\332A\006parent\202\323\344\223\002/\022-/v1/{paren" + + "t=projects/*/locations/*}/nodeTypes\022\245\001\n\013" + + "GetNodeType\0220.google.cloud.vmwareengine." + + "v1.GetNodeTypeRequest\032&.google.cloud.vmw" + + "areengine.v1.NodeType\"<\332A\004name\202\323\344\223\002/\022-/v" + + "1/{name=projects/*/locations/*/nodeTypes" + + "/*}\022\337\001\n\022ShowNsxCredentials\0227.google.clou" + + "d.vmwareengine.v1.ShowNsxCredentialsRequ" + + "est\032).google.cloud.vmwareengine.v1.Crede" + + "ntials\"e\332A\rprivate_cloud\202\323\344\223\002O\022M/v1/{pri" + + "vate_cloud=projects/*/locations/*/privat" + + "eClouds/*}:showNsxCredentials\022\353\001\n\026ShowVc" + + "enterCredentials\022;.google.cloud.vmwareen" + + "gine.v1.ShowVcenterCredentialsRequest\032)." + + "google.cloud.vmwareengine.v1.Credentials" + + "\"i\332A\rprivate_cloud\202\323\344\223\002S\022Q/v1/{private_c" + + "loud=projects/*/locations/*/privateCloud" + + "s/*}:showVcenterCredentials\022\376\001\n\023ResetNsx" + + "Credentials\0228.google.cloud.vmwareengine." + + "v1.ResetNsxCredentialsRequest\032\035.google.l" + + "ongrunning.Operation\"\215\001\312A!\n\014PrivateCloud" + + "\022\021OperationMetadata\332A\rprivate_cloud\202\323\344\223\002" + + "S\"N/v1/{private_cloud=projects/*/locatio" + + "ns/*/privateClouds/*}:resetNsxCredential" + + "s:\001*\022\212\002\n\027ResetVcenterCredentials\022<.googl" + + "e.cloud.vmwareengine.v1.ResetVcenterCred" + + "entialsRequest\032\035.google.longrunning.Oper" + + "ation\"\221\001\312A!\n\014PrivateCloud\022\021OperationMeta" + + "data\332A\rprivate_cloud\202\323\344\223\002W\"R/v1/{private" + "_cloud=projects/*/locations/*/privateClo" - + "uds/*}:showVcenterCredentials\022\376\001\n\023ResetN" - + "sxCredentials\0228.google.cloud.vmwareengin" - + "e.v1.ResetNsxCredentialsRequest\032\035.google" - + ".longrunning.Operation\"\215\001\312A!\n\014PrivateClo" - + "ud\022\021OperationMetadata\332A\rprivate_cloud\202\323\344" - + "\223\002S\"N/v1/{private_cloud=projects/*/locat" - + "ions/*/privateClouds/*}:resetNsxCredenti" - + "als:\001*\022\212\002\n\027ResetVcenterCredentials\022<.goo" - + "gle.cloud.vmwareengine.v1.ResetVcenterCr" - + "edentialsRequest\032\035.google.longrunning.Op" - + "eration\"\221\001\312A!\n\014PrivateCloud\022\021OperationMe" - + "tadata\332A\rprivate_cloud\202\323\344\223\002W\"R/v1/{priva" - + "te_cloud=projects/*/locations/*/privateC" - + "louds/*}:resetVcenterCredentials:\001*\022\262\002\n\026" - + "CreateHcxActivationKey\022;.google.cloud.vm" - + "wareengine.v1.CreateHcxActivationKeyRequ" - + "est\032\035.google.longrunning.Operation\"\273\001\312A%" - + "\n\020HcxActivationKey\022\021OperationMetadata\332A/" - + "parent,hcx_activation_key,hcx_activation" - + "_key_id\202\323\344\223\002[\"E/v1/{parent=projects/*/lo" - + "cations/*/privateClouds/*}/hcxActivation" - + "Keys:\022hcx_activation_key\022\350\001\n\025ListHcxActi" - + "vationKeys\022:.google.cloud.vmwareengine.v" - + "1.ListHcxActivationKeysRequest\032;.google." - + "cloud.vmwareengine.v1.ListHcxActivationK" - + "eysResponse\"V\332A\006parent\202\323\344\223\002G\022E/v1/{paren" - + "t=projects/*/locations/*/privateClouds/*" - + "}/hcxActivationKeys\022\325\001\n\023GetHcxActivation" - + "Key\0228.google.cloud.vmwareengine.v1.GetHc" - + "xActivationKeyRequest\032..google.cloud.vmw" - + "areengine.v1.HcxActivationKey\"T\332A\004name\202\323" - + "\344\223\002G\022E/v1/{name=projects/*/locations/*/p" - + "rivateClouds/*/hcxActivationKeys/*}\022\272\001\n\020" - + "GetNetworkPolicy\0225.google.cloud.vmwareen" - + "gine.v1.GetNetworkPolicyRequest\032+.google" - + ".cloud.vmwareengine.v1.NetworkPolicy\"B\332A" - + "\004name\202\323\344\223\0025\0223/v1/{name=projects/*/locati" - + "ons/*/networkPolicies/*}\022\320\001\n\023ListNetwork" - + "Policies\0228.google.cloud.vmwareengine.v1." - + "ListNetworkPoliciesRequest\0329.google.clou" - + "d.vmwareengine.v1.ListNetworkPoliciesRes" - + "ponse\"D\332A\006parent\202\323\344\223\0025\0223/v1/{parent=proj" - + "ects/*/locations/*}/networkPolicies\022\213\002\n\023" - + "CreateNetworkPolicy\0228.google.cloud.vmwar" - + "eengine.v1.CreateNetworkPolicyRequest\032\035." - + "google.longrunning.Operation\"\232\001\312A\"\n\rNetw" - + "orkPolicy\022\021OperationMetadata\332A\'parent,ne" - + "twork_policy,network_policy_id\202\323\344\223\002E\"3/v" - + "1/{parent=projects/*/locations/*}/networ" - + "kPolicies:\016network_policy\022\215\002\n\023UpdateNetw" - + "orkPolicy\0228.google.cloud.vmwareengine.v1" - + ".UpdateNetworkPolicyRequest\032\035.google.lon" - + "grunning.Operation\"\234\001\312A\"\n\rNetworkPolicy\022" - + "\021OperationMetadata\332A\032network_policy,upda" - + "te_mask\202\323\344\223\002T2B/v1/{network_policy.name=" + + "uds/*}:resetVcenterCredentials:\001*\022\262\002\n\026Cr" + + "eateHcxActivationKey\022;.google.cloud.vmwa" + + "reengine.v1.CreateHcxActivationKeyReques" + + "t\032\035.google.longrunning.Operation\"\273\001\312A%\n\020" + + "HcxActivationKey\022\021OperationMetadata\332A/pa" + + "rent,hcx_activation_key,hcx_activation_k" + + "ey_id\202\323\344\223\002[\"E/v1/{parent=projects/*/loca" + + "tions/*/privateClouds/*}/hcxActivationKe" + + "ys:\022hcx_activation_key\022\350\001\n\025ListHcxActiva" + + "tionKeys\022:.google.cloud.vmwareengine.v1." + + "ListHcxActivationKeysRequest\032;.google.cl" + + "oud.vmwareengine.v1.ListHcxActivationKey" + + "sResponse\"V\332A\006parent\202\323\344\223\002G\022E/v1/{parent=" + + "projects/*/locations/*/privateClouds/*}/" + + "hcxActivationKeys\022\325\001\n\023GetHcxActivationKe" + + "y\0228.google.cloud.vmwareengine.v1.GetHcxA" + + "ctivationKeyRequest\032..google.cloud.vmwar" + + "eengine.v1.HcxActivationKey\"T\332A\004name\202\323\344\223" + + "\002G\022E/v1/{name=projects/*/locations/*/pri" + + "vateClouds/*/hcxActivationKeys/*}\022\272\001\n\020Ge" + + "tNetworkPolicy\0225.google.cloud.vmwareengi" + + "ne.v1.GetNetworkPolicyRequest\032+.google.c" + + "loud.vmwareengine.v1.NetworkPolicy\"B\332A\004n" + + "ame\202\323\344\223\0025\0223/v1/{name=projects/*/location" + + "s/*/networkPolicies/*}\022\320\001\n\023ListNetworkPo" + + "licies\0228.google.cloud.vmwareengine.v1.Li" + + "stNetworkPoliciesRequest\0329.google.cloud." + + "vmwareengine.v1.ListNetworkPoliciesRespo" + + "nse\"D\332A\006parent\202\323\344\223\0025\0223/v1/{parent=projec" + + "ts/*/locations/*}/networkPolicies\022\213\002\n\023Cr" + + "eateNetworkPolicy\0228.google.cloud.vmwaree" + + "ngine.v1.CreateNetworkPolicyRequest\032\035.go" + + "ogle.longrunning.Operation\"\232\001\312A\"\n\rNetwor" + + "kPolicy\022\021OperationMetadata\332A\'parent,netw" + + "ork_policy,network_policy_id\202\323\344\223\002E\"3/v1/" + + "{parent=projects/*/locations/*}/networkP" + + "olicies:\016network_policy\022\215\002\n\023UpdateNetwor" + + "kPolicy\0228.google.cloud.vmwareengine.v1.U" + + "pdateNetworkPolicyRequest\032\035.google.longr" + + "unning.Operation\"\234\001\312A\"\n\rNetworkPolicy\022\021O" + + "perationMetadata\332A\032network_policy,update" + + "_mask\202\323\344\223\002T2B/v1/{network_policy.name=pr" + + "ojects/*/locations/*/networkPolicies/*}:" + + "\016network_policy\022\337\001\n\023DeleteNetworkPolicy\022" + + "8.google.cloud.vmwareengine.v1.DeleteNet" + + "workPolicyRequest\032\035.google.longrunning.O" + + "peration\"o\312A*\n\025google.protobuf.Empty\022\021Op" + + "erationMetadata\332A\004name\202\323\344\223\0025*3/v1/{name=" + "projects/*/locations/*/networkPolicies/*" - + "}:\016network_policy\022\337\001\n\023DeleteNetworkPolic" - + "y\0228.google.cloud.vmwareengine.v1.DeleteN" - + "etworkPolicyRequest\032\035.google.longrunning" - + ".Operation\"o\312A*\n\025google.protobuf.Empty\022\021" - + "OperationMetadata\332A\004name\202\323\344\223\0025*3/v1/{nam" - + "e=projects/*/locations/*/networkPolicies" - + "/*}\022\267\002\n\031CreateVmwareEngineNetwork\022>.goog" - + "le.cloud.vmwareengine.v1.CreateVmwareEng" - + "ineNetworkRequest\032\035.google.longrunning.O" - + "peration\"\272\001\312A(\n\023VmwareEngineNetwork\022\021Ope" - + "rationMetadata\332A5parent,vmware_engine_ne" - + "twork,vmware_engine_network_id\202\323\344\223\002Q\"8/v" - + "1/{parent=projects/*/locations/*}/vmware" - + "EngineNetworks:\025vmware_engine_network\022\271\002" - + "\n\031UpdateVmwareEngineNetwork\022>.google.clo" - + "ud.vmwareengine.v1.UpdateVmwareEngineNet" - + "workRequest\032\035.google.longrunning.Operati" - + "on\"\274\001\312A(\n\023VmwareEngineNetwork\022\021Operation" - + "Metadata\332A!vmware_engine_network,update_" - + "mask\202\323\344\223\002g2N/v1/{vmware_engine_network.n" - + "ame=projects/*/locations/*/vmwareEngineN" - + "etworks/*}:\025vmware_engine_network\022\360\001\n\031De" - + "leteVmwareEngineNetwork\022>.google.cloud.v" - + "mwareengine.v1.DeleteVmwareEngineNetwork" - + "Request\032\035.google.longrunning.Operation\"t" - + "\312A*\n\025google.protobuf.Empty\022\021OperationMet" - + "adata\332A\004name\202\323\344\223\002:*8/v1/{name=projects/*" - + "/locations/*/vmwareEngineNetworks/*}\022\321\001\n" - + "\026GetVmwareEngineNetwork\022;.google.cloud.v" - + "mwareengine.v1.GetVmwareEngineNetworkReq" - + "uest\0321.google.cloud.vmwareengine.v1.Vmwa" - + "reEngineNetwork\"G\332A\004name\202\323\344\223\002:\0228/v1/{nam" + + "}\022\267\002\n\031CreateVmwareEngineNetwork\022>.google" + + ".cloud.vmwareengine.v1.CreateVmwareEngin" + + "eNetworkRequest\032\035.google.longrunning.Ope" + + "ration\"\272\001\312A(\n\023VmwareEngineNetwork\022\021Opera" + + "tionMetadata\332A5parent,vmware_engine_netw" + + "ork,vmware_engine_network_id\202\323\344\223\002Q\"8/v1/" + + "{parent=projects/*/locations/*}/vmwareEn" + + "gineNetworks:\025vmware_engine_network\022\271\002\n\031" + + "UpdateVmwareEngineNetwork\022>.google.cloud" + + ".vmwareengine.v1.UpdateVmwareEngineNetwo" + + "rkRequest\032\035.google.longrunning.Operation" + + "\"\274\001\312A(\n\023VmwareEngineNetwork\022\021OperationMe" + + "tadata\332A!vmware_engine_network,update_ma" + + "sk\202\323\344\223\002g2N/v1/{vmware_engine_network.nam" + "e=projects/*/locations/*/vmwareEngineNet" - + "works/*}\022\344\001\n\030ListVmwareEngineNetworks\022=." - + "google.cloud.vmwareengine.v1.ListVmwareE" - + "ngineNetworksRequest\032>.google.cloud.vmwa" - + "reengine.v1.ListVmwareEngineNetworksResp" - + "onse\"I\332A\006parent\202\323\344\223\002:\0228/v1/{parent=proje" - + "cts/*/locations/*}/vmwareEngineNetworks\032" - + "O\312A\033vmwareengine.googleapis.com\322A.https:" - + "//www.googleapis.com/auth/cloud-platform" - + "B\256\002\n com.google.cloud.vmwareengine.v1B\021V" - + "mwareengineProtoP\001ZDcloud.google.com/go/" - + "vmwareengine/apiv1/vmwareenginepb;vmware" - + "enginepb\252\002\034Google.Cloud.VmwareEngine.V1\312" - + "\002\034Google\\Cloud\\VmwareEngine\\V1\352\002\037Google:" - + ":Cloud::VmwareEngine::V1\352AN\n\036compute.goo" - + "gleapis.com/Network\022,projects/{project}/" - + "global/networks/{network}b\006proto3" + + "works/*}:\025vmware_engine_network\022\360\001\n\031Dele" + + "teVmwareEngineNetwork\022>.google.cloud.vmw" + + "areengine.v1.DeleteVmwareEngineNetworkRe" + + "quest\032\035.google.longrunning.Operation\"t\312A" + + "*\n\025google.protobuf.Empty\022\021OperationMetad" + + "ata\332A\004name\202\323\344\223\002:*8/v1/{name=projects/*/l" + + "ocations/*/vmwareEngineNetworks/*}\022\321\001\n\026G" + + "etVmwareEngineNetwork\022;.google.cloud.vmw" + + "areengine.v1.GetVmwareEngineNetworkReque" + + "st\0321.google.cloud.vmwareengine.v1.Vmware" + + "EngineNetwork\"G\332A\004name\202\323\344\223\002:\0228/v1/{name=" + + "projects/*/locations/*/vmwareEngineNetwo" + + "rks/*}\022\344\001\n\030ListVmwareEngineNetworks\022=.go" + + "ogle.cloud.vmwareengine.v1.ListVmwareEng" + + "ineNetworksRequest\032>.google.cloud.vmware" + + "engine.v1.ListVmwareEngineNetworksRespon" + + "se\"I\332A\006parent\202\323\344\223\002:\0228/v1/{parent=project" + + "s/*/locations/*}/vmwareEngineNetworks\022\246\002" + + "\n\027CreatePrivateConnection\022<.google.cloud" + + ".vmwareengine.v1.CreatePrivateConnection" + + "Request\032\035.google.longrunning.Operation\"\255" + + "\001\312A&\n\021PrivateConnection\022\021OperationMetada" + + "ta\332A/parent,private_connection,private_c" + + "onnection_id\202\323\344\223\002L\"6/v1/{parent=projects" + + "/*/locations/*}/privateConnections:\022priv" + + "ate_connection\022\311\001\n\024GetPrivateConnection\022" + + "9.google.cloud.vmwareengine.v1.GetPrivat", + "eConnectionRequest\032/.google.cloud.vmware" + + "engine.v1.PrivateConnection\"E\332A\004name\202\323\344\223" + + "\0028\0226/v1/{name=projects/*/locations/*/pri" + + "vateConnections/*}\022\334\001\n\026ListPrivateConnec" + + "tions\022;.google.cloud.vmwareengine.v1.Lis" + + "tPrivateConnectionsRequest\032<.google.clou" + + "d.vmwareengine.v1.ListPrivateConnections" + + "Response\"G\332A\006parent\202\323\344\223\0028\0226/v1/{parent=p" + + "rojects/*/locations/*}/privateConnection" + + "s\022\250\002\n\027UpdatePrivateConnection\022<.google.c" + + "loud.vmwareengine.v1.UpdatePrivateConnec" + + "tionRequest\032\035.google.longrunning.Operati" + + "on\"\257\001\312A&\n\021PrivateConnection\022\021OperationMe" + + "tadata\332A\036private_connection,update_mask\202" + + "\323\344\223\002_2I/v1/{private_connection.name=proj" + + "ects/*/locations/*/privateConnections/*}" + + ":\022private_connection\022\352\001\n\027DeletePrivateCo" + + "nnection\022<.google.cloud.vmwareengine.v1." + + "DeletePrivateConnectionRequest\032\035.google." + + "longrunning.Operation\"r\312A*\n\025google.proto" + + "buf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002" + + "8*6/v1/{name=projects/*/locations/*/priv" + + "ateConnections/*}\022\220\002\n\"ListPrivateConnect" + + "ionPeeringRoutes\022G.google.cloud.vmwareen" + + "gine.v1.ListPrivateConnectionPeeringRout" + + "esRequest\032H.google.cloud.vmwareengine.v1" + + ".ListPrivateConnectionPeeringRoutesRespo" + + "nse\"W\332A\006parent\202\323\344\223\002H\022F/v1/{parent=projec" + + "ts/*/locations/*/privateConnections/*}/p" + + "eeringRoutes\032O\312A\033vmwareengine.googleapis" + + ".com\322A.https://www.googleapis.com/auth/c" + + "loud-platformB\256\002\n com.google.cloud.vmwar" + + "eengine.v1B\021VmwareengineProtoP\001ZDcloud.g" + + "oogle.com/go/vmwareengine/apiv1/vmwareen" + + "ginepb;vmwareenginepb\252\002\034Google.Cloud.Vmw" + + "areEngine.V1\312\002\034Google\\Cloud\\VmwareEngine" + + "\\V1\352\002\037Google::Cloud::VmwareEngine::V1\352AN" + + "\n\036compute.googleapis.com/Network\022,projec" + + "ts/{project}/global/networks/{network}b\006" + + "proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -554,6 +683,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(), com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); @@ -675,10 +805,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_ListSubnetsResponse_descriptor, new java.lang.String[] { - "Subnets", "NextPageToken", + "Subnets", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_vmwareengine_v1_OperationMetadata_descriptor = + internal_static_google_cloud_vmwareengine_v1_GetSubnetRequest_descriptor = getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_vmwareengine_v1_GetSubnetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_GetSubnetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_vmwareengine_v1_UpdateSubnetRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_vmwareengine_v1_UpdateSubnetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_UpdateSubnetRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "Subnet", + }); + internal_static_google_cloud_vmwareengine_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_vmwareengine_v1_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_OperationMetadata_descriptor, @@ -692,7 +838,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApiVersion", }); internal_static_google_cloud_vmwareengine_v1_ListNodeTypesRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_vmwareengine_v1_ListNodeTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_ListNodeTypesRequest_descriptor, @@ -700,7 +846,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", }); internal_static_google_cloud_vmwareengine_v1_ListNodeTypesResponse_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_vmwareengine_v1_ListNodeTypesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_ListNodeTypesResponse_descriptor, @@ -708,7 +854,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodeTypes", "NextPageToken", "Unreachable", }); internal_static_google_cloud_vmwareengine_v1_GetNodeTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_vmwareengine_v1_GetNodeTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_GetNodeTypeRequest_descriptor, @@ -716,7 +862,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_vmwareengine_v1_ShowNsxCredentialsRequest_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_vmwareengine_v1_ShowNsxCredentialsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_ShowNsxCredentialsRequest_descriptor, @@ -724,7 +870,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PrivateCloud", }); internal_static_google_cloud_vmwareengine_v1_ShowVcenterCredentialsRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_vmwareengine_v1_ShowVcenterCredentialsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_ShowVcenterCredentialsRequest_descriptor, @@ -732,7 +878,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PrivateCloud", }); internal_static_google_cloud_vmwareengine_v1_ResetNsxCredentialsRequest_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_vmwareengine_v1_ResetNsxCredentialsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_ResetNsxCredentialsRequest_descriptor, @@ -740,7 +886,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PrivateCloud", "RequestId", }); internal_static_google_cloud_vmwareengine_v1_ResetVcenterCredentialsRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_vmwareengine_v1_ResetVcenterCredentialsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_ResetVcenterCredentialsRequest_descriptor, @@ -748,7 +894,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PrivateCloud", "RequestId", }); internal_static_google_cloud_vmwareengine_v1_ListHcxActivationKeysResponse_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_vmwareengine_v1_ListHcxActivationKeysResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_ListHcxActivationKeysResponse_descriptor, @@ -756,7 +902,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HcxActivationKeys", "NextPageToken", "Unreachable", }); internal_static_google_cloud_vmwareengine_v1_ListHcxActivationKeysRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_vmwareengine_v1_ListHcxActivationKeysRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_ListHcxActivationKeysRequest_descriptor, @@ -764,7 +910,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_vmwareengine_v1_GetHcxActivationKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_vmwareengine_v1_GetHcxActivationKeyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_GetHcxActivationKeyRequest_descriptor, @@ -772,7 +918,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_vmwareengine_v1_CreateHcxActivationKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_vmwareengine_v1_CreateHcxActivationKeyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_CreateHcxActivationKeyRequest_descriptor, @@ -780,7 +926,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "HcxActivationKey", "HcxActivationKeyId", "RequestId", }); internal_static_google_cloud_vmwareengine_v1_ListNetworkPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_vmwareengine_v1_ListNetworkPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_ListNetworkPoliciesRequest_descriptor, @@ -788,7 +934,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_vmwareengine_v1_ListNetworkPoliciesResponse_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_vmwareengine_v1_ListNetworkPoliciesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_ListNetworkPoliciesResponse_descriptor, @@ -796,7 +942,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkPolicies", "NextPageToken", "Unreachable", }); internal_static_google_cloud_vmwareengine_v1_GetNetworkPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_vmwareengine_v1_GetNetworkPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_GetNetworkPolicyRequest_descriptor, @@ -804,7 +950,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_vmwareengine_v1_UpdateNetworkPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_vmwareengine_v1_UpdateNetworkPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_UpdateNetworkPolicyRequest_descriptor, @@ -812,7 +958,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkPolicy", "UpdateMask", "RequestId", }); internal_static_google_cloud_vmwareengine_v1_CreateNetworkPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_vmwareengine_v1_CreateNetworkPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_CreateNetworkPolicyRequest_descriptor, @@ -820,7 +966,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "NetworkPolicyId", "NetworkPolicy", "RequestId", }); internal_static_google_cloud_vmwareengine_v1_DeleteNetworkPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_vmwareengine_v1_DeleteNetworkPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_DeleteNetworkPolicyRequest_descriptor, @@ -828,7 +974,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", }); internal_static_google_cloud_vmwareengine_v1_CreateVmwareEngineNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_vmwareengine_v1_CreateVmwareEngineNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_CreateVmwareEngineNetworkRequest_descriptor, @@ -836,7 +982,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "VmwareEngineNetworkId", "VmwareEngineNetwork", "RequestId", }); internal_static_google_cloud_vmwareengine_v1_UpdateVmwareEngineNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(36); internal_static_google_cloud_vmwareengine_v1_UpdateVmwareEngineNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_UpdateVmwareEngineNetworkRequest_descriptor, @@ -844,7 +990,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "VmwareEngineNetwork", "UpdateMask", "RequestId", }); internal_static_google_cloud_vmwareengine_v1_DeleteVmwareEngineNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(37); internal_static_google_cloud_vmwareengine_v1_DeleteVmwareEngineNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_DeleteVmwareEngineNetworkRequest_descriptor, @@ -852,7 +998,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "Etag", }); internal_static_google_cloud_vmwareengine_v1_GetVmwareEngineNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(38); internal_static_google_cloud_vmwareengine_v1_GetVmwareEngineNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_GetVmwareEngineNetworkRequest_descriptor, @@ -860,7 +1006,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_vmwareengine_v1_ListVmwareEngineNetworksRequest_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(39); internal_static_google_cloud_vmwareengine_v1_ListVmwareEngineNetworksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_ListVmwareEngineNetworksRequest_descriptor, @@ -868,13 +1014,77 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_vmwareengine_v1_ListVmwareEngineNetworksResponse_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(40); internal_static_google_cloud_vmwareengine_v1_ListVmwareEngineNetworksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_ListVmwareEngineNetworksResponse_descriptor, new java.lang.String[] { "VmwareEngineNetworks", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_vmwareengine_v1_CreatePrivateConnectionRequest_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_cloud_vmwareengine_v1_CreatePrivateConnectionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_CreatePrivateConnectionRequest_descriptor, + new java.lang.String[] { + "Parent", "PrivateConnectionId", "PrivateConnection", "RequestId", + }); + internal_static_google_cloud_vmwareengine_v1_GetPrivateConnectionRequest_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_google_cloud_vmwareengine_v1_GetPrivateConnectionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_GetPrivateConnectionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionsRequest_descriptor = + getDescriptor().getMessageTypes().get(43); + internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionsResponse_descriptor = + getDescriptor().getMessageTypes().get(44); + internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionsResponse_descriptor, + new java.lang.String[] { + "PrivateConnections", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_vmwareengine_v1_UpdatePrivateConnectionRequest_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_google_cloud_vmwareengine_v1_UpdatePrivateConnectionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_UpdatePrivateConnectionRequest_descriptor, + new java.lang.String[] { + "PrivateConnection", "UpdateMask", "RequestId", + }); + internal_static_google_cloud_vmwareengine_v1_DeletePrivateConnectionRequest_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_google_cloud_vmwareengine_v1_DeletePrivateConnectionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_DeletePrivateConnectionRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionPeeringRoutesRequest_descriptor = + getDescriptor().getMessageTypes().get(47); + internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionPeeringRoutesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionPeeringRoutesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionPeeringRoutesResponse_descriptor = + getDescriptor().getMessageTypes().get(48); + internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionPeeringRoutesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionPeeringRoutesResponse_descriptor, + new java.lang.String[] { + "PeeringRoutes", "NextPageToken", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); @@ -893,6 +1103,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(); com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareengineResourcesProto.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareengineResourcesProto.java index 04e47d147cd3..1402239c42d8 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareengineResourcesProto.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareengineResourcesProto.java @@ -83,6 +83,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vmwareengine_v1_Vcenter_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vmwareengine_v1_Vcenter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_PeeringRoute_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_PeeringRoute_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vmwareengine_v1_NetworkPolicy_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -99,6 +103,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vmwareengine_v1_VmwareEngineNetwork_VpcNetwork_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vmwareengine_v1_VmwareEngineNetwork_VpcNetwork_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_PrivateConnection_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_PrivateConnection_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -121,7 +129,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "VmwareEngineNetwork\0222\n$management_ip_add" + "ress_layout_version\030\010 \001(\005B\004\342A\001\003\"K\n\016NodeT" + "ypeConfig\022\030\n\nnode_count\030\001 \001(\005B\004\342A\001\002\022\037\n\021c" - + "ustom_core_count\030\002 \001(\005B\004\342A\001\001\"\261\t\n\014Private" + + "ustom_core_count\030\002 \001(\005B\004\342A\001\001\"\236\n\n\014Private" + "Cloud\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\0225\n\013create_time" + "\030\002 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003" + "\0225\n\013update_time\030\003 \001(\0132\032.google.protobuf." @@ -139,134 +147,182 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "A\001\003\0224\n\003nsx\030\022 \001(\0132!.google.cloud.vmwareen" + "gine.v1.NsxB\004\342A\001\003\022<\n\007vcenter\030\023 \001(\0132%.goo" + "gle.cloud.vmwareengine.v1.VcenterB\004\342A\001\003\022" - + "\021\n\003uid\030\024 \001(\tB\004\342A\001\003\032\207\002\n\021ManagementCluster" - + "\022\030\n\ncluster_id\030\001 \001(\tB\004\342A\001\002\022r\n\021node_type_" - + "configs\030\007 \003(\0132Q.google.cloud.vmwareengin" - + "e.v1.PrivateCloud.ManagementCluster.Node" - + "TypeConfigsEntryB\004\342A\001\002\032d\n\024NodeTypeConfig" - + "sEntry\022\013\n\003key\030\001 \001(\t\022;\n\005value\030\002 \001(\0132,.goo" - + "gle.cloud.vmwareengine.v1.NodeTypeConfig" - + ":\0028\001\"l\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006" - + "ACTIVE\020\001\022\014\n\010CREATING\020\002\022\014\n\010UPDATING\020\003\022\n\n\006" - + "FAILED\020\005\022\013\n\007DELETED\020\006\022\013\n\007PURGING\020\007:t\352Aq\n" - + "(vmwareengine.googleapis.com/PrivateClou" - + "d\022Eprojects/{project}/locations/{locatio" - + "n}/privateClouds/{private_cloud}\"\247\005\n\007Clu" - + "ster\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\0225\n\013create_time\030" - + "\002 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022" - + "5\n\013update_time\030\003 \001(\0132\032.google.protobuf.T" - + "imestampB\004\342A\001\003\022@\n\005state\030\006 \001(\0162+.google.c" - + "loud.vmwareengine.v1.Cluster.StateB\004\342A\001\003" - + "\022\030\n\nmanagement\030\007 \001(\010B\004\342A\001\003\022\021\n\003uid\030\016 \001(\tB" - + "\004\342A\001\003\022[\n\021node_type_configs\030\020 \003(\0132:.googl" - + "e.cloud.vmwareengine.v1.Cluster.NodeType" - + "ConfigsEntryB\004\342A\001\002\032d\n\024NodeTypeConfigsEnt" - + "ry\022\013\n\003key\030\001 \001(\t\022;\n\005value\030\002 \001(\0132,.google." - + "cloud.vmwareengine.v1.NodeTypeConfig:\0028\001" - + "\"c\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTI" - + "VE\020\001\022\014\n\010CREATING\020\002\022\014\n\010UPDATING\020\003\022\014\n\010DELE" - + "TING\020\004\022\r\n\tREPAIRING\020\005:\202\001\352A\177\n#vmwareengin" - + "e.googleapis.com/Cluster\022Xprojects/{proj" - + "ect}/locations/{location}/privateClouds/" - + "{private_cloud}/clusters/{cluster}\"\363\002\n\006S" - + "ubnet\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\025\n\rip_cidr_ran" - + "ge\030\007 \001(\t\022\022\n\ngateway_ip\030\010 \001(\t\022\022\n\004type\030\013 \001" - + "(\tB\004\342A\001\003\022?\n\005state\030\r \001(\0162*.google.cloud.v" - + "mwareengine.v1.Subnet.StateB\004\342A\001\003\"T\n\005Sta" + + "\021\n\003uid\030\024 \001(\tB\004\342A\001\003\022C\n\004type\030\026 \001(\0162/.googl" + + "e.cloud.vmwareengine.v1.PrivateCloud.Typ" + + "eB\004\342A\001\001\032\207\002\n\021ManagementCluster\022\030\n\ncluster" + + "_id\030\001 \001(\tB\004\342A\001\002\022r\n\021node_type_configs\030\007 \003" + + "(\0132Q.google.cloud.vmwareengine.v1.Privat" + + "eCloud.ManagementCluster.NodeTypeConfigs" + + "EntryB\004\342A\001\002\032d\n\024NodeTypeConfigsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022;\n\005value\030\002 \001(\0132,.google.cloud.v" + + "mwareengine.v1.NodeTypeConfig:\0028\001\"l\n\005Sta" + "te\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n" - + "\010CREATING\020\002\022\014\n\010UPDATING\020\003\022\014\n\010DELETING\020\004:" - + "\177\352A|\n\"vmwareengine.googleapis.com/Subnet" - + "\022Vprojects/{project}/locations/{location" - + "}/privateClouds/{private_cloud}/subnets/" - + "{subnet}\"\342\002\n\010NodeType\022\022\n\004name\030\001 \001(\tB\004\342A\001" - + "\003\022\032\n\014node_type_id\030\002 \001(\tB\004\342A\001\003\022\032\n\014display" - + "_name\030\003 \001(\tB\004\342A\001\003\022\037\n\021virtual_cpu_count\030\004" - + " \001(\005B\004\342A\001\003\022\036\n\020total_core_count\030\005 \001(\005B\004\342A" - + "\001\003\022\027\n\tmemory_gb\030\007 \001(\005B\004\342A\001\003\022\032\n\014disk_size" - + "_gb\030\010 \001(\005B\004\342A\001\003\022*\n\034available_custom_core" - + "_counts\030\013 \003(\005B\004\342A\001\003:h\352Ae\n$vmwareengine.g" - + "oogleapis.com/NodeType\022=projects/{projec" - + "t}/locations/{location}/nodeTypes/{node_" - + "type}\"1\n\013Credentials\022\020\n\010username\030\001 \001(\t\022\020" - + "\n\010password\030\002 \001(\t\"\307\003\n\020HcxActivationKey\022\022\n" - + "\004name\030\001 \001(\tB\004\342A\001\003\0225\n\013create_time\030\002 \001(\0132\032" - + ".google.protobuf.TimestampB\004\342A\001\003\022I\n\005stat" - + "e\030\003 \001(\01624.google.cloud.vmwareengine.v1.H" - + "cxActivationKey.StateB\004\342A\001\003\022\034\n\016activatio" - + "n_key\030\004 \001(\tB\004\342A\001\003\022\021\n\003uid\030\005 \001(\tB\004\342A\001\003\"I\n\005" - + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\r\n\tAVAILABL" - + "E\020\001\022\014\n\010CONSUMED\020\002\022\014\n\010CREATING\020\003:\240\001\352A\234\001\n," - + "vmwareengine.googleapis.com/HcxActivatio" - + "nKey\022lprojects/{project}/locations/{loca" - + "tion}/privateClouds/{private_cloud}/hcxA" - + "ctivationKeys/{hcx_activation_key}\"\261\001\n\003H" - + "cx\022\023\n\013internal_ip\030\002 \001(\t\022\017\n\007version\030\004 \001(\t" - + "\022<\n\005state\030\005 \001(\0162\'.google.cloud.vmwareeng" - + "ine.v1.Hcx.StateB\004\342A\001\003\022\014\n\004fqdn\030\006 \001(\t\"8\n\005" - + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001" - + "\022\014\n\010CREATING\020\002\"\261\001\n\003Nsx\022\023\n\013internal_ip\030\002 " - + "\001(\t\022\017\n\007version\030\004 \001(\t\022<\n\005state\030\005 \001(\0162\'.go" - + "ogle.cloud.vmwareengine.v1.Nsx.StateB\004\342A" - + "\001\003\022\014\n\004fqdn\030\006 \001(\t\"8\n\005State\022\025\n\021STATE_UNSPE" - + "CIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010CREATING\020\002\"\271\001\n\007V" - + "center\022\023\n\013internal_ip\030\002 \001(\t\022\017\n\007version\030\004" - + " \001(\t\022@\n\005state\030\005 \001(\0162+.google.cloud.vmwar" - + "eengine.v1.Vcenter.StateB\004\342A\001\003\022\014\n\004fqdn\030\006" - + " \001(\t\"8\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006" - + "ACTIVE\020\001\022\014\n\010CREATING\020\002\"\210\007\n\rNetworkPolicy" - + "\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\0225\n\013create_time\030\002 \001(" - + "\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n\013u" - + "pdate_time\030\003 \001(\0132\032.google.protobuf.Times" - + "tampB\004\342A\001\003\022S\n\017internet_access\030\006 \001(\0132:.go" - + "ogle.cloud.vmwareengine.v1.NetworkPolicy" - + ".NetworkService\022O\n\013external_ip\030\007 \001(\0132:.g" - + "oogle.cloud.vmwareengine.v1.NetworkPolic" - + "y.NetworkService\022 \n\022edge_services_cidr\030\t" - + " \001(\tB\004\342A\001\002\022\021\n\003uid\030\n \001(\tB\004\342A\001\003\022W\n\025vmware_" - + "engine_network\030\014 \001(\tB8\342A\001\001\372A1\n/vmwareeng" - + "ine.googleapis.com/VmwareEngineNetwork\022\031" - + "\n\013description\030\r \001(\tB\004\342A\001\001\022a\n\037vmware_engi" - + "ne_network_canonical\030\016 \001(\tB8\342A\001\003\372A1\n/vmw" - + "areengine.googleapis.com/VmwareEngineNet" - + "work\032\310\001\n\016NetworkService\022\017\n\007enabled\030\001 \001(\010" - + "\022U\n\005state\030\002 \001(\0162@.google.cloud.vmwareeng" - + "ine.v1.NetworkPolicy.NetworkService.Stat" - + "eB\004\342A\001\003\"N\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" - + "\021\n\rUNPROVISIONED\020\001\022\017\n\013RECONCILING\020\002\022\n\n\006A" - + "CTIVE\020\003:x\352Au\n)vmwareengine.googleapis.co" - + "m/NetworkPolicy\022Hprojects/{project}/loca" - + "tions/{location}/networkPolicies/{networ" - + "k_policy}\"\273\007\n\023VmwareEngineNetwork\022\022\n\004nam" + + "\010CREATING\020\002\022\014\n\010UPDATING\020\003\022\n\n\006FAILED\020\005\022\013\n" + + "\007DELETED\020\006\022\013\n\007PURGING\020\007\"&\n\004Type\022\014\n\010STAND" + + "ARD\020\000\022\020\n\014TIME_LIMITED\020\001:t\352Aq\n(vmwareengi" + + "ne.googleapis.com/PrivateCloud\022Eprojects" + + "/{project}/locations/{location}/privateC" + + "louds/{private_cloud}\"\247\005\n\007Cluster\022\022\n\004nam" + "e\030\001 \001(\tB\004\342A\001\003\0225\n\013create_time\030\002 \001(\0132\032.goo" + "gle.protobuf.TimestampB\004\342A\001\003\0225\n\013update_t" + "ime\030\003 \001(\0132\032.google.protobuf.TimestampB\004\342" - + "A\001\003\022\023\n\013description\030\005 \001(\t\022X\n\014vpc_networks" - + "\030\006 \003(\0132<.google.cloud.vmwareengine.v1.Vm" - + "wareEngineNetwork.VpcNetworkB\004\342A\001\003\022L\n\005st" - + "ate\030\007 \001(\01627.google.cloud.vmwareengine.v1" - + ".VmwareEngineNetwork.StateB\004\342A\001\003\022J\n\004type" - + "\030\010 \001(\01626.google.cloud.vmwareengine.v1.Vm" - + "wareEngineNetwork.TypeB\004\342A\001\002\022\021\n\003uid\030\t \001(" - + "\tB\004\342A\001\003\022\014\n\004etag\030\n \001(\t\032\351\001\n\nVpcNetwork\022U\n\004" - + "type\030\001 \001(\0162A.google.cloud.vmwareengine.v" - + "1.VmwareEngineNetwork.VpcNetwork.TypeB\004\342" - + "A\001\003\0228\n\007network\030\002 \001(\tB\'\342A\001\003\372A \n\036compute.g" - + "oogleapis.com/Network\"J\n\004Type\022\024\n\020TYPE_UN" - + "SPECIFIED\020\000\022\014\n\010INTRANET\020\001\022\014\n\010INTERNET\020\002\022" - + "\020\n\014GOOGLE_CLOUD\020\003\"T\n\005State\022\025\n\021STATE_UNSP" - + "ECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010U" - + "PDATING\020\003\022\014\n\010DELETING\020\004\"(\n\004Type\022\024\n\020TYPE_" - + "UNSPECIFIED\020\000\022\n\n\006LEGACY\020\001:\213\001\352A\207\001\n/vmware" - + "engine.googleapis.com/VmwareEngineNetwor" - + "k\022Tprojects/{project}/locations/{locatio" - + "n}/vmwareEngineNetworks/{vmware_engine_n" - + "etwork}B\346\001\n com.google.cloud.vmwareengin" - + "e.v1B\032VmwareengineResourcesProtoP\001ZDclou" - + "d.google.com/go/vmwareengine/apiv1/vmwar" - + "eenginepb;vmwareenginepb\252\002\034Google.Cloud." - + "VmwareEngine.V1\312\002\034Google\\Cloud\\VmwareEng" - + "ine\\V1\352\002\037Google::Cloud::VmwareEngine::V1" - + "b\006proto3" + + "A\001\003\022@\n\005state\030\006 \001(\0162+.google.cloud.vmware" + + "engine.v1.Cluster.StateB\004\342A\001\003\022\030\n\nmanagem" + + "ent\030\007 \001(\010B\004\342A\001\003\022\021\n\003uid\030\016 \001(\tB\004\342A\001\003\022[\n\021no" + + "de_type_configs\030\020 \003(\0132:.google.cloud.vmw" + + "areengine.v1.Cluster.NodeTypeConfigsEntr" + + "yB\004\342A\001\002\032d\n\024NodeTypeConfigsEntry\022\013\n\003key\030\001" + + " \001(\t\022;\n\005value\030\002 \001(\0132,.google.cloud.vmwar" + + "eengine.v1.NodeTypeConfig:\0028\001\"c\n\005State\022\025" + + "\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010CRE" + + "ATING\020\002\022\014\n\010UPDATING\020\003\022\014\n\010DELETING\020\004\022\r\n\tR" + + "EPAIRING\020\005:\202\001\352A\177\n#vmwareengine.googleapi" + + "s.com/Cluster\022Xprojects/{project}/locati" + + "ons/{location}/privateClouds/{private_cl" + + "oud}/clusters/{cluster}\"\220\003\n\006Subnet\022\022\n\004na" + + "me\030\001 \001(\tB\004\342A\001\003\022\025\n\rip_cidr_range\030\007 \001(\t\022\022\n" + + "\ngateway_ip\030\010 \001(\t\022\022\n\004type\030\013 \001(\tB\004\342A\001\003\022?\n" + + "\005state\030\r \001(\0162*.google.cloud.vmwareengine" + + ".v1.Subnet.StateB\004\342A\001\003\"q\n\005State\022\025\n\021STATE" + + "_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010CREATING\020\002" + + "\022\014\n\010UPDATING\020\003\022\014\n\010DELETING\020\004\022\017\n\013RECONCIL" + + "ING\020\005\022\n\n\006FAILED\020\006:\177\352A|\n\"vmwareengine.goo" + + "gleapis.com/Subnet\022Vprojects/{project}/l" + + "ocations/{location}/privateClouds/{priva" + + "te_cloud}/subnets/{subnet}\"\342\002\n\010NodeType\022" + + "\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\032\n\014node_type_id\030\002 \001(" + + "\tB\004\342A\001\003\022\032\n\014display_name\030\003 \001(\tB\004\342A\001\003\022\037\n\021v" + + "irtual_cpu_count\030\004 \001(\005B\004\342A\001\003\022\036\n\020total_co" + + "re_count\030\005 \001(\005B\004\342A\001\003\022\027\n\tmemory_gb\030\007 \001(\005B" + + "\004\342A\001\003\022\032\n\014disk_size_gb\030\010 \001(\005B\004\342A\001\003\022*\n\034ava" + + "ilable_custom_core_counts\030\013 \003(\005B\004\342A\001\003:h\352" + + "Ae\n$vmwareengine.googleapis.com/NodeType" + + "\022=projects/{project}/locations/{location" + + "}/nodeTypes/{node_type}\"1\n\013Credentials\022\020" + + "\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\"\307\003\n\020H" + + "cxActivationKey\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\0225\n\013c" + + "reate_time\030\002 \001(\0132\032.google.protobuf.Times" + + "tampB\004\342A\001\003\022I\n\005state\030\003 \001(\01624.google.cloud" + + ".vmwareengine.v1.HcxActivationKey.StateB" + + "\004\342A\001\003\022\034\n\016activation_key\030\004 \001(\tB\004\342A\001\003\022\021\n\003u" + + "id\030\005 \001(\tB\004\342A\001\003\"I\n\005State\022\025\n\021STATE_UNSPECI" + + "FIED\020\000\022\r\n\tAVAILABLE\020\001\022\014\n\010CONSUMED\020\002\022\014\n\010C" + + "REATING\020\003:\240\001\352A\234\001\n,vmwareengine.googleapi" + + "s.com/HcxActivationKey\022lprojects/{projec" + + "t}/locations/{location}/privateClouds/{p" + + "rivate_cloud}/hcxActivationKeys/{hcx_act" + + "ivation_key}\"\261\001\n\003Hcx\022\023\n\013internal_ip\030\002 \001(" + + "\t\022\017\n\007version\030\004 \001(\t\022<\n\005state\030\005 \001(\0162\'.goog" + + "le.cloud.vmwareengine.v1.Hcx.StateB\004\342A\001\003" + + "\022\014\n\004fqdn\030\006 \001(\t\"8\n\005State\022\025\n\021STATE_UNSPECI" + + "FIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010CREATING\020\002\"\261\001\n\003Nsx" + + "\022\023\n\013internal_ip\030\002 \001(\t\022\017\n\007version\030\004 \001(\t\022<" + + "\n\005state\030\005 \001(\0162\'.google.cloud.vmwareengin" + + "e.v1.Nsx.StateB\004\342A\001\003\022\014\n\004fqdn\030\006 \001(\t\"8\n\005St" + + "ate\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014" + + "\n\010CREATING\020\002\"\271\001\n\007Vcenter\022\023\n\013internal_ip\030" + + "\002 \001(\t\022\017\n\007version\030\004 \001(\t\022@\n\005state\030\005 \001(\0162+." + + "google.cloud.vmwareengine.v1.Vcenter.Sta" + + "teB\004\342A\001\003\022\014\n\004fqdn\030\006 \001(\t\"8\n\005State\022\025\n\021STATE" + + "_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010CREATING\020\002" + + "\"\274\003\n\014PeeringRoute\022\030\n\ndest_range\030\001 \001(\tB\004\342" + + "A\001\003\022C\n\004type\030\002 \001(\0162/.google.cloud.vmwaree" + + "ngine.v1.PeeringRoute.TypeB\004\342A\001\003\022\035\n\017next" + + "_hop_region\030\003 \001(\tB\004\342A\001\003\022\026\n\010priority\030\004 \001(" + + "\003B\004\342A\001\003\022\026\n\010imported\030\005 \001(\010B\004\342A\001\003\022M\n\tdirec" + + "tion\030\006 \001(\01624.google.cloud.vmwareengine.v" + + "1.PeeringRoute.DirectionB\004\342A\001\003\"k\n\004Type\022\024" + + "\n\020TYPE_UNSPECIFIED\020\000\022\031\n\025DYNAMIC_PEERING_" + + "ROUTE\020\001\022\030\n\024STATIC_PEERING_ROUTE\020\002\022\030\n\024SUB" + + "NET_PEERING_ROUTE\020\003\"B\n\tDirection\022\031\n\025DIRE" + + "CTION_UNSPECIFIED\020\000\022\014\n\010INCOMING\020\001\022\014\n\010OUT" + + "GOING\020\002\"\210\007\n\rNetworkPolicy\022\022\n\004name\030\001 \001(\tB" + + "\004\342A\001\003\0225\n\013create_time\030\002 \001(\0132\032.google.prot" + + "obuf.TimestampB\004\342A\001\003\0225\n\013update_time\030\003 \001(" + + "\0132\032.google.protobuf.TimestampB\004\342A\001\003\022S\n\017i" + + "nternet_access\030\006 \001(\0132:.google.cloud.vmwa" + + "reengine.v1.NetworkPolicy.NetworkService" + + "\022O\n\013external_ip\030\007 \001(\0132:.google.cloud.vmw" + + "areengine.v1.NetworkPolicy.NetworkServic" + + "e\022 \n\022edge_services_cidr\030\t \001(\tB\004\342A\001\002\022\021\n\003u" + + "id\030\n \001(\tB\004\342A\001\003\022W\n\025vmware_engine_network\030" + + "\014 \001(\tB8\342A\001\001\372A1\n/vmwareengine.googleapis." + + "com/VmwareEngineNetwork\022\031\n\013description\030\r" + + " \001(\tB\004\342A\001\001\022a\n\037vmware_engine_network_cano" + + "nical\030\016 \001(\tB8\342A\001\003\372A1\n/vmwareengine.googl" + + "eapis.com/VmwareEngineNetwork\032\310\001\n\016Networ" + + "kService\022\017\n\007enabled\030\001 \001(\010\022U\n\005state\030\002 \001(\016" + + "2@.google.cloud.vmwareengine.v1.NetworkP" + + "olicy.NetworkService.StateB\004\342A\001\003\"N\n\005Stat" + + "e\022\025\n\021STATE_UNSPECIFIED\020\000\022\021\n\rUNPROVISIONE" + + "D\020\001\022\017\n\013RECONCILING\020\002\022\n\n\006ACTIVE\020\003:x\352Au\n)v" + + "mwareengine.googleapis.com/NetworkPolicy" + + "\022Hprojects/{project}/locations/{location" + + "}/networkPolicies/{network_policy}\"\273\007\n\023V" + + "mwareEngineNetwork\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\0225" + + "\n\013create_time\030\002 \001(\0132\032.google.protobuf.Ti" + + "mestampB\004\342A\001\003\0225\n\013update_time\030\003 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\004\342A\001\003\022\023\n\013descript" + + "ion\030\005 \001(\t\022X\n\014vpc_networks\030\006 \003(\0132<.google" + + ".cloud.vmwareengine.v1.VmwareEngineNetwo" + + "rk.VpcNetworkB\004\342A\001\003\022L\n\005state\030\007 \001(\01627.goo" + + "gle.cloud.vmwareengine.v1.VmwareEngineNe" + + "twork.StateB\004\342A\001\003\022J\n\004type\030\010 \001(\01626.google" + + ".cloud.vmwareengine.v1.VmwareEngineNetwo" + + "rk.TypeB\004\342A\001\002\022\021\n\003uid\030\t \001(\tB\004\342A\001\003\022\014\n\004etag" + + "\030\n \001(\t\032\351\001\n\nVpcNetwork\022U\n\004type\030\001 \001(\0162A.go" + + "ogle.cloud.vmwareengine.v1.VmwareEngineN" + + "etwork.VpcNetwork.TypeB\004\342A\001\003\0228\n\007network\030" + + "\002 \001(\tB\'\342A\001\003\372A \n\036compute.googleapis.com/N" + + "etwork\"J\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\014\n\010" + + "INTRANET\020\001\022\014\n\010INTERNET\020\002\022\020\n\014GOOGLE_CLOUD" + + "\020\003\"T\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CR" + + "EATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010UPDATING\020\003\022\014\n\010DE" + + "LETING\020\004\"(\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\n" + + "\n\006LEGACY\020\001:\213\001\352A\207\001\n/vmwareengine.googleap" + + "is.com/VmwareEngineNetwork\022Tprojects/{pr" + + "oject}/locations/{location}/vmwareEngine" + + "Networks/{vmware_engine_network}\"\304\n\n\021Pri" + + "vateConnection\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\0225\n\013cr" + + "eate_time\030\002 \001(\0132\032.google.protobuf.Timest" + + "ampB\004\342A\001\003\0225\n\013update_time\030\003 \001(\0132\032.google." + + "protobuf.TimestampB\004\342A\001\003\022\031\n\013description\030" + + "\004 \001(\tB\004\342A\001\001\022J\n\005state\030\005 \001(\01625.google.clou" + + "d.vmwareengine.v1.PrivateConnection.Stat" + + "eB\004\342A\001\003\022W\n\025vmware_engine_network\030\010 \001(\tB8" + + "\342A\001\002\372A1\n/vmwareengine.googleapis.com/Vmw" + + "areEngineNetwork\022a\n\037vmware_engine_networ" + + "k_canonical\030\t \001(\tB8\342A\001\003\372A1\n/vmwareengine" + + ".googleapis.com/VmwareEngineNetwork\022H\n\004t" + + "ype\030\n \001(\01624.google.cloud.vmwareengine.v1" + + ".PrivateConnection.TypeB\004\342A\001\002\022\030\n\npeering" + + "_id\030\014 \001(\tB\004\342A\001\003\022W\n\014routing_mode\030\r \001(\0162;." + + "google.cloud.vmwareengine.v1.PrivateConn" + + "ection.RoutingModeB\004\342A\001\001\022\021\n\003uid\030\016 \001(\tB\004\342" + + "A\001\003\022@\n\017service_network\030\020 \001(\tB\'\342A\001\002\372A \n\036c" + + "ompute.googleapis.com/Network\022Y\n\rpeering" + + "_state\030\021 \001(\0162<.google.cloud.vmwareengine" + + ".v1.PrivateConnection.PeeringStateB\004\342A\001\003" + + "\"s\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREA" + + "TING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010UPDATING\020\003\022\014\n\010DELE" + + "TING\020\004\022\021\n\rUNPROVISIONED\020\005\022\n\n\006FAILED\020\006\"\200\001" + + "\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\032\n\026PRIVATE_" + + "SERVICE_ACCESS\020\001\022\030\n\024NETAPP_CLOUD_VOLUMES" + + "\020\002\022\023\n\017DELL_POWERSCALE\020\003\022\027\n\023THIRD_PARTY_S" + + "ERVICE\020\004\"E\n\013RoutingMode\022\034\n\030ROUTING_MODE_" + + "UNSPECIFIED\020\000\022\n\n\006GLOBAL\020\001\022\014\n\010REGIONAL\020\002\"" + + "W\n\014PeeringState\022\035\n\031PEERING_STATE_UNSPECI" + + "FIED\020\000\022\022\n\016PEERING_ACTIVE\020\001\022\024\n\020PEERING_IN" + + "ACTIVE\020\002:\204\001\352A\200\001\n-vmwareengine.googleapis" + + ".com/PrivateConnection\022Oprojects/{projec" + + "t}/locations/{location}/privateConnectio" + + "ns/{private_connection}B\346\001\n com.google.c" + + "loud.vmwareengine.v1B\032VmwareengineResour" + + "cesProtoP\001ZDcloud.google.com/go/vmwareen" + + "gine/apiv1/vmwareenginepb;vmwareenginepb" + + "\252\002\034Google.Cloud.VmwareEngine.V1\312\002\034Google" + + "\\Cloud\\VmwareEngine\\V1\352\002\037Google::Cloud::" + + "VmwareEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -314,6 +370,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Nsx", "Vcenter", "Uid", + "Type", }); internal_static_google_cloud_vmwareengine_v1_PrivateCloud_ManagementCluster_descriptor = internal_static_google_cloud_vmwareengine_v1_PrivateCloud_descriptor @@ -414,8 +471,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "InternalIp", "Version", "State", "Fqdn", }); - internal_static_google_cloud_vmwareengine_v1_NetworkPolicy_descriptor = + internal_static_google_cloud_vmwareengine_v1_PeeringRoute_descriptor = getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_vmwareengine_v1_PeeringRoute_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_PeeringRoute_descriptor, + new java.lang.String[] { + "DestRange", "Type", "NextHopRegion", "Priority", "Imported", "Direction", + }); + internal_static_google_cloud_vmwareengine_v1_NetworkPolicy_descriptor = + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_vmwareengine_v1_NetworkPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_NetworkPolicy_descriptor, @@ -442,7 +507,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Enabled", "State", }); internal_static_google_cloud_vmwareengine_v1_VmwareEngineNetwork_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_vmwareengine_v1_VmwareEngineNetwork_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_VmwareEngineNetwork_descriptor, @@ -467,6 +532,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Type", "Network", }); + internal_static_google_cloud_vmwareengine_v1_PrivateConnection_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_vmwareengine_v1_PrivateConnection_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_PrivateConnection_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Description", + "State", + "VmwareEngineNetwork", + "VmwareEngineNetworkCanonical", + "Type", + "PeeringId", + "RoutingMode", + "Uid", + "ServiceNetwork", + "PeeringState", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/proto/google/cloud/vmwareengine/v1/vmwareengine.proto b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/proto/google/cloud/vmwareengine/v1/vmwareengine.proto index 035c5bd397b5..eef4dcd7da4a 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/proto/google/cloud/vmwareengine/v1/vmwareengine.proto +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/proto/google/cloud/vmwareengine/v1/vmwareengine.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,6 +22,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/vmwareengine/v1/vmwareengine_resources.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; @@ -224,6 +225,32 @@ service VmwareEngine { option (google.api.method_signature) = "parent"; } + // Gets details of a single subnet. + rpc GetSubnet(GetSubnetRequest) returns (Subnet) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/privateClouds/*/subnets/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates the parameters of a single subnet. Only fields specified in + // `update_mask` are applied. + // + // *Note*: This API is synchronous and always returns a successful + // `google.longrunning.Operation` (LRO). The returned LRO will only have + // `done` and `response` fields. + rpc UpdateSubnet(UpdateSubnetRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{subnet.name=projects/*/locations/*/privateClouds/*/subnets/*}" + body: "subnet" + }; + option (google.api.method_signature) = "subnet,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Subnet" + metadata_type: "OperationMetadata" + }; + } + // Lists node types rpc ListNodeTypes(ListNodeTypesRequest) returns (ListNodeTypesResponse) { option (google.api.http) = { @@ -459,6 +486,83 @@ service VmwareEngine { }; option (google.api.method_signature) = "parent"; } + + // Creates a new private connection that can be used for accessing private + // Clouds. + rpc CreatePrivateConnection(CreatePrivateConnectionRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/privateConnections" + body: "private_connection" + }; + option (google.api.method_signature) = + "parent,private_connection,private_connection_id"; + option (google.longrunning.operation_info) = { + response_type: "PrivateConnection" + metadata_type: "OperationMetadata" + }; + } + + // Retrieves a `PrivateConnection` resource by its resource name. The resource + // contains details of the private connection, such as connected + // network, routing mode and state. + rpc GetPrivateConnection(GetPrivateConnectionRequest) + returns (PrivateConnection) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/privateConnections/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists `PrivateConnection` resources in a given project and location. + rpc ListPrivateConnections(ListPrivateConnectionsRequest) + returns (ListPrivateConnectionsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/privateConnections" + }; + option (google.api.method_signature) = "parent"; + } + + // Modifies a `PrivateConnection` resource. Only `description` and + // `routing_mode` fields can be updated. Only fields specified in `updateMask` + // are applied. + rpc UpdatePrivateConnection(UpdatePrivateConnectionRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{private_connection.name=projects/*/locations/*/privateConnections/*}" + body: "private_connection" + }; + option (google.api.method_signature) = "private_connection,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "PrivateConnection" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a `PrivateConnection` resource. When a private connection is + // deleted for a VMware Engine network, the connected network becomes + // inaccessible to that VMware Engine network. + rpc DeletePrivateConnection(DeletePrivateConnectionRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/privateConnections/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Lists the private connection routes exchanged over a peering connection. + rpc ListPrivateConnectionPeeringRoutes( + ListPrivateConnectionPeeringRoutesRequest) + returns (ListPrivateConnectionPeeringRoutesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/privateConnections/*}/peeringRoutes" + }; + option (google.api.method_signature) = "parent"; + } } // Request message for @@ -877,6 +981,41 @@ message ListSubnetsResponse { // A token, which can be sent as `page_token` to retrieve the next page. // If this field is omitted, there are no subsequent pages. string next_page_token = 2; + + // Locations that could not be reached when making an aggregated query using + // wildcards. + repeated string unreachable = 3; +} + +// Request message for +// [VmwareEngine.GetSubnet][google.cloud.vmwareengine.v1.VmwareEngine.GetSubnet] +message GetSubnetRequest { + // Required. The resource name of the subnet to retrieve. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/subnets/my-subnet` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/Subnet" + } + ]; +} + +// Request message for +// [VmwareEngine.UpdateSubnet][google.cloud.vmwareengine.v1.VmwareEngine.UpdateSubnet] +message UpdateSubnetRequest { + // Required. Field mask is used to specify the fields to be overwritten in the + // `Subnet` resource by the update. + // The fields specified in the `update_mask` are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields will be overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Subnet description. + Subnet subnet = 2 [(google.api.field_behavior) = REQUIRED]; } // Represents the metadata of the long-running operation. @@ -1631,3 +1770,246 @@ message ListVmwareEngineNetworksResponse { // Unreachable resources. repeated string unreachable = 3; } + +// Request message for +// [VmwareEngine.CreatePrivateConnection][google.cloud.vmwareengine.v1.VmwareEngine.CreatePrivateConnection] +message CreatePrivateConnectionRequest { + // Required. The resource name of the location to create the new private + // connection in. Private connection is a regional resource. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. For example: + // `projects/my-project/locations/us-central1` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "vmwareengine.googleapis.com/PrivateConnection" + } + ]; + + // Required. The user-provided identifier of the new private connection. + // This identifier must be unique among private connection resources + // within the parent and becomes the final token in the name URI. The + // identifier must meet the following requirements: + // + // * Only contains 1-63 alphanumeric characters and hyphens + // * Begins with an alphabetical character + // * Ends with a non-hyphen character + // * Not formatted as a UUID + // * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) + // (section 3.5) + string private_connection_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The initial description of the new private connection. + PrivateConnection private_connection = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server guarantees that a + // request doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [VmwareEngine.GetPrivateConnection][google.cloud.vmwareengine.v1.VmwareEngine.GetPrivateConnection] +message GetPrivateConnectionRequest { + // Required. The resource name of the private connection to retrieve. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1/privateConnections/my-connection` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/PrivateConnection" + } + ]; +} + +// Request message for +// [VmwareEngine.ListPrivateConnections][google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateConnections] +message ListPrivateConnectionsRequest { + // Required. The resource name of the location to query for + // private connections. Resource names are schemeless URIs that follow the + // conventions in https://cloud.google.com/apis/design/resource_names. For + // example: `projects/my-project/locations/us-central1` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "vmwareengine.googleapis.com/PrivateConnection" + } + ]; + + // The maximum number of private connections to return in one page. + // The maximum value is coerced to 1000. + // The default value of this field is 500. + int32 page_size = 2; + + // A page token, received from a previous `ListPrivateConnections` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `ListPrivateConnections` must match the call that provided the page + // token. + string page_token = 3; + + // A filter expression that matches resources returned in the response. + // The expression must specify the field name, a comparison + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The comparison operator + // must be `=`, `!=`, `>`, or `<`. + // + // For example, if you are filtering a list of private connections, you can + // exclude the ones named `example-connection` by specifying + // `name != "example-connection"`. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (name = "example-connection") + // (createTime > "2022-09-22T08:15:10.40Z") + // ``` + // + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (name = "example-connection-1") AND + // (createTime > "2021-04-12T08:15:10.40Z") OR + // (name = "example-connection-2") + // ``` + string filter = 4; + + // Sorts list results by a certain order. By default, returned results + // are ordered by `name` in ascending order. + // You can also sort results in descending order based on the `name` value + // using `orderBy="name desc"`. + // Currently, only ordering by `name` is supported. + string order_by = 5; +} + +// Response message for +// [VmwareEngine.ListPrivateConnections][google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateConnections] +message ListPrivateConnectionsResponse { + // A list of private connections. + repeated PrivateConnection private_connections = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Unreachable resources. + repeated string unreachable = 3; +} + +// Request message for +// [VmwareEngine.UpdatePrivateConnection][google.cloud.vmwareengine.v1.VmwareEngine.UpdatePrivateConnection] +message UpdatePrivateConnectionRequest { + // Required. Private connection description. + PrivateConnection private_connection = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Field mask is used to specify the fields to be overwritten in the + // `PrivateConnection` resource by the update. + // The fields specified in the `update_mask` are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields will be overwritten. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server guarantees that a + // request doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [VmwareEngine.DeletePrivateConnection][google.cloud.vmwareengine.v1.VmwareEngine.DeletePrivateConnection] +message DeletePrivateConnectionRequest { + // Required. The resource name of the private connection to be deleted. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1/privateConnections/my-connection` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/PrivateConnection" + } + ]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server guarantees that a + // request doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [VmwareEngine.ListPrivateConnectionPeeringRoutes][google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateConnectionPeeringRoutes] +message ListPrivateConnectionPeeringRoutesRequest { + // Required. The resource name of the private connection to retrieve peering + // routes from. Resource names are schemeless URIs that follow the conventions + // in https://cloud.google.com/apis/design/resource_names. For example: + // `projects/my-project/locations/us-west1/privateConnections/my-connection` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/PrivateConnection" + } + ]; + + // The maximum number of peering routes to return in one page. + // The service may return fewer than this value. + // The maximum value is coerced to 1000. + // The default value of this field is 500. + int32 page_size = 2; + + // A page token, received from a previous `ListPrivateConnectionPeeringRoutes` + // call. Provide this to retrieve the subsequent page. When paginating, all + // other parameters provided to `ListPrivateConnectionPeeringRoutes` must + // match the call that provided the page token. + string page_token = 3; +} + +// Response message for +// [VmwareEngine.ListPrivateConnectionPeeringRoutes][google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateConnectionPeeringRoutes] +message ListPrivateConnectionPeeringRoutesResponse { + // A list of peering routes. + repeated PeeringRoute peering_routes = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/proto/google/cloud/vmwareengine/v1/vmwareengine_resources.proto b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/proto/google/cloud/vmwareengine/v1/vmwareengine_resources.proto index 4f0a496df033..273a833719e8 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/proto/google/cloud/vmwareengine/v1/vmwareengine_resources.proto +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/proto/google/cloud/vmwareengine/v1/vmwareengine_resources.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -130,6 +130,18 @@ message PrivateCloud { [(google.api.field_behavior) = REQUIRED]; } + // Enum Type defines private cloud type. + enum Type { + // Standard private is a zonal resource, with 3+ nodes. Default type. + STANDARD = 0; + + // Time limited private cloud is a zonal resource, can have only 1 node and + // has limited life span. Will be deleted after defined period of time, + // can be converted into standard private cloud by expanding it up to 3 + // or more nodes. + TIME_LIMITED = 1; + } + // Output only. The resource name of this private cloud. // Resource names are schemeless URIs that follow the conventions in // https://cloud.google.com/apis/design/resource_names. @@ -185,6 +197,9 @@ message PrivateCloud { // Output only. System-generated unique identifier for the resource. string uid = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Type of the private cloud. Defaults to STANDARD. + Type type = 22 [(google.api.field_behavior) = OPTIONAL]; } // A cluster in a private cloud. @@ -273,6 +288,13 @@ message Subnet { // The subnet is being deleted. DELETING = 4; + + // Changes requested in the last operation are being propagated. + RECONCILING = 5; + + // Last operation on the subnet did not succeed. Subnet's payload is + // reverted back to its most recent working state. + FAILED = 6; } // Output only. The resource name of this subnet. @@ -476,6 +498,65 @@ message Vcenter { string fqdn = 6; } +// Exchanged network peering route. +message PeeringRoute { + // The type of the peering route. + enum Type { + // Unspecified peering route type. This is the default value. + TYPE_UNSPECIFIED = 0; + + // Dynamic routes in the peer network. + DYNAMIC_PEERING_ROUTE = 1; + + // Static routes in the peer network. + STATIC_PEERING_ROUTE = 2; + + // Created, updated, and removed automatically by Google Cloud when subnets + // are created, modified, or deleted in the peer network. + SUBNET_PEERING_ROUTE = 3; + } + + // The direction of the exchanged routes. + enum Direction { + // Unspecified exchanged routes direction. This is default. + DIRECTION_UNSPECIFIED = 0; + + // Routes imported from the peer network. + INCOMING = 1; + + // Routes exported to the peer network. + OUTGOING = 2; + } + + // Output only. Destination range of the peering route in CIDR notation. + string dest_range = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Type of the route in the peer VPC network. + Type type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Region containing the next hop of the peering route. This + // field only applies to dynamic routes in the peer VPC network. + string next_hop_region = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The priority of the peering route. + int64 priority = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. True if the peering route has been imported from a peered + // VPC network; false otherwise. The import happens if the field + // `NetworkPeering.importCustomRoutes` is true for this network, + // `NetworkPeering.exportCustomRoutes` is true for the peer VPC network, and + // the import does not result in a route conflict. + bool imported = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Direction of the routes exchanged with the peer network, from + // the VMware Engine network perspective: + // + // * Routes of direction `INCOMING` are imported from the peer network. + // * Routes of direction `OUTGOING` are exported from the intranet VPC network + // of the VMware Engine network. + Direction direction = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // Represents a network policy resource. Network policies are regional // resources. You can use a network policy to enable or disable internet access // and external IP access. Network policies are associated with a VMware Engine @@ -688,3 +769,163 @@ message VmwareEngineNetwork { // request. string etag = 10; } + +// Private connection resource that provides connectivity for VMware Engine +// private clouds. +message PrivateConnection { + option (google.api.resource) = { + type: "vmwareengine.googleapis.com/PrivateConnection" + pattern: "projects/{project}/locations/{location}/privateConnections/{private_connection}" + }; + + // Enum State defines possible states of private connection. + enum State { + // The default value. This value is used if the state is omitted. + STATE_UNSPECIFIED = 0; + + // The private connection is being created. + CREATING = 1; + + // The private connection is ready. + ACTIVE = 2; + + // The private connection is being updated. + UPDATING = 3; + + // The private connection is being deleted. + DELETING = 4; + + // The private connection is not provisioned, since no private cloud is + // present for which this private connection is needed. + UNPROVISIONED = 5; + + // The private connection is in failed state. + FAILED = 6; + } + + // Enum Type defines possible types of private connection. + enum Type { + // The default value. This value should never be used. + TYPE_UNSPECIFIED = 0; + + // Connection used for establishing [private services + // access](https://cloud.google.com/vpc/docs/private-services-access). + PRIVATE_SERVICE_ACCESS = 1; + + // Connection used for connecting to NetApp Cloud Volumes. + NETAPP_CLOUD_VOLUMES = 2; + + // Connection used for connecting to Dell PowerScale. + DELL_POWERSCALE = 3; + + // Connection used for connecting to third-party services. + THIRD_PARTY_SERVICE = 4; + } + + // Possible types for RoutingMode + enum RoutingMode { + // The default value. This value should never be used. + ROUTING_MODE_UNSPECIFIED = 0; + + // Global Routing Mode + GLOBAL = 1; + + // Regional Routing Mode + REGIONAL = 2; + } + + // Enum PeeringState defines the possible states of peering between service + // network and the vpc network peered to service network + enum PeeringState { + // The default value. This value is used if the peering state is omitted or + // unknown. + PEERING_STATE_UNSPECIFIED = 0; + + // The peering is in active state. + PEERING_ACTIVE = 1; + + // The peering is in inactive state. + PEERING_INACTIVE = 2; + } + + // Output only. The resource name of the private connection. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1/privateConnections/my-connection` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Creation time of this resource. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Last update time of this resource. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. User-provided description for this private connection. + string description = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. State of the private connection. + State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The relative resource name of Legacy VMware Engine network. + // Specify the name in the following form: + // `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}` + // where `{project}`, `{location}` will be same as specified in private + // connection resource name and `{vmware_engine_network_id}` will be in the + // form of `{location}`-default e.g. + // projects/project/locations/us-central1/vmwareEngineNetworks/us-central1-default. + string vmware_engine_network = 8 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/VmwareEngineNetwork" + } + ]; + + // Output only. The canonical name of the VMware Engine network in the form: + // `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}` + string vmware_engine_network_canonical = 9 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/VmwareEngineNetwork" + } + ]; + + // Required. Private connection type. + Type type = 10 [(google.api.field_behavior) = REQUIRED]; + + // Output only. VPC network peering id between given network VPC and + // VMwareEngineNetwork. + string peering_id = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Routing Mode. + // Default value is set to GLOBAL. + // For type = PRIVATE_SERVICE_ACCESS, this field can be set to GLOBAL or + // REGIONAL, for other types only GLOBAL is supported. + RoutingMode routing_mode = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. System-generated unique identifier for the resource. + string uid = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Service network to create private connection. + // Specify the name in the following form: + // `projects/{project}/global/networks/{network_id}` + // For type = PRIVATE_SERVICE_ACCESS, this field represents servicenetworking + // VPC, e.g. projects/project-tp/global/networks/servicenetworking. + // For type = NETAPP_CLOUD_VOLUME, this field represents NetApp service VPC, + // e.g. projects/project-tp/global/networks/netapp-tenant-vpc. + // For type = DELL_POWERSCALE, this field represent Dell service VPC, e.g. + // projects/project-tp/global/networks/dell-tenant-vpc. + // For type= THIRD_PARTY_SERVICE, this field could represent a consumer VPC or + // any other producer VPC to which the VMware Engine Network needs to be + // connected, e.g. projects/project/global/networks/vpc. + string service_network = 16 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } + ]; + + // Output only. Peering state between service network and VMware Engine + // network. + PeeringState peering_state = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createprivateconnection/AsyncCreatePrivateConnection.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createprivateconnection/AsyncCreatePrivateConnection.java new file mode 100644 index 000000000000..c0faaee0197e --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createprivateconnection/AsyncCreatePrivateConnection.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_CreatePrivateConnection_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest; +import com.google.cloud.vmwareengine.v1.LocationName; +import com.google.cloud.vmwareengine.v1.PrivateConnection; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.longrunning.Operation; + +public class AsyncCreatePrivateConnection { + + public static void main(String[] args) throws Exception { + asyncCreatePrivateConnection(); + } + + public static void asyncCreatePrivateConnection() throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + CreatePrivateConnectionRequest request = + CreatePrivateConnectionRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPrivateConnectionId("privateConnectionId-1926654532") + .setPrivateConnection(PrivateConnection.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + vmwareEngineClient.createPrivateConnectionCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_CreatePrivateConnection_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createprivateconnection/AsyncCreatePrivateConnectionLRO.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createprivateconnection/AsyncCreatePrivateConnectionLRO.java new file mode 100644 index 000000000000..ad9c7be12b07 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createprivateconnection/AsyncCreatePrivateConnectionLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_CreatePrivateConnection_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest; +import com.google.cloud.vmwareengine.v1.LocationName; +import com.google.cloud.vmwareengine.v1.OperationMetadata; +import com.google.cloud.vmwareengine.v1.PrivateConnection; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class AsyncCreatePrivateConnectionLRO { + + public static void main(String[] args) throws Exception { + asyncCreatePrivateConnectionLRO(); + } + + public static void asyncCreatePrivateConnectionLRO() throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + CreatePrivateConnectionRequest request = + CreatePrivateConnectionRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPrivateConnectionId("privateConnectionId-1926654532") + .setPrivateConnection(PrivateConnection.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + vmwareEngineClient.createPrivateConnectionOperationCallable().futureCall(request); + // Do something. + PrivateConnection response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_CreatePrivateConnection_LRO_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createprivateconnection/SyncCreatePrivateConnection.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createprivateconnection/SyncCreatePrivateConnection.java new file mode 100644 index 000000000000..fa41759a8338 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createprivateconnection/SyncCreatePrivateConnection.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_CreatePrivateConnection_sync] +import com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest; +import com.google.cloud.vmwareengine.v1.LocationName; +import com.google.cloud.vmwareengine.v1.PrivateConnection; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncCreatePrivateConnection { + + public static void main(String[] args) throws Exception { + syncCreatePrivateConnection(); + } + + public static void syncCreatePrivateConnection() throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + CreatePrivateConnectionRequest request = + CreatePrivateConnectionRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPrivateConnectionId("privateConnectionId-1926654532") + .setPrivateConnection(PrivateConnection.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + PrivateConnection response = vmwareEngineClient.createPrivateConnectionAsync(request).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_CreatePrivateConnection_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java new file mode 100644 index 000000000000..a86a57beaac0 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_CreatePrivateConnection_LocationnamePrivateconnectionString_sync] +import com.google.cloud.vmwareengine.v1.LocationName; +import com.google.cloud.vmwareengine.v1.PrivateConnection; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncCreatePrivateConnectionLocationnamePrivateconnectionString { + + public static void main(String[] args) throws Exception { + syncCreatePrivateConnectionLocationnamePrivateconnectionString(); + } + + public static void syncCreatePrivateConnectionLocationnamePrivateconnectionString() + throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + PrivateConnection privateConnection = PrivateConnection.newBuilder().build(); + String privateConnectionId = "privateConnectionId-1926654532"; + PrivateConnection response = + vmwareEngineClient + .createPrivateConnectionAsync(parent, privateConnection, privateConnectionId) + .get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_CreatePrivateConnection_LocationnamePrivateconnectionString_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java new file mode 100644 index 000000000000..579a4006eac6 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_CreatePrivateConnection_StringPrivateconnectionString_sync] +import com.google.cloud.vmwareengine.v1.LocationName; +import com.google.cloud.vmwareengine.v1.PrivateConnection; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncCreatePrivateConnectionStringPrivateconnectionString { + + public static void main(String[] args) throws Exception { + syncCreatePrivateConnectionStringPrivateconnectionString(); + } + + public static void syncCreatePrivateConnectionStringPrivateconnectionString() throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + PrivateConnection privateConnection = PrivateConnection.newBuilder().build(); + String privateConnectionId = "privateConnectionId-1926654532"; + PrivateConnection response = + vmwareEngineClient + .createPrivateConnectionAsync(parent, privateConnection, privateConnectionId) + .get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_CreatePrivateConnection_StringPrivateconnectionString_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteprivateconnection/AsyncDeletePrivateConnection.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteprivateconnection/AsyncDeletePrivateConnection.java new file mode 100644 index 000000000000..0228b1b0d977 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteprivateconnection/AsyncDeletePrivateConnection.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_DeletePrivateConnection_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest; +import com.google.cloud.vmwareengine.v1.PrivateConnectionName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.longrunning.Operation; + +public class AsyncDeletePrivateConnection { + + public static void main(String[] args) throws Exception { + asyncDeletePrivateConnection(); + } + + public static void asyncDeletePrivateConnection() throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + DeletePrivateConnectionRequest request = + DeletePrivateConnectionRequest.newBuilder() + .setName( + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + vmwareEngineClient.deletePrivateConnectionCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_DeletePrivateConnection_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java new file mode 100644 index 000000000000..8870edf79bb8 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_DeletePrivateConnection_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest; +import com.google.cloud.vmwareengine.v1.OperationMetadata; +import com.google.cloud.vmwareengine.v1.PrivateConnectionName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.Empty; + +public class AsyncDeletePrivateConnectionLRO { + + public static void main(String[] args) throws Exception { + asyncDeletePrivateConnectionLRO(); + } + + public static void asyncDeletePrivateConnectionLRO() throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + DeletePrivateConnectionRequest request = + DeletePrivateConnectionRequest.newBuilder() + .setName( + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + vmwareEngineClient.deletePrivateConnectionOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_DeletePrivateConnection_LRO_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteprivateconnection/SyncDeletePrivateConnection.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteprivateconnection/SyncDeletePrivateConnection.java new file mode 100644 index 000000000000..3b916729f7e4 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteprivateconnection/SyncDeletePrivateConnection.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_DeletePrivateConnection_sync] +import com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest; +import com.google.cloud.vmwareengine.v1.PrivateConnectionName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.Empty; + +public class SyncDeletePrivateConnection { + + public static void main(String[] args) throws Exception { + syncDeletePrivateConnection(); + } + + public static void syncDeletePrivateConnection() throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + DeletePrivateConnectionRequest request = + DeletePrivateConnectionRequest.newBuilder() + .setName( + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]") + .toString()) + .setRequestId("requestId693933066") + .build(); + vmwareEngineClient.deletePrivateConnectionAsync(request).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_DeletePrivateConnection_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java new file mode 100644 index 000000000000..eedca536f1d5 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_DeletePrivateConnection_Privateconnectionname_sync] +import com.google.cloud.vmwareengine.v1.PrivateConnectionName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.Empty; + +public class SyncDeletePrivateConnectionPrivateconnectionname { + + public static void main(String[] args) throws Exception { + syncDeletePrivateConnectionPrivateconnectionname(); + } + + public static void syncDeletePrivateConnectionPrivateconnectionname() throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + PrivateConnectionName name = + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"); + vmwareEngineClient.deletePrivateConnectionAsync(name).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_DeletePrivateConnection_Privateconnectionname_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteprivateconnection/SyncDeletePrivateConnectionString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteprivateconnection/SyncDeletePrivateConnectionString.java new file mode 100644 index 000000000000..8407fbd75109 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteprivateconnection/SyncDeletePrivateConnectionString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_DeletePrivateConnection_String_sync] +import com.google.cloud.vmwareengine.v1.PrivateConnectionName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.Empty; + +public class SyncDeletePrivateConnectionString { + + public static void main(String[] args) throws Exception { + syncDeletePrivateConnectionString(); + } + + public static void syncDeletePrivateConnectionString() throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + String name = + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString(); + vmwareEngineClient.deletePrivateConnectionAsync(name).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_DeletePrivateConnection_String_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getprivateconnection/AsyncGetPrivateConnection.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getprivateconnection/AsyncGetPrivateConnection.java new file mode 100644 index 000000000000..36f845511145 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getprivateconnection/AsyncGetPrivateConnection.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_GetPrivateConnection_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest; +import com.google.cloud.vmwareengine.v1.PrivateConnection; +import com.google.cloud.vmwareengine.v1.PrivateConnectionName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class AsyncGetPrivateConnection { + + public static void main(String[] args) throws Exception { + asyncGetPrivateConnection(); + } + + public static void asyncGetPrivateConnection() throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + GetPrivateConnectionRequest request = + GetPrivateConnectionRequest.newBuilder() + .setName( + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]") + .toString()) + .build(); + ApiFuture future = + vmwareEngineClient.getPrivateConnectionCallable().futureCall(request); + // Do something. + PrivateConnection response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetPrivateConnection_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getprivateconnection/SyncGetPrivateConnection.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getprivateconnection/SyncGetPrivateConnection.java new file mode 100644 index 000000000000..71f61432d7a8 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getprivateconnection/SyncGetPrivateConnection.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_GetPrivateConnection_sync] +import com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest; +import com.google.cloud.vmwareengine.v1.PrivateConnection; +import com.google.cloud.vmwareengine.v1.PrivateConnectionName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncGetPrivateConnection { + + public static void main(String[] args) throws Exception { + syncGetPrivateConnection(); + } + + public static void syncGetPrivateConnection() throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + GetPrivateConnectionRequest request = + GetPrivateConnectionRequest.newBuilder() + .setName( + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]") + .toString()) + .build(); + PrivateConnection response = vmwareEngineClient.getPrivateConnection(request); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetPrivateConnection_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java new file mode 100644 index 000000000000..738c3841313d --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_GetPrivateConnection_Privateconnectionname_sync] +import com.google.cloud.vmwareengine.v1.PrivateConnection; +import com.google.cloud.vmwareengine.v1.PrivateConnectionName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncGetPrivateConnectionPrivateconnectionname { + + public static void main(String[] args) throws Exception { + syncGetPrivateConnectionPrivateconnectionname(); + } + + public static void syncGetPrivateConnectionPrivateconnectionname() throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + PrivateConnectionName name = + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"); + PrivateConnection response = vmwareEngineClient.getPrivateConnection(name); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetPrivateConnection_Privateconnectionname_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getprivateconnection/SyncGetPrivateConnectionString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getprivateconnection/SyncGetPrivateConnectionString.java new file mode 100644 index 000000000000..d7175b492792 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getprivateconnection/SyncGetPrivateConnectionString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_GetPrivateConnection_String_sync] +import com.google.cloud.vmwareengine.v1.PrivateConnection; +import com.google.cloud.vmwareengine.v1.PrivateConnectionName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncGetPrivateConnectionString { + + public static void main(String[] args) throws Exception { + syncGetPrivateConnectionString(); + } + + public static void syncGetPrivateConnectionString() throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + String name = + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString(); + PrivateConnection response = vmwareEngineClient.getPrivateConnection(name); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetPrivateConnection_String_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getsubnet/AsyncGetSubnet.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getsubnet/AsyncGetSubnet.java new file mode 100644 index 000000000000..1bc9f57ae34f --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getsubnet/AsyncGetSubnet.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_GetSubnet_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.GetSubnetRequest; +import com.google.cloud.vmwareengine.v1.Subnet; +import com.google.cloud.vmwareengine.v1.SubnetName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class AsyncGetSubnet { + + public static void main(String[] args) throws Exception { + asyncGetSubnet(); + } + + public static void asyncGetSubnet() throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + GetSubnetRequest request = + GetSubnetRequest.newBuilder() + .setName( + SubnetName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[SUBNET]") + .toString()) + .build(); + ApiFuture future = vmwareEngineClient.getSubnetCallable().futureCall(request); + // Do something. + Subnet response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetSubnet_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getsubnet/SyncGetSubnet.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getsubnet/SyncGetSubnet.java new file mode 100644 index 000000000000..f300aa4f723c --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getsubnet/SyncGetSubnet.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_GetSubnet_sync] +import com.google.cloud.vmwareengine.v1.GetSubnetRequest; +import com.google.cloud.vmwareengine.v1.Subnet; +import com.google.cloud.vmwareengine.v1.SubnetName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncGetSubnet { + + public static void main(String[] args) throws Exception { + syncGetSubnet(); + } + + public static void syncGetSubnet() throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + GetSubnetRequest request = + GetSubnetRequest.newBuilder() + .setName( + SubnetName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[SUBNET]") + .toString()) + .build(); + Subnet response = vmwareEngineClient.getSubnet(request); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetSubnet_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getsubnet/SyncGetSubnetString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getsubnet/SyncGetSubnetString.java new file mode 100644 index 000000000000..af08e98dec8b --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getsubnet/SyncGetSubnetString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_GetSubnet_String_sync] +import com.google.cloud.vmwareengine.v1.Subnet; +import com.google.cloud.vmwareengine.v1.SubnetName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncGetSubnetString { + + public static void main(String[] args) throws Exception { + syncGetSubnetString(); + } + + public static void syncGetSubnetString() throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + String name = + SubnetName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[SUBNET]").toString(); + Subnet response = vmwareEngineClient.getSubnet(name); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetSubnet_String_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getsubnet/SyncGetSubnetSubnetname.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getsubnet/SyncGetSubnetSubnetname.java new file mode 100644 index 000000000000..fa2fc7d13fd8 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getsubnet/SyncGetSubnetSubnetname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_GetSubnet_Subnetname_sync] +import com.google.cloud.vmwareengine.v1.Subnet; +import com.google.cloud.vmwareengine.v1.SubnetName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncGetSubnetSubnetname { + + public static void main(String[] args) throws Exception { + syncGetSubnetSubnetname(); + } + + public static void syncGetSubnetSubnetname() throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + SubnetName name = SubnetName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[SUBNET]"); + Subnet response = vmwareEngineClient.getSubnet(name); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetSubnet_Subnetname_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listprivateconnectionpeeringroutes/AsyncListPrivateConnectionPeeringRoutes.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listprivateconnectionpeeringroutes/AsyncListPrivateConnectionPeeringRoutes.java new file mode 100644 index 000000000000..3e4a56617898 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listprivateconnectionpeeringroutes/AsyncListPrivateConnectionPeeringRoutes.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_ListPrivateConnectionPeeringRoutes_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest; +import com.google.cloud.vmwareengine.v1.PeeringRoute; +import com.google.cloud.vmwareengine.v1.PrivateConnectionName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class AsyncListPrivateConnectionPeeringRoutes { + + public static void main(String[] args) throws Exception { + asyncListPrivateConnectionPeeringRoutes(); + } + + public static void asyncListPrivateConnectionPeeringRoutes() throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + ListPrivateConnectionPeeringRoutesRequest request = + ListPrivateConnectionPeeringRoutesRequest.newBuilder() + .setParent( + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + vmwareEngineClient.listPrivateConnectionPeeringRoutesPagedCallable().futureCall(request); + // Do something. + for (PeeringRoute element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListPrivateConnectionPeeringRoutes_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listprivateconnectionpeeringroutes/AsyncListPrivateConnectionPeeringRoutesPaged.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listprivateconnectionpeeringroutes/AsyncListPrivateConnectionPeeringRoutesPaged.java new file mode 100644 index 000000000000..9c83d2ce47f9 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listprivateconnectionpeeringroutes/AsyncListPrivateConnectionPeeringRoutesPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_ListPrivateConnectionPeeringRoutes_Paged_async] +import com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest; +import com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse; +import com.google.cloud.vmwareengine.v1.PeeringRoute; +import com.google.cloud.vmwareengine.v1.PrivateConnectionName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.common.base.Strings; + +public class AsyncListPrivateConnectionPeeringRoutesPaged { + + public static void main(String[] args) throws Exception { + asyncListPrivateConnectionPeeringRoutesPaged(); + } + + public static void asyncListPrivateConnectionPeeringRoutesPaged() throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + ListPrivateConnectionPeeringRoutesRequest request = + ListPrivateConnectionPeeringRoutesRequest.newBuilder() + .setParent( + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListPrivateConnectionPeeringRoutesResponse response = + vmwareEngineClient.listPrivateConnectionPeeringRoutesCallable().call(request); + for (PeeringRoute element : response.getPeeringRoutesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListPrivateConnectionPeeringRoutes_Paged_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listprivateconnectionpeeringroutes/SyncListPrivateConnectionPeeringRoutes.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listprivateconnectionpeeringroutes/SyncListPrivateConnectionPeeringRoutes.java new file mode 100644 index 000000000000..6a3a01196806 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listprivateconnectionpeeringroutes/SyncListPrivateConnectionPeeringRoutes.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_ListPrivateConnectionPeeringRoutes_sync] +import com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest; +import com.google.cloud.vmwareengine.v1.PeeringRoute; +import com.google.cloud.vmwareengine.v1.PrivateConnectionName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncListPrivateConnectionPeeringRoutes { + + public static void main(String[] args) throws Exception { + syncListPrivateConnectionPeeringRoutes(); + } + + public static void syncListPrivateConnectionPeeringRoutes() throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + ListPrivateConnectionPeeringRoutesRequest request = + ListPrivateConnectionPeeringRoutesRequest.newBuilder() + .setParent( + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (PeeringRoute element : + vmwareEngineClient.listPrivateConnectionPeeringRoutes(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListPrivateConnectionPeeringRoutes_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listprivateconnectionpeeringroutes/SyncListPrivateConnectionPeeringRoutesPrivateconnectionname.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listprivateconnectionpeeringroutes/SyncListPrivateConnectionPeeringRoutesPrivateconnectionname.java new file mode 100644 index 000000000000..836429b25d60 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listprivateconnectionpeeringroutes/SyncListPrivateConnectionPeeringRoutesPrivateconnectionname.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_ListPrivateConnectionPeeringRoutes_Privateconnectionname_sync] +import com.google.cloud.vmwareengine.v1.PeeringRoute; +import com.google.cloud.vmwareengine.v1.PrivateConnectionName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncListPrivateConnectionPeeringRoutesPrivateconnectionname { + + public static void main(String[] args) throws Exception { + syncListPrivateConnectionPeeringRoutesPrivateconnectionname(); + } + + public static void syncListPrivateConnectionPeeringRoutesPrivateconnectionname() + throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + PrivateConnectionName parent = + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"); + for (PeeringRoute element : + vmwareEngineClient.listPrivateConnectionPeeringRoutes(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListPrivateConnectionPeeringRoutes_Privateconnectionname_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listprivateconnectionpeeringroutes/SyncListPrivateConnectionPeeringRoutesString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listprivateconnectionpeeringroutes/SyncListPrivateConnectionPeeringRoutesString.java new file mode 100644 index 000000000000..b7f276c780a4 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listprivateconnectionpeeringroutes/SyncListPrivateConnectionPeeringRoutesString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_ListPrivateConnectionPeeringRoutes_String_sync] +import com.google.cloud.vmwareengine.v1.PeeringRoute; +import com.google.cloud.vmwareengine.v1.PrivateConnectionName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncListPrivateConnectionPeeringRoutesString { + + public static void main(String[] args) throws Exception { + syncListPrivateConnectionPeeringRoutesString(); + } + + public static void syncListPrivateConnectionPeeringRoutesString() throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + String parent = + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString(); + for (PeeringRoute element : + vmwareEngineClient.listPrivateConnectionPeeringRoutes(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListPrivateConnectionPeeringRoutes_String_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listprivateconnections/AsyncListPrivateConnections.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listprivateconnections/AsyncListPrivateConnections.java new file mode 100644 index 000000000000..b5eb646ad723 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listprivateconnections/AsyncListPrivateConnections.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_ListPrivateConnections_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest; +import com.google.cloud.vmwareengine.v1.LocationName; +import com.google.cloud.vmwareengine.v1.PrivateConnection; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class AsyncListPrivateConnections { + + public static void main(String[] args) throws Exception { + asyncListPrivateConnections(); + } + + public static void asyncListPrivateConnections() throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + ListPrivateConnectionsRequest request = + ListPrivateConnectionsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + vmwareEngineClient.listPrivateConnectionsPagedCallable().futureCall(request); + // Do something. + for (PrivateConnection element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListPrivateConnections_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listprivateconnections/AsyncListPrivateConnectionsPaged.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listprivateconnections/AsyncListPrivateConnectionsPaged.java new file mode 100644 index 000000000000..6215985effa5 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listprivateconnections/AsyncListPrivateConnectionsPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_ListPrivateConnections_Paged_async] +import com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest; +import com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse; +import com.google.cloud.vmwareengine.v1.LocationName; +import com.google.cloud.vmwareengine.v1.PrivateConnection; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.common.base.Strings; + +public class AsyncListPrivateConnectionsPaged { + + public static void main(String[] args) throws Exception { + asyncListPrivateConnectionsPaged(); + } + + public static void asyncListPrivateConnectionsPaged() throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + ListPrivateConnectionsRequest request = + ListPrivateConnectionsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListPrivateConnectionsResponse response = + vmwareEngineClient.listPrivateConnectionsCallable().call(request); + for (PrivateConnection element : response.getPrivateConnectionsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListPrivateConnections_Paged_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listprivateconnections/SyncListPrivateConnections.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listprivateconnections/SyncListPrivateConnections.java new file mode 100644 index 000000000000..2e5074aac2e7 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listprivateconnections/SyncListPrivateConnections.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_ListPrivateConnections_sync] +import com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest; +import com.google.cloud.vmwareengine.v1.LocationName; +import com.google.cloud.vmwareengine.v1.PrivateConnection; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncListPrivateConnections { + + public static void main(String[] args) throws Exception { + syncListPrivateConnections(); + } + + public static void syncListPrivateConnections() throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + ListPrivateConnectionsRequest request = + ListPrivateConnectionsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (PrivateConnection element : + vmwareEngineClient.listPrivateConnections(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListPrivateConnections_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listprivateconnections/SyncListPrivateConnectionsLocationname.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listprivateconnections/SyncListPrivateConnectionsLocationname.java new file mode 100644 index 000000000000..09bff1fe1469 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listprivateconnections/SyncListPrivateConnectionsLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_ListPrivateConnections_Locationname_sync] +import com.google.cloud.vmwareengine.v1.LocationName; +import com.google.cloud.vmwareengine.v1.PrivateConnection; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncListPrivateConnectionsLocationname { + + public static void main(String[] args) throws Exception { + syncListPrivateConnectionsLocationname(); + } + + public static void syncListPrivateConnectionsLocationname() throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (PrivateConnection element : + vmwareEngineClient.listPrivateConnections(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListPrivateConnections_Locationname_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listprivateconnections/SyncListPrivateConnectionsString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listprivateconnections/SyncListPrivateConnectionsString.java new file mode 100644 index 000000000000..f4ffc7573829 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listprivateconnections/SyncListPrivateConnectionsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_ListPrivateConnections_String_sync] +import com.google.cloud.vmwareengine.v1.LocationName; +import com.google.cloud.vmwareengine.v1.PrivateConnection; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncListPrivateConnectionsString { + + public static void main(String[] args) throws Exception { + syncListPrivateConnectionsString(); + } + + public static void syncListPrivateConnectionsString() throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (PrivateConnection element : + vmwareEngineClient.listPrivateConnections(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListPrivateConnections_String_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateprivateconnection/AsyncUpdatePrivateConnection.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateprivateconnection/AsyncUpdatePrivateConnection.java new file mode 100644 index 000000000000..00f086af2928 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateprivateconnection/AsyncUpdatePrivateConnection.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_UpdatePrivateConnection_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.PrivateConnection; +import com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdatePrivateConnection { + + public static void main(String[] args) throws Exception { + asyncUpdatePrivateConnection(); + } + + public static void asyncUpdatePrivateConnection() throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + UpdatePrivateConnectionRequest request = + UpdatePrivateConnectionRequest.newBuilder() + .setPrivateConnection(PrivateConnection.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + vmwareEngineClient.updatePrivateConnectionCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_UpdatePrivateConnection_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateprivateconnection/AsyncUpdatePrivateConnectionLRO.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateprivateconnection/AsyncUpdatePrivateConnectionLRO.java new file mode 100644 index 000000000000..be5ded91086a --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateprivateconnection/AsyncUpdatePrivateConnectionLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_UpdatePrivateConnection_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vmwareengine.v1.OperationMetadata; +import com.google.cloud.vmwareengine.v1.PrivateConnection; +import com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.FieldMask; + +public class AsyncUpdatePrivateConnectionLRO { + + public static void main(String[] args) throws Exception { + asyncUpdatePrivateConnectionLRO(); + } + + public static void asyncUpdatePrivateConnectionLRO() throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + UpdatePrivateConnectionRequest request = + UpdatePrivateConnectionRequest.newBuilder() + .setPrivateConnection(PrivateConnection.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + vmwareEngineClient.updatePrivateConnectionOperationCallable().futureCall(request); + // Do something. + PrivateConnection response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_UpdatePrivateConnection_LRO_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateprivateconnection/SyncUpdatePrivateConnection.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateprivateconnection/SyncUpdatePrivateConnection.java new file mode 100644 index 000000000000..ce063b4dca2c --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateprivateconnection/SyncUpdatePrivateConnection.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_UpdatePrivateConnection_sync] +import com.google.cloud.vmwareengine.v1.PrivateConnection; +import com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdatePrivateConnection { + + public static void main(String[] args) throws Exception { + syncUpdatePrivateConnection(); + } + + public static void syncUpdatePrivateConnection() throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + UpdatePrivateConnectionRequest request = + UpdatePrivateConnectionRequest.newBuilder() + .setPrivateConnection(PrivateConnection.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + PrivateConnection response = vmwareEngineClient.updatePrivateConnectionAsync(request).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_UpdatePrivateConnection_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateprivateconnection/SyncUpdatePrivateConnectionPrivateconnectionFieldmask.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateprivateconnection/SyncUpdatePrivateConnectionPrivateconnectionFieldmask.java new file mode 100644 index 000000000000..9db846d0dfd2 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateprivateconnection/SyncUpdatePrivateConnectionPrivateconnectionFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_UpdatePrivateConnection_PrivateconnectionFieldmask_sync] +import com.google.cloud.vmwareengine.v1.PrivateConnection; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdatePrivateConnectionPrivateconnectionFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdatePrivateConnectionPrivateconnectionFieldmask(); + } + + public static void syncUpdatePrivateConnectionPrivateconnectionFieldmask() throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + PrivateConnection privateConnection = PrivateConnection.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + PrivateConnection response = + vmwareEngineClient.updatePrivateConnectionAsync(privateConnection, updateMask).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_UpdatePrivateConnection_PrivateconnectionFieldmask_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatesubnet/AsyncUpdateSubnet.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatesubnet/AsyncUpdateSubnet.java new file mode 100644 index 000000000000..4f856e2fbaf7 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatesubnet/AsyncUpdateSubnet.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_UpdateSubnet_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.Subnet; +import com.google.cloud.vmwareengine.v1.UpdateSubnetRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateSubnet { + + public static void main(String[] args) throws Exception { + asyncUpdateSubnet(); + } + + public static void asyncUpdateSubnet() throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + UpdateSubnetRequest request = + UpdateSubnetRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setSubnet(Subnet.newBuilder().build()) + .build(); + ApiFuture future = vmwareEngineClient.updateSubnetCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_UpdateSubnet_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatesubnet/AsyncUpdateSubnetLRO.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatesubnet/AsyncUpdateSubnetLRO.java new file mode 100644 index 000000000000..8fb94a6e1727 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatesubnet/AsyncUpdateSubnetLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_UpdateSubnet_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vmwareengine.v1.OperationMetadata; +import com.google.cloud.vmwareengine.v1.Subnet; +import com.google.cloud.vmwareengine.v1.UpdateSubnetRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateSubnetLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateSubnetLRO(); + } + + public static void asyncUpdateSubnetLRO() throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + UpdateSubnetRequest request = + UpdateSubnetRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setSubnet(Subnet.newBuilder().build()) + .build(); + OperationFuture future = + vmwareEngineClient.updateSubnetOperationCallable().futureCall(request); + // Do something. + Subnet response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_UpdateSubnet_LRO_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatesubnet/SyncUpdateSubnet.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatesubnet/SyncUpdateSubnet.java new file mode 100644 index 000000000000..6cc1d267bde4 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatesubnet/SyncUpdateSubnet.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_UpdateSubnet_sync] +import com.google.cloud.vmwareengine.v1.Subnet; +import com.google.cloud.vmwareengine.v1.UpdateSubnetRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSubnet { + + public static void main(String[] args) throws Exception { + syncUpdateSubnet(); + } + + public static void syncUpdateSubnet() throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + UpdateSubnetRequest request = + UpdateSubnetRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setSubnet(Subnet.newBuilder().build()) + .build(); + Subnet response = vmwareEngineClient.updateSubnetAsync(request).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_UpdateSubnet_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatesubnet/SyncUpdateSubnetSubnetFieldmask.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatesubnet/SyncUpdateSubnetSubnetFieldmask.java new file mode 100644 index 000000000000..a274f12a1ffd --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatesubnet/SyncUpdateSubnetSubnetFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_UpdateSubnet_SubnetFieldmask_sync] +import com.google.cloud.vmwareengine.v1.Subnet; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSubnetSubnetFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateSubnetSubnetFieldmask(); + } + + public static void syncUpdateSubnetSubnetFieldmask() throws Exception { + // 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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + Subnet subnet = Subnet.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Subnet response = vmwareEngineClient.updateSubnetAsync(subnet, updateMask).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_UpdateSubnet_SubnetFieldmask_sync]