diff --git a/java-vmwareengine/README.md b/java-vmwareengine/README.md index 44cd41569e19..849d8e56e34f 100644 --- a/java-vmwareengine/README.md +++ b/java-vmwareengine/README.md @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-vmwareengine/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-vmwareengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmwareengine/0.26.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmwareengine/0.27.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles 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 d6d4c871017f..0f7ff2e133e3 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 @@ -116,8 +116,7 @@ * * * CreatePrivateCloud - *

Creates a new `PrivateCloud` resource in a given project and location. Private clouds can only be created in zones, regional private clouds are not supported. - *

Creating a private cloud also creates a [management cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components) for that private cloud. + *

Creates a new `PrivateCloud` resource in a given project and location. Private clouds of type `STANDARD` and `TIME_LIMITED` are zonal resources, `STRETCHED` private clouds are regional. Creating a private cloud also creates a [management cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components) for that private cloud. * *

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

* *

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

* * * * - * ListPrivateConnectionPeeringRoutes - *

Lists the private connection routes exchanged over a peering connection. + * GetDnsForwarding + *

Gets details of the `DnsForwarding` config. * *

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

* *

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

* *

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

* * * * - * ListLocations - *

Lists information about the supported locations for this service. + * UpdateDnsForwarding + *

Updates the parameters of the `DnsForwarding` config, like associated domains. Only fields specified in `update_mask` are applied. * *

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

* + *

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

+ * *

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

* * * * - * GetLocation - *

Gets information about a location. + * GetNetworkPeering + *

Retrieves a `NetworkPeering` resource by its resource name. The resource contains details of the network peering, such as peered networks, import and export custom route configurations, and peering state. NetworkPeering is a global resource and location can only be global. * *

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

* + *

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

+ * *

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

* * * * - * SetIamPolicy - *

Sets the access control policy on the specified resource. Replacesany existing policy. - *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * ListNetworkPeerings + *

Lists `NetworkPeering` resources in a given project. NetworkPeering is a global resource and location can only be global. * *

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

* + *

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

+ * *

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

* * * * - * GetIamPolicy - *

Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set. + * CreateNetworkPeering + *

Creates a new network peering between the peer network and VMware Engine network provided in a `NetworkPeering` resource. NetworkPeering is a global resource and location can only be global. * *

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

* + *

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

+ * *

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

* * * * - * TestIamPermissions - *

Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. - *

Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning. + * DeleteNetworkPeering + *

Deletes a `NetworkPeering` resource. When a network peering is deleted for a VMware Engine network, the peer network becomes inaccessible to that VMware Engine network. NetworkPeering is a global resource and location can only be global. * *

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

* + *

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

+ * *

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

* * * + * + * UpdateNetworkPeering + *

Modifies a `NetworkPeering` resource. Only the `description` field can be updated. Only fields specified in `updateMask` are applied. NetworkPeering is a global resource and location can only be global. + * + *

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

+ * + *

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

+ * + *

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

+ * + * * - * - * - *

See the individual methods for example code. - * - *

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

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

To customize credentials: - * - *

{@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
- * VmwareEngineSettings vmwareEngineSettings =
- *     VmwareEngineSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create(vmwareEngineSettings);
- * }
- * - *

To customize the endpoint: - * - *

{@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
- * VmwareEngineSettings vmwareEngineSettings =
- *     VmwareEngineSettings.newBuilder().setEndpoint(myEndpoint).build();
- * VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create(vmwareEngineSettings);
- * }
- * - *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over - * the wire: - * - *

{@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
- * VmwareEngineSettings vmwareEngineSettings = VmwareEngineSettings.newHttpJsonBuilder().build();
- * VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create(vmwareEngineSettings);
- * }
- * - *

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@Generated("by gapic-generator-java") -public class VmwareEngineClient implements BackgroundResource { - private final VmwareEngineSettings settings; - private final VmwareEngineStub stub; - private final OperationsClient httpJsonOperationsClient; - private final com.google.longrunning.OperationsClient operationsClient; - - /** Constructs an instance of VmwareEngineClient with default settings. */ - public static final VmwareEngineClient create() throws IOException { - return create(VmwareEngineSettings.newBuilder().build()); - } - - /** - * Constructs an instance of VmwareEngineClient, using the given settings. The channels are - * created based on the settings passed in, or defaults for any settings that are not set. - */ - public static final VmwareEngineClient create(VmwareEngineSettings settings) throws IOException { - return new VmwareEngineClient(settings); - } - - /** - * Constructs an instance of VmwareEngineClient, using the given stub for making calls. This is - * for advanced usage - prefer using create(VmwareEngineSettings). - */ - public static final VmwareEngineClient create(VmwareEngineStub stub) { - return new VmwareEngineClient(stub); - } - - /** - * Constructs an instance of VmwareEngineClient, using the given settings. This is protected so - * that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected VmwareEngineClient(VmwareEngineSettings settings) throws IOException { - this.settings = settings; - this.stub = ((VmwareEngineStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - protected VmwareEngineClient(VmwareEngineStub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - public final VmwareEngineSettings getSettings() { - return settings; - } - - public VmwareEngineStub getStub() { - return stub; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - public final com.google.longrunning.OperationsClient getOperationsClient() { - return operationsClient; + * + * ListPeeringRoutes + *

Lists the network peering routes exchanged over a peering connection. NetworkPeering is a global resource and location can only be global. + * + *

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

+ * + *

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

+ * + *

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

+ * + * + * + * + * CreateHcxActivationKey + *

Creates a new HCX activation key in a given private cloud. + * + *

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

+ * + *

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

+ * + *

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

+ * + * + * + * + * ListHcxActivationKeys + *

Lists `HcxActivationKey` resources in a given private cloud. + * + *

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

+ * + *

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

+ * + *

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

+ * + * + * + * + * GetHcxActivationKey + *

Retrieves a `HcxActivationKey` resource by its resource name. + * + *

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

+ * + *

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

+ * + *

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

+ * + * + * + * + * GetNetworkPolicy + *

Retrieves a `NetworkPolicy` resource by its resource name. + * + *

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

+ * + *

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

+ * + *

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

+ * + * + * + * + * ListNetworkPolicies + *

Lists `NetworkPolicy` resources in a specified project and location. + * + *

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

+ * + *

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

+ * + *

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

+ * + * + * + * + * CreateNetworkPolicy + *

Creates a new network policy in a given VMware Engine network of a project and location (region). A new network policy cannot be created if another network policy already exists in the same scope. + * + *

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

+ * + *

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

+ * + *

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

+ * + * + * + * + * UpdateNetworkPolicy + *

Modifies a `NetworkPolicy` resource. Only the following fields can be updated: `internet_access`, `external_ip`, `edge_services_cidr`. Only fields specified in `updateMask` are applied. When updating a network policy, the external IP network service can only be disabled if there are no external IP addresses present in the scope of the policy. Also, a `NetworkService` cannot be updated when `NetworkService.state` is set to `RECONCILING`. + *

During operation processing, the resource is temporarily in the `ACTIVE` state before the operation fully completes. For that period of time, you can't update the resource. Use the operation status to determine when the processing fully completes. + * + *

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

+ * + *

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

+ * + *

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

+ * + * + * + * + * DeleteNetworkPolicy + *

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. + * + *

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

+ * + *

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

+ * + *

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

+ * + * + * + * + * ListManagementDnsZoneBindings + *

Lists Consumer VPCs bound to Management DNS Zone of a given private cloud. + * + *

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

+ * + *

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

+ * + *

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

+ * + * + * + * + * GetManagementDnsZoneBinding + *

Retrieves a 'ManagementDnsZoneBinding' resource by its resource name. + * + *

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

+ * + *

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

+ * + *

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

+ * + * + * + * + * CreateManagementDnsZoneBinding + *

Creates a new `ManagementDnsZoneBinding` resource in a private cloud. This RPC creates the DNS binding and the resource that represents the DNS binding of the consumer VPC network to the management DNS zone. A management DNS zone is the Cloud DNS cross-project binding zone that VMware Engine creates for each private cloud. It contains FQDNs and corresponding IP addresses for the private cloud's ESXi hosts and management VM appliances like vCenter and NSX Manager. + * + *

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

+ * + *

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

+ * + *

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

+ * + * + * + * + * UpdateManagementDnsZoneBinding + *

Updates a `ManagementDnsZoneBinding` resource. Only fields specified in `update_mask` are applied. + * + *

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

+ * + *

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

+ * + *

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

+ * + * + * + * + * DeleteManagementDnsZoneBinding + *

Deletes a `ManagementDnsZoneBinding` resource. When a management DNS zone binding is deleted, the corresponding consumer VPC network is no longer bound to the management DNS zone. + * + *

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

+ * + *

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

+ * + *

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

+ * + * + * + * + * RepairManagementDnsZoneBinding + *

Retries to create a `ManagementDnsZoneBinding` resource that is in failed state. + * + *

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

+ * + *

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

+ * + *

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

+ * + * + * + * + * CreateVmwareEngineNetwork + *

Creates a new VMware Engine network that can be used by a private cloud. + * + *

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

+ * + *

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

+ * + *

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

+ * + * + * + * + * UpdateVmwareEngineNetwork + *

Modifies a VMware Engine network resource. Only the following fields can be updated: `description`. Only fields specified in `updateMask` are applied. + * + *

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

+ * + *

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

+ * + *

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

+ * + * + * + * + * DeleteVmwareEngineNetwork + *

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. + * + *

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

+ * + *

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

+ * + *

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

+ * + * + * + * + * GetVmwareEngineNetwork + *

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`). + * + *

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

+ * + *

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

+ * + *

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

+ * + * + * + * + * ListVmwareEngineNetworks + *

Lists `VmwareEngineNetwork` resources in a given project and location. + * + *

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

+ * + *

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

+ * + *

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

+ * + * + * + * + * CreatePrivateConnection + *

Creates a new private connection that can be used for accessing private Clouds. + * + *

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

+ * + *

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

+ * + *

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

+ * + * + * + * + * GetPrivateConnection + *

Retrieves a `PrivateConnection` resource by its resource name. The resource contains details of the private connection, such as connected network, routing mode and state. + * + *

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

+ * + *

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

+ * + *

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

+ * + * + * + * + * ListPrivateConnections + *

Lists `PrivateConnection` resources in a given project and location. + * + *

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

+ * + *

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

+ * + *

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

+ * + * + * + * + * UpdatePrivateConnection + *

Modifies a `PrivateConnection` resource. Only `description` and `routing_mode` fields can be updated. Only fields specified in `updateMask` are applied. + * + *

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

+ * + *

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

+ * + *

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

+ * + * + * + * + * DeletePrivateConnection + *

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. + * + *

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

+ * + *

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

+ * + *

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

+ * + * + * + * + * ListPrivateConnectionPeeringRoutes + *

Lists the private connection routes exchanged over a peering connection. + * + *

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

+ * + *

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

+ * + *

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

+ * + * + * + * + * GrantDnsBindPermission + *

Grants the bind permission to the customer provided principal(user / service account) to bind their DNS zone with the intranet VPC associated with the project. DnsBindPermission is a global resource and location can only be global. + * + *

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

+ * + *

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

+ * + *

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

+ * + * + * + * + * GetDnsBindPermission + *

Gets all the principals having bind permission on the intranet VPC associated with the consumer project granted by the Grant API. DnsBindPermission is a global resource and location can only be global. + * + *

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

+ * + *

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

+ * + *

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

+ * + * + * + * + * RevokeDnsBindPermission + *

Revokes the bind permission from the customer provided principal(user / service account) on the intranet VPC associated with the consumer project. DnsBindPermission is a global resource and location can only be global. + * + *

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

+ * + *

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

+ * + *

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

+ * + * + * + * + * ListLocations + *

Lists information about the supported locations for this service. + * + *

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

+ * + *

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

+ * + * + * + * + * GetLocation + *

Gets information about a location. + * + *

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

+ * + *

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

+ * + * + * + * + * SetIamPolicy + *

Sets the access control policy on the specified resource. Replacesany existing policy. + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

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

+ * + *

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

+ * + * + * + * + * GetIamPolicy + *

Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set. + * + *

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

+ * + *

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

+ * + * + * + * + * TestIamPermissions + *

Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. + *

Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning. + * + *

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

+ * + *

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

+ * + * + * + * + * + * + *

See the individual methods for example code. + * + *

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

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

To customize credentials: + * + *

{@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
+ * VmwareEngineSettings vmwareEngineSettings =
+ *     VmwareEngineSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create(vmwareEngineSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@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
+ * VmwareEngineSettings vmwareEngineSettings =
+ *     VmwareEngineSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create(vmwareEngineSettings);
+ * }
+ * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@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
+ * VmwareEngineSettings vmwareEngineSettings = VmwareEngineSettings.newHttpJsonBuilder().build();
+ * VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create(vmwareEngineSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class VmwareEngineClient implements BackgroundResource { + private final VmwareEngineSettings settings; + private final VmwareEngineStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of VmwareEngineClient with default settings. */ + public static final VmwareEngineClient create() throws IOException { + return create(VmwareEngineSettings.newBuilder().build()); + } + + /** + * Constructs an instance of VmwareEngineClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final VmwareEngineClient create(VmwareEngineSettings settings) throws IOException { + return new VmwareEngineClient(settings); + } + + /** + * Constructs an instance of VmwareEngineClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(VmwareEngineSettings). + */ + public static final VmwareEngineClient create(VmwareEngineStub stub) { + return new VmwareEngineClient(stub); + } + + /** + * Constructs an instance of VmwareEngineClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected VmwareEngineClient(VmwareEngineSettings settings) throws IOException { + this.settings = settings; + this.stub = ((VmwareEngineStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected VmwareEngineClient(VmwareEngineStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final VmwareEngineSettings getSettings() { + return settings; + } + + public VmwareEngineStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `PrivateCloud` 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 (PrivateCloud element : vmwareEngineClient.listPrivateClouds(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the private cloud to be queried for clusters. + * 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` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPrivateCloudsPagedResponse listPrivateClouds(LocationName parent) { + ListPrivateCloudsRequest request = + ListPrivateCloudsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listPrivateClouds(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `PrivateCloud` 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 (PrivateCloud element : vmwareEngineClient.listPrivateClouds(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the private cloud to be queried for clusters. + * 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` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPrivateCloudsPagedResponse listPrivateClouds(String parent) { + ListPrivateCloudsRequest request = + ListPrivateCloudsRequest.newBuilder().setParent(parent).build(); + return listPrivateClouds(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `PrivateCloud` 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()) {
+   *   ListPrivateCloudsRequest request =
+   *       ListPrivateCloudsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (PrivateCloud element : vmwareEngineClient.listPrivateClouds(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 ListPrivateCloudsPagedResponse listPrivateClouds(ListPrivateCloudsRequest request) { + return listPrivateCloudsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `PrivateCloud` 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()) {
+   *   ListPrivateCloudsRequest request =
+   *       ListPrivateCloudsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.listPrivateCloudsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (PrivateCloud element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listPrivateCloudsPagedCallable() { + return stub.listPrivateCloudsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `PrivateCloud` 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()) {
+   *   ListPrivateCloudsRequest request =
+   *       ListPrivateCloudsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListPrivateCloudsResponse response =
+   *         vmwareEngineClient.listPrivateCloudsCallable().call(request);
+   *     for (PrivateCloud element : response.getPrivateCloudsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listPrivateCloudsCallable() { + return stub.listPrivateCloudsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `PrivateCloud` resource by its resource name. + * + *

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()) {
+   *   PrivateCloudName name = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
+   *   PrivateCloud response = vmwareEngineClient.getPrivateCloud(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the private cloud 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` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PrivateCloud getPrivateCloud(PrivateCloudName name) { + GetPrivateCloudRequest request = + GetPrivateCloudRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getPrivateCloud(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `PrivateCloud` resource by its resource name. + * + *

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 = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString();
+   *   PrivateCloud response = vmwareEngineClient.getPrivateCloud(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the private cloud 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` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PrivateCloud getPrivateCloud(String name) { + GetPrivateCloudRequest request = GetPrivateCloudRequest.newBuilder().setName(name).build(); + return getPrivateCloud(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `PrivateCloud` resource by its resource name. + * + *

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()) {
+   *   GetPrivateCloudRequest request =
+   *       GetPrivateCloudRequest.newBuilder()
+   *           .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .build();
+   *   PrivateCloud response = vmwareEngineClient.getPrivateCloud(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 PrivateCloud getPrivateCloud(GetPrivateCloudRequest request) { + return getPrivateCloudCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `PrivateCloud` resource by its resource name. + * + *

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()) {
+   *   GetPrivateCloudRequest request =
+   *       GetPrivateCloudRequest.newBuilder()
+   *           .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.getPrivateCloudCallable().futureCall(request);
+   *   // Do something.
+   *   PrivateCloud response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getPrivateCloudCallable() { + return stub.getPrivateCloudCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `PrivateCloud` resource in a given project and location. Private clouds of type + * `STANDARD` and `TIME_LIMITED` are zonal resources, `STRETCHED` private clouds are regional. + * Creating a private cloud also creates a [management + * cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components) for that + * private cloud. + * + *

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]");
+   *   PrivateCloud privateCloud = PrivateCloud.newBuilder().build();
+   *   String privateCloudId = "privateCloudId573896493";
+   *   PrivateCloud response =
+   *       vmwareEngineClient.createPrivateCloudAsync(parent, privateCloud, privateCloudId).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the location to create the new private cloud in. + * 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` + * @param privateCloud Required. The initial description of the new private cloud. + * @param privateCloudId Required. The user-provided identifier of the private cloud to be + * created. This identifier must be unique among each `PrivateCloud` 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 OperationFuture createPrivateCloudAsync( + LocationName parent, PrivateCloud privateCloud, String privateCloudId) { + CreatePrivateCloudRequest request = + CreatePrivateCloudRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setPrivateCloud(privateCloud) + .setPrivateCloudId(privateCloudId) + .build(); + return createPrivateCloudAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `PrivateCloud` resource in a given project and location. Private clouds of type + * `STANDARD` and `TIME_LIMITED` are zonal resources, `STRETCHED` private clouds are regional. + * Creating a private cloud also creates a [management + * cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components) for that + * private cloud. + * + *

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();
+   *   PrivateCloud privateCloud = PrivateCloud.newBuilder().build();
+   *   String privateCloudId = "privateCloudId573896493";
+   *   PrivateCloud response =
+   *       vmwareEngineClient.createPrivateCloudAsync(parent, privateCloud, privateCloudId).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the location to create the new private cloud in. + * 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` + * @param privateCloud Required. The initial description of the new private cloud. + * @param privateCloudId Required. The user-provided identifier of the private cloud to be + * created. This identifier must be unique among each `PrivateCloud` 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 OperationFuture createPrivateCloudAsync( + String parent, PrivateCloud privateCloud, String privateCloudId) { + CreatePrivateCloudRequest request = + CreatePrivateCloudRequest.newBuilder() + .setParent(parent) + .setPrivateCloud(privateCloud) + .setPrivateCloudId(privateCloudId) + .build(); + return createPrivateCloudAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `PrivateCloud` resource in a given project and location. Private clouds of type + * `STANDARD` and `TIME_LIMITED` are zonal resources, `STRETCHED` private clouds are regional. + * Creating a private cloud also creates a [management + * cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components) for that + * private cloud. + * + *

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()) {
+   *   CreatePrivateCloudRequest request =
+   *       CreatePrivateCloudRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPrivateCloudId("privateCloudId573896493")
+   *           .setPrivateCloud(PrivateCloud.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .build();
+   *   PrivateCloud response = vmwareEngineClient.createPrivateCloudAsync(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 createPrivateCloudAsync( + CreatePrivateCloudRequest request) { + return createPrivateCloudOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `PrivateCloud` resource in a given project and location. Private clouds of type + * `STANDARD` and `TIME_LIMITED` are zonal resources, `STRETCHED` private clouds are regional. + * Creating a private cloud also creates a [management + * cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components) for that + * private cloud. + * + *

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()) {
+   *   CreatePrivateCloudRequest request =
+   *       CreatePrivateCloudRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPrivateCloudId("privateCloudId573896493")
+   *           .setPrivateCloud(PrivateCloud.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.createPrivateCloudOperationCallable().futureCall(request);
+   *   // Do something.
+   *   PrivateCloud response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createPrivateCloudOperationCallable() { + return stub.createPrivateCloudOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `PrivateCloud` resource in a given project and location. Private clouds of type + * `STANDARD` and `TIME_LIMITED` are zonal resources, `STRETCHED` private clouds are regional. + * Creating a private cloud also creates a [management + * cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components) for that + * private cloud. + * + *

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()) {
+   *   CreatePrivateCloudRequest request =
+   *       CreatePrivateCloudRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPrivateCloudId("privateCloudId573896493")
+   *           .setPrivateCloud(PrivateCloud.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.createPrivateCloudCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createPrivateCloudCallable() { + return stub.createPrivateCloudCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies a `PrivateCloud` resource. Only the following fields can be updated: `description`. + * Only fields specified in `updateMask` are applied. + * + *

During operation processing, the resource is temporarily in the `ACTIVE` state before the + * operation fully completes. For that period of time, you can't update the resource. Use the + * operation status to determine when the processing fully completes. + * + *

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()) {
+   *   PrivateCloud privateCloud = PrivateCloud.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   PrivateCloud response =
+   *       vmwareEngineClient.updatePrivateCloudAsync(privateCloud, updateMask).get();
+   * }
+   * }
+ * + * @param privateCloud Required. Private cloud description. + * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the + * `PrivateCloud` resource by the update. The fields specified in `updateMask` 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 updatePrivateCloudAsync( + PrivateCloud privateCloud, FieldMask updateMask) { + UpdatePrivateCloudRequest request = + UpdatePrivateCloudRequest.newBuilder() + .setPrivateCloud(privateCloud) + .setUpdateMask(updateMask) + .build(); + return updatePrivateCloudAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies a `PrivateCloud` resource. Only the following fields can be updated: `description`. + * Only fields specified in `updateMask` are applied. + * + *

During operation processing, the resource is temporarily in the `ACTIVE` state before the + * operation fully completes. For that period of time, you can't update the resource. Use the + * operation status to determine when the processing fully completes. + * + *

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()) {
+   *   UpdatePrivateCloudRequest request =
+   *       UpdatePrivateCloudRequest.newBuilder()
+   *           .setPrivateCloud(PrivateCloud.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   PrivateCloud response = vmwareEngineClient.updatePrivateCloudAsync(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 updatePrivateCloudAsync( + UpdatePrivateCloudRequest request) { + return updatePrivateCloudOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies a `PrivateCloud` resource. Only the following fields can be updated: `description`. + * Only fields specified in `updateMask` are applied. + * + *

During operation processing, the resource is temporarily in the `ACTIVE` state before the + * operation fully completes. For that period of time, you can't update the resource. Use the + * operation status to determine when the processing fully completes. + * + *

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()) {
+   *   UpdatePrivateCloudRequest request =
+   *       UpdatePrivateCloudRequest.newBuilder()
+   *           .setPrivateCloud(PrivateCloud.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.updatePrivateCloudOperationCallable().futureCall(request);
+   *   // Do something.
+   *   PrivateCloud response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updatePrivateCloudOperationCallable() { + return stub.updatePrivateCloudOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies a `PrivateCloud` resource. Only the following fields can be updated: `description`. + * Only fields specified in `updateMask` are applied. + * + *

During operation processing, the resource is temporarily in the `ACTIVE` state before the + * operation fully completes. For that period of time, you can't update the resource. Use the + * operation status to determine when the processing fully completes. + * + *

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()) {
+   *   UpdatePrivateCloudRequest request =
+   *       UpdatePrivateCloudRequest.newBuilder()
+   *           .setPrivateCloud(PrivateCloud.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.updatePrivateCloudCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updatePrivateCloudCallable() { + return stub.updatePrivateCloudCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Schedules a `PrivateCloud` resource for deletion. + * + *

A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED` + * and `expireTime` set to the time when deletion is final and can no longer be reversed. The + * delete operation is marked as done as soon as the `PrivateCloud` is successfully scheduled for + * deletion (this also applies when `delayHours` is set to zero), and the operation is not kept in + * pending state until `PrivateCloud` is purged. `PrivateCloud` can be restored using + * `UndeletePrivateCloud` method before the `expireTime` elapses. When `expireTime` is reached, + * deletion is final and all private cloud resources are irreversibly removed and billing stops. + * During the final removal process, `PrivateCloud.state` is set to `PURGING`. `PrivateCloud` can + * be polled using standard `GET` method for the whole period of deletion and purging. It will not + * be returned only when it is completely purged. + * + *

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()) {
+   *   PrivateCloudName name = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
+   *   PrivateCloud response = vmwareEngineClient.deletePrivateCloudAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the private cloud to delete. 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` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deletePrivateCloudAsync( + PrivateCloudName name) { + DeletePrivateCloudRequest request = + DeletePrivateCloudRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deletePrivateCloudAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Schedules a `PrivateCloud` resource for deletion. + * + *

A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED` + * and `expireTime` set to the time when deletion is final and can no longer be reversed. The + * delete operation is marked as done as soon as the `PrivateCloud` is successfully scheduled for + * deletion (this also applies when `delayHours` is set to zero), and the operation is not kept in + * pending state until `PrivateCloud` is purged. `PrivateCloud` can be restored using + * `UndeletePrivateCloud` method before the `expireTime` elapses. When `expireTime` is reached, + * deletion is final and all private cloud resources are irreversibly removed and billing stops. + * During the final removal process, `PrivateCloud.state` is set to `PURGING`. `PrivateCloud` can + * be polled using standard `GET` method for the whole period of deletion and purging. It will not + * be returned only when it is completely purged. + * + *

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 = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString();
+   *   PrivateCloud response = vmwareEngineClient.deletePrivateCloudAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the private cloud to delete. 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` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deletePrivateCloudAsync( + String name) { + DeletePrivateCloudRequest request = + DeletePrivateCloudRequest.newBuilder().setName(name).build(); + return deletePrivateCloudAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Schedules a `PrivateCloud` resource for deletion. + * + *

A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED` + * and `expireTime` set to the time when deletion is final and can no longer be reversed. The + * delete operation is marked as done as soon as the `PrivateCloud` is successfully scheduled for + * deletion (this also applies when `delayHours` is set to zero), and the operation is not kept in + * pending state until `PrivateCloud` is purged. `PrivateCloud` can be restored using + * `UndeletePrivateCloud` method before the `expireTime` elapses. When `expireTime` is reached, + * deletion is final and all private cloud resources are irreversibly removed and billing stops. + * During the final removal process, `PrivateCloud.state` is set to `PURGING`. `PrivateCloud` can + * be polled using standard `GET` method for the whole period of deletion and purging. It will not + * be returned only when it is completely purged. + * + *

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()) {
+   *   DeletePrivateCloudRequest request =
+   *       DeletePrivateCloudRequest.newBuilder()
+   *           .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .setForce(true)
+   *           .setDelayHours(475821395)
+   *           .build();
+   *   PrivateCloud response = vmwareEngineClient.deletePrivateCloudAsync(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 deletePrivateCloudAsync( + DeletePrivateCloudRequest request) { + return deletePrivateCloudOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Schedules a `PrivateCloud` resource for deletion. + * + *

A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED` + * and `expireTime` set to the time when deletion is final and can no longer be reversed. The + * delete operation is marked as done as soon as the `PrivateCloud` is successfully scheduled for + * deletion (this also applies when `delayHours` is set to zero), and the operation is not kept in + * pending state until `PrivateCloud` is purged. `PrivateCloud` can be restored using + * `UndeletePrivateCloud` method before the `expireTime` elapses. When `expireTime` is reached, + * deletion is final and all private cloud resources are irreversibly removed and billing stops. + * During the final removal process, `PrivateCloud.state` is set to `PURGING`. `PrivateCloud` can + * be polled using standard `GET` method for the whole period of deletion and purging. It will not + * be returned only when it is completely purged. + * + *

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()) {
+   *   DeletePrivateCloudRequest request =
+   *       DeletePrivateCloudRequest.newBuilder()
+   *           .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .setForce(true)
+   *           .setDelayHours(475821395)
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.deletePrivateCloudOperationCallable().futureCall(request);
+   *   // Do something.
+   *   PrivateCloud response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deletePrivateCloudOperationCallable() { + return stub.deletePrivateCloudOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Schedules a `PrivateCloud` resource for deletion. + * + *

A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED` + * and `expireTime` set to the time when deletion is final and can no longer be reversed. The + * delete operation is marked as done as soon as the `PrivateCloud` is successfully scheduled for + * deletion (this also applies when `delayHours` is set to zero), and the operation is not kept in + * pending state until `PrivateCloud` is purged. `PrivateCloud` can be restored using + * `UndeletePrivateCloud` method before the `expireTime` elapses. When `expireTime` is reached, + * deletion is final and all private cloud resources are irreversibly removed and billing stops. + * During the final removal process, `PrivateCloud.state` is set to `PURGING`. `PrivateCloud` can + * be polled using standard `GET` method for the whole period of deletion and purging. It will not + * be returned only when it is completely purged. + * + *

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()) {
+   *   DeletePrivateCloudRequest request =
+   *       DeletePrivateCloudRequest.newBuilder()
+   *           .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .setForce(true)
+   *           .setDelayHours(475821395)
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.deletePrivateCloudCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deletePrivateCloudCallable() { + return stub.deletePrivateCloudCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a private cloud that was previously scheduled for deletion by `DeletePrivateCloud`. A + * `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED` and + * `PrivateCloud.expireTime` set to the time when deletion can no longer be reversed. + * + *

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()) {
+   *   PrivateCloudName name = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
+   *   PrivateCloud response = vmwareEngineClient.undeletePrivateCloudAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the private cloud scheduled for deletion. 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` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture undeletePrivateCloudAsync( + PrivateCloudName name) { + UndeletePrivateCloudRequest request = + UndeletePrivateCloudRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return undeletePrivateCloudAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a private cloud that was previously scheduled for deletion by `DeletePrivateCloud`. A + * `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED` and + * `PrivateCloud.expireTime` set to the time when deletion can no longer be reversed. + * + *

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 = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString();
+   *   PrivateCloud response = vmwareEngineClient.undeletePrivateCloudAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the private cloud scheduled for deletion. 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` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture undeletePrivateCloudAsync( + String name) { + UndeletePrivateCloudRequest request = + UndeletePrivateCloudRequest.newBuilder().setName(name).build(); + return undeletePrivateCloudAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a private cloud that was previously scheduled for deletion by `DeletePrivateCloud`. A + * `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED` and + * `PrivateCloud.expireTime` set to the time when deletion can no longer be reversed. + * + *

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()) {
+   *   UndeletePrivateCloudRequest request =
+   *       UndeletePrivateCloudRequest.newBuilder()
+   *           .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   PrivateCloud response = vmwareEngineClient.undeletePrivateCloudAsync(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 undeletePrivateCloudAsync( + UndeletePrivateCloudRequest request) { + return undeletePrivateCloudOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a private cloud that was previously scheduled for deletion by `DeletePrivateCloud`. A + * `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED` and + * `PrivateCloud.expireTime` set to the time when deletion can no longer be reversed. + * + *

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()) {
+   *   UndeletePrivateCloudRequest request =
+   *       UndeletePrivateCloudRequest.newBuilder()
+   *           .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.undeletePrivateCloudOperationCallable().futureCall(request);
+   *   // Do something.
+   *   PrivateCloud response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + undeletePrivateCloudOperationCallable() { + return stub.undeletePrivateCloudOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a private cloud that was previously scheduled for deletion by `DeletePrivateCloud`. A + * `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED` and + * `PrivateCloud.expireTime` set to the time when deletion can no longer be reversed. + * + *

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()) {
+   *   UndeletePrivateCloudRequest request =
+   *       UndeletePrivateCloudRequest.newBuilder()
+   *           .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.undeletePrivateCloudCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + undeletePrivateCloudCallable() { + return stub.undeletePrivateCloudCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `Cluster` resources in a given private cloud. + * + *

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()) {
+   *   PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
+   *   for (Cluster element : vmwareEngineClient.listClusters(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the private cloud to query for clusters. 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` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListClustersPagedResponse listClusters(PrivateCloudName parent) { + ListClustersRequest request = + ListClustersRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listClusters(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `Cluster` resources in a given private cloud. + * + *

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 = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString();
+   *   for (Cluster element : vmwareEngineClient.listClusters(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the private cloud to query for clusters. 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` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListClustersPagedResponse listClusters(String parent) { + ListClustersRequest request = ListClustersRequest.newBuilder().setParent(parent).build(); + return listClusters(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `Cluster` resources in a given private cloud. + * + *

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()) {
+   *   ListClustersRequest request =
+   *       ListClustersRequest.newBuilder()
+   *           .setParent(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (Cluster element : vmwareEngineClient.listClusters(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 ListClustersPagedResponse listClusters(ListClustersRequest request) { + return listClustersPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `Cluster` resources in a given private cloud. + * + *

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

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()) {
+   *   ListClustersRequest request =
+   *       ListClustersRequest.newBuilder()
+   *           .setParent(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListClustersResponse response = vmwareEngineClient.listClustersCallable().call(request);
+   *     for (Cluster element : response.getClustersList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listClustersCallable() { + return stub.listClustersCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `Cluster` resource by its resource name. + * + *

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()) {
+   *   ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]");
+   *   Cluster response = vmwareEngineClient.getCluster(name);
+   * }
+   * }
+ * + * @param name Required. The cluster resource name 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/clusters/my-cluster` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Cluster getCluster(ClusterName name) { + GetClusterRequest request = + GetClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getCluster(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `Cluster` resource by its resource name. + * + *

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 =
+   *       ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]").toString();
+   *   Cluster response = vmwareEngineClient.getCluster(name);
+   * }
+   * }
+ * + * @param name Required. The cluster resource name 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/clusters/my-cluster` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Cluster getCluster(String name) { + GetClusterRequest request = GetClusterRequest.newBuilder().setName(name).build(); + return getCluster(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `Cluster` resource by its resource name. + * + *

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()) {
+   *   GetClusterRequest request =
+   *       GetClusterRequest.newBuilder()
+   *           .setName(
+   *               ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]")
+   *                   .toString())
+   *           .build();
+   *   Cluster response = vmwareEngineClient.getCluster(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 Cluster getCluster(GetClusterRequest request) { + return getClusterCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `Cluster` resource by its resource name. + * + *

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()) {
+   *   GetClusterRequest request =
+   *       GetClusterRequest.newBuilder()
+   *           .setName(
+   *               ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = vmwareEngineClient.getClusterCallable().futureCall(request);
+   *   // Do something.
+   *   Cluster response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getClusterCallable() { + return stub.getClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new cluster in a given private cloud. Creating a new cluster provides additional + * nodes for use in the parent private cloud and requires sufficient [node + * quota](https://cloud.google.com/vmware-engine/quotas). + * + *

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()) {
+   *   PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
+   *   Cluster cluster = Cluster.newBuilder().build();
+   *   String clusterId = "clusterId561939637";
+   *   Cluster response = vmwareEngineClient.createClusterAsync(parent, cluster, clusterId).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the private cloud to create a new cluster in. + * 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` + * @param cluster Required. The initial description of the new cluster. + * @param clusterId Required. The user-provided identifier of the new `Cluster`. This identifier + * must be unique among clusters 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 OperationFuture createClusterAsync( + PrivateCloudName parent, Cluster cluster, String clusterId) { + CreateClusterRequest request = + CreateClusterRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setCluster(cluster) + .setClusterId(clusterId) + .build(); + return createClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new cluster in a given private cloud. Creating a new cluster provides additional + * nodes for use in the parent private cloud and requires sufficient [node + * quota](https://cloud.google.com/vmware-engine/quotas). + * + *

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 = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString();
+   *   Cluster cluster = Cluster.newBuilder().build();
+   *   String clusterId = "clusterId561939637";
+   *   Cluster response = vmwareEngineClient.createClusterAsync(parent, cluster, clusterId).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the private cloud to create a new cluster in. + * 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` + * @param cluster Required. The initial description of the new cluster. + * @param clusterId Required. The user-provided identifier of the new `Cluster`. This identifier + * must be unique among clusters 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 OperationFuture createClusterAsync( + String parent, Cluster cluster, String clusterId) { + CreateClusterRequest request = + CreateClusterRequest.newBuilder() + .setParent(parent) + .setCluster(cluster) + .setClusterId(clusterId) + .build(); + return createClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new cluster in a given private cloud. Creating a new cluster provides additional + * nodes for use in the parent private cloud and requires sufficient [node + * quota](https://cloud.google.com/vmware-engine/quotas). + * + *

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()) {
+   *   CreateClusterRequest request =
+   *       CreateClusterRequest.newBuilder()
+   *           .setParent(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setClusterId("clusterId561939637")
+   *           .setCluster(Cluster.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .build();
+   *   Cluster response = vmwareEngineClient.createClusterAsync(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 createClusterAsync( + CreateClusterRequest request) { + return createClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new cluster in a given private cloud. Creating a new cluster provides additional + * nodes for use in the parent private cloud and requires sufficient [node + * quota](https://cloud.google.com/vmware-engine/quotas). + * + *

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()) {
+   *   CreateClusterRequest request =
+   *       CreateClusterRequest.newBuilder()
+   *           .setParent(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setClusterId("clusterId561939637")
+   *           .setCluster(Cluster.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.createClusterOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Cluster response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createClusterOperationCallable() { + return stub.createClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new cluster in a given private cloud. Creating a new cluster provides additional + * nodes for use in the parent private cloud and requires sufficient [node + * quota](https://cloud.google.com/vmware-engine/quotas). + * + *

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()) {
+   *   CreateClusterRequest request =
+   *       CreateClusterRequest.newBuilder()
+   *           .setParent(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setClusterId("clusterId561939637")
+   *           .setCluster(Cluster.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .build();
+   *   ApiFuture future = vmwareEngineClient.createClusterCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createClusterCallable() { + return stub.createClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies a `Cluster` resource. Only fields specified in `updateMask` are applied. + * + *

During operation processing, the resource is temporarily in the `ACTIVE` state before the + * operation fully completes. For that period of time, you can't update the resource. Use the + * operation status to determine when the processing fully completes. + * + *

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()) {
+   *   Cluster cluster = Cluster.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Cluster response = vmwareEngineClient.updateClusterAsync(cluster, updateMask).get();
+   * }
+   * }
+ * + * @param cluster Required. The description of the cluster. + * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the + * `Cluster` resource by the update. The fields specified in the `updateMask` 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 updateClusterAsync( + Cluster cluster, FieldMask updateMask) { + UpdateClusterRequest request = + UpdateClusterRequest.newBuilder().setCluster(cluster).setUpdateMask(updateMask).build(); + return updateClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies a `Cluster` resource. Only fields specified in `updateMask` are applied. + * + *

During operation processing, the resource is temporarily in the `ACTIVE` state before the + * operation fully completes. For that period of time, you can't update the resource. Use the + * operation status to determine when the processing fully completes. + * + *

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()) {
+   *   UpdateClusterRequest request =
+   *       UpdateClusterRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setCluster(Cluster.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .build();
+   *   Cluster response = vmwareEngineClient.updateClusterAsync(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 updateClusterAsync( + UpdateClusterRequest request) { + return updateClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies a `Cluster` resource. Only fields specified in `updateMask` are applied. + * + *

During operation processing, the resource is temporarily in the `ACTIVE` state before the + * operation fully completes. For that period of time, you can't update the resource. Use the + * operation status to determine when the processing fully completes. + * + *

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()) {
+   *   UpdateClusterRequest request =
+   *       UpdateClusterRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setCluster(Cluster.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.updateClusterOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Cluster response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateClusterOperationCallable() { + return stub.updateClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies a `Cluster` resource. Only fields specified in `updateMask` are applied. + * + *

During operation processing, the resource is temporarily in the `ACTIVE` state before the + * operation fully completes. For that period of time, you can't update the resource. Use the + * operation status to determine when the processing fully completes. + * + *

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()) {
+   *   UpdateClusterRequest request =
+   *       UpdateClusterRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setCluster(Cluster.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .build();
+   *   ApiFuture future = vmwareEngineClient.updateClusterCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateClusterCallable() { + return stub.updateClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `Cluster` resource. To avoid unintended data loss, migrate or gracefully shut down + * any workloads running on the cluster before deletion. You cannot delete the management cluster + * of a private cloud using this method. + * + *

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()) {
+   *   ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]");
+   *   vmwareEngineClient.deleteClusterAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the cluster to delete. 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/clusters/my-cluster` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteClusterAsync(ClusterName name) { + DeleteClusterRequest request = + DeleteClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `Cluster` resource. To avoid unintended data loss, migrate or gracefully shut down + * any workloads running on the cluster before deletion. You cannot delete the management cluster + * of a private cloud using this method. + * + *

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 =
+   *       ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]").toString();
+   *   vmwareEngineClient.deleteClusterAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the cluster to delete. 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/clusters/my-cluster` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteClusterAsync(String name) { + DeleteClusterRequest request = DeleteClusterRequest.newBuilder().setName(name).build(); + return deleteClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `Cluster` resource. To avoid unintended data loss, migrate or gracefully shut down + * any workloads running on the cluster before deletion. You cannot delete the management cluster + * of a private cloud using this method. + * + *

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()) {
+   *   DeleteClusterRequest request =
+   *       DeleteClusterRequest.newBuilder()
+   *           .setName(
+   *               ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   vmwareEngineClient.deleteClusterAsync(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 deleteClusterAsync( + DeleteClusterRequest request) { + return deleteClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `Cluster` resource. To avoid unintended data loss, migrate or gracefully shut down + * any workloads running on the cluster before deletion. You cannot delete the management cluster + * of a private cloud using this method. + * + *

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()) {
+   *   DeleteClusterRequest request =
+   *       DeleteClusterRequest.newBuilder()
+   *           .setName(
+   *               ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.deleteClusterOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteClusterOperationCallable() { + return stub.deleteClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `Cluster` resource. To avoid unintended data loss, migrate or gracefully shut down + * any workloads running on the cluster before deletion. You cannot delete the management cluster + * of a private cloud using this method. + * + *

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()) {
+   *   DeleteClusterRequest request =
+   *       DeleteClusterRequest.newBuilder()
+   *           .setName(
+   *               ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future = vmwareEngineClient.deleteClusterCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteClusterCallable() { + return stub.deleteClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists nodes in a given cluster. + * + *

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()) {
+   *   ClusterName parent =
+   *       ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]");
+   *   for (Node element : vmwareEngineClient.listNodes(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the cluster to be queried for nodes. 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/clusters/my-cluster` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListNodesPagedResponse listNodes(ClusterName parent) { + ListNodesRequest request = + ListNodesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listNodes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists nodes in a given cluster. + * + *

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 =
+   *       ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]").toString();
+   *   for (Node element : vmwareEngineClient.listNodes(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the cluster to be queried for nodes. 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/clusters/my-cluster` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListNodesPagedResponse listNodes(String parent) { + ListNodesRequest request = ListNodesRequest.newBuilder().setParent(parent).build(); + return listNodes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists nodes in a given cluster. + * + *

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()) {
+   *   ListNodesRequest request =
+   *       ListNodesRequest.newBuilder()
+   *           .setParent(
+   *               ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Node element : vmwareEngineClient.listNodes(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 ListNodesPagedResponse listNodes(ListNodesRequest request) { + return listNodesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists nodes in a given cluster. + * + *

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()) {
+   *   ListNodesRequest request =
+   *       ListNodesRequest.newBuilder()
+   *           .setParent(
+   *               ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future = vmwareEngineClient.listNodesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Node element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listNodesPagedCallable() { + return stub.listNodesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists nodes in a given cluster. + * + *

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()) {
+   *   ListNodesRequest request =
+   *       ListNodesRequest.newBuilder()
+   *           .setParent(
+   *               ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListNodesResponse response = vmwareEngineClient.listNodesCallable().call(request);
+   *     for (Node element : response.getNodesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listNodesCallable() { + return stub.listNodesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single node. + * + *

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()) {
+   *   NodeName name =
+   *       NodeName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]", "[NODE]");
+   *   Node response = vmwareEngineClient.getNode(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the node to retrieve. For example: + * `projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}/nodes/{node}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Node getNode(NodeName name) { + GetNodeRequest request = + GetNodeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getNode(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single node. + * + *

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 =
+   *       NodeName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]", "[NODE]")
+   *           .toString();
+   *   Node response = vmwareEngineClient.getNode(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the node to retrieve. For example: + * `projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}/nodes/{node}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Node getNode(String name) { + GetNodeRequest request = GetNodeRequest.newBuilder().setName(name).build(); + return getNode(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single node. + * + *

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()) {
+   *   GetNodeRequest request =
+   *       GetNodeRequest.newBuilder()
+   *           .setName(
+   *               NodeName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]", "[NODE]")
+   *                   .toString())
+   *           .build();
+   *   Node response = vmwareEngineClient.getNode(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 Node getNode(GetNodeRequest request) { + return getNodeCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single node. + * + *

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()) {
+   *   GetNodeRequest request =
+   *       GetNodeRequest.newBuilder()
+   *           .setName(
+   *               NodeName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]", "[NODE]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = vmwareEngineClient.getNodeCallable().futureCall(request);
+   *   // Do something.
+   *   Node response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getNodeCallable() { + return stub.getNodeCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists external IP addresses assigned to VMware workload VMs in a given private cloud. + * + *

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()) {
+   *   PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
+   *   for (ExternalAddress element :
+   *       vmwareEngineClient.listExternalAddresses(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the private cloud to be queried for external IP + * addresses. 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` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListExternalAddressesPagedResponse listExternalAddresses(PrivateCloudName parent) { + ListExternalAddressesRequest request = + ListExternalAddressesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listExternalAddresses(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists external IP addresses assigned to VMware workload VMs in a given private cloud. + * + *

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 = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString();
+   *   for (ExternalAddress element :
+   *       vmwareEngineClient.listExternalAddresses(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the private cloud to be queried for external IP + * addresses. 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` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListExternalAddressesPagedResponse listExternalAddresses(String parent) { + ListExternalAddressesRequest request = + ListExternalAddressesRequest.newBuilder().setParent(parent).build(); + return listExternalAddresses(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists external IP addresses assigned to VMware workload VMs in a given private cloud. + * + *

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()) {
+   *   ListExternalAddressesRequest request =
+   *       ListExternalAddressesRequest.newBuilder()
+   *           .setParent(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (ExternalAddress element :
+   *       vmwareEngineClient.listExternalAddresses(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 ListExternalAddressesPagedResponse listExternalAddresses( + ListExternalAddressesRequest request) { + return listExternalAddressesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists external IP addresses assigned to VMware workload VMs in a given private cloud. + * + *

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()) {
+   *   ListExternalAddressesRequest request =
+   *       ListExternalAddressesRequest.newBuilder()
+   *           .setParent(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.listExternalAddressesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (ExternalAddress element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listExternalAddressesPagedCallable() { + return stub.listExternalAddressesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists external IP addresses assigned to VMware workload VMs in a given private cloud. + * + *

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()) {
+   *   ListExternalAddressesRequest request =
+   *       ListExternalAddressesRequest.newBuilder()
+   *           .setParent(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListExternalAddressesResponse response =
+   *         vmwareEngineClient.listExternalAddressesCallable().call(request);
+   *     for (ExternalAddress element : response.getExternalAddressesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listExternalAddressesCallable() { + return stub.listExternalAddressesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists external IP addresses assigned to VMware workload VMs within the scope of the given + * network policy. + * + *

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()) {
+   *   NetworkPolicyName networkPolicy =
+   *       NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]");
+   *   for (ExternalAddress element :
+   *       vmwareEngineClient.fetchNetworkPolicyExternalAddresses(networkPolicy).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param networkPolicy Required. The resource name of the network policy to query for assigned + * external IP addresses. 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/networkPolicies/my-policy` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FetchNetworkPolicyExternalAddressesPagedResponse fetchNetworkPolicyExternalAddresses( + NetworkPolicyName networkPolicy) { + FetchNetworkPolicyExternalAddressesRequest request = + FetchNetworkPolicyExternalAddressesRequest.newBuilder() + .setNetworkPolicy(networkPolicy == null ? null : networkPolicy.toString()) + .build(); + return fetchNetworkPolicyExternalAddresses(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists external IP addresses assigned to VMware workload VMs within the scope of the given + * network policy. + * + *

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 networkPolicy =
+   *       NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString();
+   *   for (ExternalAddress element :
+   *       vmwareEngineClient.fetchNetworkPolicyExternalAddresses(networkPolicy).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param networkPolicy Required. The resource name of the network policy to query for assigned + * external IP addresses. 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/networkPolicies/my-policy` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FetchNetworkPolicyExternalAddressesPagedResponse fetchNetworkPolicyExternalAddresses( + String networkPolicy) { + FetchNetworkPolicyExternalAddressesRequest request = + FetchNetworkPolicyExternalAddressesRequest.newBuilder() + .setNetworkPolicy(networkPolicy) + .build(); + return fetchNetworkPolicyExternalAddresses(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists external IP addresses assigned to VMware workload VMs within the scope of the given + * network policy. + * + *

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()) {
+   *   FetchNetworkPolicyExternalAddressesRequest request =
+   *       FetchNetworkPolicyExternalAddressesRequest.newBuilder()
+   *           .setNetworkPolicy(
+   *               NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (ExternalAddress element :
+   *       vmwareEngineClient.fetchNetworkPolicyExternalAddresses(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 FetchNetworkPolicyExternalAddressesPagedResponse fetchNetworkPolicyExternalAddresses( + FetchNetworkPolicyExternalAddressesRequest request) { + return fetchNetworkPolicyExternalAddressesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists external IP addresses assigned to VMware workload VMs within the scope of the given + * network policy. + * + *

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()) {
+   *   FetchNetworkPolicyExternalAddressesRequest request =
+   *       FetchNetworkPolicyExternalAddressesRequest.newBuilder()
+   *           .setNetworkPolicy(
+   *               NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.fetchNetworkPolicyExternalAddressesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (ExternalAddress element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + FetchNetworkPolicyExternalAddressesRequest, + FetchNetworkPolicyExternalAddressesPagedResponse> + fetchNetworkPolicyExternalAddressesPagedCallable() { + return stub.fetchNetworkPolicyExternalAddressesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists external IP addresses assigned to VMware workload VMs within the scope of the given + * network policy. + * + *

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()) {
+   *   FetchNetworkPolicyExternalAddressesRequest request =
+   *       FetchNetworkPolicyExternalAddressesRequest.newBuilder()
+   *           .setNetworkPolicy(
+   *               NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     FetchNetworkPolicyExternalAddressesResponse response =
+   *         vmwareEngineClient.fetchNetworkPolicyExternalAddressesCallable().call(request);
+   *     for (ExternalAddress element : response.getExternalAddressesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + FetchNetworkPolicyExternalAddressesRequest, FetchNetworkPolicyExternalAddressesResponse> + fetchNetworkPolicyExternalAddressesCallable() { + return stub.fetchNetworkPolicyExternalAddressesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single external IP address. + * + *

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()) {
+   *   ExternalAddressName name =
+   *       ExternalAddressName.of(
+   *           "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]");
+   *   ExternalAddress response = vmwareEngineClient.getExternalAddress(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the external IP address 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/externalAddresses/my-ip` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ExternalAddress getExternalAddress(ExternalAddressName name) { + GetExternalAddressRequest request = + GetExternalAddressRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getExternalAddress(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single external IP address. + * + *

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 =
+   *       ExternalAddressName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]")
+   *           .toString();
+   *   ExternalAddress response = vmwareEngineClient.getExternalAddress(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the external IP address 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/externalAddresses/my-ip` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ExternalAddress getExternalAddress(String name) { + GetExternalAddressRequest request = + GetExternalAddressRequest.newBuilder().setName(name).build(); + return getExternalAddress(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single external IP address. + * + *

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()) {
+   *   GetExternalAddressRequest request =
+   *       GetExternalAddressRequest.newBuilder()
+   *           .setName(
+   *               ExternalAddressName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]")
+   *                   .toString())
+   *           .build();
+   *   ExternalAddress response = vmwareEngineClient.getExternalAddress(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 ExternalAddress getExternalAddress(GetExternalAddressRequest request) { + return getExternalAddressCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single external IP address. + * + *

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()) {
+   *   GetExternalAddressRequest request =
+   *       GetExternalAddressRequest.newBuilder()
+   *           .setName(
+   *               ExternalAddressName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.getExternalAddressCallable().futureCall(request);
+   *   // Do something.
+   *   ExternalAddress response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getExternalAddressCallable() { + return stub.getExternalAddressCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `ExternalAddress` resource in a given private cloud. The network policy that + * corresponds to the private cloud must have the external IP address network service enabled + * (`NetworkPolicy.external_ip`). + * + *

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()) {
+   *   PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
+   *   ExternalAddress externalAddress = ExternalAddress.newBuilder().build();
+   *   String externalAddressId = "externalAddressId221595812";
+   *   ExternalAddress response =
+   *       vmwareEngineClient
+   *           .createExternalAddressAsync(parent, externalAddress, externalAddressId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the private cloud to create a new external IP + * address in. 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` + * @param externalAddress Required. The initial description of a new external IP address. + * @param externalAddressId Required. The user-provided identifier of the `ExternalAddress` to be + * created. This identifier must be unique among `ExternalAddress` 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 OperationFuture createExternalAddressAsync( + PrivateCloudName parent, ExternalAddress externalAddress, String externalAddressId) { + CreateExternalAddressRequest request = + CreateExternalAddressRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setExternalAddress(externalAddress) + .setExternalAddressId(externalAddressId) + .build(); + return createExternalAddressAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `ExternalAddress` resource in a given private cloud. The network policy that + * corresponds to the private cloud must have the external IP address network service enabled + * (`NetworkPolicy.external_ip`). + * + *

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 = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString();
+   *   ExternalAddress externalAddress = ExternalAddress.newBuilder().build();
+   *   String externalAddressId = "externalAddressId221595812";
+   *   ExternalAddress response =
+   *       vmwareEngineClient
+   *           .createExternalAddressAsync(parent, externalAddress, externalAddressId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the private cloud to create a new external IP + * address in. 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` + * @param externalAddress Required. The initial description of a new external IP address. + * @param externalAddressId Required. The user-provided identifier of the `ExternalAddress` to be + * created. This identifier must be unique among `ExternalAddress` 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 OperationFuture createExternalAddressAsync( + String parent, ExternalAddress externalAddress, String externalAddressId) { + CreateExternalAddressRequest request = + CreateExternalAddressRequest.newBuilder() + .setParent(parent) + .setExternalAddress(externalAddress) + .setExternalAddressId(externalAddressId) + .build(); + return createExternalAddressAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `ExternalAddress` resource in a given private cloud. The network policy that + * corresponds to the private cloud must have the external IP address network service enabled + * (`NetworkPolicy.external_ip`). + * + *

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()) {
+   *   CreateExternalAddressRequest request =
+   *       CreateExternalAddressRequest.newBuilder()
+   *           .setParent(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setExternalAddress(ExternalAddress.newBuilder().build())
+   *           .setExternalAddressId("externalAddressId221595812")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ExternalAddress response = vmwareEngineClient.createExternalAddressAsync(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 createExternalAddressAsync( + CreateExternalAddressRequest request) { + return createExternalAddressOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `ExternalAddress` resource in a given private cloud. The network policy that + * corresponds to the private cloud must have the external IP address network service enabled + * (`NetworkPolicy.external_ip`). + * + *

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()) {
+   *   CreateExternalAddressRequest request =
+   *       CreateExternalAddressRequest.newBuilder()
+   *           .setParent(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setExternalAddress(ExternalAddress.newBuilder().build())
+   *           .setExternalAddressId("externalAddressId221595812")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.createExternalAddressOperationCallable().futureCall(request);
+   *   // Do something.
+   *   ExternalAddress response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createExternalAddressOperationCallable() { + return stub.createExternalAddressOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `ExternalAddress` resource in a given private cloud. The network policy that + * corresponds to the private cloud must have the external IP address network service enabled + * (`NetworkPolicy.external_ip`). + * + *

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()) {
+   *   CreateExternalAddressRequest request =
+   *       CreateExternalAddressRequest.newBuilder()
+   *           .setParent(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setExternalAddress(ExternalAddress.newBuilder().build())
+   *           .setExternalAddressId("externalAddressId221595812")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.createExternalAddressCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createExternalAddressCallable() { + return stub.createExternalAddressCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single external IP address. Only fields specified in `update_mask` + * are applied. + * + *

During operation processing, the resource is temporarily in the `ACTIVE` state before the + * operation fully completes. For that period of time, you can't update the resource. Use the + * operation status to determine when the processing fully completes. + * + *

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()) {
+   *   ExternalAddress externalAddress = ExternalAddress.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   ExternalAddress response =
+   *       vmwareEngineClient.updateExternalAddressAsync(externalAddress, updateMask).get();
+   * }
+   * }
+ * + * @param externalAddress Required. External IP address description. + * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the + * `ExternalAddress` 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 updateExternalAddressAsync( + ExternalAddress externalAddress, FieldMask updateMask) { + UpdateExternalAddressRequest request = + UpdateExternalAddressRequest.newBuilder() + .setExternalAddress(externalAddress) + .setUpdateMask(updateMask) + .build(); + return updateExternalAddressAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single external IP address. Only fields specified in `update_mask` + * are applied. + * + *

During operation processing, the resource is temporarily in the `ACTIVE` state before the + * operation fully completes. For that period of time, you can't update the resource. Use the + * operation status to determine when the processing fully completes. + * + *

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()) {
+   *   UpdateExternalAddressRequest request =
+   *       UpdateExternalAddressRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setExternalAddress(ExternalAddress.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ExternalAddress response = vmwareEngineClient.updateExternalAddressAsync(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 updateExternalAddressAsync( + UpdateExternalAddressRequest request) { + return updateExternalAddressOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single external IP address. Only fields specified in `update_mask` + * are applied. + * + *

During operation processing, the resource is temporarily in the `ACTIVE` state before the + * operation fully completes. For that period of time, you can't update the resource. Use the + * operation status to determine when the processing fully completes. + * + *

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()) {
+   *   UpdateExternalAddressRequest request =
+   *       UpdateExternalAddressRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setExternalAddress(ExternalAddress.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.updateExternalAddressOperationCallable().futureCall(request);
+   *   // Do something.
+   *   ExternalAddress response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateExternalAddressOperationCallable() { + return stub.updateExternalAddressOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single external IP address. Only fields specified in `update_mask` + * are applied. + * + *

During operation processing, the resource is temporarily in the `ACTIVE` state before the + * operation fully completes. For that period of time, you can't update the resource. Use the + * operation status to determine when the processing fully completes. + * + *

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()) {
+   *   UpdateExternalAddressRequest request =
+   *       UpdateExternalAddressRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setExternalAddress(ExternalAddress.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.updateExternalAddressCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateExternalAddressCallable() { + return stub.updateExternalAddressCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single external IP address. When you delete an external IP address, connectivity + * between the external IP address and the corresponding internal IP address is lost. + * + *

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()) {
+   *   ExternalAddressName name =
+   *       ExternalAddressName.of(
+   *           "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]");
+   *   vmwareEngineClient.deleteExternalAddressAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the external IP address to delete. 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/externalAddresses/my-ip` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteExternalAddressAsync( + ExternalAddressName name) { + DeleteExternalAddressRequest request = + DeleteExternalAddressRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteExternalAddressAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single external IP address. When you delete an external IP address, connectivity + * between the external IP address and the corresponding internal IP address is lost. + * + *

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 =
+   *       ExternalAddressName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]")
+   *           .toString();
+   *   vmwareEngineClient.deleteExternalAddressAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the external IP address to delete. 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/externalAddresses/my-ip` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteExternalAddressAsync(String name) { + DeleteExternalAddressRequest request = + DeleteExternalAddressRequest.newBuilder().setName(name).build(); + return deleteExternalAddressAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single external IP address. When you delete an external IP address, connectivity + * between the external IP address and the corresponding internal IP address is lost. + * + *

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()) {
+   *   DeleteExternalAddressRequest request =
+   *       DeleteExternalAddressRequest.newBuilder()
+   *           .setName(
+   *               ExternalAddressName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   vmwareEngineClient.deleteExternalAddressAsync(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 deleteExternalAddressAsync( + DeleteExternalAddressRequest request) { + return deleteExternalAddressOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single external IP address. When you delete an external IP address, connectivity + * between the external IP address and the corresponding internal IP address is lost. + * + *

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()) {
+   *   DeleteExternalAddressRequest request =
+   *       DeleteExternalAddressRequest.newBuilder()
+   *           .setName(
+   *               ExternalAddressName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.deleteExternalAddressOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteExternalAddressOperationCallable() { + return stub.deleteExternalAddressOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single external IP address. When you delete an external IP address, connectivity + * between the external IP address and the corresponding internal IP address is lost. + * + *

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()) {
+   *   DeleteExternalAddressRequest request =
+   *       DeleteExternalAddressRequest.newBuilder()
+   *           .setName(
+   *               ExternalAddressName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.deleteExternalAddressCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteExternalAddressCallable() { + return stub.deleteExternalAddressCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists subnets in a given private cloud. + * + *

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()) {
+   *   PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
+   *   for (Subnet element : vmwareEngineClient.listSubnets(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the private cloud to be queried for subnets. + * 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` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSubnetsPagedResponse listSubnets(PrivateCloudName parent) { + ListSubnetsRequest request = + ListSubnetsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listSubnets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists subnets in a given private cloud. + * + *

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 = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString();
+   *   for (Subnet element : vmwareEngineClient.listSubnets(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the private cloud to be queried for subnets. + * 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` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSubnetsPagedResponse listSubnets(String parent) { + ListSubnetsRequest request = ListSubnetsRequest.newBuilder().setParent(parent).build(); + return listSubnets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists subnets in a given private cloud. + * + *

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()) {
+   *   ListSubnetsRequest request =
+   *       ListSubnetsRequest.newBuilder()
+   *           .setParent(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Subnet element : vmwareEngineClient.listSubnets(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 ListSubnetsPagedResponse listSubnets(ListSubnetsRequest request) { + return listSubnetsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists subnets in a given private cloud. + * + *

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()) {
+   *   ListSubnetsRequest request =
+   *       ListSubnetsRequest.newBuilder()
+   *           .setParent(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future = vmwareEngineClient.listSubnetsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Subnet element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listSubnetsPagedCallable() { + return stub.listSubnetsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists subnets in a given private cloud. + * + *

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()) {
+   *   ListSubnetsRequest request =
+   *       ListSubnetsRequest.newBuilder()
+   *           .setParent(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListSubnetsResponse response = vmwareEngineClient.listSubnetsCallable().call(request);
+   *     for (Subnet element : response.getSubnetsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listSubnetsCallable() { + 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 `ExternalAccessRule` resources in the specified network policy. + * + *

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()) {
+   *   NetworkPolicyName parent =
+   *       NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]");
+   *   for (ExternalAccessRule element :
+   *       vmwareEngineClient.listExternalAccessRules(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the network policy to query for external access + * firewall rules. 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/networkPolicies/my-policy` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListExternalAccessRulesPagedResponse listExternalAccessRules( + NetworkPolicyName parent) { + ListExternalAccessRulesRequest request = + ListExternalAccessRulesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listExternalAccessRules(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `ExternalAccessRule` resources in the specified network policy. + * + *

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 =
+   *       NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString();
+   *   for (ExternalAccessRule element :
+   *       vmwareEngineClient.listExternalAccessRules(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the network policy to query for external access + * firewall rules. 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/networkPolicies/my-policy` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListExternalAccessRulesPagedResponse listExternalAccessRules(String parent) { + ListExternalAccessRulesRequest request = + ListExternalAccessRulesRequest.newBuilder().setParent(parent).build(); + return listExternalAccessRules(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `ExternalAccessRule` resources in the specified network policy. + * + *

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()) {
+   *   ListExternalAccessRulesRequest request =
+   *       ListExternalAccessRulesRequest.newBuilder()
+   *           .setParent(
+   *               NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (ExternalAccessRule element :
+   *       vmwareEngineClient.listExternalAccessRules(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 ListExternalAccessRulesPagedResponse listExternalAccessRules( + ListExternalAccessRulesRequest request) { + return listExternalAccessRulesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `ExternalAccessRule` resources in the specified network policy. + * + *

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()) {
+   *   ListExternalAccessRulesRequest request =
+   *       ListExternalAccessRulesRequest.newBuilder()
+   *           .setParent(
+   *               NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.listExternalAccessRulesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (ExternalAccessRule element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listExternalAccessRulesPagedCallable() { + return stub.listExternalAccessRulesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `ExternalAccessRule` resources in the specified network policy. + * + *

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()) {
+   *   ListExternalAccessRulesRequest request =
+   *       ListExternalAccessRulesRequest.newBuilder()
+   *           .setParent(
+   *               NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListExternalAccessRulesResponse response =
+   *         vmwareEngineClient.listExternalAccessRulesCallable().call(request);
+   *     for (ExternalAccessRule element : response.getExternalAccessRulesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listExternalAccessRulesCallable() { + return stub.listExternalAccessRulesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single external access rule. + * + *

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()) {
+   *   ExternalAccessRuleName name =
+   *       ExternalAccessRuleName.of(
+   *           "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]");
+   *   ExternalAccessRule response = vmwareEngineClient.getExternalAccessRule(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the external access firewall rule 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/networkPolicies/my-policy/externalAccessRules/my-rule` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ExternalAccessRule getExternalAccessRule(ExternalAccessRuleName name) { + GetExternalAccessRuleRequest request = + GetExternalAccessRuleRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getExternalAccessRule(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single external access rule. + * + *

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 =
+   *       ExternalAccessRuleName.of(
+   *               "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]")
+   *           .toString();
+   *   ExternalAccessRule response = vmwareEngineClient.getExternalAccessRule(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the external access firewall rule 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/networkPolicies/my-policy/externalAccessRules/my-rule` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ExternalAccessRule getExternalAccessRule(String name) { + GetExternalAccessRuleRequest request = + GetExternalAccessRuleRequest.newBuilder().setName(name).build(); + return getExternalAccessRule(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single external access rule. + * + *

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()) {
+   *   GetExternalAccessRuleRequest request =
+   *       GetExternalAccessRuleRequest.newBuilder()
+   *           .setName(
+   *               ExternalAccessRuleName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]")
+   *                   .toString())
+   *           .build();
+   *   ExternalAccessRule response = vmwareEngineClient.getExternalAccessRule(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 ExternalAccessRule getExternalAccessRule(GetExternalAccessRuleRequest request) { + return getExternalAccessRuleCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single external access rule. + * + *

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()) {
+   *   GetExternalAccessRuleRequest request =
+   *       GetExternalAccessRuleRequest.newBuilder()
+   *           .setName(
+   *               ExternalAccessRuleName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.getExternalAccessRuleCallable().futureCall(request);
+   *   // Do something.
+   *   ExternalAccessRule response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getExternalAccessRuleCallable() { + return stub.getExternalAccessRuleCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new external access rule in a given network policy. + * + *

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()) {
+   *   NetworkPolicyName parent =
+   *       NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]");
+   *   ExternalAccessRule externalAccessRule = ExternalAccessRule.newBuilder().build();
+   *   String externalAccessRuleId = "externalAccessRuleId1937389350";
+   *   ExternalAccessRule response =
+   *       vmwareEngineClient
+   *           .createExternalAccessRuleAsync(parent, externalAccessRule, externalAccessRuleId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the network policy to create a new external access + * firewall rule in. 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/networkPolicies/my-policy` + * @param externalAccessRule Required. The initial description of a new external access rule. + * @param externalAccessRuleId Required. The user-provided identifier of the `ExternalAccessRule` + * to be created. This identifier must be unique among `ExternalAccessRule` 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 OperationFuture createExternalAccessRuleAsync( + NetworkPolicyName parent, + ExternalAccessRule externalAccessRule, + String externalAccessRuleId) { + CreateExternalAccessRuleRequest request = + CreateExternalAccessRuleRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setExternalAccessRule(externalAccessRule) + .setExternalAccessRuleId(externalAccessRuleId) + .build(); + return createExternalAccessRuleAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new external access rule in a given network policy. + * + *

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 =
+   *       NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString();
+   *   ExternalAccessRule externalAccessRule = ExternalAccessRule.newBuilder().build();
+   *   String externalAccessRuleId = "externalAccessRuleId1937389350";
+   *   ExternalAccessRule response =
+   *       vmwareEngineClient
+   *           .createExternalAccessRuleAsync(parent, externalAccessRule, externalAccessRuleId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the network policy to create a new external access + * firewall rule in. 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/networkPolicies/my-policy` + * @param externalAccessRule Required. The initial description of a new external access rule. + * @param externalAccessRuleId Required. The user-provided identifier of the `ExternalAccessRule` + * to be created. This identifier must be unique among `ExternalAccessRule` 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 OperationFuture createExternalAccessRuleAsync( + String parent, ExternalAccessRule externalAccessRule, String externalAccessRuleId) { + CreateExternalAccessRuleRequest request = + CreateExternalAccessRuleRequest.newBuilder() + .setParent(parent) + .setExternalAccessRule(externalAccessRule) + .setExternalAccessRuleId(externalAccessRuleId) + .build(); + return createExternalAccessRuleAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new external access rule in a given network policy. + * + *

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()) {
+   *   CreateExternalAccessRuleRequest request =
+   *       CreateExternalAccessRuleRequest.newBuilder()
+   *           .setParent(
+   *               NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString())
+   *           .setExternalAccessRule(ExternalAccessRule.newBuilder().build())
+   *           .setExternalAccessRuleId("externalAccessRuleId1937389350")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ExternalAccessRule response = vmwareEngineClient.createExternalAccessRuleAsync(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 createExternalAccessRuleAsync( + CreateExternalAccessRuleRequest request) { + return createExternalAccessRuleOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new external access rule in a given network policy. + * + *

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()) {
+   *   CreateExternalAccessRuleRequest request =
+   *       CreateExternalAccessRuleRequest.newBuilder()
+   *           .setParent(
+   *               NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString())
+   *           .setExternalAccessRule(ExternalAccessRule.newBuilder().build())
+   *           .setExternalAccessRuleId("externalAccessRuleId1937389350")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.createExternalAccessRuleOperationCallable().futureCall(request);
+   *   // Do something.
+   *   ExternalAccessRule response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CreateExternalAccessRuleRequest, ExternalAccessRule, OperationMetadata> + createExternalAccessRuleOperationCallable() { + return stub.createExternalAccessRuleOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new external access rule in a given network policy. + * + *

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()) {
+   *   CreateExternalAccessRuleRequest request =
+   *       CreateExternalAccessRuleRequest.newBuilder()
+   *           .setParent(
+   *               NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString())
+   *           .setExternalAccessRule(ExternalAccessRule.newBuilder().build())
+   *           .setExternalAccessRuleId("externalAccessRuleId1937389350")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.createExternalAccessRuleCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createExternalAccessRuleCallable() { + return stub.createExternalAccessRuleCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single external access rule. Only fields specified in `update_mask` + * 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()) {
+   *   ExternalAccessRule externalAccessRule = ExternalAccessRule.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   ExternalAccessRule response =
+   *       vmwareEngineClient.updateExternalAccessRuleAsync(externalAccessRule, updateMask).get();
+   * }
+   * }
+ * + * @param externalAccessRule Required. Description of the external access rule. + * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the + * `ExternalAccessRule` 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 updateExternalAccessRuleAsync( + ExternalAccessRule externalAccessRule, FieldMask updateMask) { + UpdateExternalAccessRuleRequest request = + UpdateExternalAccessRuleRequest.newBuilder() + .setExternalAccessRule(externalAccessRule) + .setUpdateMask(updateMask) + .build(); + return updateExternalAccessRuleAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single external access rule. Only fields specified in `update_mask` + * 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()) {
+   *   UpdateExternalAccessRuleRequest request =
+   *       UpdateExternalAccessRuleRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setExternalAccessRule(ExternalAccessRule.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ExternalAccessRule response = vmwareEngineClient.updateExternalAccessRuleAsync(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 updateExternalAccessRuleAsync( + UpdateExternalAccessRuleRequest request) { + return updateExternalAccessRuleOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single external access rule. Only fields specified in `update_mask` + * 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()) {
+   *   UpdateExternalAccessRuleRequest request =
+   *       UpdateExternalAccessRuleRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setExternalAccessRule(ExternalAccessRule.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.updateExternalAccessRuleOperationCallable().futureCall(request);
+   *   // Do something.
+   *   ExternalAccessRule response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + UpdateExternalAccessRuleRequest, ExternalAccessRule, OperationMetadata> + updateExternalAccessRuleOperationCallable() { + return stub.updateExternalAccessRuleOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single external access rule. Only fields specified in `update_mask` + * 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()) {
+   *   UpdateExternalAccessRuleRequest request =
+   *       UpdateExternalAccessRuleRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setExternalAccessRule(ExternalAccessRule.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.updateExternalAccessRuleCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateExternalAccessRuleCallable() { + return stub.updateExternalAccessRuleCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single external access rule. + * + *

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()) {
+   *   ExternalAccessRuleName name =
+   *       ExternalAccessRuleName.of(
+   *           "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]");
+   *   vmwareEngineClient.deleteExternalAccessRuleAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the external access firewall rule to delete. + * 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/networkPolicies/my-policy/externalAccessRules/my-rule` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteExternalAccessRuleAsync( + ExternalAccessRuleName name) { + DeleteExternalAccessRuleRequest request = + DeleteExternalAccessRuleRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteExternalAccessRuleAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single external access rule. + * + *

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 =
+   *       ExternalAccessRuleName.of(
+   *               "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]")
+   *           .toString();
+   *   vmwareEngineClient.deleteExternalAccessRuleAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the external access firewall rule to delete. + * 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/networkPolicies/my-policy/externalAccessRules/my-rule` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteExternalAccessRuleAsync( + String name) { + DeleteExternalAccessRuleRequest request = + DeleteExternalAccessRuleRequest.newBuilder().setName(name).build(); + return deleteExternalAccessRuleAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single external access rule. + * + *

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()) {
+   *   DeleteExternalAccessRuleRequest request =
+   *       DeleteExternalAccessRuleRequest.newBuilder()
+   *           .setName(
+   *               ExternalAccessRuleName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   vmwareEngineClient.deleteExternalAccessRuleAsync(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 deleteExternalAccessRuleAsync( + DeleteExternalAccessRuleRequest request) { + return deleteExternalAccessRuleOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single external access rule. + * + *

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()) {
+   *   DeleteExternalAccessRuleRequest request =
+   *       DeleteExternalAccessRuleRequest.newBuilder()
+   *           .setName(
+   *               ExternalAccessRuleName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.deleteExternalAccessRuleOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteExternalAccessRuleOperationCallable() { + return stub.deleteExternalAccessRuleOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single external access rule. + * + *

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()) {
+   *   DeleteExternalAccessRuleRequest request =
+   *       DeleteExternalAccessRuleRequest.newBuilder()
+   *           .setName(
+   *               ExternalAccessRuleName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.deleteExternalAccessRuleCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteExternalAccessRuleCallable() { + return stub.deleteExternalAccessRuleCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists logging servers configured for a given private cloud. + * + *

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()) {
+   *   PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
+   *   for (LoggingServer element : vmwareEngineClient.listLoggingServers(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the private cloud to be queried for logging + * servers. 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` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLoggingServersPagedResponse listLoggingServers(PrivateCloudName parent) { + ListLoggingServersRequest request = + ListLoggingServersRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listLoggingServers(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists logging servers configured for a given private cloud. + * + *

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 = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString();
+   *   for (LoggingServer element : vmwareEngineClient.listLoggingServers(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the private cloud to be queried for logging + * servers. 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` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLoggingServersPagedResponse listLoggingServers(String parent) { + ListLoggingServersRequest request = + ListLoggingServersRequest.newBuilder().setParent(parent).build(); + return listLoggingServers(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists logging servers configured for a given private cloud. + * + *

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()) {
+   *   ListLoggingServersRequest request =
+   *       ListLoggingServersRequest.newBuilder()
+   *           .setParent(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (LoggingServer element : vmwareEngineClient.listLoggingServers(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 ListLoggingServersPagedResponse listLoggingServers( + ListLoggingServersRequest request) { + return listLoggingServersPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists logging servers configured for a given private cloud. + * + *

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()) {
+   *   ListLoggingServersRequest request =
+   *       ListLoggingServersRequest.newBuilder()
+   *           .setParent(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.listLoggingServersPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (LoggingServer element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLoggingServersPagedCallable() { + return stub.listLoggingServersPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists logging servers configured for a given private cloud. + * + *

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()) {
+   *   ListLoggingServersRequest request =
+   *       ListLoggingServersRequest.newBuilder()
+   *           .setParent(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListLoggingServersResponse response =
+   *         vmwareEngineClient.listLoggingServersCallable().call(request);
+   *     for (LoggingServer element : response.getLoggingServersList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLoggingServersCallable() { + return stub.listLoggingServersCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a logging server. + * + *

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()) {
+   *   LoggingServerName name =
+   *       LoggingServerName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]");
+   *   LoggingServer response = vmwareEngineClient.getLoggingServer(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the Logging Server 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/loggingServers/my-logging-server` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LoggingServer getLoggingServer(LoggingServerName name) { + GetLoggingServerRequest request = + GetLoggingServerRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getLoggingServer(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a logging server. + * + *

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 =
+   *       LoggingServerName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]")
+   *           .toString();
+   *   LoggingServer response = vmwareEngineClient.getLoggingServer(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the Logging Server 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/loggingServers/my-logging-server` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LoggingServer getLoggingServer(String name) { + GetLoggingServerRequest request = GetLoggingServerRequest.newBuilder().setName(name).build(); + return getLoggingServer(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a logging server. + * + *

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()) {
+   *   GetLoggingServerRequest request =
+   *       GetLoggingServerRequest.newBuilder()
+   *           .setName(
+   *               LoggingServerName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]")
+   *                   .toString())
+   *           .build();
+   *   LoggingServer response = vmwareEngineClient.getLoggingServer(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 LoggingServer getLoggingServer(GetLoggingServerRequest request) { + return getLoggingServerCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a logging server. + * + *

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()) {
+   *   GetLoggingServerRequest request =
+   *       GetLoggingServerRequest.newBuilder()
+   *           .setName(
+   *               LoggingServerName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.getLoggingServerCallable().futureCall(request);
+   *   // Do something.
+   *   LoggingServer response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLoggingServerCallable() { + return stub.getLoggingServerCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new logging server for a given private cloud. + * + *

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()) {
+   *   PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
+   *   LoggingServer loggingServer = LoggingServer.newBuilder().build();
+   *   String loggingServerId = "loggingServerId-304163779";
+   *   LoggingServer response =
+   *       vmwareEngineClient.createLoggingServerAsync(parent, loggingServer, loggingServerId).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the private cloud to create a new Logging Server + * in. 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` + * @param loggingServer Required. The initial description of a new logging server. + * @param loggingServerId Required. The user-provided identifier of the `LoggingServer` to be + * created. This identifier must be unique among `LoggingServer` 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 OperationFuture createLoggingServerAsync( + PrivateCloudName parent, LoggingServer loggingServer, String loggingServerId) { + CreateLoggingServerRequest request = + CreateLoggingServerRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setLoggingServer(loggingServer) + .setLoggingServerId(loggingServerId) + .build(); + return createLoggingServerAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new logging server for a given private cloud. + * + *

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 = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString();
+   *   LoggingServer loggingServer = LoggingServer.newBuilder().build();
+   *   String loggingServerId = "loggingServerId-304163779";
+   *   LoggingServer response =
+   *       vmwareEngineClient.createLoggingServerAsync(parent, loggingServer, loggingServerId).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the private cloud to create a new Logging Server + * in. 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` + * @param loggingServer Required. The initial description of a new logging server. + * @param loggingServerId Required. The user-provided identifier of the `LoggingServer` to be + * created. This identifier must be unique among `LoggingServer` 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 OperationFuture createLoggingServerAsync( + String parent, LoggingServer loggingServer, String loggingServerId) { + CreateLoggingServerRequest request = + CreateLoggingServerRequest.newBuilder() + .setParent(parent) + .setLoggingServer(loggingServer) + .setLoggingServerId(loggingServerId) + .build(); + return createLoggingServerAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new logging server for a given private cloud. + * + *

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()) {
+   *   CreateLoggingServerRequest request =
+   *       CreateLoggingServerRequest.newBuilder()
+   *           .setParent(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setLoggingServer(LoggingServer.newBuilder().build())
+   *           .setLoggingServerId("loggingServerId-304163779")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   LoggingServer response = vmwareEngineClient.createLoggingServerAsync(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 createLoggingServerAsync( + CreateLoggingServerRequest request) { + return createLoggingServerOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new logging server for a given private cloud. + * + *

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()) {
+   *   CreateLoggingServerRequest request =
+   *       CreateLoggingServerRequest.newBuilder()
+   *           .setParent(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setLoggingServer(LoggingServer.newBuilder().build())
+   *           .setLoggingServerId("loggingServerId-304163779")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.createLoggingServerOperationCallable().futureCall(request);
+   *   // Do something.
+   *   LoggingServer response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createLoggingServerOperationCallable() { + return stub.createLoggingServerOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new logging server for a given private cloud. + * + *

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()) {
+   *   CreateLoggingServerRequest request =
+   *       CreateLoggingServerRequest.newBuilder()
+   *           .setParent(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setLoggingServer(LoggingServer.newBuilder().build())
+   *           .setLoggingServerId("loggingServerId-304163779")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.createLoggingServerCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createLoggingServerCallable() { + return stub.createLoggingServerCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single logging server. Only fields specified in `update_mask` 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()) {
+   *   LoggingServer loggingServer = LoggingServer.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   LoggingServer response =
+   *       vmwareEngineClient.updateLoggingServerAsync(loggingServer, updateMask).get();
+   * }
+   * }
+ * + * @param loggingServer Required. Logging server description. + * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the + * `LoggingServer` 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 updateLoggingServerAsync( + LoggingServer loggingServer, FieldMask updateMask) { + UpdateLoggingServerRequest request = + UpdateLoggingServerRequest.newBuilder() + .setLoggingServer(loggingServer) + .setUpdateMask(updateMask) + .build(); + return updateLoggingServerAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single logging server. Only fields specified in `update_mask` 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()) {
+   *   UpdateLoggingServerRequest request =
+   *       UpdateLoggingServerRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setLoggingServer(LoggingServer.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   LoggingServer response = vmwareEngineClient.updateLoggingServerAsync(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 updateLoggingServerAsync( + UpdateLoggingServerRequest request) { + return updateLoggingServerOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single logging server. Only fields specified in `update_mask` 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()) {
+   *   UpdateLoggingServerRequest request =
+   *       UpdateLoggingServerRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setLoggingServer(LoggingServer.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.updateLoggingServerOperationCallable().futureCall(request);
+   *   // Do something.
+   *   LoggingServer response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateLoggingServerOperationCallable() { + return stub.updateLoggingServerOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single logging server. Only fields specified in `update_mask` 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()) {
+   *   UpdateLoggingServerRequest request =
+   *       UpdateLoggingServerRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setLoggingServer(LoggingServer.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.updateLoggingServerCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateLoggingServerCallable() { + return stub.updateLoggingServerCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single logging server. + * + *

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()) {
+   *   LoggingServerName name =
+   *       LoggingServerName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]");
+   *   vmwareEngineClient.deleteLoggingServerAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the logging server to delete. 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/loggingServers/my-logging-server` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteLoggingServerAsync( + LoggingServerName name) { + DeleteLoggingServerRequest request = + DeleteLoggingServerRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteLoggingServerAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single logging server. + * + *

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 =
+   *       LoggingServerName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]")
+   *           .toString();
+   *   vmwareEngineClient.deleteLoggingServerAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the logging server to delete. 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/loggingServers/my-logging-server` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteLoggingServerAsync(String name) { + DeleteLoggingServerRequest request = + DeleteLoggingServerRequest.newBuilder().setName(name).build(); + return deleteLoggingServerAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single logging server. + * + *

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()) {
+   *   DeleteLoggingServerRequest request =
+   *       DeleteLoggingServerRequest.newBuilder()
+   *           .setName(
+   *               LoggingServerName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   vmwareEngineClient.deleteLoggingServerAsync(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 deleteLoggingServerAsync( + DeleteLoggingServerRequest request) { + return deleteLoggingServerOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single logging server. + * + *

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()) {
+   *   DeleteLoggingServerRequest request =
+   *       DeleteLoggingServerRequest.newBuilder()
+   *           .setName(
+   *               LoggingServerName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.deleteLoggingServerOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteLoggingServerOperationCallable() { + return stub.deleteLoggingServerOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single logging server. + * + *

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()) {
+   *   DeleteLoggingServerRequest request =
+   *       DeleteLoggingServerRequest.newBuilder()
+   *           .setName(
+   *               LoggingServerName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.deleteLoggingServerCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteLoggingServerCallable() { + return stub.deleteLoggingServerCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists node types + * + *

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 (NodeType element : vmwareEngineClient.listNodeTypes(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the location to be queried for node types. + * 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` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListNodeTypesPagedResponse listNodeTypes(LocationName parent) { + ListNodeTypesRequest request = + ListNodeTypesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listNodeTypes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists node types + * + *

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 (NodeType element : vmwareEngineClient.listNodeTypes(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the location to be queried for node types. + * 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` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListNodeTypesPagedResponse listNodeTypes(String parent) { + ListNodeTypesRequest request = ListNodeTypesRequest.newBuilder().setParent(parent).build(); + return listNodeTypes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists node types + * + *

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()) {
+   *   ListNodeTypesRequest request =
+   *       ListNodeTypesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   for (NodeType element : vmwareEngineClient.listNodeTypes(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 ListNodeTypesPagedResponse listNodeTypes(ListNodeTypesRequest request) { + return listNodeTypesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists node types + * + *

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()) {
+   *   ListNodeTypesRequest request =
+   *       ListNodeTypesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.listNodeTypesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (NodeType element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listNodeTypesPagedCallable() { + return stub.listNodeTypesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists node types + * + *

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()) {
+   *   ListNodeTypesRequest request =
+   *       ListNodeTypesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   while (true) {
+   *     ListNodeTypesResponse response = vmwareEngineClient.listNodeTypesCallable().call(request);
+   *     for (NodeType element : response.getNodeTypesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listNodeTypesCallable() { + return stub.listNodeTypesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single `NodeType`. + * + *

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()) {
+   *   NodeTypeName name = NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]");
+   *   NodeType response = vmwareEngineClient.getNodeType(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the node type to retrieve. Resource names are + * schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-proj/locations/us-central1-a/nodeTypes/standard-72` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final NodeType getNodeType(NodeTypeName name) { + GetNodeTypeRequest request = + GetNodeTypeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getNodeType(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single `NodeType`. + * + *

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 = NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]").toString();
+   *   NodeType response = vmwareEngineClient.getNodeType(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the node type to retrieve. Resource names are + * schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-proj/locations/us-central1-a/nodeTypes/standard-72` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final NodeType getNodeType(String name) { + GetNodeTypeRequest request = GetNodeTypeRequest.newBuilder().setName(name).build(); + return getNodeType(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single `NodeType`. + * + *

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()) {
+   *   GetNodeTypeRequest request =
+   *       GetNodeTypeRequest.newBuilder()
+   *           .setName(NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]").toString())
+   *           .build();
+   *   NodeType response = vmwareEngineClient.getNodeType(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 NodeType getNodeType(GetNodeTypeRequest request) { + return getNodeTypeCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single `NodeType`. + * + *

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()) {
+   *   GetNodeTypeRequest request =
+   *       GetNodeTypeRequest.newBuilder()
+   *           .setName(NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]").toString())
+   *           .build();
+   *   ApiFuture future = vmwareEngineClient.getNodeTypeCallable().futureCall(request);
+   *   // Do something.
+   *   NodeType response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getNodeTypeCallable() { + return stub.getNodeTypeCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of credentials for NSX appliance. + * + *

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()) {
+   *   PrivateCloudName privateCloud =
+   *       PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
+   *   Credentials response = vmwareEngineClient.showNsxCredentials(privateCloud);
+   * }
+   * }
+ * + * @param privateCloud Required. The resource name of the private cloud to be queried for + * credentials. 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` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Credentials showNsxCredentials(PrivateCloudName privateCloud) { + ShowNsxCredentialsRequest request = + ShowNsxCredentialsRequest.newBuilder() + .setPrivateCloud(privateCloud == null ? null : privateCloud.toString()) + .build(); + return showNsxCredentials(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of credentials for NSX appliance. + * + *

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 privateCloud =
+   *       PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString();
+   *   Credentials response = vmwareEngineClient.showNsxCredentials(privateCloud);
+   * }
+   * }
+ * + * @param privateCloud Required. The resource name of the private cloud to be queried for + * credentials. 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` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Credentials showNsxCredentials(String privateCloud) { + ShowNsxCredentialsRequest request = + ShowNsxCredentialsRequest.newBuilder().setPrivateCloud(privateCloud).build(); + return showNsxCredentials(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of credentials for NSX appliance. + * + *

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()) {
+   *   ShowNsxCredentialsRequest request =
+   *       ShowNsxCredentialsRequest.newBuilder()
+   *           .setPrivateCloud(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .build();
+   *   Credentials response = vmwareEngineClient.showNsxCredentials(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 Credentials showNsxCredentials(ShowNsxCredentialsRequest request) { + return showNsxCredentialsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of credentials for NSX appliance. + * + *

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()) {
+   *   ShowNsxCredentialsRequest request =
+   *       ShowNsxCredentialsRequest.newBuilder()
+   *           .setPrivateCloud(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.showNsxCredentialsCallable().futureCall(request);
+   *   // Do something.
+   *   Credentials response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable showNsxCredentialsCallable() { + return stub.showNsxCredentialsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of credentials for Vcenter appliance. + * + *

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()) {
+   *   PrivateCloudName privateCloud =
+   *       PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
+   *   Credentials response = vmwareEngineClient.showVcenterCredentials(privateCloud);
+   * }
+   * }
+ * + * @param privateCloud Required. The resource name of the private cloud to be queried for + * credentials. 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` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Credentials showVcenterCredentials(PrivateCloudName privateCloud) { + ShowVcenterCredentialsRequest request = + ShowVcenterCredentialsRequest.newBuilder() + .setPrivateCloud(privateCloud == null ? null : privateCloud.toString()) + .build(); + return showVcenterCredentials(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of credentials for Vcenter appliance. + * + *

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 privateCloud =
+   *       PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString();
+   *   Credentials response = vmwareEngineClient.showVcenterCredentials(privateCloud);
+   * }
+   * }
+ * + * @param privateCloud Required. The resource name of the private cloud to be queried for + * credentials. 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` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Credentials showVcenterCredentials(String privateCloud) { + ShowVcenterCredentialsRequest request = + ShowVcenterCredentialsRequest.newBuilder().setPrivateCloud(privateCloud).build(); + return showVcenterCredentials(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of credentials for Vcenter appliance. + * + *

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()) {
+   *   ShowVcenterCredentialsRequest request =
+   *       ShowVcenterCredentialsRequest.newBuilder()
+   *           .setPrivateCloud(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setUsername("username-265713450")
+   *           .build();
+   *   Credentials response = vmwareEngineClient.showVcenterCredentials(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 Credentials showVcenterCredentials(ShowVcenterCredentialsRequest request) { + return showVcenterCredentialsCallable().call(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. + * Gets details of credentials for Vcenter appliance. + * + *

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()) {
+   *   ShowVcenterCredentialsRequest request =
+   *       ShowVcenterCredentialsRequest.newBuilder()
+   *           .setPrivateCloud(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setUsername("username-265713450")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.showVcenterCredentialsCallable().futureCall(request);
+   *   // Do something.
+   *   Credentials response = future.get();
+   * }
+   * }
*/ - @BetaApi - public final OperationsClient getHttpJsonOperationsClient() { - return httpJsonOperationsClient; + public final UnaryCallable + showVcenterCredentialsCallable() { + return stub.showVcenterCredentialsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists `PrivateCloud` resources in a given project and location. + * Resets credentials of the NSX appliance. * *

Sample code: * @@ -1060,30 +7516,30 @@ public final OperationsClient getHttpJsonOperationsClient() { * // - 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 (PrivateCloud element : vmwareEngineClient.listPrivateClouds(parent).iterateAll()) { - * // doThingsWith(element); - * } + * PrivateCloudName privateCloud = + * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + * PrivateCloud response = vmwareEngineClient.resetNsxCredentialsAsync(privateCloud).get(); * } * } * - * @param parent Required. The resource name of the private cloud to be queried for clusters. + * @param privateCloud Required. The resource name of the private cloud to reset credentials for. * 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` + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPrivateCloudsPagedResponse listPrivateClouds(LocationName parent) { - ListPrivateCloudsRequest request = - ListPrivateCloudsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) + public final OperationFuture resetNsxCredentialsAsync( + PrivateCloudName privateCloud) { + ResetNsxCredentialsRequest request = + ResetNsxCredentialsRequest.newBuilder() + .setPrivateCloud(privateCloud == null ? null : privateCloud.toString()) .build(); - return listPrivateClouds(request); + return resetNsxCredentialsAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists `PrivateCloud` resources in a given project and location. + * Resets credentials of the NSX appliance. * *

Sample code: * @@ -1094,28 +7550,28 @@ public final ListPrivateCloudsPagedResponse listPrivateClouds(LocationName paren * // - 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 (PrivateCloud element : vmwareEngineClient.listPrivateClouds(parent).iterateAll()) { - * // doThingsWith(element); - * } + * String privateCloud = + * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString(); + * PrivateCloud response = vmwareEngineClient.resetNsxCredentialsAsync(privateCloud).get(); * } * } * - * @param parent Required. The resource name of the private cloud to be queried for clusters. + * @param privateCloud Required. The resource name of the private cloud to reset credentials for. * 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` + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPrivateCloudsPagedResponse listPrivateClouds(String parent) { - ListPrivateCloudsRequest request = - ListPrivateCloudsRequest.newBuilder().setParent(parent).build(); - return listPrivateClouds(request); + public final OperationFuture resetNsxCredentialsAsync( + String privateCloud) { + ResetNsxCredentialsRequest request = + ResetNsxCredentialsRequest.newBuilder().setPrivateCloud(privateCloud).build(); + return resetNsxCredentialsAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists `PrivateCloud` resources in a given project and location. + * Resets credentials of the NSX appliance. * *

Sample code: * @@ -1126,30 +7582,27 @@ public final ListPrivateCloudsPagedResponse listPrivateClouds(String parent) { * // - 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()) { - * ListPrivateCloudsRequest request = - * ListPrivateCloudsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") + * ResetNsxCredentialsRequest request = + * ResetNsxCredentialsRequest.newBuilder() + * .setPrivateCloud( + * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + * .setRequestId("requestId693933066") * .build(); - * for (PrivateCloud element : vmwareEngineClient.listPrivateClouds(request).iterateAll()) { - * // doThingsWith(element); - * } + * PrivateCloud response = vmwareEngineClient.resetNsxCredentialsAsync(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 ListPrivateCloudsPagedResponse listPrivateClouds(ListPrivateCloudsRequest request) { - return listPrivateCloudsPagedCallable().call(request); + public final OperationFuture resetNsxCredentialsAsync( + ResetNsxCredentialsRequest request) { + return resetNsxCredentialsOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists `PrivateCloud` resources in a given project and location. + * Resets credentials of the NSX appliance. * *

Sample code: * @@ -1160,31 +7613,27 @@ public final ListPrivateCloudsPagedResponse listPrivateClouds(ListPrivateCloudsR * // - 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()) { - * ListPrivateCloudsRequest request = - * ListPrivateCloudsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") + * ResetNsxCredentialsRequest request = + * ResetNsxCredentialsRequest.newBuilder() + * .setPrivateCloud( + * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + * .setRequestId("requestId693933066") * .build(); - * ApiFuture future = - * vmwareEngineClient.listPrivateCloudsPagedCallable().futureCall(request); + * OperationFuture future = + * vmwareEngineClient.resetNsxCredentialsOperationCallable().futureCall(request); * // Do something. - * for (PrivateCloud element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * PrivateCloud response = future.get(); * } * } */ - public final UnaryCallable - listPrivateCloudsPagedCallable() { - return stub.listPrivateCloudsPagedCallable(); + public final OperationCallable + resetNsxCredentialsOperationCallable() { + return stub.resetNsxCredentialsOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists `PrivateCloud` resources in a given project and location. + * Resets credentials of the NSX appliance. * *

Sample code: * @@ -1195,38 +7644,26 @@ public final ListPrivateCloudsPagedResponse listPrivateClouds(ListPrivateCloudsR * // - 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()) { - * ListPrivateCloudsRequest request = - * ListPrivateCloudsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") + * ResetNsxCredentialsRequest request = + * ResetNsxCredentialsRequest.newBuilder() + * .setPrivateCloud( + * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + * .setRequestId("requestId693933066") * .build(); - * while (true) { - * ListPrivateCloudsResponse response = - * vmwareEngineClient.listPrivateCloudsCallable().call(request); - * for (PrivateCloud element : response.getPrivateCloudsList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * ApiFuture future = + * vmwareEngineClient.resetNsxCredentialsCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); * } * } */ - public final UnaryCallable - listPrivateCloudsCallable() { - return stub.listPrivateCloudsCallable(); + public final UnaryCallable resetNsxCredentialsCallable() { + return stub.resetNsxCredentialsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieves a `PrivateCloud` resource by its resource name. + * Resets credentials of the Vcenter appliance. * *

Sample code: * @@ -1237,26 +7674,30 @@ public final ListPrivateCloudsPagedResponse listPrivateClouds(ListPrivateCloudsR * // - 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()) { - * PrivateCloudName name = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); - * PrivateCloud response = vmwareEngineClient.getPrivateCloud(name); + * PrivateCloudName privateCloud = + * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + * PrivateCloud response = vmwareEngineClient.resetVcenterCredentialsAsync(privateCloud).get(); * } * } * - * @param name Required. The resource name of the private cloud to retrieve. Resource names are - * schemeless URIs that follow the conventions in + * @param privateCloud Required. The resource name of the private cloud to reset credentials for. + * 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` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PrivateCloud getPrivateCloud(PrivateCloudName name) { - GetPrivateCloudRequest request = - GetPrivateCloudRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getPrivateCloud(request); + public final OperationFuture resetVcenterCredentialsAsync( + PrivateCloudName privateCloud) { + ResetVcenterCredentialsRequest request = + ResetVcenterCredentialsRequest.newBuilder() + .setPrivateCloud(privateCloud == null ? null : privateCloud.toString()) + .build(); + return resetVcenterCredentialsAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieves a `PrivateCloud` resource by its resource name. + * Resets credentials of the Vcenter appliance. * *

Sample code: * @@ -1267,25 +7708,28 @@ public final PrivateCloud getPrivateCloud(PrivateCloudName name) { * // - 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 = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString(); - * PrivateCloud response = vmwareEngineClient.getPrivateCloud(name); + * String privateCloud = + * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString(); + * PrivateCloud response = vmwareEngineClient.resetVcenterCredentialsAsync(privateCloud).get(); * } * } * - * @param name Required. The resource name of the private cloud to retrieve. Resource names are - * schemeless URIs that follow the conventions in + * @param privateCloud Required. The resource name of the private cloud to reset credentials for. + * 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` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PrivateCloud getPrivateCloud(String name) { - GetPrivateCloudRequest request = GetPrivateCloudRequest.newBuilder().setName(name).build(); - return getPrivateCloud(request); + public final OperationFuture resetVcenterCredentialsAsync( + String privateCloud) { + ResetVcenterCredentialsRequest request = + ResetVcenterCredentialsRequest.newBuilder().setPrivateCloud(privateCloud).build(); + return resetVcenterCredentialsAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieves a `PrivateCloud` resource by its resource name. + * Resets credentials of the Vcenter appliance. * *

Sample code: * @@ -1296,24 +7740,28 @@ public final PrivateCloud getPrivateCloud(String name) { * // - 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()) { - * GetPrivateCloudRequest request = - * GetPrivateCloudRequest.newBuilder() - * .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + * ResetVcenterCredentialsRequest request = + * ResetVcenterCredentialsRequest.newBuilder() + * .setPrivateCloud( + * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + * .setRequestId("requestId693933066") + * .setUsername("username-265713450") * .build(); - * PrivateCloud response = vmwareEngineClient.getPrivateCloud(request); + * PrivateCloud response = vmwareEngineClient.resetVcenterCredentialsAsync(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 PrivateCloud getPrivateCloud(GetPrivateCloudRequest request) { - return getPrivateCloudCallable().call(request); + public final OperationFuture resetVcenterCredentialsAsync( + ResetVcenterCredentialsRequest request) { + return resetVcenterCredentialsOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieves a `PrivateCloud` resource by its resource name. + * Resets credentials of the Vcenter appliance. * *

Sample code: * @@ -1324,29 +7772,28 @@ public final PrivateCloud getPrivateCloud(GetPrivateCloudRequest request) { * // - 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()) { - * GetPrivateCloudRequest request = - * GetPrivateCloudRequest.newBuilder() - * .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + * ResetVcenterCredentialsRequest request = + * ResetVcenterCredentialsRequest.newBuilder() + * .setPrivateCloud( + * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + * .setRequestId("requestId693933066") + * .setUsername("username-265713450") * .build(); - * ApiFuture future = - * vmwareEngineClient.getPrivateCloudCallable().futureCall(request); + * OperationFuture future = + * vmwareEngineClient.resetVcenterCredentialsOperationCallable().futureCall(request); * // Do something. * PrivateCloud response = future.get(); * } * } */ - public final UnaryCallable getPrivateCloudCallable() { - return stub.getPrivateCloudCallable(); + public final OperationCallable + resetVcenterCredentialsOperationCallable() { + return stub.resetVcenterCredentialsOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new `PrivateCloud` resource in a given project and location. Private clouds can only - * be created in zones, regional private clouds are not supported. - * - *

Creating a private cloud also creates a [management - * cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components) for that - * private cloud. + * Resets credentials of the Vcenter appliance. * *

Sample code: * @@ -1357,52 +7804,28 @@ public final UnaryCallable getPrivateCloud * // - 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]"); - * PrivateCloud privateCloud = PrivateCloud.newBuilder().build(); - * String privateCloudId = "privateCloudId573896493"; - * PrivateCloud response = - * vmwareEngineClient.createPrivateCloudAsync(parent, privateCloud, privateCloudId).get(); + * ResetVcenterCredentialsRequest request = + * ResetVcenterCredentialsRequest.newBuilder() + * .setPrivateCloud( + * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + * .setRequestId("requestId693933066") + * .setUsername("username-265713450") + * .build(); + * ApiFuture future = + * vmwareEngineClient.resetVcenterCredentialsCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); * } * } - * - * @param parent Required. The resource name of the location to create the new private cloud in. - * 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` - * @param privateCloud Required. The initial description of the new private cloud. - * @param privateCloudId Required. The user-provided identifier of the private cloud to be - * created. This identifier must be unique among each `PrivateCloud` 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 OperationFuture createPrivateCloudAsync( - LocationName parent, PrivateCloud privateCloud, String privateCloudId) { - CreatePrivateCloudRequest request = - CreatePrivateCloudRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setPrivateCloud(privateCloud) - .setPrivateCloudId(privateCloudId) - .build(); - return createPrivateCloudAsync(request); + public final UnaryCallable + resetVcenterCredentialsCallable() { + return stub.resetVcenterCredentialsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new `PrivateCloud` resource in a given project and location. Private clouds can only - * be created in zones, regional private clouds are not supported. - * - *

Creating a private cloud also creates a [management - * cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components) for that - * private cloud. + * Gets details of the `DnsForwarding` config. * *

Sample code: * @@ -1413,52 +7836,26 @@ public final OperationFuture createPrivateCloud * // - 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(); - * PrivateCloud privateCloud = PrivateCloud.newBuilder().build(); - * String privateCloudId = "privateCloudId573896493"; - * PrivateCloud response = - * vmwareEngineClient.createPrivateCloudAsync(parent, privateCloud, privateCloudId).get(); + * DnsForwardingName name = DnsForwardingName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + * DnsForwarding response = vmwareEngineClient.getDnsForwarding(name); * } * } * - * @param parent Required. The resource name of the location to create the new private cloud in. - * Resource names are schemeless URIs that follow the conventions in + * @param name Required. The resource name of a `DnsForwarding` 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` - * @param privateCloud Required. The initial description of the new private cloud. - * @param privateCloudId Required. The user-provided identifier of the private cloud to be - * created. This identifier must be unique among each `PrivateCloud` 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) - *
- * + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/dnsForwarding` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createPrivateCloudAsync( - String parent, PrivateCloud privateCloud, String privateCloudId) { - CreatePrivateCloudRequest request = - CreatePrivateCloudRequest.newBuilder() - .setParent(parent) - .setPrivateCloud(privateCloud) - .setPrivateCloudId(privateCloudId) - .build(); - return createPrivateCloudAsync(request); + public final DnsForwarding getDnsForwarding(DnsForwardingName name) { + GetDnsForwardingRequest request = + GetDnsForwardingRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getDnsForwarding(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new `PrivateCloud` resource in a given project and location. Private clouds can only - * be created in zones, regional private clouds are not supported. - * - *

Creating a private cloud also creates a [management - * cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components) for that - * private cloud. + * Gets details of the `DnsForwarding` config. * *

Sample code: * @@ -1469,34 +7866,25 @@ public final OperationFuture createPrivateCloud * // - 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()) { - * CreatePrivateCloudRequest request = - * CreatePrivateCloudRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPrivateCloudId("privateCloudId573896493") - * .setPrivateCloud(PrivateCloud.newBuilder().build()) - * .setRequestId("requestId693933066") - * .setValidateOnly(true) - * .build(); - * PrivateCloud response = vmwareEngineClient.createPrivateCloudAsync(request).get(); + * String name = DnsForwardingName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString(); + * DnsForwarding response = vmwareEngineClient.getDnsForwarding(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The resource name of a `DnsForwarding` 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/dnsForwarding` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createPrivateCloudAsync( - CreatePrivateCloudRequest request) { - return createPrivateCloudOperationCallable().futureCall(request); + public final DnsForwarding getDnsForwarding(String name) { + GetDnsForwardingRequest request = GetDnsForwardingRequest.newBuilder().setName(name).build(); + return getDnsForwarding(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new `PrivateCloud` resource in a given project and location. Private clouds can only - * be created in zones, regional private clouds are not supported. - * - *

Creating a private cloud also creates a [management - * cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components) for that - * private cloud. + * Gets details of the `DnsForwarding` config. * *

Sample code: * @@ -1507,34 +7895,25 @@ public final OperationFuture createPrivateCloud * // - 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()) { - * CreatePrivateCloudRequest request = - * CreatePrivateCloudRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPrivateCloudId("privateCloudId573896493") - * .setPrivateCloud(PrivateCloud.newBuilder().build()) - * .setRequestId("requestId693933066") - * .setValidateOnly(true) + * GetDnsForwardingRequest request = + * GetDnsForwardingRequest.newBuilder() + * .setName( + * DnsForwardingName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) * .build(); - * OperationFuture future = - * vmwareEngineClient.createPrivateCloudOperationCallable().futureCall(request); - * // Do something. - * PrivateCloud response = future.get(); + * DnsForwarding response = vmwareEngineClient.getDnsForwarding(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 OperationCallable - createPrivateCloudOperationCallable() { - return stub.createPrivateCloudOperationCallable(); + public final DnsForwarding getDnsForwarding(GetDnsForwardingRequest request) { + return getDnsForwardingCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new `PrivateCloud` resource in a given project and location. Private clouds can only - * be created in zones, regional private clouds are not supported. - * - *

Creating a private cloud also creates a [management - * cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components) for that - * private cloud. + * Gets details of the `DnsForwarding` config. * *

Sample code: * @@ -1545,33 +7924,26 @@ public final OperationFuture createPrivateCloud * // - 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()) { - * CreatePrivateCloudRequest request = - * CreatePrivateCloudRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPrivateCloudId("privateCloudId573896493") - * .setPrivateCloud(PrivateCloud.newBuilder().build()) - * .setRequestId("requestId693933066") - * .setValidateOnly(true) + * GetDnsForwardingRequest request = + * GetDnsForwardingRequest.newBuilder() + * .setName( + * DnsForwardingName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) * .build(); - * ApiFuture future = - * vmwareEngineClient.createPrivateCloudCallable().futureCall(request); + * ApiFuture future = + * vmwareEngineClient.getDnsForwardingCallable().futureCall(request); * // Do something. - * Operation response = future.get(); + * DnsForwarding response = future.get(); * } * } */ - public final UnaryCallable createPrivateCloudCallable() { - return stub.createPrivateCloudCallable(); + public final UnaryCallable getDnsForwardingCallable() { + return stub.getDnsForwardingCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Modifies a `PrivateCloud` resource. Only the following fields can be updated: `description`. - * Only fields specified in `updateMask` are applied. - * - *

During operation processing, the resource is temporarily in the `ACTIVE` state before the - * operation fully completes. For that period of time, you can't update the resource. Use the - * operation status to determine when the processing fully completes. + * Updates the parameters of the `DnsForwarding` config, like associated domains. Only fields + * specified in `update_mask` are applied. * *

Sample code: * @@ -1582,38 +7954,34 @@ public final UnaryCallable createPrivateCl * // - 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()) { - * PrivateCloud privateCloud = PrivateCloud.newBuilder().build(); + * DnsForwarding dnsForwarding = DnsForwarding.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); - * PrivateCloud response = - * vmwareEngineClient.updatePrivateCloudAsync(privateCloud, updateMask).get(); + * DnsForwarding response = + * vmwareEngineClient.updateDnsForwardingAsync(dnsForwarding, updateMask).get(); * } * } * - * @param privateCloud Required. Private cloud description. + * @param dnsForwarding Required. DnsForwarding config details. * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the - * `PrivateCloud` resource by the update. The fields specified in `updateMask` 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. + * `DnsForwarding` 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 updatePrivateCloudAsync( - PrivateCloud privateCloud, FieldMask updateMask) { - UpdatePrivateCloudRequest request = - UpdatePrivateCloudRequest.newBuilder() - .setPrivateCloud(privateCloud) + public final OperationFuture updateDnsForwardingAsync( + DnsForwarding dnsForwarding, FieldMask updateMask) { + UpdateDnsForwardingRequest request = + UpdateDnsForwardingRequest.newBuilder() + .setDnsForwarding(dnsForwarding) .setUpdateMask(updateMask) .build(); - return updatePrivateCloudAsync(request); + return updateDnsForwardingAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Modifies a `PrivateCloud` resource. Only the following fields can be updated: `description`. - * Only fields specified in `updateMask` are applied. - * - *

During operation processing, the resource is temporarily in the `ACTIVE` state before the - * operation fully completes. For that period of time, you can't update the resource. Use the - * operation status to determine when the processing fully completes. + * Updates the parameters of the `DnsForwarding` config, like associated domains. Only fields + * specified in `update_mask` are applied. * *

Sample code: * @@ -1624,32 +7992,28 @@ public final OperationFuture updatePrivateCloud * // - 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()) { - * UpdatePrivateCloudRequest request = - * UpdatePrivateCloudRequest.newBuilder() - * .setPrivateCloud(PrivateCloud.newBuilder().build()) + * UpdateDnsForwardingRequest request = + * UpdateDnsForwardingRequest.newBuilder() + * .setDnsForwarding(DnsForwarding.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .setRequestId("requestId693933066") * .build(); - * PrivateCloud response = vmwareEngineClient.updatePrivateCloudAsync(request).get(); + * DnsForwarding response = vmwareEngineClient.updateDnsForwardingAsync(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 updatePrivateCloudAsync( - UpdatePrivateCloudRequest request) { - return updatePrivateCloudOperationCallable().futureCall(request); + public final OperationFuture updateDnsForwardingAsync( + UpdateDnsForwardingRequest request) { + return updateDnsForwardingOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Modifies a `PrivateCloud` resource. Only the following fields can be updated: `description`. - * Only fields specified in `updateMask` are applied. - * - *

During operation processing, the resource is temporarily in the `ACTIVE` state before the - * operation fully completes. For that period of time, you can't update the resource. Use the - * operation status to determine when the processing fully completes. + * Updates the parameters of the `DnsForwarding` config, like associated domains. Only fields + * specified in `update_mask` are applied. * *

Sample code: * @@ -1660,32 +8024,28 @@ public final OperationFuture updatePrivateCloud * // - 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()) { - * UpdatePrivateCloudRequest request = - * UpdatePrivateCloudRequest.newBuilder() - * .setPrivateCloud(PrivateCloud.newBuilder().build()) + * UpdateDnsForwardingRequest request = + * UpdateDnsForwardingRequest.newBuilder() + * .setDnsForwarding(DnsForwarding.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .setRequestId("requestId693933066") * .build(); - * OperationFuture future = - * vmwareEngineClient.updatePrivateCloudOperationCallable().futureCall(request); + * OperationFuture future = + * vmwareEngineClient.updateDnsForwardingOperationCallable().futureCall(request); * // Do something. - * PrivateCloud response = future.get(); + * DnsForwarding response = future.get(); * } * } */ - public final OperationCallable - updatePrivateCloudOperationCallable() { - return stub.updatePrivateCloudOperationCallable(); + public final OperationCallable + updateDnsForwardingOperationCallable() { + return stub.updateDnsForwardingOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Modifies a `PrivateCloud` resource. Only the following fields can be updated: `description`. - * Only fields specified in `updateMask` are applied. - * - *

During operation processing, the resource is temporarily in the `ACTIVE` state before the - * operation fully completes. For that period of time, you can't update the resource. Use the - * operation status to determine when the processing fully completes. + * Updates the parameters of the `DnsForwarding` config, like associated domains. Only fields + * specified in `update_mask` are applied. * *

Sample code: * @@ -1696,81 +8056,28 @@ public final OperationFuture updatePrivateCloud * // - 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()) { - * UpdatePrivateCloudRequest request = - * UpdatePrivateCloudRequest.newBuilder() - * .setPrivateCloud(PrivateCloud.newBuilder().build()) + * UpdateDnsForwardingRequest request = + * UpdateDnsForwardingRequest.newBuilder() + * .setDnsForwarding(DnsForwarding.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .setRequestId("requestId693933066") * .build(); * ApiFuture future = - * vmwareEngineClient.updatePrivateCloudCallable().futureCall(request); + * vmwareEngineClient.updateDnsForwardingCallable().futureCall(request); * // Do something. * Operation response = future.get(); * } * } */ - public final UnaryCallable updatePrivateCloudCallable() { - return stub.updatePrivateCloudCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Schedules a `PrivateCloud` resource for deletion. - * - *

A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED` - * and `expireTime` set to the time when deletion is final and can no longer be reversed. The - * delete operation is marked as done as soon as the `PrivateCloud` is successfully scheduled for - * deletion (this also applies when `delayHours` is set to zero), and the operation is not kept in - * pending state until `PrivateCloud` is purged. `PrivateCloud` can be restored using - * `UndeletePrivateCloud` method before the `expireTime` elapses. When `expireTime` is reached, - * deletion is final and all private cloud resources are irreversibly removed and billing stops. - * During the final removal process, `PrivateCloud.state` is set to `PURGING`. `PrivateCloud` can - * be polled using standard `GET` method for the whole period of deletion and purging. It will not - * be returned only when it is completely purged. - * - *

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()) {
-   *   PrivateCloudName name = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
-   *   PrivateCloud response = vmwareEngineClient.deletePrivateCloudAsync(name).get();
-   * }
-   * }
- * - * @param name Required. The resource name of the private cloud to delete. 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` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture deletePrivateCloudAsync( - PrivateCloudName name) { - DeletePrivateCloudRequest request = - DeletePrivateCloudRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return deletePrivateCloudAsync(request); + public final UnaryCallable updateDnsForwardingCallable() { + return stub.updateDnsForwardingCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Schedules a `PrivateCloud` resource for deletion. - * - *

A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED` - * and `expireTime` set to the time when deletion is final and can no longer be reversed. The - * delete operation is marked as done as soon as the `PrivateCloud` is successfully scheduled for - * deletion (this also applies when `delayHours` is set to zero), and the operation is not kept in - * pending state until `PrivateCloud` is purged. `PrivateCloud` can be restored using - * `UndeletePrivateCloud` method before the `expireTime` elapses. When `expireTime` is reached, - * deletion is final and all private cloud resources are irreversibly removed and billing stops. - * During the final removal process, `PrivateCloud.state` is set to `PURGING`. `PrivateCloud` can - * be polled using standard `GET` method for the whole period of deletion and purging. It will not - * be returned only when it is completely purged. + * Retrieves a `NetworkPeering` resource by its resource name. The resource contains details of + * the network peering, such as peered networks, import and export custom route configurations, + * and peering state. NetworkPeering is a global resource and location can only be global. * *

Sample code: * @@ -1781,38 +8088,31 @@ public final OperationFuture deletePrivateCloud * // - 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 = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString(); - * PrivateCloud response = vmwareEngineClient.deletePrivateCloudAsync(name).get(); + * NetworkPeeringName name = + * NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]"); + * NetworkPeering response = vmwareEngineClient.getNetworkPeering(name); * } * } * - * @param name Required. The resource name of the private cloud to delete. 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` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture deletePrivateCloudAsync( - String name) { - DeletePrivateCloudRequest request = - DeletePrivateCloudRequest.newBuilder().setName(name).build(); - return deletePrivateCloudAsync(request); + * @param name Required. The resource name of the network peering 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/global/networkPeerings/my-peering` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final NetworkPeering getNetworkPeering(NetworkPeeringName name) { + GetNetworkPeeringRequest request = + GetNetworkPeeringRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getNetworkPeering(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Schedules a `PrivateCloud` resource for deletion. - * - *

A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED` - * and `expireTime` set to the time when deletion is final and can no longer be reversed. The - * delete operation is marked as done as soon as the `PrivateCloud` is successfully scheduled for - * deletion (this also applies when `delayHours` is set to zero), and the operation is not kept in - * pending state until `PrivateCloud` is purged. `PrivateCloud` can be restored using - * `UndeletePrivateCloud` method before the `expireTime` elapses. When `expireTime` is reached, - * deletion is final and all private cloud resources are irreversibly removed and billing stops. - * During the final removal process, `PrivateCloud.state` is set to `PURGING`. `PrivateCloud` can - * be polled using standard `GET` method for the whole period of deletion and purging. It will not - * be returned only when it is completely purged. + * Retrieves a `NetworkPeering` resource by its resource name. The resource contains details of + * the network peering, such as peered networks, import and export custom route configurations, + * and peering state. NetworkPeering is a global resource and location can only be global. * *

Sample code: * @@ -1823,39 +8123,28 @@ public final OperationFuture deletePrivateCloud * // - 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()) { - * DeletePrivateCloudRequest request = - * DeletePrivateCloudRequest.newBuilder() - * .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) - * .setRequestId("requestId693933066") - * .setForce(true) - * .setDelayHours(475821395) - * .build(); - * PrivateCloud response = vmwareEngineClient.deletePrivateCloudAsync(request).get(); + * String name = + * NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]").toString(); + * NetworkPeering response = vmwareEngineClient.getNetworkPeering(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The resource name of the network peering 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/global/networkPeerings/my-peering` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deletePrivateCloudAsync( - DeletePrivateCloudRequest request) { - return deletePrivateCloudOperationCallable().futureCall(request); + public final NetworkPeering getNetworkPeering(String name) { + GetNetworkPeeringRequest request = GetNetworkPeeringRequest.newBuilder().setName(name).build(); + return getNetworkPeering(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Schedules a `PrivateCloud` resource for deletion. - * - *

A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED` - * and `expireTime` set to the time when deletion is final and can no longer be reversed. The - * delete operation is marked as done as soon as the `PrivateCloud` is successfully scheduled for - * deletion (this also applies when `delayHours` is set to zero), and the operation is not kept in - * pending state until `PrivateCloud` is purged. `PrivateCloud` can be restored using - * `UndeletePrivateCloud` method before the `expireTime` elapses. When `expireTime` is reached, - * deletion is final and all private cloud resources are irreversibly removed and billing stops. - * During the final removal process, `PrivateCloud.state` is set to `PURGING`. `PrivateCloud` can - * be polled using standard `GET` method for the whole period of deletion and purging. It will not - * be returned only when it is completely purged. + * Retrieves a `NetworkPeering` resource by its resource name. The resource contains details of + * the network peering, such as peered networks, import and export custom route configurations, + * and peering state. NetworkPeering is a global resource and location can only be global. * *

Sample code: * @@ -1866,39 +8155,27 @@ public final OperationFuture deletePrivateCloud * // - 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()) { - * DeletePrivateCloudRequest request = - * DeletePrivateCloudRequest.newBuilder() - * .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) - * .setRequestId("requestId693933066") - * .setForce(true) - * .setDelayHours(475821395) + * GetNetworkPeeringRequest request = + * GetNetworkPeeringRequest.newBuilder() + * .setName( + * NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]").toString()) * .build(); - * OperationFuture future = - * vmwareEngineClient.deletePrivateCloudOperationCallable().futureCall(request); - * // Do something. - * PrivateCloud response = future.get(); + * NetworkPeering response = vmwareEngineClient.getNetworkPeering(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 OperationCallable - deletePrivateCloudOperationCallable() { - return stub.deletePrivateCloudOperationCallable(); + public final NetworkPeering getNetworkPeering(GetNetworkPeeringRequest request) { + return getNetworkPeeringCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Schedules a `PrivateCloud` resource for deletion. - * - *

A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED` - * and `expireTime` set to the time when deletion is final and can no longer be reversed. The - * delete operation is marked as done as soon as the `PrivateCloud` is successfully scheduled for - * deletion (this also applies when `delayHours` is set to zero), and the operation is not kept in - * pending state until `PrivateCloud` is purged. `PrivateCloud` can be restored using - * `UndeletePrivateCloud` method before the `expireTime` elapses. When `expireTime` is reached, - * deletion is final and all private cloud resources are irreversibly removed and billing stops. - * During the final removal process, `PrivateCloud.state` is set to `PURGING`. `PrivateCloud` can - * be polled using standard `GET` method for the whole period of deletion and purging. It will not - * be returned only when it is completely purged. + * Retrieves a `NetworkPeering` resource by its resource name. The resource contains details of + * the network peering, such as peered networks, import and export custom route configurations, + * and peering state. NetworkPeering is a global resource and location can only be global. * *

Sample code: * @@ -1909,29 +8186,26 @@ public final OperationFuture deletePrivateCloud * // - 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()) { - * DeletePrivateCloudRequest request = - * DeletePrivateCloudRequest.newBuilder() - * .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) - * .setRequestId("requestId693933066") - * .setForce(true) - * .setDelayHours(475821395) + * GetNetworkPeeringRequest request = + * GetNetworkPeeringRequest.newBuilder() + * .setName( + * NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]").toString()) * .build(); - * ApiFuture future = - * vmwareEngineClient.deletePrivateCloudCallable().futureCall(request); + * ApiFuture future = + * vmwareEngineClient.getNetworkPeeringCallable().futureCall(request); * // Do something. - * Operation response = future.get(); + * NetworkPeering response = future.get(); * } * } */ - public final UnaryCallable deletePrivateCloudCallable() { - return stub.deletePrivateCloudCallable(); + public final UnaryCallable getNetworkPeeringCallable() { + return stub.getNetworkPeeringCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Restores a private cloud that was previously scheduled for deletion by `DeletePrivateCloud`. A - * `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED` and - * `PrivateCloud.expireTime` set to the time when deletion can no longer be reversed. + * Lists `NetworkPeering` resources in a given project. NetworkPeering is a global resource and + * location can only be global. * *

Sample code: * @@ -1942,31 +8216,31 @@ public final UnaryCallable deletePrivateCl * // - 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()) { - * PrivateCloudName name = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); - * PrivateCloud response = vmwareEngineClient.undeletePrivateCloudAsync(name).get(); + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * for (NetworkPeering element : vmwareEngineClient.listNetworkPeerings(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. The resource name of the private cloud scheduled for deletion. Resource - * names are schemeless URIs that follow the conventions in + * @param parent Required. The resource name of the location (global) to query for network + * peerings. 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` + * `projects/my-project/locations/global` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture undeletePrivateCloudAsync( - PrivateCloudName name) { - UndeletePrivateCloudRequest request = - UndeletePrivateCloudRequest.newBuilder() - .setName(name == null ? null : name.toString()) + public final ListNetworkPeeringsPagedResponse listNetworkPeerings(LocationName parent) { + ListNetworkPeeringsRequest request = + ListNetworkPeeringsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) .build(); - return undeletePrivateCloudAsync(request); + return listNetworkPeerings(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Restores a private cloud that was previously scheduled for deletion by `DeletePrivateCloud`. A - * `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED` and - * `PrivateCloud.expireTime` set to the time when deletion can no longer be reversed. + * Lists `NetworkPeering` resources in a given project. NetworkPeering is a global resource and + * location can only be global. * *

Sample code: * @@ -1977,29 +8251,29 @@ public final OperationFuture undeletePrivateClo * // - 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 = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString(); - * PrivateCloud response = vmwareEngineClient.undeletePrivateCloudAsync(name).get(); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * for (NetworkPeering element : vmwareEngineClient.listNetworkPeerings(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. The resource name of the private cloud scheduled for deletion. Resource - * names are schemeless URIs that follow the conventions in + * @param parent Required. The resource name of the location (global) to query for network + * peerings. 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` + * `projects/my-project/locations/global` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture undeletePrivateCloudAsync( - String name) { - UndeletePrivateCloudRequest request = - UndeletePrivateCloudRequest.newBuilder().setName(name).build(); - return undeletePrivateCloudAsync(request); + public final ListNetworkPeeringsPagedResponse listNetworkPeerings(String parent) { + ListNetworkPeeringsRequest request = + ListNetworkPeeringsRequest.newBuilder().setParent(parent).build(); + return listNetworkPeerings(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Restores a private cloud that was previously scheduled for deletion by `DeletePrivateCloud`. A - * `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED` and - * `PrivateCloud.expireTime` set to the time when deletion can no longer be reversed. + * Lists `NetworkPeering` resources in a given project. NetworkPeering is a global resource and + * location can only be global. * *

Sample code: * @@ -2010,28 +8284,32 @@ public final OperationFuture undeletePrivateClo * // - 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()) { - * UndeletePrivateCloudRequest request = - * UndeletePrivateCloudRequest.newBuilder() - * .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) - * .setRequestId("requestId693933066") + * ListNetworkPeeringsRequest request = + * ListNetworkPeeringsRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); - * PrivateCloud response = vmwareEngineClient.undeletePrivateCloudAsync(request).get(); + * for (NetworkPeering element : vmwareEngineClient.listNetworkPeerings(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 OperationFuture undeletePrivateCloudAsync( - UndeletePrivateCloudRequest request) { - return undeletePrivateCloudOperationCallable().futureCall(request); + public final ListNetworkPeeringsPagedResponse listNetworkPeerings( + ListNetworkPeeringsRequest request) { + return listNetworkPeeringsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Restores a private cloud that was previously scheduled for deletion by `DeletePrivateCloud`. A - * `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED` and - * `PrivateCloud.expireTime` set to the time when deletion can no longer be reversed. + * Lists `NetworkPeering` resources in a given project. NetworkPeering is a global resource and + * location can only be global. * *

Sample code: * @@ -2042,28 +8320,32 @@ public final OperationFuture undeletePrivateClo * // - 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()) { - * UndeletePrivateCloudRequest request = - * UndeletePrivateCloudRequest.newBuilder() - * .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) - * .setRequestId("requestId693933066") + * ListNetworkPeeringsRequest request = + * ListNetworkPeeringsRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); - * OperationFuture future = - * vmwareEngineClient.undeletePrivateCloudOperationCallable().futureCall(request); + * ApiFuture future = + * vmwareEngineClient.listNetworkPeeringsPagedCallable().futureCall(request); * // Do something. - * PrivateCloud response = future.get(); + * for (NetworkPeering element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } */ - public final OperationCallable - undeletePrivateCloudOperationCallable() { - return stub.undeletePrivateCloudOperationCallable(); + public final UnaryCallable + listNetworkPeeringsPagedCallable() { + return stub.listNetworkPeeringsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Restores a private cloud that was previously scheduled for deletion by `DeletePrivateCloud`. A - * `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED` and - * `PrivateCloud.expireTime` set to the time when deletion can no longer be reversed. + * Lists `NetworkPeering` resources in a given project. NetworkPeering is a global resource and + * location can only be global. * *

Sample code: * @@ -2074,26 +8356,39 @@ public final OperationFuture undeletePrivateClo * // - 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()) { - * UndeletePrivateCloudRequest request = - * UndeletePrivateCloudRequest.newBuilder() - * .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) - * .setRequestId("requestId693933066") + * ListNetworkPeeringsRequest request = + * ListNetworkPeeringsRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); - * ApiFuture future = - * vmwareEngineClient.undeletePrivateCloudCallable().futureCall(request); - * // Do something. - * Operation response = future.get(); + * while (true) { + * ListNetworkPeeringsResponse response = + * vmwareEngineClient.listNetworkPeeringsCallable().call(request); + * for (NetworkPeering element : response.getNetworkPeeringsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } */ - public final UnaryCallable - undeletePrivateCloudCallable() { - return stub.undeletePrivateCloudCallable(); + public final UnaryCallable + listNetworkPeeringsCallable() { + return stub.listNetworkPeeringsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists `Cluster` resources in a given private cloud. + * Creates a new network peering between the peer network and VMware Engine network provided in a + * `NetworkPeering` resource. NetworkPeering is a global resource and location can only be global. * *

Sample code: * @@ -2104,30 +8399,51 @@ public final OperationFuture undeletePrivateClo * // - 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()) { - * PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); - * for (Cluster element : vmwareEngineClient.listClusters(parent).iterateAll()) { - * // doThingsWith(element); - * } + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * NetworkPeering networkPeering = NetworkPeering.newBuilder().build(); + * String networkPeeringId = "networkPeeringId1321772525"; + * NetworkPeering response = + * vmwareEngineClient + * .createNetworkPeeringAsync(parent, networkPeering, networkPeeringId) + * .get(); * } * } * - * @param parent Required. The resource name of the private cloud to query for clusters. Resource + * @param parent Required. The resource name of the location to create the new network peering in. + * This value is always `global`, because `NetworkPeering` is a global 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-a/privateClouds/my-cloud` + * `projects/my-project/locations/global` + * @param networkPeering Required. The initial description of the new network peering. + * @param networkPeeringId Required. The user-provided identifier of the new `NetworkPeering`. + * This identifier must be unique among `NetworkPeering` 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 ListClustersPagedResponse listClusters(PrivateCloudName parent) { - ListClustersRequest request = - ListClustersRequest.newBuilder() + public final OperationFuture createNetworkPeeringAsync( + LocationName parent, NetworkPeering networkPeering, String networkPeeringId) { + CreateNetworkPeeringRequest request = + CreateNetworkPeeringRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) + .setNetworkPeering(networkPeering) + .setNetworkPeeringId(networkPeeringId) .build(); - return listClusters(request); + return createNetworkPeeringAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists `Cluster` resources in a given private cloud. + * Creates a new network peering between the peer network and VMware Engine network provided in a + * `NetworkPeering` resource. NetworkPeering is a global resource and location can only be global. * *

Sample code: * @@ -2138,27 +8454,51 @@ public final ListClustersPagedResponse listClusters(PrivateCloudName parent) { * // - 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 = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString(); - * for (Cluster element : vmwareEngineClient.listClusters(parent).iterateAll()) { - * // doThingsWith(element); - * } + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * NetworkPeering networkPeering = NetworkPeering.newBuilder().build(); + * String networkPeeringId = "networkPeeringId1321772525"; + * NetworkPeering response = + * vmwareEngineClient + * .createNetworkPeeringAsync(parent, networkPeering, networkPeeringId) + * .get(); * } * } * - * @param parent Required. The resource name of the private cloud to query for clusters. Resource + * @param parent Required. The resource name of the location to create the new network peering in. + * This value is always `global`, because `NetworkPeering` is a global 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-a/privateClouds/my-cloud` + * `projects/my-project/locations/global` + * @param networkPeering Required. The initial description of the new network peering. + * @param networkPeeringId Required. The user-provided identifier of the new `NetworkPeering`. + * This identifier must be unique among `NetworkPeering` 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 ListClustersPagedResponse listClusters(String parent) { - ListClustersRequest request = ListClustersRequest.newBuilder().setParent(parent).build(); - return listClusters(request); + public final OperationFuture createNetworkPeeringAsync( + String parent, NetworkPeering networkPeering, String networkPeeringId) { + CreateNetworkPeeringRequest request = + CreateNetworkPeeringRequest.newBuilder() + .setParent(parent) + .setNetworkPeering(networkPeering) + .setNetworkPeeringId(networkPeeringId) + .build(); + return createNetworkPeeringAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists `Cluster` resources in a given private cloud. + * Creates a new network peering between the peer network and VMware Engine network provided in a + * `NetworkPeering` resource. NetworkPeering is a global resource and location can only be global. * *

Sample code: * @@ -2169,31 +8509,29 @@ public final ListClustersPagedResponse listClusters(String parent) { * // - 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()) { - * ListClustersRequest request = - * ListClustersRequest.newBuilder() - * .setParent( - * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") + * CreateNetworkPeeringRequest request = + * CreateNetworkPeeringRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setNetworkPeeringId("networkPeeringId1321772525") + * .setNetworkPeering(NetworkPeering.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); - * for (Cluster element : vmwareEngineClient.listClusters(request).iterateAll()) { - * // doThingsWith(element); - * } + * NetworkPeering response = vmwareEngineClient.createNetworkPeeringAsync(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 ListClustersPagedResponse listClusters(ListClustersRequest request) { - return listClustersPagedCallable().call(request); + public final OperationFuture createNetworkPeeringAsync( + CreateNetworkPeeringRequest request) { + return createNetworkPeeringOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists `Cluster` resources in a given private cloud. + * Creates a new network peering between the peer network and VMware Engine network provided in a + * `NetworkPeering` resource. NetworkPeering is a global resource and location can only be global. * *

Sample code: * @@ -2204,32 +8542,29 @@ public final ListClustersPagedResponse listClusters(ListClustersRequest request) * // - 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()) { - * ListClustersRequest request = - * ListClustersRequest.newBuilder() - * .setParent( - * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") + * CreateNetworkPeeringRequest request = + * CreateNetworkPeeringRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setNetworkPeeringId("networkPeeringId1321772525") + * .setNetworkPeering(NetworkPeering.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); - * ApiFuture future = - * vmwareEngineClient.listClustersPagedCallable().futureCall(request); + * OperationFuture future = + * vmwareEngineClient.createNetworkPeeringOperationCallable().futureCall(request); * // Do something. - * for (Cluster element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * NetworkPeering response = future.get(); * } * } */ - public final UnaryCallable - listClustersPagedCallable() { - return stub.listClustersPagedCallable(); + public final OperationCallable + createNetworkPeeringOperationCallable() { + return stub.createNetworkPeeringOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists `Cluster` resources in a given private cloud. + * Creates a new network peering between the peer network and VMware Engine network provided in a + * `NetworkPeering` resource. NetworkPeering is a global resource and location can only be global. * *

Sample code: * @@ -2240,37 +8575,30 @@ public final ListClustersPagedResponse listClusters(ListClustersRequest request) * // - 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()) { - * ListClustersRequest request = - * ListClustersRequest.newBuilder() - * .setParent( - * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") + * CreateNetworkPeeringRequest request = + * CreateNetworkPeeringRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setNetworkPeeringId("networkPeeringId1321772525") + * .setNetworkPeering(NetworkPeering.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); - * while (true) { - * ListClustersResponse response = vmwareEngineClient.listClustersCallable().call(request); - * for (Cluster element : response.getClustersList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * ApiFuture future = + * vmwareEngineClient.createNetworkPeeringCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); * } * } */ - public final UnaryCallable listClustersCallable() { - return stub.listClustersCallable(); + public final UnaryCallable + createNetworkPeeringCallable() { + return stub.createNetworkPeeringCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieves a `Cluster` resource by its resource name. + * Deletes a `NetworkPeering` resource. When a network peering is deleted for a VMware Engine + * network, the peer network becomes inaccessible to that VMware Engine network. NetworkPeering is + * a global resource and location can only be global. * *

Sample code: * @@ -2281,26 +8609,32 @@ public final UnaryCallable listCluste * // - 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()) { - * ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]"); - * Cluster response = vmwareEngineClient.getCluster(name); + * NetworkPeeringName name = + * NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]"); + * vmwareEngineClient.deleteNetworkPeeringAsync(name).get(); * } * } * - * @param name Required. The cluster resource name 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/clusters/my-cluster` + * @param name Required. The resource name of the network peering 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/global/networkPeerings/my-peering` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Cluster getCluster(ClusterName name) { - GetClusterRequest request = - GetClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getCluster(request); + public final OperationFuture deleteNetworkPeeringAsync( + NetworkPeeringName name) { + DeleteNetworkPeeringRequest request = + DeleteNetworkPeeringRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteNetworkPeeringAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieves a `Cluster` resource by its resource name. + * Deletes a `NetworkPeering` resource. When a network peering is deleted for a VMware Engine + * network, the peer network becomes inaccessible to that VMware Engine network. NetworkPeering is + * a global resource and location can only be global. * *

Sample code: * @@ -2312,25 +8646,28 @@ public final Cluster getCluster(ClusterName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { * String name = - * ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]").toString(); - * Cluster response = vmwareEngineClient.getCluster(name); + * NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]").toString(); + * vmwareEngineClient.deleteNetworkPeeringAsync(name).get(); * } * } * - * @param name Required. The cluster resource name 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/clusters/my-cluster` + * @param name Required. The resource name of the network peering 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/global/networkPeerings/my-peering` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Cluster getCluster(String name) { - GetClusterRequest request = GetClusterRequest.newBuilder().setName(name).build(); - return getCluster(request); + public final OperationFuture deleteNetworkPeeringAsync(String name) { + DeleteNetworkPeeringRequest request = + DeleteNetworkPeeringRequest.newBuilder().setName(name).build(); + return deleteNetworkPeeringAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieves a `Cluster` resource by its resource name. + * Deletes a `NetworkPeering` resource. When a network peering is deleted for a VMware Engine + * network, the peer network becomes inaccessible to that VMware Engine network. NetworkPeering is + * a global resource and location can only be global. * *

Sample code: * @@ -2341,26 +8678,29 @@ public final Cluster getCluster(String name) { * // - 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()) { - * GetClusterRequest request = - * GetClusterRequest.newBuilder() + * DeleteNetworkPeeringRequest request = + * DeleteNetworkPeeringRequest.newBuilder() * .setName( - * ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]") - * .toString()) + * NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]").toString()) + * .setRequestId("requestId693933066") * .build(); - * Cluster response = vmwareEngineClient.getCluster(request); + * vmwareEngineClient.deleteNetworkPeeringAsync(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 Cluster getCluster(GetClusterRequest request) { - return getClusterCallable().call(request); + public final OperationFuture deleteNetworkPeeringAsync( + DeleteNetworkPeeringRequest request) { + return deleteNetworkPeeringOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieves a `Cluster` resource by its resource name. + * Deletes a `NetworkPeering` resource. When a network peering is deleted for a VMware Engine + * network, the peer network becomes inaccessible to that VMware Engine network. NetworkPeering is + * a global resource and location can only be global. * *

Sample code: * @@ -2371,27 +8711,29 @@ public final Cluster getCluster(GetClusterRequest request) { * // - 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()) { - * GetClusterRequest request = - * GetClusterRequest.newBuilder() + * DeleteNetworkPeeringRequest request = + * DeleteNetworkPeeringRequest.newBuilder() * .setName( - * ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]") - * .toString()) + * NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]").toString()) + * .setRequestId("requestId693933066") * .build(); - * ApiFuture future = vmwareEngineClient.getClusterCallable().futureCall(request); + * OperationFuture future = + * vmwareEngineClient.deleteNetworkPeeringOperationCallable().futureCall(request); * // Do something. - * Cluster response = future.get(); + * future.get(); * } * } */ - public final UnaryCallable getClusterCallable() { - return stub.getClusterCallable(); + public final OperationCallable + deleteNetworkPeeringOperationCallable() { + return stub.deleteNetworkPeeringOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new cluster in a given private cloud. Creating a new cluster provides additional - * nodes for use in the parent private cloud and requires sufficient [node - * quota](https://cloud.google.com/vmware-engine/quotas). + * Deletes a `NetworkPeering` resource. When a network peering is deleted for a VMware Engine + * network, the peer network becomes inaccessible to that VMware Engine network. NetworkPeering is + * a global resource and location can only be global. * *

Sample code: * @@ -2402,47 +8744,29 @@ public final UnaryCallable getClusterCallable() { * // - 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()) { - * PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); - * Cluster cluster = Cluster.newBuilder().build(); - * String clusterId = "clusterId561939637"; - * Cluster response = vmwareEngineClient.createClusterAsync(parent, cluster, clusterId).get(); + * DeleteNetworkPeeringRequest request = + * DeleteNetworkPeeringRequest.newBuilder() + * .setName( + * NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]").toString()) + * .setRequestId("requestId693933066") + * .build(); + * ApiFuture future = + * vmwareEngineClient.deleteNetworkPeeringCallable().futureCall(request); + * // Do something. + * future.get(); * } * } - * - * @param parent Required. The resource name of the private cloud to create a new cluster in. - * 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` - * @param cluster Required. The initial description of the new cluster. - * @param clusterId Required. The user-provided identifier of the new `Cluster`. This identifier - * must be unique among clusters 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 OperationFuture createClusterAsync( - PrivateCloudName parent, Cluster cluster, String clusterId) { - CreateClusterRequest request = - CreateClusterRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setCluster(cluster) - .setClusterId(clusterId) - .build(); - return createClusterAsync(request); + public final UnaryCallable + deleteNetworkPeeringCallable() { + return stub.deleteNetworkPeeringCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new cluster in a given private cloud. Creating a new cluster provides additional - * nodes for use in the parent private cloud and requires sufficient [node - * quota](https://cloud.google.com/vmware-engine/quotas). + * Modifies a `NetworkPeering` resource. Only the `description` field can be updated. Only fields + * specified in `updateMask` are applied. NetworkPeering is a global resource and location can + * only be global. * *

Sample code: * @@ -2453,47 +8777,35 @@ public final OperationFuture createClusterAsync( * // - 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 = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString(); - * Cluster cluster = Cluster.newBuilder().build(); - * String clusterId = "clusterId561939637"; - * Cluster response = vmwareEngineClient.createClusterAsync(parent, cluster, clusterId).get(); + * NetworkPeering networkPeering = NetworkPeering.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * NetworkPeering response = + * vmwareEngineClient.updateNetworkPeeringAsync(networkPeering, updateMask).get(); * } * } * - * @param parent Required. The resource name of the private cloud to create a new cluster in. - * 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` - * @param cluster Required. The initial description of the new cluster. - * @param clusterId Required. The user-provided identifier of the new `Cluster`. This identifier - * must be unique among clusters 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) - *
- * + * @param networkPeering Required. Network peering description. + * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the + * `NetworkPeering` 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 createClusterAsync( - String parent, Cluster cluster, String clusterId) { - CreateClusterRequest request = - CreateClusterRequest.newBuilder() - .setParent(parent) - .setCluster(cluster) - .setClusterId(clusterId) + public final OperationFuture updateNetworkPeeringAsync( + NetworkPeering networkPeering, FieldMask updateMask) { + UpdateNetworkPeeringRequest request = + UpdateNetworkPeeringRequest.newBuilder() + .setNetworkPeering(networkPeering) + .setUpdateMask(updateMask) .build(); - return createClusterAsync(request); + return updateNetworkPeeringAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new cluster in a given private cloud. Creating a new cluster provides additional - * nodes for use in the parent private cloud and requires sufficient [node - * quota](https://cloud.google.com/vmware-engine/quotas). + * Modifies a `NetworkPeering` resource. Only the `description` field can be updated. Only fields + * specified in `updateMask` are applied. NetworkPeering is a global resource and location can + * only be global. * *

Sample code: * @@ -2504,32 +8816,29 @@ public final OperationFuture createClusterAsync( * // - 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()) { - * CreateClusterRequest request = - * CreateClusterRequest.newBuilder() - * .setParent( - * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) - * .setClusterId("clusterId561939637") - * .setCluster(Cluster.newBuilder().build()) + * UpdateNetworkPeeringRequest request = + * UpdateNetworkPeeringRequest.newBuilder() + * .setNetworkPeering(NetworkPeering.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .setRequestId("requestId693933066") - * .setValidateOnly(true) * .build(); - * Cluster response = vmwareEngineClient.createClusterAsync(request).get(); + * NetworkPeering response = vmwareEngineClient.updateNetworkPeeringAsync(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 createClusterAsync( - CreateClusterRequest request) { - return createClusterOperationCallable().futureCall(request); + public final OperationFuture updateNetworkPeeringAsync( + UpdateNetworkPeeringRequest request) { + return updateNetworkPeeringOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new cluster in a given private cloud. Creating a new cluster provides additional - * nodes for use in the parent private cloud and requires sufficient [node - * quota](https://cloud.google.com/vmware-engine/quotas). + * Modifies a `NetworkPeering` resource. Only the `description` field can be updated. Only fields + * specified in `updateMask` are applied. NetworkPeering is a global resource and location can + * only be global. * *

Sample code: * @@ -2540,32 +8849,29 @@ public final OperationFuture createClusterAsync( * // - 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()) { - * CreateClusterRequest request = - * CreateClusterRequest.newBuilder() - * .setParent( - * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) - * .setClusterId("clusterId561939637") - * .setCluster(Cluster.newBuilder().build()) + * UpdateNetworkPeeringRequest request = + * UpdateNetworkPeeringRequest.newBuilder() + * .setNetworkPeering(NetworkPeering.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .setRequestId("requestId693933066") - * .setValidateOnly(true) * .build(); - * OperationFuture future = - * vmwareEngineClient.createClusterOperationCallable().futureCall(request); + * OperationFuture future = + * vmwareEngineClient.updateNetworkPeeringOperationCallable().futureCall(request); * // Do something. - * Cluster response = future.get(); + * NetworkPeering response = future.get(); * } * } */ - public final OperationCallable - createClusterOperationCallable() { - return stub.createClusterOperationCallable(); + public final OperationCallable + updateNetworkPeeringOperationCallable() { + return stub.updateNetworkPeeringOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new cluster in a given private cloud. Creating a new cluster provides additional - * nodes for use in the parent private cloud and requires sufficient [node - * quota](https://cloud.google.com/vmware-engine/quotas). + * Modifies a `NetworkPeering` resource. Only the `description` field can be updated. Only fields + * specified in `updateMask` are applied. NetworkPeering is a global resource and location can + * only be global. * *

Sample code: * @@ -2576,33 +8882,28 @@ public final OperationFuture createClusterAsync( * // - 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()) { - * CreateClusterRequest request = - * CreateClusterRequest.newBuilder() - * .setParent( - * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) - * .setClusterId("clusterId561939637") - * .setCluster(Cluster.newBuilder().build()) + * UpdateNetworkPeeringRequest request = + * UpdateNetworkPeeringRequest.newBuilder() + * .setNetworkPeering(NetworkPeering.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .setRequestId("requestId693933066") - * .setValidateOnly(true) * .build(); - * ApiFuture future = vmwareEngineClient.createClusterCallable().futureCall(request); + * ApiFuture future = + * vmwareEngineClient.updateNetworkPeeringCallable().futureCall(request); * // Do something. * Operation response = future.get(); * } * } */ - public final UnaryCallable createClusterCallable() { - return stub.createClusterCallable(); + public final UnaryCallable + updateNetworkPeeringCallable() { + return stub.updateNetworkPeeringCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Modifies a `Cluster` resource. Only the following fields can be updated: - * `node_type_configs.*.node_count`. Only fields specified in `updateMask` are applied. - * - *

During operation processing, the resource is temporarily in the `ACTIVE` state before the - * operation fully completes. For that period of time, you can't update the resource. Use the - * operation status to determine when the processing fully completes. + * Lists the network peering routes exchanged over a peering connection. NetworkPeering is a + * global resource and location can only be global. * *

Sample code: * @@ -2613,34 +8914,66 @@ public final UnaryCallable createClusterCallabl * // - 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()) { - * Cluster cluster = Cluster.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * Cluster response = vmwareEngineClient.updateClusterAsync(cluster, updateMask).get(); + * NetworkPeeringName parent = + * NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]"); + * for (PeeringRoute element : vmwareEngineClient.listPeeringRoutes(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param cluster Required. The description of the cluster. - * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the - * `Cluster` resource by the update. The fields specified in the `updateMask` 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. + * @param parent Required. The resource name of the network peering 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/global/networkPeerings/my-peering` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPeeringRoutesPagedResponse listPeeringRoutes(NetworkPeeringName parent) { + ListPeeringRoutesRequest request = + ListPeeringRoutesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listPeeringRoutes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the network peering routes exchanged over a peering connection. NetworkPeering is a + * global resource and location can only be global. + * + *

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 =
+   *       NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]").toString();
+   *   for (PeeringRoute element : vmwareEngineClient.listPeeringRoutes(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the network peering 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/global/networkPeerings/my-peering` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture updateClusterAsync( - Cluster cluster, FieldMask updateMask) { - UpdateClusterRequest request = - UpdateClusterRequest.newBuilder().setCluster(cluster).setUpdateMask(updateMask).build(); - return updateClusterAsync(request); + public final ListPeeringRoutesPagedResponse listPeeringRoutes(String parent) { + ListPeeringRoutesRequest request = + ListPeeringRoutesRequest.newBuilder().setParent(parent).build(); + return listPeeringRoutes(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Modifies a `Cluster` resource. Only the following fields can be updated: - * `node_type_configs.*.node_count`. Only fields specified in `updateMask` are applied. - * - *

During operation processing, the resource is temporarily in the `ACTIVE` state before the - * operation fully completes. For that period of time, you can't update the resource. Use the - * operation status to determine when the processing fully completes. + * Lists the network peering routes exchanged over a peering connection. NetworkPeering is a + * global resource and location can only be global. * *

Sample code: * @@ -2651,33 +8984,31 @@ public final OperationFuture updateClusterAsync( * // - 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()) { - * UpdateClusterRequest request = - * UpdateClusterRequest.newBuilder() - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setCluster(Cluster.newBuilder().build()) - * .setRequestId("requestId693933066") - * .setValidateOnly(true) + * ListPeeringRoutesRequest request = + * ListPeeringRoutesRequest.newBuilder() + * .setParent( + * NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") * .build(); - * Cluster response = vmwareEngineClient.updateClusterAsync(request).get(); + * for (PeeringRoute element : vmwareEngineClient.listPeeringRoutes(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 OperationFuture updateClusterAsync( - UpdateClusterRequest request) { - return updateClusterOperationCallable().futureCall(request); + public final ListPeeringRoutesPagedResponse listPeeringRoutes(ListPeeringRoutesRequest request) { + return listPeeringRoutesPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Modifies a `Cluster` resource. Only the following fields can be updated: - * `node_type_configs.*.node_count`. Only fields specified in `updateMask` are applied. - * - *

During operation processing, the resource is temporarily in the `ACTIVE` state before the - * operation fully completes. For that period of time, you can't update the resource. Use the - * operation status to determine when the processing fully completes. + * Lists the network peering routes exchanged over a peering connection. NetworkPeering is a + * global resource and location can only be global. * *

Sample code: * @@ -2688,33 +9019,32 @@ public final OperationFuture updateClusterAsync( * // - 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()) { - * UpdateClusterRequest request = - * UpdateClusterRequest.newBuilder() - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setCluster(Cluster.newBuilder().build()) - * .setRequestId("requestId693933066") - * .setValidateOnly(true) + * ListPeeringRoutesRequest request = + * ListPeeringRoutesRequest.newBuilder() + * .setParent( + * NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") * .build(); - * OperationFuture future = - * vmwareEngineClient.updateClusterOperationCallable().futureCall(request); + * ApiFuture future = + * vmwareEngineClient.listPeeringRoutesPagedCallable().futureCall(request); * // Do something. - * Cluster response = future.get(); + * for (PeeringRoute element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } */ - public final OperationCallable - updateClusterOperationCallable() { - return stub.updateClusterOperationCallable(); + public final UnaryCallable + listPeeringRoutesPagedCallable() { + return stub.listPeeringRoutesPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Modifies a `Cluster` resource. Only the following fields can be updated: - * `node_type_configs.*.node_count`. Only fields specified in `updateMask` are applied. - * - *

During operation processing, the resource is temporarily in the `ACTIVE` state before the - * operation fully completes. For that period of time, you can't update the resource. Use the - * operation status to determine when the processing fully completes. + * Lists the network peering routes exchanged over a peering connection. NetworkPeering is a + * global resource and location can only be global. * *

Sample code: * @@ -2725,28 +9055,38 @@ public final OperationFuture updateClusterAsync( * // - 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()) { - * UpdateClusterRequest request = - * UpdateClusterRequest.newBuilder() - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setCluster(Cluster.newBuilder().build()) - * .setRequestId("requestId693933066") - * .setValidateOnly(true) + * ListPeeringRoutesRequest request = + * ListPeeringRoutesRequest.newBuilder() + * .setParent( + * NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = vmwareEngineClient.updateClusterCallable().futureCall(request); - * // Do something. - * Operation response = future.get(); + * while (true) { + * ListPeeringRoutesResponse response = + * vmwareEngineClient.listPeeringRoutesCallable().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 updateClusterCallable() { - return stub.updateClusterCallable(); + public final UnaryCallable + listPeeringRoutesCallable() { + return stub.listPeeringRoutesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a `Cluster` resource. To avoid unintended data loss, migrate or gracefully shut down - * any workloads running on the cluster before deletion. You cannot delete the management cluster - * of a private cloud using this method. + * Creates a new HCX activation key in a given private cloud. * *

Sample code: * @@ -2757,28 +9097,50 @@ public final UnaryCallable updateClusterCallabl * // - 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()) { - * ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]"); - * vmwareEngineClient.deleteClusterAsync(name).get(); + * PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + * HcxActivationKey hcxActivationKey = HcxActivationKey.newBuilder().build(); + * String hcxActivationKeyId = "hcxActivationKeyId-645871673"; + * HcxActivationKey response = + * vmwareEngineClient + * .createHcxActivationKeyAsync(parent, hcxActivationKey, hcxActivationKeyId) + * .get(); * } * } * - * @param name Required. The resource name of the cluster to delete. 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/clusters/my-cluster` + * @param parent Required. The resource name of the private cloud to create the key for. 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/privateClouds/my-cloud` + * @param hcxActivationKey Required. The initial description of a new HCX activation key. When + * creating a new key, this field must be an empty object. + * @param hcxActivationKeyId Required. The user-provided identifier of the `HcxActivationKey` to + * be created. This identifier must be unique among `HcxActivationKey` 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 OperationFuture deleteClusterAsync(ClusterName name) { - DeleteClusterRequest request = - DeleteClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return deleteClusterAsync(request); + public final OperationFuture createHcxActivationKeyAsync( + PrivateCloudName parent, HcxActivationKey hcxActivationKey, String hcxActivationKeyId) { + CreateHcxActivationKeyRequest request = + CreateHcxActivationKeyRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setHcxActivationKey(hcxActivationKey) + .setHcxActivationKeyId(hcxActivationKeyId) + .build(); + return createHcxActivationKeyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a `Cluster` resource. To avoid unintended data loss, migrate or gracefully shut down - * any workloads running on the cluster before deletion. You cannot delete the management cluster - * of a private cloud using this method. + * Creates a new HCX activation key in a given private cloud. * *

Sample code: * @@ -2789,28 +9151,50 @@ public final OperationFuture deleteClusterAsync(Cluste * // - 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 = - * ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]").toString(); - * vmwareEngineClient.deleteClusterAsync(name).get(); + * String parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString(); + * HcxActivationKey hcxActivationKey = HcxActivationKey.newBuilder().build(); + * String hcxActivationKeyId = "hcxActivationKeyId-645871673"; + * HcxActivationKey response = + * vmwareEngineClient + * .createHcxActivationKeyAsync(parent, hcxActivationKey, hcxActivationKeyId) + * .get(); * } * } * - * @param name Required. The resource name of the cluster to delete. 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/clusters/my-cluster` + * @param parent Required. The resource name of the private cloud to create the key for. 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/privateClouds/my-cloud` + * @param hcxActivationKey Required. The initial description of a new HCX activation key. When + * creating a new key, this field must be an empty object. + * @param hcxActivationKeyId Required. The user-provided identifier of the `HcxActivationKey` to + * be created. This identifier must be unique among `HcxActivationKey` 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 OperationFuture deleteClusterAsync(String name) { - DeleteClusterRequest request = DeleteClusterRequest.newBuilder().setName(name).build(); - return deleteClusterAsync(request); + public final OperationFuture createHcxActivationKeyAsync( + String parent, HcxActivationKey hcxActivationKey, String hcxActivationKeyId) { + CreateHcxActivationKeyRequest request = + CreateHcxActivationKeyRequest.newBuilder() + .setParent(parent) + .setHcxActivationKey(hcxActivationKey) + .setHcxActivationKeyId(hcxActivationKeyId) + .build(); + return createHcxActivationKeyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a `Cluster` resource. To avoid unintended data loss, migrate or gracefully shut down - * any workloads running on the cluster before deletion. You cannot delete the management cluster - * of a private cloud using this method. + * Creates a new HCX activation key in a given private cloud. * *

Sample code: * @@ -2821,30 +9205,29 @@ public final OperationFuture deleteClusterAsync(String * // - 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()) { - * DeleteClusterRequest request = - * DeleteClusterRequest.newBuilder() - * .setName( - * ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]") - * .toString()) + * CreateHcxActivationKeyRequest request = + * CreateHcxActivationKeyRequest.newBuilder() + * .setParent( + * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + * .setHcxActivationKey(HcxActivationKey.newBuilder().build()) + * .setHcxActivationKeyId("hcxActivationKeyId-645871673") * .setRequestId("requestId693933066") * .build(); - * vmwareEngineClient.deleteClusterAsync(request).get(); + * HcxActivationKey response = vmwareEngineClient.createHcxActivationKeyAsync(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 deleteClusterAsync( - DeleteClusterRequest request) { - return deleteClusterOperationCallable().futureCall(request); + public final OperationFuture createHcxActivationKeyAsync( + CreateHcxActivationKeyRequest request) { + return createHcxActivationKeyOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a `Cluster` resource. To avoid unintended data loss, migrate or gracefully shut down - * any workloads running on the cluster before deletion. You cannot delete the management cluster - * of a private cloud using this method. + * Creates a new HCX activation key in a given private cloud. * *

Sample code: * @@ -2855,30 +9238,29 @@ public final OperationFuture deleteClusterAsync( * // - 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()) { - * DeleteClusterRequest request = - * DeleteClusterRequest.newBuilder() - * .setName( - * ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]") - * .toString()) + * CreateHcxActivationKeyRequest request = + * CreateHcxActivationKeyRequest.newBuilder() + * .setParent( + * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + * .setHcxActivationKey(HcxActivationKey.newBuilder().build()) + * .setHcxActivationKeyId("hcxActivationKeyId-645871673") * .setRequestId("requestId693933066") * .build(); - * OperationFuture future = - * vmwareEngineClient.deleteClusterOperationCallable().futureCall(request); + * OperationFuture future = + * vmwareEngineClient.createHcxActivationKeyOperationCallable().futureCall(request); * // Do something. - * future.get(); + * HcxActivationKey response = future.get(); * } * } */ - public final OperationCallable - deleteClusterOperationCallable() { - return stub.deleteClusterOperationCallable(); + public final OperationCallable + createHcxActivationKeyOperationCallable() { + return stub.createHcxActivationKeyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a `Cluster` resource. To avoid unintended data loss, migrate or gracefully shut down - * any workloads running on the cluster before deletion. You cannot delete the management cluster - * of a private cloud using this method. + * Creates a new HCX activation key in a given private cloud. * *

Sample code: * @@ -2889,26 +9271,29 @@ public final OperationFuture deleteClusterAsync( * // - 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()) { - * DeleteClusterRequest request = - * DeleteClusterRequest.newBuilder() - * .setName( - * ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]") - * .toString()) + * CreateHcxActivationKeyRequest request = + * CreateHcxActivationKeyRequest.newBuilder() + * .setParent( + * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + * .setHcxActivationKey(HcxActivationKey.newBuilder().build()) + * .setHcxActivationKeyId("hcxActivationKeyId-645871673") * .setRequestId("requestId693933066") * .build(); - * ApiFuture future = vmwareEngineClient.deleteClusterCallable().futureCall(request); + * ApiFuture future = + * vmwareEngineClient.createHcxActivationKeyCallable().futureCall(request); * // Do something. - * future.get(); + * Operation response = future.get(); * } * } */ - public final UnaryCallable deleteClusterCallable() { - return stub.deleteClusterCallable(); + public final UnaryCallable + createHcxActivationKeyCallable() { + return stub.createHcxActivationKeyCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists subnets in a given private cloud. + * Lists `HcxActivationKey` resources in a given private cloud. * *

Sample code: * @@ -2920,29 +9305,30 @@ public final UnaryCallable deleteClusterCallabl * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { * PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); - * for (Subnet element : vmwareEngineClient.listSubnets(parent).iterateAll()) { + * for (HcxActivationKey element : + * vmwareEngineClient.listHcxActivationKeys(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The resource name of the private cloud to be queried for subnets. - * Resource names are schemeless URIs that follow the conventions in + * @param parent Required. The resource name of the private cloud to be queried for HCX activation + * keys. 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` + * `projects/my-project/locations/us-central1/privateClouds/my-cloud` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSubnetsPagedResponse listSubnets(PrivateCloudName parent) { - ListSubnetsRequest request = - ListSubnetsRequest.newBuilder() + public final ListHcxActivationKeysPagedResponse listHcxActivationKeys(PrivateCloudName parent) { + ListHcxActivationKeysRequest request = + ListHcxActivationKeysRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); - return listSubnets(request); + return listHcxActivationKeys(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists subnets in a given private cloud. + * Lists `HcxActivationKey` resources in a given private cloud. * *

Sample code: * @@ -2954,26 +9340,28 @@ public final ListSubnetsPagedResponse listSubnets(PrivateCloudName parent) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { * String parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString(); - * for (Subnet element : vmwareEngineClient.listSubnets(parent).iterateAll()) { + * for (HcxActivationKey element : + * vmwareEngineClient.listHcxActivationKeys(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The resource name of the private cloud to be queried for subnets. - * Resource names are schemeless URIs that follow the conventions in + * @param parent Required. The resource name of the private cloud to be queried for HCX activation + * keys. 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` + * `projects/my-project/locations/us-central1/privateClouds/my-cloud` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSubnetsPagedResponse listSubnets(String parent) { - ListSubnetsRequest request = ListSubnetsRequest.newBuilder().setParent(parent).build(); - return listSubnets(request); + public final ListHcxActivationKeysPagedResponse listHcxActivationKeys(String parent) { + ListHcxActivationKeysRequest request = + ListHcxActivationKeysRequest.newBuilder().setParent(parent).build(); + return listHcxActivationKeys(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists subnets in a given private cloud. + * Lists `HcxActivationKey` resources in a given private cloud. * *

Sample code: * @@ -2984,14 +9372,15 @@ public final ListSubnetsPagedResponse listSubnets(String parent) { * // - 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()) { - * ListSubnetsRequest request = - * ListSubnetsRequest.newBuilder() + * ListHcxActivationKeysRequest request = + * ListHcxActivationKeysRequest.newBuilder() * .setParent( * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * for (Subnet element : vmwareEngineClient.listSubnets(request).iterateAll()) { + * for (HcxActivationKey element : + * vmwareEngineClient.listHcxActivationKeys(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -3000,13 +9389,14 @@ public final ListSubnetsPagedResponse listSubnets(String parent) { * @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 ListSubnetsPagedResponse listSubnets(ListSubnetsRequest request) { - return listSubnetsPagedCallable().call(request); + public final ListHcxActivationKeysPagedResponse listHcxActivationKeys( + ListHcxActivationKeysRequest request) { + return listHcxActivationKeysPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists subnets in a given private cloud. + * Lists `HcxActivationKey` resources in a given private cloud. * *

Sample code: * @@ -3017,29 +9407,30 @@ public final ListSubnetsPagedResponse listSubnets(ListSubnetsRequest request) { * // - 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()) { - * ListSubnetsRequest request = - * ListSubnetsRequest.newBuilder() + * ListHcxActivationKeysRequest request = + * ListHcxActivationKeysRequest.newBuilder() * .setParent( * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = vmwareEngineClient.listSubnetsPagedCallable().futureCall(request); + * ApiFuture future = + * vmwareEngineClient.listHcxActivationKeysPagedCallable().futureCall(request); * // Do something. - * for (Subnet element : future.get().iterateAll()) { + * for (HcxActivationKey element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } */ - public final UnaryCallable - listSubnetsPagedCallable() { - return stub.listSubnetsPagedCallable(); + public final UnaryCallable + listHcxActivationKeysPagedCallable() { + return stub.listHcxActivationKeysPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists subnets in a given private cloud. + * Lists `HcxActivationKey` resources in a given private cloud. * *

Sample code: * @@ -3050,16 +9441,17 @@ public final ListSubnetsPagedResponse listSubnets(ListSubnetsRequest request) { * // - 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()) { - * ListSubnetsRequest request = - * ListSubnetsRequest.newBuilder() + * ListHcxActivationKeysRequest request = + * ListHcxActivationKeysRequest.newBuilder() * .setParent( * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); * while (true) { - * ListSubnetsResponse response = vmwareEngineClient.listSubnetsCallable().call(request); - * for (Subnet element : response.getSubnetsList()) { + * ListHcxActivationKeysResponse response = + * vmwareEngineClient.listHcxActivationKeysCallable().call(request); + * for (HcxActivationKey element : response.getHcxActivationKeysList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -3072,13 +9464,14 @@ public final ListSubnetsPagedResponse listSubnets(ListSubnetsRequest request) { * } * } */ - public final UnaryCallable listSubnetsCallable() { - return stub.listSubnetsCallable(); + public final UnaryCallable + listHcxActivationKeysCallable() { + return stub.listHcxActivationKeysCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single subnet. + * Retrieves a `HcxActivationKey` resource by its resource name. * *

Sample code: * @@ -3089,26 +9482,30 @@ public final UnaryCallable listSubnetsC * // - 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); + * HcxActivationKeyName name = + * HcxActivationKeyName.of( + * "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]"); + * HcxActivationKey response = vmwareEngineClient.getHcxActivationKey(name); * } * } * - * @param name Required. The resource name of the subnet to retrieve. Resource names are - * schemeless URIs that follow the conventions in + * @param name Required. The resource name of the HCX activation key 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` + * `projects/my-project/locations/us-central1/privateClouds/my-cloud/hcxActivationKeys/my-key` * @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); + public final HcxActivationKey getHcxActivationKey(HcxActivationKeyName name) { + GetHcxActivationKeyRequest request = + GetHcxActivationKeyRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getHcxActivationKey(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single subnet. + * Retrieves a `HcxActivationKey` resource by its resource name. * *

Sample code: * @@ -3120,25 +9517,28 @@ public final Subnet getSubnet(SubnetName name) { * // 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); + * HcxActivationKeyName.of( + * "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]") + * .toString(); + * HcxActivationKey response = vmwareEngineClient.getHcxActivationKey(name); * } * } * - * @param name Required. The resource name of the subnet to retrieve. Resource names are - * schemeless URIs that follow the conventions in + * @param name Required. The resource name of the HCX activation key 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` + * `projects/my-project/locations/us-central1/privateClouds/my-cloud/hcxActivationKeys/my-key` * @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); + public final HcxActivationKey getHcxActivationKey(String name) { + GetHcxActivationKeyRequest request = + GetHcxActivationKeyRequest.newBuilder().setName(name).build(); + return getHcxActivationKey(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single subnet. + * Retrieves a `HcxActivationKey` resource by its resource name. * *

Sample code: * @@ -3149,26 +9549,27 @@ public final Subnet getSubnet(String name) { * // - 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() + * GetHcxActivationKeyRequest request = + * GetHcxActivationKeyRequest.newBuilder() * .setName( - * SubnetName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[SUBNET]") + * HcxActivationKeyName.of( + * "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]") * .toString()) * .build(); - * Subnet response = vmwareEngineClient.getSubnet(request); + * HcxActivationKey response = vmwareEngineClient.getHcxActivationKey(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); + public final HcxActivationKey getHcxActivationKey(GetHcxActivationKeyRequest request) { + return getHcxActivationKeyCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single subnet. + * Retrieves a `HcxActivationKey` resource by its resource name. * *

Sample code: * @@ -3179,29 +9580,28 @@ public final Subnet getSubnet(GetSubnetRequest request) { * // - 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() + * GetHcxActivationKeyRequest request = + * GetHcxActivationKeyRequest.newBuilder() * .setName( - * SubnetName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[SUBNET]") + * HcxActivationKeyName.of( + * "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]") * .toString()) * .build(); - * ApiFuture future = vmwareEngineClient.getSubnetCallable().futureCall(request); + * ApiFuture future = + * vmwareEngineClient.getHcxActivationKeyCallable().futureCall(request); * // Do something. - * Subnet response = future.get(); + * HcxActivationKey response = future.get(); * } * } */ - public final UnaryCallable getSubnetCallable() { - return stub.getSubnetCallable(); + public final UnaryCallable + getHcxActivationKeyCallable() { + return stub.getHcxActivationKeyCallable(); } // 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. + * Retrieves a `NetworkPolicy` resource by its resource name. * *

Sample code: * @@ -3212,33 +9612,26 @@ public final UnaryCallable getSubnetCallable() { * // - 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(); + * NetworkPolicyName name = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); + * NetworkPolicy response = vmwareEngineClient.getNetworkPolicy(name); * } * } * - * @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. + * @param name Required. The resource name of the network policy 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/networkPolicies/my-network-policy` * @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); + public final NetworkPolicy getNetworkPolicy(NetworkPolicyName name) { + GetNetworkPolicyRequest request = + GetNetworkPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getNetworkPolicy(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. + * Retrieves a `NetworkPolicy` resource by its resource name. * *

Sample code: * @@ -3249,30 +9642,25 @@ public final OperationFuture updateSubnetAsync( * // - 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(); + * String name = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString(); + * NetworkPolicy response = vmwareEngineClient.getNetworkPolicy(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The resource name of the network policy 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/networkPolicies/my-network-policy` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture updateSubnetAsync( - UpdateSubnetRequest request) { - return updateSubnetOperationCallable().futureCall(request); + public final NetworkPolicy getNetworkPolicy(String name) { + GetNetworkPolicyRequest request = GetNetworkPolicyRequest.newBuilder().setName(name).build(); + return getNetworkPolicy(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. + * Retrieves a `NetworkPolicy` resource by its resource name. * *

Sample code: * @@ -3283,30 +9671,25 @@ public final OperationFuture updateSubnetAsync( * // - 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()) + * GetNetworkPolicyRequest request = + * GetNetworkPolicyRequest.newBuilder() + * .setName( + * NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) * .build(); - * OperationFuture future = - * vmwareEngineClient.updateSubnetOperationCallable().futureCall(request); - * // Do something. - * Subnet response = future.get(); + * NetworkPolicy response = vmwareEngineClient.getNetworkPolicy(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 OperationCallable - updateSubnetOperationCallable() { - return stub.updateSubnetOperationCallable(); + public final NetworkPolicy getNetworkPolicy(GetNetworkPolicyRequest request) { + return getNetworkPolicyCallable().call(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. + * Retrieves a `NetworkPolicy` resource by its resource name. * *

Sample code: * @@ -3317,24 +9700,25 @@ public final OperationFuture updateSubnetAsync( * // - 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()) + * GetNetworkPolicyRequest request = + * GetNetworkPolicyRequest.newBuilder() + * .setName( + * NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) * .build(); - * ApiFuture future = vmwareEngineClient.updateSubnetCallable().futureCall(request); + * ApiFuture future = + * vmwareEngineClient.getNetworkPolicyCallable().futureCall(request); * // Do something. - * Operation response = future.get(); + * NetworkPolicy response = future.get(); * } * } */ - public final UnaryCallable updateSubnetCallable() { - return stub.updateSubnetCallable(); + public final UnaryCallable getNetworkPolicyCallable() { + return stub.getNetworkPolicyCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists node types + * Lists `NetworkPolicy` resources in a specified project and location. * *

Sample code: * @@ -3346,29 +9730,29 @@ public final UnaryCallable updateSubnetCallable( * // 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 (NodeType element : vmwareEngineClient.listNodeTypes(parent).iterateAll()) { + * for (NetworkPolicy element : vmwareEngineClient.listNetworkPolicies(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The resource name of the location to be queried for node types. - * Resource names are schemeless URIs that follow the conventions in + * @param parent Required. The resource name of the location (region) to query for network + * policies. 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` + * `projects/my-project/locations/us-central1` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNodeTypesPagedResponse listNodeTypes(LocationName parent) { - ListNodeTypesRequest request = - ListNodeTypesRequest.newBuilder() + public final ListNetworkPoliciesPagedResponse listNetworkPolicies(LocationName parent) { + ListNetworkPoliciesRequest request = + ListNetworkPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); - return listNodeTypes(request); + return listNetworkPolicies(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists node types + * Lists `NetworkPolicy` resources in a specified project and location. * *

Sample code: * @@ -3380,26 +9764,27 @@ public final ListNodeTypesPagedResponse listNodeTypes(LocationName parent) { * // 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 (NodeType element : vmwareEngineClient.listNodeTypes(parent).iterateAll()) { + * for (NetworkPolicy element : vmwareEngineClient.listNetworkPolicies(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The resource name of the location to be queried for node types. - * Resource names are schemeless URIs that follow the conventions in + * @param parent Required. The resource name of the location (region) to query for network + * policies. 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` + * `projects/my-project/locations/us-central1` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNodeTypesPagedResponse listNodeTypes(String parent) { - ListNodeTypesRequest request = ListNodeTypesRequest.newBuilder().setParent(parent).build(); - return listNodeTypes(request); + public final ListNetworkPoliciesPagedResponse listNetworkPolicies(String parent) { + ListNetworkPoliciesRequest request = + ListNetworkPoliciesRequest.newBuilder().setParent(parent).build(); + return listNetworkPolicies(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists node types + * Lists `NetworkPolicy` resources in a specified project and location. * *

Sample code: * @@ -3410,14 +9795,15 @@ public final ListNodeTypesPagedResponse listNodeTypes(String parent) { * // - 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()) { - * ListNodeTypesRequest request = - * ListNodeTypesRequest.newBuilder() + * ListNetworkPoliciesRequest request = + * ListNetworkPoliciesRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); - * for (NodeType element : vmwareEngineClient.listNodeTypes(request).iterateAll()) { + * for (NetworkPolicy element : vmwareEngineClient.listNetworkPolicies(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -3426,13 +9812,14 @@ public final ListNodeTypesPagedResponse listNodeTypes(String parent) { * @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 ListNodeTypesPagedResponse listNodeTypes(ListNodeTypesRequest request) { - return listNodeTypesPagedCallable().call(request); + public final ListNetworkPoliciesPagedResponse listNetworkPolicies( + ListNetworkPoliciesRequest request) { + return listNetworkPoliciesPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists node types + * Lists `NetworkPolicy` resources in a specified project and location. * *

Sample code: * @@ -3443,30 +9830,31 @@ public final ListNodeTypesPagedResponse listNodeTypes(ListNodeTypesRequest 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()) { - * ListNodeTypesRequest request = - * ListNodeTypesRequest.newBuilder() + * ListNetworkPoliciesRequest request = + * ListNetworkPoliciesRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); - * ApiFuture future = - * vmwareEngineClient.listNodeTypesPagedCallable().futureCall(request); + * ApiFuture future = + * vmwareEngineClient.listNetworkPoliciesPagedCallable().futureCall(request); * // Do something. - * for (NodeType element : future.get().iterateAll()) { + * for (NetworkPolicy element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } */ - public final UnaryCallable - listNodeTypesPagedCallable() { - return stub.listNodeTypesPagedCallable(); + public final UnaryCallable + listNetworkPoliciesPagedCallable() { + return stub.listNetworkPoliciesPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists node types + * Lists `NetworkPolicy` resources in a specified project and location. * *

Sample code: * @@ -3477,16 +9865,18 @@ public final ListNodeTypesPagedResponse listNodeTypes(ListNodeTypesRequest 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()) { - * ListNodeTypesRequest request = - * ListNodeTypesRequest.newBuilder() + * ListNetworkPoliciesRequest request = + * ListNetworkPoliciesRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); * while (true) { - * ListNodeTypesResponse response = vmwareEngineClient.listNodeTypesCallable().call(request); - * for (NodeType element : response.getNodeTypesList()) { + * ListNetworkPoliciesResponse response = + * vmwareEngineClient.listNetworkPoliciesCallable().call(request); + * for (NetworkPolicy element : response.getNetworkPoliciesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -3499,43 +9889,16 @@ public final ListNodeTypesPagedResponse listNodeTypes(ListNodeTypesRequest reque * } * } */ - public final UnaryCallable listNodeTypesCallable() { - return stub.listNodeTypesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single `NodeType`. - * - *

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()) {
-   *   NodeTypeName name = NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]");
-   *   NodeType response = vmwareEngineClient.getNodeType(name);
-   * }
-   * }
- * - * @param name Required. The resource name of the node type to retrieve. Resource names are - * schemeless URIs that follow the conventions in - * https://cloud.google.com/apis/design/resource_names. For example: - * `projects/my-proj/locations/us-central1-a/nodeTypes/standard-72` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final NodeType getNodeType(NodeTypeName name) { - GetNodeTypeRequest request = - GetNodeTypeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getNodeType(request); + public final UnaryCallable + listNetworkPoliciesCallable() { + return stub.listNetworkPoliciesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single `NodeType`. + * Creates a new network policy in a given VMware Engine network of a project and location + * (region). A new network policy cannot be created if another network policy already exists in + * the same scope. * *

Sample code: * @@ -3546,80 +9909,49 @@ public final NodeType getNodeType(NodeTypeName name) { * // - 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 = NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]").toString(); - * NodeType response = vmwareEngineClient.getNodeType(name); + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); + * String networkPolicyId = "networkPolicyId-727262661"; + * NetworkPolicy response = + * vmwareEngineClient.createNetworkPolicyAsync(parent, networkPolicy, networkPolicyId).get(); * } * } * - * @param name Required. The resource name of the node type to retrieve. Resource names are - * schemeless URIs that follow the conventions in + * @param parent Required. The resource name of the location (region) to create the new network + * policy in. Resource names are schemeless URIs that follow the conventions in * https://cloud.google.com/apis/design/resource_names. For example: - * `projects/my-proj/locations/us-central1-a/nodeTypes/standard-72` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final NodeType getNodeType(String name) { - GetNodeTypeRequest request = GetNodeTypeRequest.newBuilder().setName(name).build(); - return getNodeType(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single `NodeType`. - * - *

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()) {
-   *   GetNodeTypeRequest request =
-   *       GetNodeTypeRequest.newBuilder()
-   *           .setName(NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]").toString())
-   *           .build();
-   *   NodeType response = vmwareEngineClient.getNodeType(request);
-   * }
-   * }
+ * `projects/my-project/locations/us-central1` + * @param networkPolicy Required. The network policy configuration to use in the request. + * @param networkPolicyId Required. The user-provided identifier of the network policy to be + * created. This identifier must be unique within parent + * `projects/{my-project}/locations/{us-central1}/networkPolicies` 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) + *
* - * @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 NodeType getNodeType(GetNodeTypeRequest request) { - return getNodeTypeCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single `NodeType`. - * - *

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()) {
-   *   GetNodeTypeRequest request =
-   *       GetNodeTypeRequest.newBuilder()
-   *           .setName(NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]").toString())
-   *           .build();
-   *   ApiFuture future = vmwareEngineClient.getNodeTypeCallable().futureCall(request);
-   *   // Do something.
-   *   NodeType response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getNodeTypeCallable() { - return stub.getNodeTypeCallable(); + public final OperationFuture createNetworkPolicyAsync( + LocationName parent, NetworkPolicy networkPolicy, String networkPolicyId) { + CreateNetworkPolicyRequest request = + CreateNetworkPolicyRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setNetworkPolicy(networkPolicy) + .setNetworkPolicyId(networkPolicyId) + .build(); + return createNetworkPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of credentials for NSX appliance. + * Creates a new network policy in a given VMware Engine network of a project and location + * (region). A new network policy cannot be created if another network policy already exists in + * the same scope. * *

Sample code: * @@ -3630,29 +9962,49 @@ public final UnaryCallable getNodeTypeCallable() { * // - 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()) { - * PrivateCloudName privateCloud = - * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); - * Credentials response = vmwareEngineClient.showNsxCredentials(privateCloud); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); + * String networkPolicyId = "networkPolicyId-727262661"; + * NetworkPolicy response = + * vmwareEngineClient.createNetworkPolicyAsync(parent, networkPolicy, networkPolicyId).get(); * } * } * - * @param privateCloud Required. The resource name of the private cloud to be queried for - * credentials. Resource names are schemeless URIs that follow the conventions in + * @param parent Required. The resource name of the location (region) to create the new network + * policy in. 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` + * `projects/my-project/locations/us-central1` + * @param networkPolicy Required. The network policy configuration to use in the request. + * @param networkPolicyId Required. The user-provided identifier of the network policy to be + * created. This identifier must be unique within parent + * `projects/{my-project}/locations/{us-central1}/networkPolicies` 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 Credentials showNsxCredentials(PrivateCloudName privateCloud) { - ShowNsxCredentialsRequest request = - ShowNsxCredentialsRequest.newBuilder() - .setPrivateCloud(privateCloud == null ? null : privateCloud.toString()) + public final OperationFuture createNetworkPolicyAsync( + String parent, NetworkPolicy networkPolicy, String networkPolicyId) { + CreateNetworkPolicyRequest request = + CreateNetworkPolicyRequest.newBuilder() + .setParent(parent) + .setNetworkPolicy(networkPolicy) + .setNetworkPolicyId(networkPolicyId) .build(); - return showNsxCredentials(request); + return createNetworkPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of credentials for NSX appliance. + * Creates a new network policy in a given VMware Engine network of a project and location + * (region). A new network policy cannot be created if another network policy already exists in + * the same scope. * *

Sample code: * @@ -3663,27 +10015,30 @@ public final Credentials showNsxCredentials(PrivateCloudName privateCloud) { * // - 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 privateCloud = - * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString(); - * Credentials response = vmwareEngineClient.showNsxCredentials(privateCloud); + * CreateNetworkPolicyRequest request = + * CreateNetworkPolicyRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setNetworkPolicyId("networkPolicyId-727262661") + * .setNetworkPolicy(NetworkPolicy.newBuilder().build()) + * .setRequestId("requestId693933066") + * .build(); + * NetworkPolicy response = vmwareEngineClient.createNetworkPolicyAsync(request).get(); * } * } * - * @param privateCloud Required. The resource name of the private cloud to be queried for - * credentials. 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` + * @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 Credentials showNsxCredentials(String privateCloud) { - ShowNsxCredentialsRequest request = - ShowNsxCredentialsRequest.newBuilder().setPrivateCloud(privateCloud).build(); - return showNsxCredentials(request); + public final OperationFuture createNetworkPolicyAsync( + CreateNetworkPolicyRequest request) { + return createNetworkPolicyOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of credentials for NSX appliance. + * Creates a new network policy in a given VMware Engine network of a project and location + * (region). A new network policy cannot be created if another network policy already exists in + * the same scope. * *

Sample code: * @@ -3694,25 +10049,30 @@ public final Credentials showNsxCredentials(String privateCloud) { * // - 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()) { - * ShowNsxCredentialsRequest request = - * ShowNsxCredentialsRequest.newBuilder() - * .setPrivateCloud( - * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + * CreateNetworkPolicyRequest request = + * CreateNetworkPolicyRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setNetworkPolicyId("networkPolicyId-727262661") + * .setNetworkPolicy(NetworkPolicy.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); - * Credentials response = vmwareEngineClient.showNsxCredentials(request); + * OperationFuture future = + * vmwareEngineClient.createNetworkPolicyOperationCallable().futureCall(request); + * // Do something. + * NetworkPolicy response = future.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 Credentials showNsxCredentials(ShowNsxCredentialsRequest request) { - return showNsxCredentialsCallable().call(request); + public final OperationCallable + createNetworkPolicyOperationCallable() { + return stub.createNetworkPolicyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of credentials for NSX appliance. + * Creates a new network policy in a given VMware Engine network of a project and location + * (region). A new network policy cannot be created if another network policy already exists in + * the same scope. * *

Sample code: * @@ -3723,25 +10083,35 @@ public final Credentials showNsxCredentials(ShowNsxCredentialsRequest request) { * // - 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()) { - * ShowNsxCredentialsRequest request = - * ShowNsxCredentialsRequest.newBuilder() - * .setPrivateCloud( - * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + * CreateNetworkPolicyRequest request = + * CreateNetworkPolicyRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setNetworkPolicyId("networkPolicyId-727262661") + * .setNetworkPolicy(NetworkPolicy.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); - * ApiFuture future = - * vmwareEngineClient.showNsxCredentialsCallable().futureCall(request); + * ApiFuture future = + * vmwareEngineClient.createNetworkPolicyCallable().futureCall(request); * // Do something. - * Credentials response = future.get(); + * Operation response = future.get(); * } * } */ - public final UnaryCallable showNsxCredentialsCallable() { - return stub.showNsxCredentialsCallable(); + public final UnaryCallable createNetworkPolicyCallable() { + return stub.createNetworkPolicyCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of credentials for Vcenter appliance. + * Modifies a `NetworkPolicy` resource. Only the following fields can be updated: + * `internet_access`, `external_ip`, `edge_services_cidr`. Only fields specified in `updateMask` + * are applied. When updating a network policy, the external IP network service can only be + * disabled if there are no external IP addresses present in the scope of the policy. Also, a + * `NetworkService` cannot be updated when `NetworkService.state` is set to `RECONCILING`. + * + *

During operation processing, the resource is temporarily in the `ACTIVE` state before the + * operation fully completes. For that period of time, you can't update the resource. Use the + * operation status to determine when the processing fully completes. * *

Sample code: * @@ -3752,29 +10122,41 @@ public final UnaryCallable showNsxCreden * // - 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()) { - * PrivateCloudName privateCloud = - * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); - * Credentials response = vmwareEngineClient.showVcenterCredentials(privateCloud); + * NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * NetworkPolicy response = + * vmwareEngineClient.updateNetworkPolicyAsync(networkPolicy, updateMask).get(); * } * } * - * @param privateCloud Required. The resource name of the private cloud to be queried for - * credentials. 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` + * @param networkPolicy Required. Network policy description. + * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the + * `NetworkPolicy` 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 Credentials showVcenterCredentials(PrivateCloudName privateCloud) { - ShowVcenterCredentialsRequest request = - ShowVcenterCredentialsRequest.newBuilder() - .setPrivateCloud(privateCloud == null ? null : privateCloud.toString()) + public final OperationFuture updateNetworkPolicyAsync( + NetworkPolicy networkPolicy, FieldMask updateMask) { + UpdateNetworkPolicyRequest request = + UpdateNetworkPolicyRequest.newBuilder() + .setNetworkPolicy(networkPolicy) + .setUpdateMask(updateMask) .build(); - return showVcenterCredentials(request); + return updateNetworkPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of credentials for Vcenter appliance. + * Modifies a `NetworkPolicy` resource. Only the following fields can be updated: + * `internet_access`, `external_ip`, `edge_services_cidr`. Only fields specified in `updateMask` + * are applied. When updating a network policy, the external IP network service can only be + * disabled if there are no external IP addresses present in the scope of the policy. Also, a + * `NetworkService` cannot be updated when `NetworkService.state` is set to `RECONCILING`. + * + *

During operation processing, the resource is temporarily in the `ACTIVE` state before the + * operation fully completes. For that period of time, you can't update the resource. Use the + * operation status to determine when the processing fully completes. * *

Sample code: * @@ -3785,27 +10167,35 @@ public final Credentials showVcenterCredentials(PrivateCloudName privateCloud) { * // - 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 privateCloud = - * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString(); - * Credentials response = vmwareEngineClient.showVcenterCredentials(privateCloud); + * UpdateNetworkPolicyRequest request = + * UpdateNetworkPolicyRequest.newBuilder() + * .setNetworkPolicy(NetworkPolicy.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .setRequestId("requestId693933066") + * .build(); + * NetworkPolicy response = vmwareEngineClient.updateNetworkPolicyAsync(request).get(); * } * } * - * @param privateCloud Required. The resource name of the private cloud to be queried for - * credentials. 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` + * @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 Credentials showVcenterCredentials(String privateCloud) { - ShowVcenterCredentialsRequest request = - ShowVcenterCredentialsRequest.newBuilder().setPrivateCloud(privateCloud).build(); - return showVcenterCredentials(request); + public final OperationFuture updateNetworkPolicyAsync( + UpdateNetworkPolicyRequest request) { + return updateNetworkPolicyOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of credentials for Vcenter appliance. + * Modifies a `NetworkPolicy` resource. Only the following fields can be updated: + * `internet_access`, `external_ip`, `edge_services_cidr`. Only fields specified in `updateMask` + * are applied. When updating a network policy, the external IP network service can only be + * disabled if there are no external IP addresses present in the scope of the policy. Also, a + * `NetworkService` cannot be updated when `NetworkService.state` is set to `RECONCILING`. + * + *

During operation processing, the resource is temporarily in the `ACTIVE` state before the + * operation fully completes. For that period of time, you can't update the resource. Use the + * operation status to determine when the processing fully completes. * *

Sample code: * @@ -3816,25 +10206,35 @@ public final Credentials showVcenterCredentials(String privateCloud) { * // - 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()) { - * ShowVcenterCredentialsRequest request = - * ShowVcenterCredentialsRequest.newBuilder() - * .setPrivateCloud( - * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + * UpdateNetworkPolicyRequest request = + * UpdateNetworkPolicyRequest.newBuilder() + * .setNetworkPolicy(NetworkPolicy.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); - * Credentials response = vmwareEngineClient.showVcenterCredentials(request); + * OperationFuture future = + * vmwareEngineClient.updateNetworkPolicyOperationCallable().futureCall(request); + * // Do something. + * NetworkPolicy response = future.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 Credentials showVcenterCredentials(ShowVcenterCredentialsRequest request) { - return showVcenterCredentialsCallable().call(request); + public final OperationCallable + updateNetworkPolicyOperationCallable() { + return stub.updateNetworkPolicyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of credentials for Vcenter appliance. + * Modifies a `NetworkPolicy` resource. Only the following fields can be updated: + * `internet_access`, `external_ip`, `edge_services_cidr`. Only fields specified in `updateMask` + * are applied. When updating a network policy, the external IP network service can only be + * disabled if there are no external IP addresses present in the scope of the policy. Also, a + * `NetworkService` cannot be updated when `NetworkService.state` is set to `RECONCILING`. + * + *

During operation processing, the resource is temporarily in the `ACTIVE` state before the + * operation fully completes. For that period of time, you can't update the resource. Use the + * operation status to determine when the processing fully completes. * *

Sample code: * @@ -3845,26 +10245,28 @@ public final Credentials showVcenterCredentials(ShowVcenterCredentialsRequest re * // - 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()) { - * ShowVcenterCredentialsRequest request = - * ShowVcenterCredentialsRequest.newBuilder() - * .setPrivateCloud( - * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + * UpdateNetworkPolicyRequest request = + * UpdateNetworkPolicyRequest.newBuilder() + * .setNetworkPolicy(NetworkPolicy.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); - * ApiFuture future = - * vmwareEngineClient.showVcenterCredentialsCallable().futureCall(request); + * ApiFuture future = + * vmwareEngineClient.updateNetworkPolicyCallable().futureCall(request); * // Do something. - * Credentials response = future.get(); + * Operation response = future.get(); * } * } */ - public final UnaryCallable - showVcenterCredentialsCallable() { - return stub.showVcenterCredentialsCallable(); + public final UnaryCallable updateNetworkPolicyCallable() { + return stub.updateNetworkPolicyCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Resets credentials of the NSX appliance. + * 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. * *

Sample code: * @@ -3875,30 +10277,31 @@ public final Credentials showVcenterCredentials(ShowVcenterCredentialsRequest re * // - 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()) { - * PrivateCloudName privateCloud = - * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); - * PrivateCloud response = vmwareEngineClient.resetNsxCredentialsAsync(privateCloud).get(); + * NetworkPolicyName name = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); + * vmwareEngineClient.deleteNetworkPolicyAsync(name).get(); * } * } * - * @param privateCloud Required. The resource name of the private cloud to reset credentials for. - * Resource names are schemeless URIs that follow the conventions in + * @param name Required. The resource name of the network policy to delete. 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` + * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture resetNsxCredentialsAsync( - PrivateCloudName privateCloud) { - ResetNsxCredentialsRequest request = - ResetNsxCredentialsRequest.newBuilder() - .setPrivateCloud(privateCloud == null ? null : privateCloud.toString()) + public final OperationFuture deleteNetworkPolicyAsync( + NetworkPolicyName name) { + DeleteNetworkPolicyRequest request = + DeleteNetworkPolicyRequest.newBuilder() + .setName(name == null ? null : name.toString()) .build(); - return resetNsxCredentialsAsync(request); + return deleteNetworkPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Resets credentials of the NSX appliance. + * 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. * *

Sample code: * @@ -3909,28 +10312,28 @@ public final OperationFuture resetNsxCredential * // - 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 privateCloud = - * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString(); - * PrivateCloud response = vmwareEngineClient.resetNsxCredentialsAsync(privateCloud).get(); + * String name = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString(); + * vmwareEngineClient.deleteNetworkPolicyAsync(name).get(); * } * } - * - * @param privateCloud Required. The resource name of the private cloud to reset credentials for. - * Resource names are schemeless URIs that follow the conventions in + * + * @param name Required. The resource name of the network policy to delete. 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` + * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture resetNsxCredentialsAsync( - String privateCloud) { - ResetNsxCredentialsRequest request = - ResetNsxCredentialsRequest.newBuilder().setPrivateCloud(privateCloud).build(); - return resetNsxCredentialsAsync(request); + public final OperationFuture deleteNetworkPolicyAsync(String name) { + DeleteNetworkPolicyRequest request = + DeleteNetworkPolicyRequest.newBuilder().setName(name).build(); + return deleteNetworkPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Resets credentials of the NSX appliance. + * 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. * *

Sample code: * @@ -3941,27 +10344,29 @@ public final OperationFuture resetNsxCredential * // - 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()) { - * ResetNsxCredentialsRequest request = - * ResetNsxCredentialsRequest.newBuilder() - * .setPrivateCloud( - * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + * DeleteNetworkPolicyRequest request = + * DeleteNetworkPolicyRequest.newBuilder() + * .setName( + * NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) * .setRequestId("requestId693933066") * .build(); - * PrivateCloud response = vmwareEngineClient.resetNsxCredentialsAsync(request).get(); + * vmwareEngineClient.deleteNetworkPolicyAsync(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 resetNsxCredentialsAsync( - ResetNsxCredentialsRequest request) { - return resetNsxCredentialsOperationCallable().futureCall(request); + public final OperationFuture deleteNetworkPolicyAsync( + DeleteNetworkPolicyRequest request) { + return deleteNetworkPolicyOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Resets credentials of the NSX appliance. + * 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. * *

Sample code: * @@ -3972,27 +10377,29 @@ public final OperationFuture resetNsxCredential * // - 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()) { - * ResetNsxCredentialsRequest request = - * ResetNsxCredentialsRequest.newBuilder() - * .setPrivateCloud( - * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + * DeleteNetworkPolicyRequest request = + * DeleteNetworkPolicyRequest.newBuilder() + * .setName( + * NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) * .setRequestId("requestId693933066") * .build(); - * OperationFuture future = - * vmwareEngineClient.resetNsxCredentialsOperationCallable().futureCall(request); + * OperationFuture future = + * vmwareEngineClient.deleteNetworkPolicyOperationCallable().futureCall(request); * // Do something. - * PrivateCloud response = future.get(); + * future.get(); * } * } */ - public final OperationCallable - resetNsxCredentialsOperationCallable() { - return stub.resetNsxCredentialsOperationCallable(); + public final OperationCallable + deleteNetworkPolicyOperationCallable() { + return stub.deleteNetworkPolicyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Resets credentials of the NSX appliance. + * 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. * *

Sample code: * @@ -4003,26 +10410,26 @@ public final OperationFuture resetNsxCredential * // - 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()) { - * ResetNsxCredentialsRequest request = - * ResetNsxCredentialsRequest.newBuilder() - * .setPrivateCloud( - * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + * DeleteNetworkPolicyRequest request = + * DeleteNetworkPolicyRequest.newBuilder() + * .setName( + * NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) * .setRequestId("requestId693933066") * .build(); * ApiFuture future = - * vmwareEngineClient.resetNsxCredentialsCallable().futureCall(request); + * vmwareEngineClient.deleteNetworkPolicyCallable().futureCall(request); * // Do something. - * Operation response = future.get(); + * future.get(); * } * } */ - public final UnaryCallable resetNsxCredentialsCallable() { - return stub.resetNsxCredentialsCallable(); + public final UnaryCallable deleteNetworkPolicyCallable() { + return stub.deleteNetworkPolicyCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Resets credentials of the Vcenter appliance. + * Lists Consumer VPCs bound to Management DNS Zone of a given private cloud. * *

Sample code: * @@ -4033,30 +10440,32 @@ public final UnaryCallable resetNsxCreden * // - 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()) { - * PrivateCloudName privateCloud = - * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); - * PrivateCloud response = vmwareEngineClient.resetVcenterCredentialsAsync(privateCloud).get(); + * PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + * for (ManagementDnsZoneBinding element : + * vmwareEngineClient.listManagementDnsZoneBindings(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param privateCloud Required. The resource name of the private cloud to reset credentials for. - * Resource names are schemeless URIs that follow the conventions in + * @param parent Required. The resource name of the private cloud to be queried for management DNS + * zone bindings. 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` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture resetVcenterCredentialsAsync( - PrivateCloudName privateCloud) { - ResetVcenterCredentialsRequest request = - ResetVcenterCredentialsRequest.newBuilder() - .setPrivateCloud(privateCloud == null ? null : privateCloud.toString()) + public final ListManagementDnsZoneBindingsPagedResponse listManagementDnsZoneBindings( + PrivateCloudName parent) { + ListManagementDnsZoneBindingsRequest request = + ListManagementDnsZoneBindingsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) .build(); - return resetVcenterCredentialsAsync(request); + return listManagementDnsZoneBindings(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Resets credentials of the Vcenter appliance. + * Lists Consumer VPCs bound to Management DNS Zone of a given private cloud. * *

Sample code: * @@ -4067,28 +10476,30 @@ public final OperationFuture resetVcenterCreden * // - 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 privateCloud = - * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString(); - * PrivateCloud response = vmwareEngineClient.resetVcenterCredentialsAsync(privateCloud).get(); + * String parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString(); + * for (ManagementDnsZoneBinding element : + * vmwareEngineClient.listManagementDnsZoneBindings(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param privateCloud Required. The resource name of the private cloud to reset credentials for. - * Resource names are schemeless URIs that follow the conventions in + * @param parent Required. The resource name of the private cloud to be queried for management DNS + * zone bindings. 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` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture resetVcenterCredentialsAsync( - String privateCloud) { - ResetVcenterCredentialsRequest request = - ResetVcenterCredentialsRequest.newBuilder().setPrivateCloud(privateCloud).build(); - return resetVcenterCredentialsAsync(request); + public final ListManagementDnsZoneBindingsPagedResponse listManagementDnsZoneBindings( + String parent) { + ListManagementDnsZoneBindingsRequest request = + ListManagementDnsZoneBindingsRequest.newBuilder().setParent(parent).build(); + return listManagementDnsZoneBindings(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Resets credentials of the Vcenter appliance. + * Lists Consumer VPCs bound to Management DNS Zone of a given private cloud. * *

Sample code: * @@ -4099,27 +10510,33 @@ public final OperationFuture resetVcenterCreden * // - 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()) { - * ResetVcenterCredentialsRequest request = - * ResetVcenterCredentialsRequest.newBuilder() - * .setPrivateCloud( + * ListManagementDnsZoneBindingsRequest request = + * ListManagementDnsZoneBindingsRequest.newBuilder() + * .setParent( * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) - * .setRequestId("requestId693933066") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); - * PrivateCloud response = vmwareEngineClient.resetVcenterCredentialsAsync(request).get(); + * for (ManagementDnsZoneBinding element : + * vmwareEngineClient.listManagementDnsZoneBindings(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 OperationFuture resetVcenterCredentialsAsync( - ResetVcenterCredentialsRequest request) { - return resetVcenterCredentialsOperationCallable().futureCall(request); + public final ListManagementDnsZoneBindingsPagedResponse listManagementDnsZoneBindings( + ListManagementDnsZoneBindingsRequest request) { + return listManagementDnsZoneBindingsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Resets credentials of the Vcenter appliance. + * Lists Consumer VPCs bound to Management DNS Zone of a given private cloud. * *

Sample code: * @@ -4130,27 +10547,33 @@ public final OperationFuture resetVcenterCreden * // - 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()) { - * ResetVcenterCredentialsRequest request = - * ResetVcenterCredentialsRequest.newBuilder() - * .setPrivateCloud( + * ListManagementDnsZoneBindingsRequest request = + * ListManagementDnsZoneBindingsRequest.newBuilder() + * .setParent( * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) - * .setRequestId("requestId693933066") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); - * OperationFuture future = - * vmwareEngineClient.resetVcenterCredentialsOperationCallable().futureCall(request); + * ApiFuture future = + * vmwareEngineClient.listManagementDnsZoneBindingsPagedCallable().futureCall(request); * // Do something. - * PrivateCloud response = future.get(); + * for (ManagementDnsZoneBinding element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } */ - public final OperationCallable - resetVcenterCredentialsOperationCallable() { - return stub.resetVcenterCredentialsOperationCallable(); + public final UnaryCallable< + ListManagementDnsZoneBindingsRequest, ListManagementDnsZoneBindingsPagedResponse> + listManagementDnsZoneBindingsPagedCallable() { + return stub.listManagementDnsZoneBindingsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Resets credentials of the Vcenter appliance. + * Lists Consumer VPCs bound to Management DNS Zone of a given private cloud. * *

Sample code: * @@ -4161,81 +10584,40 @@ public final OperationFuture resetVcenterCreden * // - 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()) { - * ResetVcenterCredentialsRequest request = - * ResetVcenterCredentialsRequest.newBuilder() - * .setPrivateCloud( + * ListManagementDnsZoneBindingsRequest request = + * ListManagementDnsZoneBindingsRequest.newBuilder() + * .setParent( * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) - * .setRequestId("requestId693933066") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); - * ApiFuture future = - * vmwareEngineClient.resetVcenterCredentialsCallable().futureCall(request); - * // Do something. - * Operation response = future.get(); - * } - * } - */ - public final UnaryCallable - resetVcenterCredentialsCallable() { - return stub.resetVcenterCredentialsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new HCX activation key in a given private cloud. - * - *

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()) {
-   *   PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
-   *   HcxActivationKey hcxActivationKey = HcxActivationKey.newBuilder().build();
-   *   String hcxActivationKeyId = "hcxActivationKeyId-645871673";
-   *   HcxActivationKey response =
-   *       vmwareEngineClient
-   *           .createHcxActivationKeyAsync(parent, hcxActivationKey, hcxActivationKeyId)
-   *           .get();
+   *   while (true) {
+   *     ListManagementDnsZoneBindingsResponse response =
+   *         vmwareEngineClient.listManagementDnsZoneBindingsCallable().call(request);
+   *     for (ManagementDnsZoneBinding element : response.getManagementDnsZoneBindingsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
    * }
    * }
- * - * @param parent Required. The resource name of the private cloud to create the key for. 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/privateClouds/my-cloud` - * @param hcxActivationKey Required. The initial description of a new HCX activation key. When - * creating a new key, this field must be an empty object. - * @param hcxActivationKeyId Required. The user-provided identifier of the `HcxActivationKey` to - * be created. This identifier must be unique among `HcxActivationKey` 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 OperationFuture createHcxActivationKeyAsync( - PrivateCloudName parent, HcxActivationKey hcxActivationKey, String hcxActivationKeyId) { - CreateHcxActivationKeyRequest request = - CreateHcxActivationKeyRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setHcxActivationKey(hcxActivationKey) - .setHcxActivationKeyId(hcxActivationKeyId) - .build(); - return createHcxActivationKeyAsync(request); + public final UnaryCallable< + ListManagementDnsZoneBindingsRequest, ListManagementDnsZoneBindingsResponse> + listManagementDnsZoneBindingsCallable() { + return stub.listManagementDnsZoneBindingsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new HCX activation key in a given private cloud. + * Retrieves a 'ManagementDnsZoneBinding' resource by its resource name. * *

Sample code: * @@ -4244,52 +10626,33 @@ public final OperationFuture createHcxActiv * // 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 = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString(); - * HcxActivationKey hcxActivationKey = HcxActivationKey.newBuilder().build(); - * String hcxActivationKeyId = "hcxActivationKeyId-645871673"; - * HcxActivationKey response = - * vmwareEngineClient - * .createHcxActivationKeyAsync(parent, hcxActivationKey, hcxActivationKeyId) - * .get(); - * } - * } - * - * @param parent Required. The resource name of the private cloud to create the key for. 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/privateClouds/my-cloud` - * @param hcxActivationKey Required. The initial description of a new HCX activation key. When - * creating a new key, this field must be an empty object. - * @param hcxActivationKeyId Required. The user-provided identifier of the `HcxActivationKey` to - * be created. This identifier must be unique among `HcxActivationKey` 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) - *
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + * ManagementDnsZoneBindingName name = + * ManagementDnsZoneBindingName.of( + * "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[MANAGEMENT_DNS_ZONE_BINDING]"); + * ManagementDnsZoneBinding response = vmwareEngineClient.getManagementDnsZoneBinding(name); + * } + * } * + * @param name Required. The resource name of the management DNS zone binding 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/managementDnsZoneBindings/my-management-dns-zone-binding` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createHcxActivationKeyAsync( - String parent, HcxActivationKey hcxActivationKey, String hcxActivationKeyId) { - CreateHcxActivationKeyRequest request = - CreateHcxActivationKeyRequest.newBuilder() - .setParent(parent) - .setHcxActivationKey(hcxActivationKey) - .setHcxActivationKeyId(hcxActivationKeyId) + public final ManagementDnsZoneBinding getManagementDnsZoneBinding( + ManagementDnsZoneBindingName name) { + GetManagementDnsZoneBindingRequest request = + GetManagementDnsZoneBindingRequest.newBuilder() + .setName(name == null ? null : name.toString()) .build(); - return createHcxActivationKeyAsync(request); + return getManagementDnsZoneBinding(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new HCX activation key in a given private cloud. + * Retrieves a 'ManagementDnsZoneBinding' resource by its resource name. * *

Sample code: * @@ -4300,29 +10663,29 @@ public final OperationFuture createHcxActiv * // - 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()) { - * CreateHcxActivationKeyRequest request = - * CreateHcxActivationKeyRequest.newBuilder() - * .setParent( - * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) - * .setHcxActivationKey(HcxActivationKey.newBuilder().build()) - * .setHcxActivationKeyId("hcxActivationKeyId-645871673") - * .setRequestId("requestId693933066") - * .build(); - * HcxActivationKey response = vmwareEngineClient.createHcxActivationKeyAsync(request).get(); + * String name = + * ManagementDnsZoneBindingName.of( + * "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[MANAGEMENT_DNS_ZONE_BINDING]") + * .toString(); + * ManagementDnsZoneBinding response = vmwareEngineClient.getManagementDnsZoneBinding(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The resource name of the management DNS zone binding 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/managementDnsZoneBindings/my-management-dns-zone-binding` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createHcxActivationKeyAsync( - CreateHcxActivationKeyRequest request) { - return createHcxActivationKeyOperationCallable().futureCall(request); + public final ManagementDnsZoneBinding getManagementDnsZoneBinding(String name) { + GetManagementDnsZoneBindingRequest request = + GetManagementDnsZoneBindingRequest.newBuilder().setName(name).build(); + return getManagementDnsZoneBinding(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new HCX activation key in a given private cloud. + * Retrieves a 'ManagementDnsZoneBinding' resource by its resource name. * *

Sample code: * @@ -4333,29 +10696,31 @@ public final OperationFuture createHcxActiv * // - 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()) { - * CreateHcxActivationKeyRequest request = - * CreateHcxActivationKeyRequest.newBuilder() - * .setParent( - * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) - * .setHcxActivationKey(HcxActivationKey.newBuilder().build()) - * .setHcxActivationKeyId("hcxActivationKeyId-645871673") - * .setRequestId("requestId693933066") + * GetManagementDnsZoneBindingRequest request = + * GetManagementDnsZoneBindingRequest.newBuilder() + * .setName( + * ManagementDnsZoneBindingName.of( + * "[PROJECT]", + * "[LOCATION]", + * "[PRIVATE_CLOUD]", + * "[MANAGEMENT_DNS_ZONE_BINDING]") + * .toString()) * .build(); - * OperationFuture future = - * vmwareEngineClient.createHcxActivationKeyOperationCallable().futureCall(request); - * // Do something. - * HcxActivationKey response = future.get(); + * ManagementDnsZoneBinding response = vmwareEngineClient.getManagementDnsZoneBinding(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 OperationCallable - createHcxActivationKeyOperationCallable() { - return stub.createHcxActivationKeyOperationCallable(); + public final ManagementDnsZoneBinding getManagementDnsZoneBinding( + GetManagementDnsZoneBindingRequest request) { + return getManagementDnsZoneBindingCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new HCX activation key in a given private cloud. + * Retrieves a 'ManagementDnsZoneBinding' resource by its resource name. * *

Sample code: * @@ -4366,29 +10731,35 @@ public final OperationFuture createHcxActiv * // - 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()) { - * CreateHcxActivationKeyRequest request = - * CreateHcxActivationKeyRequest.newBuilder() - * .setParent( - * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) - * .setHcxActivationKey(HcxActivationKey.newBuilder().build()) - * .setHcxActivationKeyId("hcxActivationKeyId-645871673") - * .setRequestId("requestId693933066") + * GetManagementDnsZoneBindingRequest request = + * GetManagementDnsZoneBindingRequest.newBuilder() + * .setName( + * ManagementDnsZoneBindingName.of( + * "[PROJECT]", + * "[LOCATION]", + * "[PRIVATE_CLOUD]", + * "[MANAGEMENT_DNS_ZONE_BINDING]") + * .toString()) * .build(); - * ApiFuture future = - * vmwareEngineClient.createHcxActivationKeyCallable().futureCall(request); + * ApiFuture future = + * vmwareEngineClient.getManagementDnsZoneBindingCallable().futureCall(request); * // Do something. - * Operation response = future.get(); + * ManagementDnsZoneBinding response = future.get(); * } * } */ - public final UnaryCallable - createHcxActivationKeyCallable() { - return stub.createHcxActivationKeyCallable(); + public final UnaryCallable + getManagementDnsZoneBindingCallable() { + return stub.getManagementDnsZoneBindingCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists `HcxActivationKey` resources in a given private cloud. + * Creates a new `ManagementDnsZoneBinding` resource in a private cloud. This RPC creates the DNS + * binding and the resource that represents the DNS binding of the consumer VPC network to the + * management DNS zone. A management DNS zone is the Cloud DNS cross-project binding zone that + * VMware Engine creates for each private cloud. It contains FQDNs and corresponding IP addresses + * for the private cloud's ESXi hosts and management VM appliances like vCenter and NSX Manager. * *

Sample code: * @@ -4400,30 +10771,58 @@ public final OperationFuture createHcxActiv * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { * PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); - * for (HcxActivationKey element : - * vmwareEngineClient.listHcxActivationKeys(parent).iterateAll()) { - * // doThingsWith(element); - * } + * ManagementDnsZoneBinding managementDnsZoneBinding = + * ManagementDnsZoneBinding.newBuilder().build(); + * String managementDnsZoneBindingId = "managementDnsZoneBindingId-288984082"; + * ManagementDnsZoneBinding response = + * vmwareEngineClient + * .createManagementDnsZoneBindingAsync( + * parent, managementDnsZoneBinding, managementDnsZoneBindingId) + * .get(); * } * } * - * @param parent Required. The resource name of the private cloud to be queried for HCX activation - * keys. Resource names are schemeless URIs that follow the conventions in + * @param parent Required. The resource name of the private cloud to create a new management DNS + * zone binding for. 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/privateClouds/my-cloud` + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + * @param managementDnsZoneBinding Required. The initial values for a new management DNS zone + * binding. + * @param managementDnsZoneBindingId Required. The user-provided identifier of the + * `ManagementDnsZoneBinding` resource to be created. This identifier must be unique among + * `ManagementDnsZoneBinding` 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 ListHcxActivationKeysPagedResponse listHcxActivationKeys(PrivateCloudName parent) { - ListHcxActivationKeysRequest request = - ListHcxActivationKeysRequest.newBuilder() + public final OperationFuture + createManagementDnsZoneBindingAsync( + PrivateCloudName parent, + ManagementDnsZoneBinding managementDnsZoneBinding, + String managementDnsZoneBindingId) { + CreateManagementDnsZoneBindingRequest request = + CreateManagementDnsZoneBindingRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) + .setManagementDnsZoneBinding(managementDnsZoneBinding) + .setManagementDnsZoneBindingId(managementDnsZoneBindingId) .build(); - return listHcxActivationKeys(request); + return createManagementDnsZoneBindingAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists `HcxActivationKey` resources in a given private cloud. + * Creates a new `ManagementDnsZoneBinding` resource in a private cloud. This RPC creates the DNS + * binding and the resource that represents the DNS binding of the consumer VPC network to the + * management DNS zone. A management DNS zone is the Cloud DNS cross-project binding zone that + * VMware Engine creates for each private cloud. It contains FQDNs and corresponding IP addresses + * for the private cloud's ESXi hosts and management VM appliances like vCenter and NSX Manager. * *

Sample code: * @@ -4435,28 +10834,58 @@ public final ListHcxActivationKeysPagedResponse listHcxActivationKeys(PrivateClo * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { * String parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString(); - * for (HcxActivationKey element : - * vmwareEngineClient.listHcxActivationKeys(parent).iterateAll()) { - * // doThingsWith(element); - * } + * ManagementDnsZoneBinding managementDnsZoneBinding = + * ManagementDnsZoneBinding.newBuilder().build(); + * String managementDnsZoneBindingId = "managementDnsZoneBindingId-288984082"; + * ManagementDnsZoneBinding response = + * vmwareEngineClient + * .createManagementDnsZoneBindingAsync( + * parent, managementDnsZoneBinding, managementDnsZoneBindingId) + * .get(); * } * } * - * @param parent Required. The resource name of the private cloud to be queried for HCX activation - * keys. Resource names are schemeless URIs that follow the conventions in + * @param parent Required. The resource name of the private cloud to create a new management DNS + * zone binding for. 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/privateClouds/my-cloud` + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + * @param managementDnsZoneBinding Required. The initial values for a new management DNS zone + * binding. + * @param managementDnsZoneBindingId Required. The user-provided identifier of the + * `ManagementDnsZoneBinding` resource to be created. This identifier must be unique among + * `ManagementDnsZoneBinding` 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 ListHcxActivationKeysPagedResponse listHcxActivationKeys(String parent) { - ListHcxActivationKeysRequest request = - ListHcxActivationKeysRequest.newBuilder().setParent(parent).build(); - return listHcxActivationKeys(request); + public final OperationFuture + createManagementDnsZoneBindingAsync( + String parent, + ManagementDnsZoneBinding managementDnsZoneBinding, + String managementDnsZoneBindingId) { + CreateManagementDnsZoneBindingRequest request = + CreateManagementDnsZoneBindingRequest.newBuilder() + .setParent(parent) + .setManagementDnsZoneBinding(managementDnsZoneBinding) + .setManagementDnsZoneBindingId(managementDnsZoneBindingId) + .build(); + return createManagementDnsZoneBindingAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists `HcxActivationKey` resources in a given private cloud. + * Creates a new `ManagementDnsZoneBinding` resource in a private cloud. This RPC creates the DNS + * binding and the resource that represents the DNS binding of the consumer VPC network to the + * management DNS zone. A management DNS zone is the Cloud DNS cross-project binding zone that + * VMware Engine creates for each private cloud. It contains FQDNs and corresponding IP addresses + * for the private cloud's ESXi hosts and management VM appliances like vCenter and NSX Manager. * *

Sample code: * @@ -4467,31 +10896,34 @@ public final ListHcxActivationKeysPagedResponse listHcxActivationKeys(String par * // - 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()) { - * ListHcxActivationKeysRequest request = - * ListHcxActivationKeysRequest.newBuilder() + * CreateManagementDnsZoneBindingRequest request = + * CreateManagementDnsZoneBindingRequest.newBuilder() * .setParent( * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * .setManagementDnsZoneBinding(ManagementDnsZoneBinding.newBuilder().build()) + * .setManagementDnsZoneBindingId("managementDnsZoneBindingId-288984082") + * .setRequestId("requestId693933066") * .build(); - * for (HcxActivationKey element : - * vmwareEngineClient.listHcxActivationKeys(request).iterateAll()) { - * // doThingsWith(element); - * } + * ManagementDnsZoneBinding response = + * vmwareEngineClient.createManagementDnsZoneBindingAsync(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 ListHcxActivationKeysPagedResponse listHcxActivationKeys( - ListHcxActivationKeysRequest request) { - return listHcxActivationKeysPagedCallable().call(request); + public final OperationFuture + createManagementDnsZoneBindingAsync(CreateManagementDnsZoneBindingRequest request) { + return createManagementDnsZoneBindingOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists `HcxActivationKey` resources in a given private cloud. + * Creates a new `ManagementDnsZoneBinding` resource in a private cloud. This RPC creates the DNS + * binding and the resource that represents the DNS binding of the consumer VPC network to the + * management DNS zone. A management DNS zone is the Cloud DNS cross-project binding zone that + * VMware Engine creates for each private cloud. It contains FQDNs and corresponding IP addresses + * for the private cloud's ESXi hosts and management VM appliances like vCenter and NSX Manager. * *

Sample code: * @@ -4502,30 +10934,34 @@ public final ListHcxActivationKeysPagedResponse listHcxActivationKeys( * // - 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()) { - * ListHcxActivationKeysRequest request = - * ListHcxActivationKeysRequest.newBuilder() + * CreateManagementDnsZoneBindingRequest request = + * CreateManagementDnsZoneBindingRequest.newBuilder() * .setParent( * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * .setManagementDnsZoneBinding(ManagementDnsZoneBinding.newBuilder().build()) + * .setManagementDnsZoneBindingId("managementDnsZoneBindingId-288984082") + * .setRequestId("requestId693933066") * .build(); - * ApiFuture future = - * vmwareEngineClient.listHcxActivationKeysPagedCallable().futureCall(request); + * OperationFuture future = + * vmwareEngineClient.createManagementDnsZoneBindingOperationCallable().futureCall(request); * // Do something. - * for (HcxActivationKey element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * ManagementDnsZoneBinding response = future.get(); * } * } */ - public final UnaryCallable - listHcxActivationKeysPagedCallable() { - return stub.listHcxActivationKeysPagedCallable(); + public final OperationCallable< + CreateManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + createManagementDnsZoneBindingOperationCallable() { + return stub.createManagementDnsZoneBindingOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists `HcxActivationKey` resources in a given private cloud. + * Creates a new `ManagementDnsZoneBinding` resource in a private cloud. This RPC creates the DNS + * binding and the resource that represents the DNS binding of the consumer VPC network to the + * management DNS zone. A management DNS zone is the Cloud DNS cross-project binding zone that + * VMware Engine creates for each private cloud. It contains FQDNs and corresponding IP addresses + * for the private cloud's ESXi hosts and management VM appliances like vCenter and NSX Manager. * *

Sample code: * @@ -4536,37 +10972,30 @@ public final ListHcxActivationKeysPagedResponse listHcxActivationKeys( * // - 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()) { - * ListHcxActivationKeysRequest request = - * ListHcxActivationKeysRequest.newBuilder() + * CreateManagementDnsZoneBindingRequest request = + * CreateManagementDnsZoneBindingRequest.newBuilder() * .setParent( * PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * .setManagementDnsZoneBinding(ManagementDnsZoneBinding.newBuilder().build()) + * .setManagementDnsZoneBindingId("managementDnsZoneBindingId-288984082") + * .setRequestId("requestId693933066") * .build(); - * while (true) { - * ListHcxActivationKeysResponse response = - * vmwareEngineClient.listHcxActivationKeysCallable().call(request); - * for (HcxActivationKey element : response.getHcxActivationKeysList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * ApiFuture future = + * vmwareEngineClient.createManagementDnsZoneBindingCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); * } * } */ - public final UnaryCallable - listHcxActivationKeysCallable() { - return stub.listHcxActivationKeysCallable(); + public final UnaryCallable + createManagementDnsZoneBindingCallable() { + return stub.createManagementDnsZoneBindingCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieves a `HcxActivationKey` resource by its resource name. + * Updates a `ManagementDnsZoneBinding` resource. Only fields specified in `update_mask` are + * applied. * *

Sample code: * @@ -4577,30 +11006,40 @@ public final ListHcxActivationKeysPagedResponse listHcxActivationKeys( * // - 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()) { - * HcxActivationKeyName name = - * HcxActivationKeyName.of( - * "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]"); - * HcxActivationKey response = vmwareEngineClient.getHcxActivationKey(name); + * ManagementDnsZoneBinding managementDnsZoneBinding = + * ManagementDnsZoneBinding.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * ManagementDnsZoneBinding response = + * vmwareEngineClient + * .updateManagementDnsZoneBindingAsync(managementDnsZoneBinding, updateMask) + * .get(); * } * } * - * @param name Required. The resource name of the HCX activation key 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/privateClouds/my-cloud/hcxActivationKeys/my-key` + * @param managementDnsZoneBinding Required. New values to update the management DNS zone binding + * with. + * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the + * `ManagementDnsZoneBinding` 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 HcxActivationKey getHcxActivationKey(HcxActivationKeyName name) { - GetHcxActivationKeyRequest request = - GetHcxActivationKeyRequest.newBuilder() - .setName(name == null ? null : name.toString()) + public final OperationFuture + updateManagementDnsZoneBindingAsync( + ManagementDnsZoneBinding managementDnsZoneBinding, FieldMask updateMask) { + UpdateManagementDnsZoneBindingRequest request = + UpdateManagementDnsZoneBindingRequest.newBuilder() + .setManagementDnsZoneBinding(managementDnsZoneBinding) + .setUpdateMask(updateMask) .build(); - return getHcxActivationKey(request); + return updateManagementDnsZoneBindingAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieves a `HcxActivationKey` resource by its resource name. + * Updates a `ManagementDnsZoneBinding` resource. Only fields specified in `update_mask` are + * applied. * *

Sample code: * @@ -4611,29 +11050,29 @@ public final HcxActivationKey getHcxActivationKey(HcxActivationKeyName name) { * // - 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 = - * HcxActivationKeyName.of( - * "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]") - * .toString(); - * HcxActivationKey response = vmwareEngineClient.getHcxActivationKey(name); + * UpdateManagementDnsZoneBindingRequest request = + * UpdateManagementDnsZoneBindingRequest.newBuilder() + * .setUpdateMask(FieldMask.newBuilder().build()) + * .setManagementDnsZoneBinding(ManagementDnsZoneBinding.newBuilder().build()) + * .setRequestId("requestId693933066") + * .build(); + * ManagementDnsZoneBinding response = + * vmwareEngineClient.updateManagementDnsZoneBindingAsync(request).get(); * } * } * - * @param name Required. The resource name of the HCX activation key 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/privateClouds/my-cloud/hcxActivationKeys/my-key` + * @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 HcxActivationKey getHcxActivationKey(String name) { - GetHcxActivationKeyRequest request = - GetHcxActivationKeyRequest.newBuilder().setName(name).build(); - return getHcxActivationKey(request); + public final OperationFuture + updateManagementDnsZoneBindingAsync(UpdateManagementDnsZoneBindingRequest request) { + return updateManagementDnsZoneBindingOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieves a `HcxActivationKey` resource by its resource name. + * Updates a `ManagementDnsZoneBinding` resource. Only fields specified in `update_mask` are + * applied. * *

Sample code: * @@ -4644,27 +11083,29 @@ public final HcxActivationKey getHcxActivationKey(String name) { * // - 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()) { - * GetHcxActivationKeyRequest request = - * GetHcxActivationKeyRequest.newBuilder() - * .setName( - * HcxActivationKeyName.of( - * "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]") - * .toString()) + * UpdateManagementDnsZoneBindingRequest request = + * UpdateManagementDnsZoneBindingRequest.newBuilder() + * .setUpdateMask(FieldMask.newBuilder().build()) + * .setManagementDnsZoneBinding(ManagementDnsZoneBinding.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); - * HcxActivationKey response = vmwareEngineClient.getHcxActivationKey(request); + * OperationFuture future = + * vmwareEngineClient.updateManagementDnsZoneBindingOperationCallable().futureCall(request); + * // Do something. + * ManagementDnsZoneBinding response = future.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 HcxActivationKey getHcxActivationKey(GetHcxActivationKeyRequest request) { - return getHcxActivationKeyCallable().call(request); + public final OperationCallable< + UpdateManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + updateManagementDnsZoneBindingOperationCallable() { + return stub.updateManagementDnsZoneBindingOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieves a `HcxActivationKey` resource by its resource name. + * Updates a `ManagementDnsZoneBinding` resource. Only fields specified in `update_mask` are + * applied. * *

Sample code: * @@ -4675,28 +11116,64 @@ public final HcxActivationKey getHcxActivationKey(GetHcxActivationKeyRequest req * // - 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()) { - * GetHcxActivationKeyRequest request = - * GetHcxActivationKeyRequest.newBuilder() - * .setName( - * HcxActivationKeyName.of( - * "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]") - * .toString()) + * UpdateManagementDnsZoneBindingRequest request = + * UpdateManagementDnsZoneBindingRequest.newBuilder() + * .setUpdateMask(FieldMask.newBuilder().build()) + * .setManagementDnsZoneBinding(ManagementDnsZoneBinding.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); - * ApiFuture future = - * vmwareEngineClient.getHcxActivationKeyCallable().futureCall(request); + * ApiFuture future = + * vmwareEngineClient.updateManagementDnsZoneBindingCallable().futureCall(request); * // Do something. - * HcxActivationKey response = future.get(); + * Operation response = future.get(); + * } + * } + */ + public final UnaryCallable + updateManagementDnsZoneBindingCallable() { + return stub.updateManagementDnsZoneBindingCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `ManagementDnsZoneBinding` resource. When a management DNS zone binding is deleted, + * the corresponding consumer VPC network is no longer bound to the management DNS zone. + * + *

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()) {
+   *   ManagementDnsZoneBindingName name =
+   *       ManagementDnsZoneBindingName.of(
+   *           "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[MANAGEMENT_DNS_ZONE_BINDING]");
+   *   vmwareEngineClient.deleteManagementDnsZoneBindingAsync(name).get();
    * }
    * }
+ * + * @param name Required. The resource name of the management DNS zone binding to delete. 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/managementDnsZoneBindings/my-management-dns-zone-binding` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - getHcxActivationKeyCallable() { - return stub.getHcxActivationKeyCallable(); + public final OperationFuture deleteManagementDnsZoneBindingAsync( + ManagementDnsZoneBindingName name) { + DeleteManagementDnsZoneBindingRequest request = + DeleteManagementDnsZoneBindingRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteManagementDnsZoneBindingAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieves a `NetworkPolicy` resource by its resource name. + * Deletes a `ManagementDnsZoneBinding` resource. When a management DNS zone binding is deleted, + * the corresponding consumer VPC network is no longer bound to the management DNS zone. * *

Sample code: * @@ -4707,26 +11184,31 @@ public final HcxActivationKey getHcxActivationKey(GetHcxActivationKeyRequest req * // - 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()) { - * NetworkPolicyName name = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); - * NetworkPolicy response = vmwareEngineClient.getNetworkPolicy(name); + * String name = + * ManagementDnsZoneBindingName.of( + * "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[MANAGEMENT_DNS_ZONE_BINDING]") + * .toString(); + * vmwareEngineClient.deleteManagementDnsZoneBindingAsync(name).get(); * } * } * - * @param name Required. The resource name of the network policy to retrieve. Resource names are - * schemeless URIs that follow the conventions in + * @param name Required. The resource name of the management DNS zone binding to delete. 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/networkPolicies/my-network-policy` + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/managementDnsZoneBindings/my-management-dns-zone-binding` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final NetworkPolicy getNetworkPolicy(NetworkPolicyName name) { - GetNetworkPolicyRequest request = - GetNetworkPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getNetworkPolicy(request); + public final OperationFuture deleteManagementDnsZoneBindingAsync( + String name) { + DeleteManagementDnsZoneBindingRequest request = + DeleteManagementDnsZoneBindingRequest.newBuilder().setName(name).build(); + return deleteManagementDnsZoneBindingAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieves a `NetworkPolicy` resource by its resource name. + * Deletes a `ManagementDnsZoneBinding` resource. When a management DNS zone binding is deleted, + * the corresponding consumer VPC network is no longer bound to the management DNS zone. * *

Sample code: * @@ -4737,25 +11219,33 @@ public final NetworkPolicy getNetworkPolicy(NetworkPolicyName name) { * // - 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 = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString(); - * NetworkPolicy response = vmwareEngineClient.getNetworkPolicy(name); + * DeleteManagementDnsZoneBindingRequest request = + * DeleteManagementDnsZoneBindingRequest.newBuilder() + * .setName( + * ManagementDnsZoneBindingName.of( + * "[PROJECT]", + * "[LOCATION]", + * "[PRIVATE_CLOUD]", + * "[MANAGEMENT_DNS_ZONE_BINDING]") + * .toString()) + * .setRequestId("requestId693933066") + * .build(); + * vmwareEngineClient.deleteManagementDnsZoneBindingAsync(request).get(); * } * } * - * @param name Required. The resource name of the network policy 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/networkPolicies/my-network-policy` + * @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 NetworkPolicy getNetworkPolicy(String name) { - GetNetworkPolicyRequest request = GetNetworkPolicyRequest.newBuilder().setName(name).build(); - return getNetworkPolicy(request); + public final OperationFuture deleteManagementDnsZoneBindingAsync( + DeleteManagementDnsZoneBindingRequest request) { + return deleteManagementDnsZoneBindingOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieves a `NetworkPolicy` resource by its resource name. + * Deletes a `ManagementDnsZoneBinding` resource. When a management DNS zone binding is deleted, + * the corresponding consumer VPC network is no longer bound to the management DNS zone. * *

Sample code: * @@ -4766,25 +11256,33 @@ public final NetworkPolicy getNetworkPolicy(String name) { * // - 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()) { - * GetNetworkPolicyRequest request = - * GetNetworkPolicyRequest.newBuilder() + * DeleteManagementDnsZoneBindingRequest request = + * DeleteManagementDnsZoneBindingRequest.newBuilder() * .setName( - * NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) + * ManagementDnsZoneBindingName.of( + * "[PROJECT]", + * "[LOCATION]", + * "[PRIVATE_CLOUD]", + * "[MANAGEMENT_DNS_ZONE_BINDING]") + * .toString()) + * .setRequestId("requestId693933066") * .build(); - * NetworkPolicy response = vmwareEngineClient.getNetworkPolicy(request); + * OperationFuture future = + * vmwareEngineClient.deleteManagementDnsZoneBindingOperationCallable().futureCall(request); + * // Do something. + * future.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 NetworkPolicy getNetworkPolicy(GetNetworkPolicyRequest request) { - return getNetworkPolicyCallable().call(request); + public final OperationCallable + deleteManagementDnsZoneBindingOperationCallable() { + return stub.deleteManagementDnsZoneBindingOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieves a `NetworkPolicy` resource by its resource name. + * Deletes a `ManagementDnsZoneBinding` resource. When a management DNS zone binding is deleted, + * the corresponding consumer VPC network is no longer bound to the management DNS zone. * *

Sample code: * @@ -4795,25 +11293,32 @@ public final NetworkPolicy getNetworkPolicy(GetNetworkPolicyRequest request) { * // - 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()) { - * GetNetworkPolicyRequest request = - * GetNetworkPolicyRequest.newBuilder() + * DeleteManagementDnsZoneBindingRequest request = + * DeleteManagementDnsZoneBindingRequest.newBuilder() * .setName( - * NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) + * ManagementDnsZoneBindingName.of( + * "[PROJECT]", + * "[LOCATION]", + * "[PRIVATE_CLOUD]", + * "[MANAGEMENT_DNS_ZONE_BINDING]") + * .toString()) + * .setRequestId("requestId693933066") * .build(); - * ApiFuture future = - * vmwareEngineClient.getNetworkPolicyCallable().futureCall(request); + * ApiFuture future = + * vmwareEngineClient.deleteManagementDnsZoneBindingCallable().futureCall(request); * // Do something. - * NetworkPolicy response = future.get(); + * future.get(); * } * } */ - public final UnaryCallable getNetworkPolicyCallable() { - return stub.getNetworkPolicyCallable(); + public final UnaryCallable + deleteManagementDnsZoneBindingCallable() { + return stub.deleteManagementDnsZoneBindingCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists `NetworkPolicy` resources in a specified project and location. + * Retries to create a `ManagementDnsZoneBinding` resource that is in failed state. * *

Sample code: * @@ -4824,30 +11329,32 @@ public final UnaryCallable getNetworkPol * // - 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 (NetworkPolicy element : vmwareEngineClient.listNetworkPolicies(parent).iterateAll()) { - * // doThingsWith(element); - * } + * ManagementDnsZoneBindingName name = + * ManagementDnsZoneBindingName.of( + * "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[MANAGEMENT_DNS_ZONE_BINDING]"); + * ManagementDnsZoneBinding response = + * vmwareEngineClient.repairManagementDnsZoneBindingAsync(name).get(); * } * } * - * @param parent Required. The resource name of the location (region) to query for network - * policies. Resource names are schemeless URIs that follow the conventions in + * @param name Required. The resource name of the management DNS zone binding to repair. 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` + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/managementDnsZoneBindings/my-management-dns-zone-binding` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNetworkPoliciesPagedResponse listNetworkPolicies(LocationName parent) { - ListNetworkPoliciesRequest request = - ListNetworkPoliciesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) + public final OperationFuture + repairManagementDnsZoneBindingAsync(ManagementDnsZoneBindingName name) { + RepairManagementDnsZoneBindingRequest request = + RepairManagementDnsZoneBindingRequest.newBuilder() + .setName(name == null ? null : name.toString()) .build(); - return listNetworkPolicies(request); + return repairManagementDnsZoneBindingAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists `NetworkPolicy` resources in a specified project and location. + * Retries to create a `ManagementDnsZoneBinding` resource that is in failed state. * *

Sample code: * @@ -4858,28 +11365,31 @@ public final ListNetworkPoliciesPagedResponse listNetworkPolicies(LocationName p * // - 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 (NetworkPolicy element : vmwareEngineClient.listNetworkPolicies(parent).iterateAll()) { - * // doThingsWith(element); - * } + * String name = + * ManagementDnsZoneBindingName.of( + * "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[MANAGEMENT_DNS_ZONE_BINDING]") + * .toString(); + * ManagementDnsZoneBinding response = + * vmwareEngineClient.repairManagementDnsZoneBindingAsync(name).get(); * } * } * - * @param parent Required. The resource name of the location (region) to query for network - * policies. Resource names are schemeless URIs that follow the conventions in + * @param name Required. The resource name of the management DNS zone binding to repair. 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` + * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/managementDnsZoneBindings/my-management-dns-zone-binding` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNetworkPoliciesPagedResponse listNetworkPolicies(String parent) { - ListNetworkPoliciesRequest request = - ListNetworkPoliciesRequest.newBuilder().setParent(parent).build(); - return listNetworkPolicies(request); + public final OperationFuture + repairManagementDnsZoneBindingAsync(String name) { + RepairManagementDnsZoneBindingRequest request = + RepairManagementDnsZoneBindingRequest.newBuilder().setName(name).build(); + return repairManagementDnsZoneBindingAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists `NetworkPolicy` resources in a specified project and location. + * Retries to create a `ManagementDnsZoneBinding` resource that is in failed state. * *

Sample code: * @@ -4890,31 +11400,33 @@ public final ListNetworkPoliciesPagedResponse listNetworkPolicies(String parent) * // - 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()) { - * ListNetworkPoliciesRequest request = - * ListNetworkPoliciesRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") + * RepairManagementDnsZoneBindingRequest request = + * RepairManagementDnsZoneBindingRequest.newBuilder() + * .setName( + * ManagementDnsZoneBindingName.of( + * "[PROJECT]", + * "[LOCATION]", + * "[PRIVATE_CLOUD]", + * "[MANAGEMENT_DNS_ZONE_BINDING]") + * .toString()) + * .setRequestId("requestId693933066") * .build(); - * for (NetworkPolicy element : vmwareEngineClient.listNetworkPolicies(request).iterateAll()) { - * // doThingsWith(element); - * } + * ManagementDnsZoneBinding response = + * vmwareEngineClient.repairManagementDnsZoneBindingAsync(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 ListNetworkPoliciesPagedResponse listNetworkPolicies( - ListNetworkPoliciesRequest request) { - return listNetworkPoliciesPagedCallable().call(request); + public final OperationFuture + repairManagementDnsZoneBindingAsync(RepairManagementDnsZoneBindingRequest request) { + return repairManagementDnsZoneBindingOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists `NetworkPolicy` resources in a specified project and location. + * Retries to create a `ManagementDnsZoneBinding` resource that is in failed state. * *

Sample code: * @@ -4925,31 +11437,33 @@ public final ListNetworkPoliciesPagedResponse listNetworkPolicies( * // - 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()) { - * ListNetworkPoliciesRequest request = - * ListNetworkPoliciesRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") + * RepairManagementDnsZoneBindingRequest request = + * RepairManagementDnsZoneBindingRequest.newBuilder() + * .setName( + * ManagementDnsZoneBindingName.of( + * "[PROJECT]", + * "[LOCATION]", + * "[PRIVATE_CLOUD]", + * "[MANAGEMENT_DNS_ZONE_BINDING]") + * .toString()) + * .setRequestId("requestId693933066") * .build(); - * ApiFuture future = - * vmwareEngineClient.listNetworkPoliciesPagedCallable().futureCall(request); + * OperationFuture future = + * vmwareEngineClient.repairManagementDnsZoneBindingOperationCallable().futureCall(request); * // Do something. - * for (NetworkPolicy element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * ManagementDnsZoneBinding response = future.get(); * } * } */ - public final UnaryCallable - listNetworkPoliciesPagedCallable() { - return stub.listNetworkPoliciesPagedCallable(); + public final OperationCallable< + RepairManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + repairManagementDnsZoneBindingOperationCallable() { + return stub.repairManagementDnsZoneBindingOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists `NetworkPolicy` resources in a specified project and location. + * Retries to create a `ManagementDnsZoneBinding` resource that is in failed state. * *

Sample code: * @@ -4960,40 +11474,32 @@ public final ListNetworkPoliciesPagedResponse listNetworkPolicies( * // - 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()) { - * ListNetworkPoliciesRequest request = - * ListNetworkPoliciesRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") + * RepairManagementDnsZoneBindingRequest request = + * RepairManagementDnsZoneBindingRequest.newBuilder() + * .setName( + * ManagementDnsZoneBindingName.of( + * "[PROJECT]", + * "[LOCATION]", + * "[PRIVATE_CLOUD]", + * "[MANAGEMENT_DNS_ZONE_BINDING]") + * .toString()) + * .setRequestId("requestId693933066") * .build(); - * while (true) { - * ListNetworkPoliciesResponse response = - * vmwareEngineClient.listNetworkPoliciesCallable().call(request); - * for (NetworkPolicy element : response.getNetworkPoliciesList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * ApiFuture future = + * vmwareEngineClient.repairManagementDnsZoneBindingCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); * } * } */ - public final UnaryCallable - listNetworkPoliciesCallable() { - return stub.listNetworkPoliciesCallable(); + public final UnaryCallable + repairManagementDnsZoneBindingCallable() { + return stub.repairManagementDnsZoneBindingCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new network policy in a given VMware Engine network of a project and location - * (region). A new network policy cannot be created if another network policy already exists in - * the same scope. + * Creates a new VMware Engine network that can be used by a private cloud. * *

Sample code: * @@ -5005,23 +11511,29 @@ public final ListNetworkPoliciesPagedResponse listNetworkPolicies( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); - * String networkPolicyId = "networkPolicyId-727262661"; - * NetworkPolicy response = - * vmwareEngineClient.createNetworkPolicyAsync(parent, networkPolicy, networkPolicyId).get(); + * VmwareEngineNetwork vmwareEngineNetwork = VmwareEngineNetwork.newBuilder().build(); + * String vmwareEngineNetworkId = "vmwareEngineNetworkId532532083"; + * VmwareEngineNetwork response = + * vmwareEngineClient + * .createVmwareEngineNetworkAsync(parent, vmwareEngineNetwork, vmwareEngineNetworkId) + * .get(); * } * } * - * @param parent Required. The resource name of the location (region) to create the new network - * policy in. 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 networkPolicy Required. The network policy configuration to use in the request. - * @param networkPolicyId Required. The user-provided identifier of the network policy to be - * created. This identifier must be unique within parent - * `projects/{my-project}/locations/{us-central1}/networkPolicies` and becomes the final token - * in the name URI. The identifier must meet the following requirements: + * @param parent Required. The resource name of the location to create the new VMware Engine + * network in. A VMware Engine network of type `LEGACY` is a regional resource, and a VMware + * Engine network of type `STANDARD` is a global 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/global` + * @param vmwareEngineNetwork Required. The initial description of the new VMware Engine network. + * @param vmwareEngineNetworkId Required. The user-provided identifier of the new VMware Engine + * network. This identifier must be unique among VMware Engine network resources within the + * parent and becomes the final token in the name URI. The identifier must meet the following + * requirements: *

    + *
  • For networks of type LEGACY, adheres to the format: `{region-id}-default`. Replace + * `{region-id}` with the region where you want to create the VMware Engine network. For + * example, "us-central1-default". *
  • Only contains 1-63 alphanumeric characters and hyphens *
  • Begins with an alphabetical character *
  • Ends with a non-hyphen character @@ -5031,22 +11543,23 @@ public final ListNetworkPoliciesPagedResponse listNetworkPolicies( * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createNetworkPolicyAsync( - LocationName parent, NetworkPolicy networkPolicy, String networkPolicyId) { - CreateNetworkPolicyRequest request = - CreateNetworkPolicyRequest.newBuilder() + public final OperationFuture + createVmwareEngineNetworkAsync( + LocationName parent, + VmwareEngineNetwork vmwareEngineNetwork, + String vmwareEngineNetworkId) { + CreateVmwareEngineNetworkRequest request = + CreateVmwareEngineNetworkRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) - .setNetworkPolicy(networkPolicy) - .setNetworkPolicyId(networkPolicyId) + .setVmwareEngineNetwork(vmwareEngineNetwork) + .setVmwareEngineNetworkId(vmwareEngineNetworkId) .build(); - return createNetworkPolicyAsync(request); + return createVmwareEngineNetworkAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new network policy in a given VMware Engine network of a project and location - * (region). A new network policy cannot be created if another network policy already exists in - * the same scope. + * Creates a new VMware Engine network that can be used by a private cloud. * *

    Sample code: * @@ -5058,23 +11571,29 @@ public final OperationFuture createNetworkPoli * // 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(); - * NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); - * String networkPolicyId = "networkPolicyId-727262661"; - * NetworkPolicy response = - * vmwareEngineClient.createNetworkPolicyAsync(parent, networkPolicy, networkPolicyId).get(); + * VmwareEngineNetwork vmwareEngineNetwork = VmwareEngineNetwork.newBuilder().build(); + * String vmwareEngineNetworkId = "vmwareEngineNetworkId532532083"; + * VmwareEngineNetwork response = + * vmwareEngineClient + * .createVmwareEngineNetworkAsync(parent, vmwareEngineNetwork, vmwareEngineNetworkId) + * .get(); * } * } * - * @param parent Required. The resource name of the location (region) to create the new network - * policy in. 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 networkPolicy Required. The network policy configuration to use in the request. - * @param networkPolicyId Required. The user-provided identifier of the network policy to be - * created. This identifier must be unique within parent - * `projects/{my-project}/locations/{us-central1}/networkPolicies` and becomes the final token - * in the name URI. The identifier must meet the following requirements: + * @param parent Required. The resource name of the location to create the new VMware Engine + * network in. A VMware Engine network of type `LEGACY` is a regional resource, and a VMware + * Engine network of type `STANDARD` is a global 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/global` + * @param vmwareEngineNetwork Required. The initial description of the new VMware Engine network. + * @param vmwareEngineNetworkId Required. The user-provided identifier of the new VMware Engine + * network. This identifier must be unique among VMware Engine network resources within the + * parent and becomes the final token in the name URI. The identifier must meet the following + * requirements: *

      + *
    • For networks of type LEGACY, adheres to the format: `{region-id}-default`. Replace + * `{region-id}` with the region where you want to create the VMware Engine network. For + * example, "us-central1-default". *
    • Only contains 1-63 alphanumeric characters and hyphens *
    • Begins with an alphabetical character *
    • Ends with a non-hyphen character @@ -5083,23 +11602,22 @@ public final OperationFuture createNetworkPoli *
    * * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createNetworkPolicyAsync( - String parent, NetworkPolicy networkPolicy, String networkPolicyId) { - CreateNetworkPolicyRequest request = - CreateNetworkPolicyRequest.newBuilder() + */ + public final OperationFuture + createVmwareEngineNetworkAsync( + String parent, VmwareEngineNetwork vmwareEngineNetwork, String vmwareEngineNetworkId) { + CreateVmwareEngineNetworkRequest request = + CreateVmwareEngineNetworkRequest.newBuilder() .setParent(parent) - .setNetworkPolicy(networkPolicy) - .setNetworkPolicyId(networkPolicyId) + .setVmwareEngineNetwork(vmwareEngineNetwork) + .setVmwareEngineNetworkId(vmwareEngineNetworkId) .build(); - return createNetworkPolicyAsync(request); + return createVmwareEngineNetworkAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new network policy in a given VMware Engine network of a project and location - * (region). A new network policy cannot be created if another network policy already exists in - * the same scope. + * Creates a new VMware Engine network that can be used by a private cloud. * *

    Sample code: * @@ -5110,30 +11628,29 @@ public final OperationFuture createNetworkPoli * // - 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()) { - * CreateNetworkPolicyRequest request = - * CreateNetworkPolicyRequest.newBuilder() + * CreateVmwareEngineNetworkRequest request = + * CreateVmwareEngineNetworkRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setNetworkPolicyId("networkPolicyId-727262661") - * .setNetworkPolicy(NetworkPolicy.newBuilder().build()) + * .setVmwareEngineNetworkId("vmwareEngineNetworkId532532083") + * .setVmwareEngineNetwork(VmwareEngineNetwork.newBuilder().build()) * .setRequestId("requestId693933066") * .build(); - * NetworkPolicy response = vmwareEngineClient.createNetworkPolicyAsync(request).get(); + * VmwareEngineNetwork response = + * vmwareEngineClient.createVmwareEngineNetworkAsync(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 createNetworkPolicyAsync( - CreateNetworkPolicyRequest request) { - return createNetworkPolicyOperationCallable().futureCall(request); + public final OperationFuture + createVmwareEngineNetworkAsync(CreateVmwareEngineNetworkRequest request) { + return createVmwareEngineNetworkOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new network policy in a given VMware Engine network of a project and location - * (region). A new network policy cannot be created if another network policy already exists in - * the same scope. + * Creates a new VMware Engine network that can be used by a private cloud. * *

    Sample code: * @@ -5144,30 +11661,29 @@ public final OperationFuture createNetworkPoli * // - 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()) { - * CreateNetworkPolicyRequest request = - * CreateNetworkPolicyRequest.newBuilder() + * CreateVmwareEngineNetworkRequest request = + * CreateVmwareEngineNetworkRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setNetworkPolicyId("networkPolicyId-727262661") - * .setNetworkPolicy(NetworkPolicy.newBuilder().build()) + * .setVmwareEngineNetworkId("vmwareEngineNetworkId532532083") + * .setVmwareEngineNetwork(VmwareEngineNetwork.newBuilder().build()) * .setRequestId("requestId693933066") * .build(); - * OperationFuture future = - * vmwareEngineClient.createNetworkPolicyOperationCallable().futureCall(request); + * OperationFuture future = + * vmwareEngineClient.createVmwareEngineNetworkOperationCallable().futureCall(request); * // Do something. - * NetworkPolicy response = future.get(); + * VmwareEngineNetwork response = future.get(); * } * } */ - public final OperationCallable - createNetworkPolicyOperationCallable() { - return stub.createNetworkPolicyOperationCallable(); + public final OperationCallable< + CreateVmwareEngineNetworkRequest, VmwareEngineNetwork, OperationMetadata> + createVmwareEngineNetworkOperationCallable() { + return stub.createVmwareEngineNetworkOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new network policy in a given VMware Engine network of a project and location - * (region). A new network policy cannot be created if another network policy already exists in - * the same scope. + * Creates a new VMware Engine network that can be used by a private cloud. * *

    Sample code: * @@ -5178,35 +11694,29 @@ public final OperationFuture createNetworkPoli * // - 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()) { - * CreateNetworkPolicyRequest request = - * CreateNetworkPolicyRequest.newBuilder() + * CreateVmwareEngineNetworkRequest request = + * CreateVmwareEngineNetworkRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setNetworkPolicyId("networkPolicyId-727262661") - * .setNetworkPolicy(NetworkPolicy.newBuilder().build()) + * .setVmwareEngineNetworkId("vmwareEngineNetworkId532532083") + * .setVmwareEngineNetwork(VmwareEngineNetwork.newBuilder().build()) * .setRequestId("requestId693933066") * .build(); * ApiFuture future = - * vmwareEngineClient.createNetworkPolicyCallable().futureCall(request); + * vmwareEngineClient.createVmwareEngineNetworkCallable().futureCall(request); * // Do something. * Operation response = future.get(); * } * } */ - public final UnaryCallable createNetworkPolicyCallable() { - return stub.createNetworkPolicyCallable(); + public final UnaryCallable + createVmwareEngineNetworkCallable() { + return stub.createVmwareEngineNetworkCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Modifies a `NetworkPolicy` resource. Only the following fields can be updated: - * `internet_access`, `external_ip`, `edge_services_cidr`. Only fields specified in `updateMask` - * are applied. When updating a network policy, the external IP network service can only be - * disabled if there are no external IP addresses present in the scope of the policy. Also, a - * `NetworkService` cannot be updated when `NetworkService.state` is set to `RECONCILING`. - * - *

    During operation processing, the resource is temporarily in the `ACTIVE` state before the - * operation fully completes. For that period of time, you can't update the resource. Use the - * operation status to determine when the processing fully completes. + * Modifies a VMware Engine network resource. Only the following fields can be updated: + * `description`. Only fields specified in `updateMask` are applied. * *

    Sample code: * @@ -5217,41 +11727,36 @@ public final UnaryCallable createNetworkP * // - 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()) { - * NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); + * VmwareEngineNetwork vmwareEngineNetwork = VmwareEngineNetwork.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); - * NetworkPolicy response = - * vmwareEngineClient.updateNetworkPolicyAsync(networkPolicy, updateMask).get(); + * VmwareEngineNetwork response = + * vmwareEngineClient.updateVmwareEngineNetworkAsync(vmwareEngineNetwork, updateMask).get(); * } * } * - * @param networkPolicy Required. Network policy description. + * @param vmwareEngineNetwork Required. VMware Engine network description. * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the - * `NetworkPolicy` resource by the update. The fields specified in the `update_mask` are + * VMware Engine network 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. + * mask. If the user does not provide a mask then all fields will be overwritten. Only the + * following fields can be updated: `description`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture updateNetworkPolicyAsync( - NetworkPolicy networkPolicy, FieldMask updateMask) { - UpdateNetworkPolicyRequest request = - UpdateNetworkPolicyRequest.newBuilder() - .setNetworkPolicy(networkPolicy) + public final OperationFuture + updateVmwareEngineNetworkAsync( + VmwareEngineNetwork vmwareEngineNetwork, FieldMask updateMask) { + UpdateVmwareEngineNetworkRequest request = + UpdateVmwareEngineNetworkRequest.newBuilder() + .setVmwareEngineNetwork(vmwareEngineNetwork) .setUpdateMask(updateMask) .build(); - return updateNetworkPolicyAsync(request); + return updateVmwareEngineNetworkAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Modifies a `NetworkPolicy` resource. Only the following fields can be updated: - * `internet_access`, `external_ip`, `edge_services_cidr`. Only fields specified in `updateMask` - * are applied. When updating a network policy, the external IP network service can only be - * disabled if there are no external IP addresses present in the scope of the policy. Also, a - * `NetworkService` cannot be updated when `NetworkService.state` is set to `RECONCILING`. - * - *

    During operation processing, the resource is temporarily in the `ACTIVE` state before the - * operation fully completes. For that period of time, you can't update the resource. Use the - * operation status to determine when the processing fully completes. + * Modifies a VMware Engine network resource. Only the following fields can be updated: + * `description`. Only fields specified in `updateMask` are applied. * *

    Sample code: * @@ -5262,35 +11767,29 @@ public final OperationFuture updateNetworkPoli * // - 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()) { - * UpdateNetworkPolicyRequest request = - * UpdateNetworkPolicyRequest.newBuilder() - * .setNetworkPolicy(NetworkPolicy.newBuilder().build()) + * UpdateVmwareEngineNetworkRequest request = + * UpdateVmwareEngineNetworkRequest.newBuilder() + * .setVmwareEngineNetwork(VmwareEngineNetwork.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .setRequestId("requestId693933066") * .build(); - * NetworkPolicy response = vmwareEngineClient.updateNetworkPolicyAsync(request).get(); + * VmwareEngineNetwork response = + * vmwareEngineClient.updateVmwareEngineNetworkAsync(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 updateNetworkPolicyAsync( - UpdateNetworkPolicyRequest request) { - return updateNetworkPolicyOperationCallable().futureCall(request); + public final OperationFuture + updateVmwareEngineNetworkAsync(UpdateVmwareEngineNetworkRequest request) { + return updateVmwareEngineNetworkOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Modifies a `NetworkPolicy` resource. Only the following fields can be updated: - * `internet_access`, `external_ip`, `edge_services_cidr`. Only fields specified in `updateMask` - * are applied. When updating a network policy, the external IP network service can only be - * disabled if there are no external IP addresses present in the scope of the policy. Also, a - * `NetworkService` cannot be updated when `NetworkService.state` is set to `RECONCILING`. - * - *

    During operation processing, the resource is temporarily in the `ACTIVE` state before the - * operation fully completes. For that period of time, you can't update the resource. Use the - * operation status to determine when the processing fully completes. + * Modifies a VMware Engine network resource. Only the following fields can be updated: + * `description`. Only fields specified in `updateMask` are applied. * *

    Sample code: * @@ -5301,35 +11800,29 @@ public final OperationFuture updateNetworkPoli * // - 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()) { - * UpdateNetworkPolicyRequest request = - * UpdateNetworkPolicyRequest.newBuilder() - * .setNetworkPolicy(NetworkPolicy.newBuilder().build()) + * UpdateVmwareEngineNetworkRequest request = + * UpdateVmwareEngineNetworkRequest.newBuilder() + * .setVmwareEngineNetwork(VmwareEngineNetwork.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .setRequestId("requestId693933066") * .build(); - * OperationFuture future = - * vmwareEngineClient.updateNetworkPolicyOperationCallable().futureCall(request); + * OperationFuture future = + * vmwareEngineClient.updateVmwareEngineNetworkOperationCallable().futureCall(request); * // Do something. - * NetworkPolicy response = future.get(); + * VmwareEngineNetwork response = future.get(); * } * } */ - public final OperationCallable - updateNetworkPolicyOperationCallable() { - return stub.updateNetworkPolicyOperationCallable(); + public final OperationCallable< + UpdateVmwareEngineNetworkRequest, VmwareEngineNetwork, OperationMetadata> + updateVmwareEngineNetworkOperationCallable() { + return stub.updateVmwareEngineNetworkOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Modifies a `NetworkPolicy` resource. Only the following fields can be updated: - * `internet_access`, `external_ip`, `edge_services_cidr`. Only fields specified in `updateMask` - * are applied. When updating a network policy, the external IP network service can only be - * disabled if there are no external IP addresses present in the scope of the policy. Also, a - * `NetworkService` cannot be updated when `NetworkService.state` is set to `RECONCILING`. - * - *

    During operation processing, the resource is temporarily in the `ACTIVE` state before the - * operation fully completes. For that period of time, you can't update the resource. Use the - * operation status to determine when the processing fully completes. + * Modifies a VMware Engine network resource. Only the following fields can be updated: + * `description`. Only fields specified in `updateMask` are applied. * *

    Sample code: * @@ -5340,28 +11833,29 @@ public final OperationFuture updateNetworkPoli * // - 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()) { - * UpdateNetworkPolicyRequest request = - * UpdateNetworkPolicyRequest.newBuilder() - * .setNetworkPolicy(NetworkPolicy.newBuilder().build()) + * UpdateVmwareEngineNetworkRequest request = + * UpdateVmwareEngineNetworkRequest.newBuilder() + * .setVmwareEngineNetwork(VmwareEngineNetwork.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .setRequestId("requestId693933066") * .build(); * ApiFuture future = - * vmwareEngineClient.updateNetworkPolicyCallable().futureCall(request); + * vmwareEngineClient.updateVmwareEngineNetworkCallable().futureCall(request); * // Do something. * Operation response = future.get(); * } * } */ - public final UnaryCallable updateNetworkPolicyCallable() { - return stub.updateNetworkPolicyCallable(); + public final UnaryCallable + updateVmwareEngineNetworkCallable() { + return stub.updateVmwareEngineNetworkCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * 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. + * 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. * *

    Sample code: * @@ -5372,31 +11866,32 @@ public final UnaryCallable updateNetworkP * // - 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()) { - * NetworkPolicyName name = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); - * vmwareEngineClient.deleteNetworkPolicyAsync(name).get(); + * VmwareEngineNetworkName name = + * VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]"); + * vmwareEngineClient.deleteVmwareEngineNetworkAsync(name).get(); * } * } * - * @param name Required. The resource name of the network policy to delete. Resource names are - * schemeless URIs that follow the conventions in + * @param name Required. The resource name of the VMware Engine network 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/networkPolicies/my-network-policy` + * `projects/my-project/locations/global/vmwareEngineNetworks/my-network` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteNetworkPolicyAsync( - NetworkPolicyName name) { - DeleteNetworkPolicyRequest request = - DeleteNetworkPolicyRequest.newBuilder() + public final OperationFuture deleteVmwareEngineNetworkAsync( + VmwareEngineNetworkName name) { + DeleteVmwareEngineNetworkRequest request = + DeleteVmwareEngineNetworkRequest.newBuilder() .setName(name == null ? null : name.toString()) .build(); - return deleteNetworkPolicyAsync(request); + return deleteVmwareEngineNetworkAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * 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. + * 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. * *

    Sample code: * @@ -5407,28 +11902,31 @@ public final OperationFuture deleteNetworkPolicyAsync( * // - 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 = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString(); - * vmwareEngineClient.deleteNetworkPolicyAsync(name).get(); + * String name = + * VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + * .toString(); + * vmwareEngineClient.deleteVmwareEngineNetworkAsync(name).get(); * } * } * - * @param name Required. The resource name of the network policy to delete. Resource names are - * schemeless URIs that follow the conventions in + * @param name Required. The resource name of the VMware Engine network 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/networkPolicies/my-network-policy` + * `projects/my-project/locations/global/vmwareEngineNetworks/my-network` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteNetworkPolicyAsync(String name) { - DeleteNetworkPolicyRequest request = - DeleteNetworkPolicyRequest.newBuilder().setName(name).build(); - return deleteNetworkPolicyAsync(request); + public final OperationFuture deleteVmwareEngineNetworkAsync( + String name) { + DeleteVmwareEngineNetworkRequest request = + DeleteVmwareEngineNetworkRequest.newBuilder().setName(name).build(); + return deleteVmwareEngineNetworkAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * 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. + * 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. * *

    Sample code: * @@ -5439,29 +11937,31 @@ public final OperationFuture deleteNetworkPolicyAsync( * // - 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()) { - * DeleteNetworkPolicyRequest request = - * DeleteNetworkPolicyRequest.newBuilder() + * DeleteVmwareEngineNetworkRequest request = + * DeleteVmwareEngineNetworkRequest.newBuilder() * .setName( - * NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) + * VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + * .toString()) * .setRequestId("requestId693933066") + * .setEtag("etag3123477") * .build(); - * vmwareEngineClient.deleteNetworkPolicyAsync(request).get(); + * vmwareEngineClient.deleteVmwareEngineNetworkAsync(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 deleteNetworkPolicyAsync( - DeleteNetworkPolicyRequest request) { - return deleteNetworkPolicyOperationCallable().futureCall(request); + public final OperationFuture deleteVmwareEngineNetworkAsync( + DeleteVmwareEngineNetworkRequest request) { + return deleteVmwareEngineNetworkOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * 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. + * 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. * *

    Sample code: * @@ -5472,29 +11972,31 @@ public final OperationFuture deleteNetworkPolicyAsync( * // - 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()) { - * DeleteNetworkPolicyRequest request = - * DeleteNetworkPolicyRequest.newBuilder() + * DeleteVmwareEngineNetworkRequest request = + * DeleteVmwareEngineNetworkRequest.newBuilder() * .setName( - * NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) + * VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + * .toString()) * .setRequestId("requestId693933066") + * .setEtag("etag3123477") * .build(); * OperationFuture future = - * vmwareEngineClient.deleteNetworkPolicyOperationCallable().futureCall(request); + * vmwareEngineClient.deleteVmwareEngineNetworkOperationCallable().futureCall(request); * // Do something. * future.get(); * } * } */ - public final OperationCallable - deleteNetworkPolicyOperationCallable() { - return stub.deleteNetworkPolicyOperationCallable(); + public final OperationCallable + deleteVmwareEngineNetworkOperationCallable() { + return stub.deleteVmwareEngineNetworkOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * 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. + * 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. * *

    Sample code: * @@ -5505,26 +12007,31 @@ public final OperationFuture deleteNetworkPolicyAsync( * // - 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()) { - * DeleteNetworkPolicyRequest request = - * DeleteNetworkPolicyRequest.newBuilder() + * DeleteVmwareEngineNetworkRequest request = + * DeleteVmwareEngineNetworkRequest.newBuilder() * .setName( - * NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) + * VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + * .toString()) * .setRequestId("requestId693933066") + * .setEtag("etag3123477") * .build(); * ApiFuture future = - * vmwareEngineClient.deleteNetworkPolicyCallable().futureCall(request); + * vmwareEngineClient.deleteVmwareEngineNetworkCallable().futureCall(request); * // Do something. * future.get(); * } * } */ - public final UnaryCallable deleteNetworkPolicyCallable() { - return stub.deleteNetworkPolicyCallable(); + public final UnaryCallable + deleteVmwareEngineNetworkCallable() { + return stub.deleteVmwareEngineNetworkCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new VMware Engine network that can be used by a private cloud. + * 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`). * *

    Sample code: * @@ -5535,56 +12042,31 @@ public final UnaryCallable deleteNetworkP * // - 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]"); - * VmwareEngineNetwork vmwareEngineNetwork = VmwareEngineNetwork.newBuilder().build(); - * String vmwareEngineNetworkId = "vmwareEngineNetworkId532532083"; - * VmwareEngineNetwork response = - * vmwareEngineClient - * .createVmwareEngineNetworkAsync(parent, vmwareEngineNetwork, vmwareEngineNetworkId) - * .get(); + * VmwareEngineNetworkName name = + * VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]"); + * VmwareEngineNetwork response = vmwareEngineClient.getVmwareEngineNetwork(name); * } * } * - * @param parent Required. The resource name of the location to create the new VMware Engine - * network in. A VMware Engine network of type `LEGACY` is a regional resource, and a VMware - * Engine network of type `STANDARD` is a global 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/global` - * @param vmwareEngineNetwork Required. The initial description of the new VMware Engine network. - * @param vmwareEngineNetworkId Required. The user-provided identifier of the new VMware Engine - * network. This identifier must be unique among VMware Engine network resources within the - * parent and becomes the final token in the name URI. The identifier must meet the following - * requirements: - *

      - *
    • For networks of type LEGACY, adheres to the format: `{region-id}-default`. Replace - * `{region-id}` with the region where you want to create the VMware Engine network. For - * example, "us-central1-default". - *
    • 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) - *
    - * + * @param name Required. The resource name of the VMware Engine network 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/global/vmwareEngineNetworks/my-network` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture - createVmwareEngineNetworkAsync( - LocationName parent, - VmwareEngineNetwork vmwareEngineNetwork, - String vmwareEngineNetworkId) { - CreateVmwareEngineNetworkRequest request = - CreateVmwareEngineNetworkRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setVmwareEngineNetwork(vmwareEngineNetwork) - .setVmwareEngineNetworkId(vmwareEngineNetworkId) + public final VmwareEngineNetwork getVmwareEngineNetwork(VmwareEngineNetworkName name) { + GetVmwareEngineNetworkRequest request = + GetVmwareEngineNetworkRequest.newBuilder() + .setName(name == null ? null : name.toString()) .build(); - return createVmwareEngineNetworkAsync(request); + return getVmwareEngineNetwork(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new VMware Engine network that can be used by a private cloud. + * 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`). * *

    Sample code: * @@ -5595,54 +12077,30 @@ public final UnaryCallable deleteNetworkP * // - 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(); - * VmwareEngineNetwork vmwareEngineNetwork = VmwareEngineNetwork.newBuilder().build(); - * String vmwareEngineNetworkId = "vmwareEngineNetworkId532532083"; - * VmwareEngineNetwork response = - * vmwareEngineClient - * .createVmwareEngineNetworkAsync(parent, vmwareEngineNetwork, vmwareEngineNetworkId) - * .get(); + * String name = + * VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + * .toString(); + * VmwareEngineNetwork response = vmwareEngineClient.getVmwareEngineNetwork(name); * } * } * - * @param parent Required. The resource name of the location to create the new VMware Engine - * network in. A VMware Engine network of type `LEGACY` is a regional resource, and a VMware - * Engine network of type `STANDARD` is a global 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/global` - * @param vmwareEngineNetwork Required. The initial description of the new VMware Engine network. - * @param vmwareEngineNetworkId Required. The user-provided identifier of the new VMware Engine - * network. This identifier must be unique among VMware Engine network resources within the - * parent and becomes the final token in the name URI. The identifier must meet the following - * requirements: - *

      - *
    • For networks of type LEGACY, adheres to the format: `{region-id}-default`. Replace - * `{region-id}` with the region where you want to create the VMware Engine network. For - * example, "us-central1-default". - *
    • 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) - *
    - * + * @param name Required. The resource name of the VMware Engine network 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/global/vmwareEngineNetworks/my-network` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture - createVmwareEngineNetworkAsync( - String parent, VmwareEngineNetwork vmwareEngineNetwork, String vmwareEngineNetworkId) { - CreateVmwareEngineNetworkRequest request = - CreateVmwareEngineNetworkRequest.newBuilder() - .setParent(parent) - .setVmwareEngineNetwork(vmwareEngineNetwork) - .setVmwareEngineNetworkId(vmwareEngineNetworkId) - .build(); - return createVmwareEngineNetworkAsync(request); + public final VmwareEngineNetwork getVmwareEngineNetwork(String name) { + GetVmwareEngineNetworkRequest request = + GetVmwareEngineNetworkRequest.newBuilder().setName(name).build(); + return getVmwareEngineNetwork(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new VMware Engine network that can be used by a private cloud. + * 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`). * *

    Sample code: * @@ -5653,29 +12111,28 @@ public final UnaryCallable deleteNetworkP * // - 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()) { - * CreateVmwareEngineNetworkRequest request = - * CreateVmwareEngineNetworkRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setVmwareEngineNetworkId("vmwareEngineNetworkId532532083") - * .setVmwareEngineNetwork(VmwareEngineNetwork.newBuilder().build()) - * .setRequestId("requestId693933066") + * GetVmwareEngineNetworkRequest request = + * GetVmwareEngineNetworkRequest.newBuilder() + * .setName( + * VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + * .toString()) * .build(); - * VmwareEngineNetwork response = - * vmwareEngineClient.createVmwareEngineNetworkAsync(request).get(); + * VmwareEngineNetwork response = vmwareEngineClient.getVmwareEngineNetwork(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 OperationFuture - createVmwareEngineNetworkAsync(CreateVmwareEngineNetworkRequest request) { - return createVmwareEngineNetworkOperationCallable().futureCall(request); + public final VmwareEngineNetwork getVmwareEngineNetwork(GetVmwareEngineNetworkRequest request) { + return getVmwareEngineNetworkCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new VMware Engine network that can be used by a private cloud. + * 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`). * *

    Sample code: * @@ -5686,29 +12143,27 @@ public final UnaryCallable deleteNetworkP * // - 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()) { - * CreateVmwareEngineNetworkRequest request = - * CreateVmwareEngineNetworkRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setVmwareEngineNetworkId("vmwareEngineNetworkId532532083") - * .setVmwareEngineNetwork(VmwareEngineNetwork.newBuilder().build()) - * .setRequestId("requestId693933066") + * GetVmwareEngineNetworkRequest request = + * GetVmwareEngineNetworkRequest.newBuilder() + * .setName( + * VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + * .toString()) * .build(); - * OperationFuture future = - * vmwareEngineClient.createVmwareEngineNetworkOperationCallable().futureCall(request); + * ApiFuture future = + * vmwareEngineClient.getVmwareEngineNetworkCallable().futureCall(request); * // Do something. * VmwareEngineNetwork response = future.get(); * } * } */ - public final OperationCallable< - CreateVmwareEngineNetworkRequest, VmwareEngineNetwork, OperationMetadata> - createVmwareEngineNetworkOperationCallable() { - return stub.createVmwareEngineNetworkOperationCallable(); + public final UnaryCallable + getVmwareEngineNetworkCallable() { + return stub.getVmwareEngineNetworkCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new VMware Engine network that can be used by a private cloud. + * Lists `VmwareEngineNetwork` resources in a given project and location. * *

    Sample code: * @@ -5719,29 +12174,31 @@ public final UnaryCallable deleteNetworkP * // - 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()) { - * CreateVmwareEngineNetworkRequest request = - * CreateVmwareEngineNetworkRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setVmwareEngineNetworkId("vmwareEngineNetworkId532532083") - * .setVmwareEngineNetwork(VmwareEngineNetwork.newBuilder().build()) - * .setRequestId("requestId693933066") - * .build(); - * ApiFuture future = - * vmwareEngineClient.createVmwareEngineNetworkCallable().futureCall(request); - * // Do something. - * Operation response = future.get(); + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * for (VmwareEngineNetwork element : + * vmwareEngineClient.listVmwareEngineNetworks(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } + * + * @param parent Required. The resource name of the location to query for VMware Engine networks. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/global` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - createVmwareEngineNetworkCallable() { - return stub.createVmwareEngineNetworkCallable(); + public final ListVmwareEngineNetworksPagedResponse listVmwareEngineNetworks(LocationName parent) { + ListVmwareEngineNetworksRequest request = + ListVmwareEngineNetworksRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listVmwareEngineNetworks(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Modifies a VMware Engine network resource. Only the following fields can be updated: - * `description`. Only fields specified in `updateMask` are applied. + * Lists `VmwareEngineNetwork` resources in a given project and location. * *

    Sample code: * @@ -5751,37 +12208,30 @@ public final UnaryCallable deleteNetworkP * // - 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()) { - * VmwareEngineNetwork vmwareEngineNetwork = VmwareEngineNetwork.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * VmwareEngineNetwork response = - * vmwareEngineClient.updateVmwareEngineNetworkAsync(vmwareEngineNetwork, updateMask).get(); + * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * for (VmwareEngineNetwork element : + * vmwareEngineClient.listVmwareEngineNetworks(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param vmwareEngineNetwork Required. VMware Engine network description. - * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the - * VMware Engine network 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. Only the - * following fields can be updated: `description`. + * @param parent Required. The resource name of the location to query for VMware Engine networks. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/global` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture - updateVmwareEngineNetworkAsync( - VmwareEngineNetwork vmwareEngineNetwork, FieldMask updateMask) { - UpdateVmwareEngineNetworkRequest request = - UpdateVmwareEngineNetworkRequest.newBuilder() - .setVmwareEngineNetwork(vmwareEngineNetwork) - .setUpdateMask(updateMask) - .build(); - return updateVmwareEngineNetworkAsync(request); + public final ListVmwareEngineNetworksPagedResponse listVmwareEngineNetworks(String parent) { + ListVmwareEngineNetworksRequest request = + ListVmwareEngineNetworksRequest.newBuilder().setParent(parent).build(); + return listVmwareEngineNetworks(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Modifies a VMware Engine network resource. Only the following fields can be updated: - * `description`. Only fields specified in `updateMask` are applied. + * Lists `VmwareEngineNetwork` resources in a given project and location. * *

    Sample code: * @@ -5792,29 +12242,32 @@ public final UnaryCallable deleteNetworkP * // - 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()) { - * UpdateVmwareEngineNetworkRequest request = - * UpdateVmwareEngineNetworkRequest.newBuilder() - * .setVmwareEngineNetwork(VmwareEngineNetwork.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setRequestId("requestId693933066") + * ListVmwareEngineNetworksRequest request = + * ListVmwareEngineNetworksRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); - * VmwareEngineNetwork response = - * vmwareEngineClient.updateVmwareEngineNetworkAsync(request).get(); + * for (VmwareEngineNetwork element : + * vmwareEngineClient.listVmwareEngineNetworks(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 OperationFuture - updateVmwareEngineNetworkAsync(UpdateVmwareEngineNetworkRequest request) { - return updateVmwareEngineNetworkOperationCallable().futureCall(request); + public final ListVmwareEngineNetworksPagedResponse listVmwareEngineNetworks( + ListVmwareEngineNetworksRequest request) { + return listVmwareEngineNetworksPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Modifies a VMware Engine network resource. Only the following fields can be updated: - * `description`. Only fields specified in `updateMask` are applied. + * Lists `VmwareEngineNetwork` resources in a given project and location. * *

    Sample code: * @@ -5825,29 +12278,31 @@ public final UnaryCallable deleteNetworkP * // - 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()) { - * UpdateVmwareEngineNetworkRequest request = - * UpdateVmwareEngineNetworkRequest.newBuilder() - * .setVmwareEngineNetwork(VmwareEngineNetwork.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setRequestId("requestId693933066") + * ListVmwareEngineNetworksRequest request = + * ListVmwareEngineNetworksRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); - * OperationFuture future = - * vmwareEngineClient.updateVmwareEngineNetworkOperationCallable().futureCall(request); + * ApiFuture future = + * vmwareEngineClient.listVmwareEngineNetworksPagedCallable().futureCall(request); * // Do something. - * VmwareEngineNetwork response = future.get(); + * for (VmwareEngineNetwork element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } */ - public final OperationCallable< - UpdateVmwareEngineNetworkRequest, VmwareEngineNetwork, OperationMetadata> - updateVmwareEngineNetworkOperationCallable() { - return stub.updateVmwareEngineNetworkOperationCallable(); + public final UnaryCallable + listVmwareEngineNetworksPagedCallable() { + return stub.listVmwareEngineNetworksPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Modifies a VMware Engine network resource. Only the following fields can be updated: - * `description`. Only fields specified in `updateMask` are applied. + * Lists `VmwareEngineNetwork` resources in a given project and location. * *

    Sample code: * @@ -5858,29 +12313,38 @@ public final UnaryCallable deleteNetworkP * // - 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()) { - * UpdateVmwareEngineNetworkRequest request = - * UpdateVmwareEngineNetworkRequest.newBuilder() - * .setVmwareEngineNetwork(VmwareEngineNetwork.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setRequestId("requestId693933066") + * ListVmwareEngineNetworksRequest request = + * ListVmwareEngineNetworksRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); - * ApiFuture future = - * vmwareEngineClient.updateVmwareEngineNetworkCallable().futureCall(request); - * // Do something. - * Operation response = future.get(); + * while (true) { + * ListVmwareEngineNetworksResponse response = + * vmwareEngineClient.listVmwareEngineNetworksCallable().call(request); + * for (VmwareEngineNetwork element : response.getVmwareEngineNetworksList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } */ - public final UnaryCallable - updateVmwareEngineNetworkCallable() { - return stub.updateVmwareEngineNetworkCallable(); + public final UnaryCallable + listVmwareEngineNetworksCallable() { + return stub.listVmwareEngineNetworksCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * 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. + * Creates a new private connection that can be used for accessing private Clouds. * *

    Sample code: * @@ -5891,32 +12355,49 @@ public final UnaryCallable deleteNetworkP * // - 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()) { - * VmwareEngineNetworkName name = - * VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]"); - * vmwareEngineClient.deleteVmwareEngineNetworkAsync(name).get(); + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * PrivateConnection privateConnection = PrivateConnection.newBuilder().build(); + * String privateConnectionId = "privateConnectionId-1926654532"; + * PrivateConnection response = + * vmwareEngineClient + * .createPrivateConnectionAsync(parent, privateConnection, privateConnectionId) + * .get(); * } * } * - * @param name Required. The resource name of the VMware Engine network 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/global/vmwareEngineNetworks/my-network` + * @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 OperationFuture deleteVmwareEngineNetworkAsync( - VmwareEngineNetworkName name) { - DeleteVmwareEngineNetworkRequest request = - DeleteVmwareEngineNetworkRequest.newBuilder() - .setName(name == null ? null : name.toString()) + 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 deleteVmwareEngineNetworkAsync(request); + return createPrivateConnectionAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * 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. + * Creates a new private connection that can be used for accessing private Clouds. * *

    Sample code: * @@ -5927,31 +12408,49 @@ public final OperationFuture deleteVmwareEngineNetwork * // - 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 = - * VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") - * .toString(); - * vmwareEngineClient.deleteVmwareEngineNetworkAsync(name).get(); + * 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 name Required. The resource name of the VMware Engine network 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/global/vmwareEngineNetworks/my-network` + * @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 OperationFuture deleteVmwareEngineNetworkAsync( - String name) { - DeleteVmwareEngineNetworkRequest request = - DeleteVmwareEngineNetworkRequest.newBuilder().setName(name).build(); - return deleteVmwareEngineNetworkAsync(request); + 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. /** - * 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. + * Creates a new private connection that can be used for accessing private Clouds. * *

    Sample code: * @@ -5962,31 +12461,28 @@ public final OperationFuture deleteVmwareEngineNetwork * // - 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()) { - * DeleteVmwareEngineNetworkRequest request = - * DeleteVmwareEngineNetworkRequest.newBuilder() - * .setName( - * VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") - * .toString()) + * CreatePrivateConnectionRequest request = + * CreatePrivateConnectionRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPrivateConnectionId("privateConnectionId-1926654532") + * .setPrivateConnection(PrivateConnection.newBuilder().build()) * .setRequestId("requestId693933066") - * .setEtag("etag3123477") * .build(); - * vmwareEngineClient.deleteVmwareEngineNetworkAsync(request).get(); + * 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 deleteVmwareEngineNetworkAsync( - DeleteVmwareEngineNetworkRequest request) { - return deleteVmwareEngineNetworkOperationCallable().futureCall(request); + public final OperationFuture createPrivateConnectionAsync( + CreatePrivateConnectionRequest request) { + return createPrivateConnectionOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * 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. + * Creates a new private connection that can be used for accessing private Clouds. * *

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

    Sample code: * @@ -6032,31 +12526,29 @@ public final OperationFuture deleteVmwareEngineNetwork * // - 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()) { - * DeleteVmwareEngineNetworkRequest request = - * DeleteVmwareEngineNetworkRequest.newBuilder() - * .setName( - * VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") - * .toString()) + * CreatePrivateConnectionRequest request = + * CreatePrivateConnectionRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPrivateConnectionId("privateConnectionId-1926654532") + * .setPrivateConnection(PrivateConnection.newBuilder().build()) * .setRequestId("requestId693933066") - * .setEtag("etag3123477") * .build(); * ApiFuture future = - * vmwareEngineClient.deleteVmwareEngineNetworkCallable().futureCall(request); + * vmwareEngineClient.createPrivateConnectionCallable().futureCall(request); * // Do something. - * future.get(); + * Operation response = future.get(); * } * } */ - public final UnaryCallable - deleteVmwareEngineNetworkCallable() { - return stub.deleteVmwareEngineNetworkCallable(); + public final UnaryCallable + createPrivateConnectionCallable() { + return stub.createPrivateConnectionCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * 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`). + * 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: * @@ -6067,31 +12559,30 @@ public final OperationFuture deleteVmwareEngineNetwork * // - 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()) { - * VmwareEngineNetworkName name = - * VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]"); - * VmwareEngineNetwork response = vmwareEngineClient.getVmwareEngineNetwork(name); + * PrivateConnectionName name = + * PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"); + * PrivateConnection response = vmwareEngineClient.getPrivateConnection(name); * } * } * - * @param name Required. The resource name of the VMware Engine network to retrieve. Resource - * names are schemeless URIs that follow the conventions in + * @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/global/vmwareEngineNetworks/my-network` + * `projects/my-project/locations/us-central1/privateConnections/my-connection` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final VmwareEngineNetwork getVmwareEngineNetwork(VmwareEngineNetworkName name) { - GetVmwareEngineNetworkRequest request = - GetVmwareEngineNetworkRequest.newBuilder() + public final PrivateConnection getPrivateConnection(PrivateConnectionName name) { + GetPrivateConnectionRequest request = + GetPrivateConnectionRequest.newBuilder() .setName(name == null ? null : name.toString()) .build(); - return getVmwareEngineNetwork(request); + return getPrivateConnection(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * 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`). + * 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: * @@ -6103,29 +12594,27 @@ public final VmwareEngineNetwork getVmwareEngineNetwork(VmwareEngineNetworkName * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { * String name = - * VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") - * .toString(); - * VmwareEngineNetwork response = vmwareEngineClient.getVmwareEngineNetwork(name); + * PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString(); + * PrivateConnection response = vmwareEngineClient.getPrivateConnection(name); * } * } * - * @param name Required. The resource name of the VMware Engine network to retrieve. Resource - * names are schemeless URIs that follow the conventions in + * @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/global/vmwareEngineNetworks/my-network` + * `projects/my-project/locations/us-central1/privateConnections/my-connection` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final VmwareEngineNetwork getVmwareEngineNetwork(String name) { - GetVmwareEngineNetworkRequest request = - GetVmwareEngineNetworkRequest.newBuilder().setName(name).build(); - return getVmwareEngineNetwork(request); + public final PrivateConnection getPrivateConnection(String name) { + GetPrivateConnectionRequest request = + GetPrivateConnectionRequest.newBuilder().setName(name).build(); + return getPrivateConnection(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * 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`). + * 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: * @@ -6136,28 +12625,27 @@ public final VmwareEngineNetwork getVmwareEngineNetwork(String name) { * // - 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()) { - * GetVmwareEngineNetworkRequest request = - * GetVmwareEngineNetworkRequest.newBuilder() + * GetPrivateConnectionRequest request = + * GetPrivateConnectionRequest.newBuilder() * .setName( - * VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + * PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]") * .toString()) * .build(); - * VmwareEngineNetwork response = vmwareEngineClient.getVmwareEngineNetwork(request); + * 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 VmwareEngineNetwork getVmwareEngineNetwork(GetVmwareEngineNetworkRequest request) { - return getVmwareEngineNetworkCallable().call(request); + public final PrivateConnection getPrivateConnection(GetPrivateConnectionRequest request) { + return getPrivateConnectionCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * 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`). + * 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: * @@ -6168,27 +12656,27 @@ public final VmwareEngineNetwork getVmwareEngineNetwork(GetVmwareEngineNetworkRe * // - 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()) { - * GetVmwareEngineNetworkRequest request = - * GetVmwareEngineNetworkRequest.newBuilder() + * GetPrivateConnectionRequest request = + * GetPrivateConnectionRequest.newBuilder() * .setName( - * VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + * PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]") * .toString()) * .build(); - * ApiFuture future = - * vmwareEngineClient.getVmwareEngineNetworkCallable().futureCall(request); + * ApiFuture future = + * vmwareEngineClient.getPrivateConnectionCallable().futureCall(request); * // Do something. - * VmwareEngineNetwork response = future.get(); + * PrivateConnection response = future.get(); * } * } */ - public final UnaryCallable - getVmwareEngineNetworkCallable() { - return stub.getVmwareEngineNetworkCallable(); + public final UnaryCallable + getPrivateConnectionCallable() { + return stub.getPrivateConnectionCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists `VmwareEngineNetwork` resources in a given project and location. + * Lists `PrivateConnection` resources in a given project and location. * *

    Sample code: * @@ -6200,30 +12688,30 @@ public final VmwareEngineNetwork getVmwareEngineNetwork(GetVmwareEngineNetworkRe * // 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 (VmwareEngineNetwork element : - * vmwareEngineClient.listVmwareEngineNetworks(parent).iterateAll()) { + * for (PrivateConnection element : + * vmwareEngineClient.listPrivateConnections(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The resource name of the location to query for VMware Engine networks. + * @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/global` + * `projects/my-project/locations/us-central1` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListVmwareEngineNetworksPagedResponse listVmwareEngineNetworks(LocationName parent) { - ListVmwareEngineNetworksRequest request = - ListVmwareEngineNetworksRequest.newBuilder() + public final ListPrivateConnectionsPagedResponse listPrivateConnections(LocationName parent) { + ListPrivateConnectionsRequest request = + ListPrivateConnectionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); - return listVmwareEngineNetworks(request); + return listPrivateConnections(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists `VmwareEngineNetwork` resources in a given project and location. + * Lists `PrivateConnection` resources in a given project and location. * *

    Sample code: * @@ -6235,28 +12723,28 @@ public final ListVmwareEngineNetworksPagedResponse listVmwareEngineNetworks(Loca * // 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 (VmwareEngineNetwork element : - * vmwareEngineClient.listVmwareEngineNetworks(parent).iterateAll()) { + * for (PrivateConnection element : + * vmwareEngineClient.listPrivateConnections(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The resource name of the location to query for VMware Engine networks. + * @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/global` + * `projects/my-project/locations/us-central1` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListVmwareEngineNetworksPagedResponse listVmwareEngineNetworks(String parent) { - ListVmwareEngineNetworksRequest request = - ListVmwareEngineNetworksRequest.newBuilder().setParent(parent).build(); - return listVmwareEngineNetworks(request); + public final ListPrivateConnectionsPagedResponse listPrivateConnections(String parent) { + ListPrivateConnectionsRequest request = + ListPrivateConnectionsRequest.newBuilder().setParent(parent).build(); + return listPrivateConnections(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists `VmwareEngineNetwork` resources in a given project and location. + * Lists `PrivateConnection` resources in a given project and location. * *

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

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

    Sample code: * @@ -6338,91 +12826,39 @@ 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()) { - * ListVmwareEngineNetworksRequest request = - * ListVmwareEngineNetworksRequest.newBuilder() + * ListPrivateConnectionsRequest request = + * ListPrivateConnectionsRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") - * .build(); - * while (true) { - * ListVmwareEngineNetworksResponse response = - * vmwareEngineClient.listVmwareEngineNetworksCallable().call(request); - * for (VmwareEngineNetwork element : response.getVmwareEngineNetworksList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } - * } - * } - */ - public final UnaryCallable - listVmwareEngineNetworksCallable() { - return stub.listVmwareEngineNetworksCallable(); - } - - // 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()) {
    -   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    -   *   PrivateConnection privateConnection = PrivateConnection.newBuilder().build();
    -   *   String privateConnectionId = "privateConnectionId-1926654532";
    -   *   PrivateConnection response =
    -   *       vmwareEngineClient
    -   *           .createPrivateConnectionAsync(parent, privateConnection, privateConnectionId)
    -   *           .get();
    +   *           .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;
    +   *     }
    +   *   }
        * }
        * }
    - * - * @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 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); + public final UnaryCallable + listPrivateConnectionsCallable() { + return stub.listPrivateConnectionsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new private connection that can be used for accessing private Clouds. + * Modifies a `PrivateConnection` resource. Only `description` and `routing_mode` fields can be + * updated. Only fields specified in `updateMask` are applied. * *

    Sample code: * @@ -6433,49 +12869,34 @@ public final OperationFuture createPrivate * // - 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"; + * FieldMask updateMask = FieldMask.newBuilder().build(); * PrivateConnection response = - * vmwareEngineClient - * .createPrivateConnectionAsync(parent, privateConnection, privateConnectionId) - * .get(); + * vmwareEngineClient.updatePrivateConnectionAsync(privateConnection, updateMask).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) - *
    - * + * @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 createPrivateConnectionAsync( - String parent, PrivateConnection privateConnection, String privateConnectionId) { - CreatePrivateConnectionRequest request = - CreatePrivateConnectionRequest.newBuilder() - .setParent(parent) + public final OperationFuture updatePrivateConnectionAsync( + PrivateConnection privateConnection, FieldMask updateMask) { + UpdatePrivateConnectionRequest request = + UpdatePrivateConnectionRequest.newBuilder() .setPrivateConnection(privateConnection) - .setPrivateConnectionId(privateConnectionId) + .setUpdateMask(updateMask) .build(); - return createPrivateConnectionAsync(request); + return updatePrivateConnectionAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new private connection that can be used for accessing private Clouds. + * Modifies a `PrivateConnection` resource. Only `description` and `routing_mode` fields can be + * updated. Only fields specified in `updateMask` are applied. * *

    Sample code: * @@ -6486,28 +12907,28 @@ public final OperationFuture createPrivate * // - 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") + * UpdatePrivateConnectionRequest request = + * UpdatePrivateConnectionRequest.newBuilder() * .setPrivateConnection(PrivateConnection.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .setRequestId("requestId693933066") * .build(); - * PrivateConnection response = vmwareEngineClient.createPrivateConnectionAsync(request).get(); + * 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 createPrivateConnectionAsync( - CreatePrivateConnectionRequest request) { - return createPrivateConnectionOperationCallable().futureCall(request); + public final OperationFuture updatePrivateConnectionAsync( + UpdatePrivateConnectionRequest request) { + return updatePrivateConnectionOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new private connection that can be used for accessing private Clouds. + * Modifies a `PrivateConnection` resource. Only `description` and `routing_mode` fields can be + * updated. Only fields specified in `updateMask` are applied. * *

    Sample code: * @@ -6518,29 +12939,29 @@ public final OperationFuture createPrivate * // - 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") + * UpdatePrivateConnectionRequest request = + * UpdatePrivateConnectionRequest.newBuilder() * .setPrivateConnection(PrivateConnection.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .setRequestId("requestId693933066") * .build(); * OperationFuture future = - * vmwareEngineClient.createPrivateConnectionOperationCallable().futureCall(request); + * vmwareEngineClient.updatePrivateConnectionOperationCallable().futureCall(request); * // Do something. * PrivateConnection response = future.get(); * } * } */ public final OperationCallable< - CreatePrivateConnectionRequest, PrivateConnection, OperationMetadata> - createPrivateConnectionOperationCallable() { - return stub.createPrivateConnectionOperationCallable(); + UpdatePrivateConnectionRequest, PrivateConnection, OperationMetadata> + updatePrivateConnectionOperationCallable() { + return stub.updatePrivateConnectionOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new private connection that can be used for accessing private Clouds. + * Modifies a `PrivateConnection` resource. Only `description` and `routing_mode` fields can be + * updated. Only fields specified in `updateMask` are applied. * *

    Sample code: * @@ -6551,29 +12972,28 @@ public final OperationFuture createPrivate * // - 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") + * UpdatePrivateConnectionRequest request = + * UpdatePrivateConnectionRequest.newBuilder() * .setPrivateConnection(PrivateConnection.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .setRequestId("requestId693933066") * .build(); * ApiFuture future = - * vmwareEngineClient.createPrivateConnectionCallable().futureCall(request); + * vmwareEngineClient.updatePrivateConnectionCallable().futureCall(request); * // Do something. * Operation response = future.get(); * } * } */ - public final UnaryCallable - createPrivateConnectionCallable() { - return stub.createPrivateConnectionCallable(); + public final UnaryCallable + updatePrivateConnectionCallable() { + return stub.updatePrivateConnectionCallable(); } // 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. + * 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: * @@ -6586,28 +13006,29 @@ public final OperationFuture createPrivate * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { * PrivateConnectionName name = * PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"); - * PrivateConnection response = vmwareEngineClient.getPrivateConnection(name); + * vmwareEngineClient.deletePrivateConnectionAsync(name).get(); * } * } * - * @param name Required. The resource name of the private connection to retrieve. Resource names + * @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 PrivateConnection getPrivateConnection(PrivateConnectionName name) { - GetPrivateConnectionRequest request = - GetPrivateConnectionRequest.newBuilder() + public final OperationFuture deletePrivateConnectionAsync( + PrivateConnectionName name) { + DeletePrivateConnectionRequest request = + DeletePrivateConnectionRequest.newBuilder() .setName(name == null ? null : name.toString()) .build(); - return getPrivateConnection(request); + return deletePrivateConnectionAsync(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. + * 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: * @@ -6620,26 +13041,26 @@ public final PrivateConnection getPrivateConnection(PrivateConnectionName name) * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) { * String name = * PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString(); - * PrivateConnection response = vmwareEngineClient.getPrivateConnection(name); + * vmwareEngineClient.deletePrivateConnectionAsync(name).get(); * } * } * - * @param name Required. The resource name of the private connection to retrieve. Resource names + * @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 PrivateConnection getPrivateConnection(String name) { - GetPrivateConnectionRequest request = - GetPrivateConnectionRequest.newBuilder().setName(name).build(); - return getPrivateConnection(request); + public final OperationFuture deletePrivateConnectionAsync(String name) { + DeletePrivateConnectionRequest request = + DeletePrivateConnectionRequest.newBuilder().setName(name).build(); + return deletePrivateConnectionAsync(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. + * 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: * @@ -6650,27 +13071,29 @@ public final PrivateConnection getPrivateConnection(String name) { * // - 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() + * DeletePrivateConnectionRequest request = + * DeletePrivateConnectionRequest.newBuilder() * .setName( * PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]") * .toString()) + * .setRequestId("requestId693933066") * .build(); - * PrivateConnection response = vmwareEngineClient.getPrivateConnection(request); + * 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 PrivateConnection getPrivateConnection(GetPrivateConnectionRequest request) { - return getPrivateConnectionCallable().call(request); + public final OperationFuture deletePrivateConnectionAsync( + DeletePrivateConnectionRequest request) { + return deletePrivateConnectionOperationCallable().futureCall(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. + * 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: * @@ -6681,27 +13104,29 @@ public final PrivateConnection getPrivateConnection(GetPrivateConnectionRequest * // - 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() + * DeletePrivateConnectionRequest request = + * DeletePrivateConnectionRequest.newBuilder() * .setName( * PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]") * .toString()) + * .setRequestId("requestId693933066") * .build(); - * ApiFuture future = - * vmwareEngineClient.getPrivateConnectionCallable().futureCall(request); + * OperationFuture future = + * vmwareEngineClient.deletePrivateConnectionOperationCallable().futureCall(request); * // Do something. - * PrivateConnection response = future.get(); + * future.get(); * } * } */ - public final UnaryCallable - getPrivateConnectionCallable() { - return stub.getPrivateConnectionCallable(); + public final OperationCallable + deletePrivateConnectionOperationCallable() { + return stub.deletePrivateConnectionOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists `PrivateConnection` resources in a given project and location. + * 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: * @@ -6712,31 +13137,65 @@ public final PrivateConnection getPrivateConnection(GetPrivateConnectionRequest * // - 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()) { + * 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 location to query for private connections. - * Resource names are schemeless URIs that follow the conventions in + * @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-central1` + * `projects/my-project/locations/us-west1/privateConnections/my-connection` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPrivateConnectionsPagedResponse listPrivateConnections(LocationName parent) { - ListPrivateConnectionsRequest request = - ListPrivateConnectionsRequest.newBuilder() + public final ListPrivateConnectionPeeringRoutesPagedResponse listPrivateConnectionPeeringRoutes( + PrivateConnectionName parent) { + ListPrivateConnectionPeeringRoutesRequest request = + ListPrivateConnectionPeeringRoutesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); - return listPrivateConnections(request); + return listPrivateConnectionPeeringRoutes(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists `PrivateConnection` resources in a given project and location. + * Lists the private connection routes exchanged over a peering connection. * *

    Sample code: * @@ -6747,29 +13206,31 @@ public final ListPrivateConnectionsPagedResponse listPrivateConnections(Location * // - 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()) { + * 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 location to query for private connections. - * Resource names are schemeless URIs that follow the conventions in + * @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-central1` + * `projects/my-project/locations/us-west1/privateConnections/my-connection` * @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); + public final ListPrivateConnectionPeeringRoutesPagedResponse listPrivateConnectionPeeringRoutes( + String parent) { + ListPrivateConnectionPeeringRoutesRequest request = + ListPrivateConnectionPeeringRoutesRequest.newBuilder().setParent(parent).build(); + return listPrivateConnectionPeeringRoutes(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists `PrivateConnection` resources in a given project and location. + * Lists the private connection routes exchanged over a peering connection. * *

    Sample code: * @@ -6780,16 +13241,16 @@ public final ListPrivateConnectionsPagedResponse listPrivateConnections(String p * // - 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()) + * ListPrivateConnectionPeeringRoutesRequest request = + * ListPrivateConnectionPeeringRoutesRequest.newBuilder() + * .setParent( + * PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]") + * .toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") * .build(); - * for (PrivateConnection element : - * vmwareEngineClient.listPrivateConnections(request).iterateAll()) { + * for (PeeringRoute element : + * vmwareEngineClient.listPrivateConnectionPeeringRoutes(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -6798,14 +13259,14 @@ public final ListPrivateConnectionsPagedResponse listPrivateConnections(String p * @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); + public final ListPrivateConnectionPeeringRoutesPagedResponse listPrivateConnectionPeeringRoutes( + ListPrivateConnectionPeeringRoutesRequest request) { + return listPrivateConnectionPeeringRoutesPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists `PrivateConnection` resources in a given project and location. + * Lists the private connection routes exchanged over a peering connection. * *

    Sample code: * @@ -6816,31 +13277,33 @@ public final ListPrivateConnectionsPagedResponse listPrivateConnections( * // - 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()) + * ListPrivateConnectionPeeringRoutesRequest request = + * ListPrivateConnectionPeeringRoutesRequest.newBuilder() + * .setParent( + * PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]") + * .toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") * .build(); - * ApiFuture future = - * vmwareEngineClient.listPrivateConnectionsPagedCallable().futureCall(request); + * ApiFuture future = + * vmwareEngineClient.listPrivateConnectionPeeringRoutesPagedCallable().futureCall(request); * // Do something. - * for (PrivateConnection element : future.get().iterateAll()) { + * for (PeeringRoute element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } */ - public final UnaryCallable - listPrivateConnectionsPagedCallable() { - return stub.listPrivateConnectionsPagedCallable(); + public final UnaryCallable< + ListPrivateConnectionPeeringRoutesRequest, + ListPrivateConnectionPeeringRoutesPagedResponse> + listPrivateConnectionPeeringRoutesPagedCallable() { + return stub.listPrivateConnectionPeeringRoutesPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists `PrivateConnection` resources in a given project and location. + * Lists the private connection routes exchanged over a peering connection. * *

    Sample code: * @@ -6851,18 +13314,18 @@ public final ListPrivateConnectionsPagedResponse listPrivateConnections( * // - 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()) + * ListPrivateConnectionPeeringRoutesRequest request = + * ListPrivateConnectionPeeringRoutesRequest.newBuilder() + * .setParent( + * PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]") + * .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()) { + * ListPrivateConnectionPeeringRoutesResponse response = + * vmwareEngineClient.listPrivateConnectionPeeringRoutesCallable().call(request); + * for (PeeringRoute element : response.getPeeringRoutesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -6875,15 +13338,17 @@ public final ListPrivateConnectionsPagedResponse listPrivateConnections( * } * } */ - public final UnaryCallable - listPrivateConnectionsCallable() { - return stub.listPrivateConnectionsCallable(); + public final UnaryCallable< + ListPrivateConnectionPeeringRoutesRequest, ListPrivateConnectionPeeringRoutesResponse> + listPrivateConnectionPeeringRoutesCallable() { + return stub.listPrivateConnectionPeeringRoutesCallable(); } // 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. + * Grants the bind permission to the customer provided principal(user / service account) to bind + * their DNS zone with the intranet VPC associated with the project. DnsBindPermission is a global + * resource and location can only be global. * *

    Sample code: * @@ -6894,34 +13359,37 @@ public final ListPrivateConnectionsPagedResponse listPrivateConnections( * // - 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(); + * DnsBindPermissionName name = DnsBindPermissionName.of("[PROJECT]", "[LOCATION]"); + * Principal principal = Principal.newBuilder().build(); + * DnsBindPermission response = + * vmwareEngineClient.grantDnsBindPermissionAsync(name, principal).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. + * @param name Required. The name of the resource which stores the users/service accounts having + * the permission to bind to the corresponding intranet VPC of the consumer project. + * DnsBindPermission is a global 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/global/dnsBindPermission` + * @param principal Required. The consumer provided user/service account which needs to be granted + * permission to bind with the intranet VPC corresponding to the consumer project. * @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) + public final OperationFuture grantDnsBindPermissionAsync( + DnsBindPermissionName name, Principal principal) { + GrantDnsBindPermissionRequest request = + GrantDnsBindPermissionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setPrincipal(principal) .build(); - return updatePrivateConnectionAsync(request); + return grantDnsBindPermissionAsync(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. + * Grants the bind permission to the customer provided principal(user / service account) to bind + * their DNS zone with the intranet VPC associated with the project. DnsBindPermission is a global + * resource and location can only be global. * *

    Sample code: * @@ -6932,28 +13400,34 @@ public final OperationFuture updatePrivate * // - 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(); + * String name = DnsBindPermissionName.of("[PROJECT]", "[LOCATION]").toString(); + * Principal principal = Principal.newBuilder().build(); + * DnsBindPermission response = + * vmwareEngineClient.grantDnsBindPermissionAsync(name, principal).get(); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The name of the resource which stores the users/service accounts having + * the permission to bind to the corresponding intranet VPC of the consumer project. + * DnsBindPermission is a global 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/global/dnsBindPermission` + * @param principal Required. The consumer provided user/service account which needs to be granted + * permission to bind with the intranet VPC corresponding to the consumer project. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture updatePrivateConnectionAsync( - UpdatePrivateConnectionRequest request) { - return updatePrivateConnectionOperationCallable().futureCall(request); + public final OperationFuture grantDnsBindPermissionAsync( + String name, Principal principal) { + GrantDnsBindPermissionRequest request = + GrantDnsBindPermissionRequest.newBuilder().setName(name).setPrincipal(principal).build(); + return grantDnsBindPermissionAsync(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. + * Grants the bind permission to the customer provided principal(user / service account) to bind + * their DNS zone with the intranet VPC associated with the project. DnsBindPermission is a global + * resource and location can only be global. * *

    Sample code: * @@ -6964,29 +13438,29 @@ public final OperationFuture updatePrivate * // - 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()) + * GrantDnsBindPermissionRequest request = + * GrantDnsBindPermissionRequest.newBuilder() + * .setName(DnsBindPermissionName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPrincipal(Principal.newBuilder().build()) * .setRequestId("requestId693933066") * .build(); - * OperationFuture future = - * vmwareEngineClient.updatePrivateConnectionOperationCallable().futureCall(request); - * // Do something. - * PrivateConnection response = future.get(); + * DnsBindPermission response = vmwareEngineClient.grantDnsBindPermissionAsync(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 OperationCallable< - UpdatePrivateConnectionRequest, PrivateConnection, OperationMetadata> - updatePrivateConnectionOperationCallable() { - return stub.updatePrivateConnectionOperationCallable(); + public final OperationFuture grantDnsBindPermissionAsync( + GrantDnsBindPermissionRequest request) { + return grantDnsBindPermissionOperationCallable().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. + * Grants the bind permission to the customer provided principal(user / service account) to bind + * their DNS zone with the intranet VPC associated with the project. DnsBindPermission is a global + * resource and location can only be global. * *

    Sample code: * @@ -6997,28 +13471,30 @@ public final OperationFuture updatePrivate * // - 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()) + * GrantDnsBindPermissionRequest request = + * GrantDnsBindPermissionRequest.newBuilder() + * .setName(DnsBindPermissionName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPrincipal(Principal.newBuilder().build()) * .setRequestId("requestId693933066") * .build(); - * ApiFuture future = - * vmwareEngineClient.updatePrivateConnectionCallable().futureCall(request); + * OperationFuture future = + * vmwareEngineClient.grantDnsBindPermissionOperationCallable().futureCall(request); * // Do something. - * Operation response = future.get(); + * DnsBindPermission response = future.get(); * } * } */ - public final UnaryCallable - updatePrivateConnectionCallable() { - return stub.updatePrivateConnectionCallable(); + public final OperationCallable< + GrantDnsBindPermissionRequest, DnsBindPermission, OperationMetadata> + grantDnsBindPermissionOperationCallable() { + return stub.grantDnsBindPermissionOperationCallable(); } // 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. + * Grants the bind permission to the customer provided principal(user / service account) to bind + * their DNS zone with the intranet VPC associated with the project. DnsBindPermission is a global + * resource and location can only be global. * *

    Sample code: * @@ -7029,31 +13505,29 @@ public final OperationFuture updatePrivate * // - 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(); + * GrantDnsBindPermissionRequest request = + * GrantDnsBindPermissionRequest.newBuilder() + * .setName(DnsBindPermissionName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPrincipal(Principal.newBuilder().build()) + * .setRequestId("requestId693933066") + * .build(); + * ApiFuture future = + * vmwareEngineClient.grantDnsBindPermissionCallable().futureCall(request); + * // Do something. + * Operation response = future.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); + public final UnaryCallable + grantDnsBindPermissionCallable() { + return stub.grantDnsBindPermissionCallable(); } // 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. + * Gets all the principals having bind permission on the intranet VPC associated with the consumer + * project granted by the Grant API. DnsBindPermission is a global resource and location can only + * be global. * *

    Sample code: * @@ -7064,28 +13538,31 @@ public final OperationFuture deletePrivateConnectionAs * // - 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(); + * DnsBindPermissionName name = DnsBindPermissionName.of("[PROJECT]", "[LOCATION]"); + * DnsBindPermission response = vmwareEngineClient.getDnsBindPermission(name); * } * } * - * @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` + * @param name Required. The name of the resource which stores the users/service accounts having + * the permission to bind to the corresponding intranet VPC of the consumer project. + * DnsBindPermission is a global 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/global/dnsBindPermission` * @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); + public final DnsBindPermission getDnsBindPermission(DnsBindPermissionName name) { + GetDnsBindPermissionRequest request = + GetDnsBindPermissionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getDnsBindPermission(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. + * Gets all the principals having bind permission on the intranet VPC associated with the consumer + * project granted by the Grant API. DnsBindPermission is a global resource and location can only + * be global. * *

    Sample code: * @@ -7096,29 +13573,29 @@ public final OperationFuture deletePrivateConnectionAs * // - 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(); + * String name = DnsBindPermissionName.of("[PROJECT]", "[LOCATION]").toString(); + * DnsBindPermission response = vmwareEngineClient.getDnsBindPermission(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The name of the resource which stores the users/service accounts having + * the permission to bind to the corresponding intranet VPC of the consumer project. + * DnsBindPermission is a global 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/global/dnsBindPermission` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deletePrivateConnectionAsync( - DeletePrivateConnectionRequest request) { - return deletePrivateConnectionOperationCallable().futureCall(request); + public final DnsBindPermission getDnsBindPermission(String name) { + GetDnsBindPermissionRequest request = + GetDnsBindPermissionRequest.newBuilder().setName(name).build(); + return getDnsBindPermission(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. + * Gets all the principals having bind permission on the intranet VPC associated with the consumer + * project granted by the Grant API. DnsBindPermission is a global resource and location can only + * be global. * *

    Sample code: * @@ -7129,29 +13606,26 @@ public final OperationFuture deletePrivateConnectionAs * // - 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") + * GetDnsBindPermissionRequest request = + * GetDnsBindPermissionRequest.newBuilder() + * .setName(DnsBindPermissionName.of("[PROJECT]", "[LOCATION]").toString()) * .build(); - * OperationFuture future = - * vmwareEngineClient.deletePrivateConnectionOperationCallable().futureCall(request); - * // Do something. - * future.get(); + * DnsBindPermission response = vmwareEngineClient.getDnsBindPermission(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 OperationCallable - deletePrivateConnectionOperationCallable() { - return stub.deletePrivateConnectionOperationCallable(); + public final DnsBindPermission getDnsBindPermission(GetDnsBindPermissionRequest request) { + return getDnsBindPermissionCallable().call(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. + * Gets all the principals having bind permission on the intranet VPC associated with the consumer + * project granted by the Grant API. DnsBindPermission is a global resource and location can only + * be global. * *

    Sample code: * @@ -7162,28 +13636,27 @@ public final OperationFuture deletePrivateConnectionAs * // - 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") + * GetDnsBindPermissionRequest request = + * GetDnsBindPermissionRequest.newBuilder() + * .setName(DnsBindPermissionName.of("[PROJECT]", "[LOCATION]").toString()) * .build(); - * ApiFuture future = - * vmwareEngineClient.deletePrivateConnectionCallable().futureCall(request); + * ApiFuture future = + * vmwareEngineClient.getDnsBindPermissionCallable().futureCall(request); * // Do something. - * future.get(); + * DnsBindPermission response = future.get(); * } * } */ - public final UnaryCallable - deletePrivateConnectionCallable() { - return stub.deletePrivateConnectionCallable(); + public final UnaryCallable + getDnsBindPermissionCallable() { + return stub.getDnsBindPermissionCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the private connection routes exchanged over a peering connection. + * Revokes the bind permission from the customer provided principal(user / service account) on the + * intranet VPC associated with the consumer project. DnsBindPermission is a global resource and + * location can only be global. * *

    Sample code: * @@ -7194,33 +13667,37 @@ public final OperationFuture deletePrivateConnectionAs * // - 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); - * } + * DnsBindPermissionName name = DnsBindPermissionName.of("[PROJECT]", "[LOCATION]"); + * Principal principal = Principal.newBuilder().build(); + * DnsBindPermission response = + * vmwareEngineClient.revokeDnsBindPermissionAsync(name, principal).get(); * } * } * - * @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` + * @param name Required. The name of the resource which stores the users/service accounts having + * the permission to bind to the corresponding intranet VPC of the consumer project. + * DnsBindPermission is a global 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/global/dnsBindPermission` + * @param principal Required. The consumer provided user/service account which needs to be granted + * permission to bind with the intranet VPC corresponding to the consumer project. * @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()) + public final OperationFuture revokeDnsBindPermissionAsync( + DnsBindPermissionName name, Principal principal) { + RevokeDnsBindPermissionRequest request = + RevokeDnsBindPermissionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setPrincipal(principal) .build(); - return listPrivateConnectionPeeringRoutes(request); + return revokeDnsBindPermissionAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the private connection routes exchanged over a peering connection. + * Revokes the bind permission from the customer provided principal(user / service account) on the + * intranet VPC associated with the consumer project. DnsBindPermission is a global resource and + * location can only be global. * *

    Sample code: * @@ -7231,31 +13708,34 @@ public final ListPrivateConnectionPeeringRoutesPagedResponse listPrivateConnecti * // - 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); - * } + * String name = DnsBindPermissionName.of("[PROJECT]", "[LOCATION]").toString(); + * Principal principal = Principal.newBuilder().build(); + * DnsBindPermission response = + * vmwareEngineClient.revokeDnsBindPermissionAsync(name, principal).get(); * } * } * - * @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` + * @param name Required. The name of the resource which stores the users/service accounts having + * the permission to bind to the corresponding intranet VPC of the consumer project. + * DnsBindPermission is a global 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/global/dnsBindPermission` + * @param principal Required. The consumer provided user/service account which needs to be granted + * permission to bind with the intranet VPC corresponding to the consumer project. * @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); + public final OperationFuture revokeDnsBindPermissionAsync( + String name, Principal principal) { + RevokeDnsBindPermissionRequest request = + RevokeDnsBindPermissionRequest.newBuilder().setName(name).setPrincipal(principal).build(); + return revokeDnsBindPermissionAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the private connection routes exchanged over a peering connection. + * Revokes the bind permission from the customer provided principal(user / service account) on the + * intranet VPC associated with the consumer project. DnsBindPermission is a global resource and + * location can only be global. * *

    Sample code: * @@ -7266,32 +13746,29 @@ public final ListPrivateConnectionPeeringRoutesPagedResponse listPrivateConnecti * // - 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") + * RevokeDnsBindPermissionRequest request = + * RevokeDnsBindPermissionRequest.newBuilder() + * .setName(DnsBindPermissionName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPrincipal(Principal.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); - * for (PeeringRoute element : - * vmwareEngineClient.listPrivateConnectionPeeringRoutes(request).iterateAll()) { - * // doThingsWith(element); - * } + * DnsBindPermission response = vmwareEngineClient.revokeDnsBindPermissionAsync(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 ListPrivateConnectionPeeringRoutesPagedResponse listPrivateConnectionPeeringRoutes( - ListPrivateConnectionPeeringRoutesRequest request) { - return listPrivateConnectionPeeringRoutesPagedCallable().call(request); + public final OperationFuture revokeDnsBindPermissionAsync( + RevokeDnsBindPermissionRequest request) { + return revokeDnsBindPermissionOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the private connection routes exchanged over a peering connection. + * Revokes the bind permission from the customer provided principal(user / service account) on the + * intranet VPC associated with the consumer project. DnsBindPermission is a global resource and + * location can only be global. * *

    Sample code: * @@ -7302,33 +13779,30 @@ public final ListPrivateConnectionPeeringRoutesPagedResponse listPrivateConnecti * // - 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") + * RevokeDnsBindPermissionRequest request = + * RevokeDnsBindPermissionRequest.newBuilder() + * .setName(DnsBindPermissionName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPrincipal(Principal.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); - * ApiFuture future = - * vmwareEngineClient.listPrivateConnectionPeeringRoutesPagedCallable().futureCall(request); + * OperationFuture future = + * vmwareEngineClient.revokeDnsBindPermissionOperationCallable().futureCall(request); * // Do something. - * for (PeeringRoute element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * DnsBindPermission response = future.get(); * } * } */ - public final UnaryCallable< - ListPrivateConnectionPeeringRoutesRequest, - ListPrivateConnectionPeeringRoutesPagedResponse> - listPrivateConnectionPeeringRoutesPagedCallable() { - return stub.listPrivateConnectionPeeringRoutesPagedCallable(); + public final OperationCallable< + RevokeDnsBindPermissionRequest, DnsBindPermission, OperationMetadata> + revokeDnsBindPermissionOperationCallable() { + return stub.revokeDnsBindPermissionOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the private connection routes exchanged over a peering connection. + * Revokes the bind permission from the customer provided principal(user / service account) on the + * intranet VPC associated with the consumer project. DnsBindPermission is a global resource and + * location can only be global. * *

    Sample code: * @@ -7339,34 +13813,22 @@ public final ListPrivateConnectionPeeringRoutesPagedResponse listPrivateConnecti * // - 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") + * RevokeDnsBindPermissionRequest request = + * RevokeDnsBindPermissionRequest.newBuilder() + * .setName(DnsBindPermissionName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPrincipal(Principal.newBuilder().build()) + * .setRequestId("requestId693933066") * .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; - * } - * } + * ApiFuture future = + * vmwareEngineClient.revokeDnsBindPermissionCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); * } * } */ - public final UnaryCallable< - ListPrivateConnectionPeeringRoutesRequest, ListPrivateConnectionPeeringRoutesResponse> - listPrivateConnectionPeeringRoutesCallable() { - return stub.listPrivateConnectionPeeringRoutesCallable(); + public final UnaryCallable + revokeDnsBindPermissionCallable() { + return stub.revokeDnsBindPermissionCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. @@ -7821,94 +14283,341 @@ public static class ListPrivateCloudsFixedSizeCollection ListPrivateCloudsPage, ListPrivateCloudsFixedSizeCollection> { - private ListPrivateCloudsFixedSizeCollection( - List pages, int collectionSize) { + private ListPrivateCloudsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListPrivateCloudsFixedSizeCollection createEmptyCollection() { + return new ListPrivateCloudsFixedSizeCollection(null, 0); + } + + @Override + protected ListPrivateCloudsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListPrivateCloudsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListClustersPagedResponse + extends AbstractPagedListResponse< + ListClustersRequest, + ListClustersResponse, + Cluster, + ListClustersPage, + ListClustersFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListClustersPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListClustersPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListClustersPagedResponse(ListClustersPage page) { + super(page, ListClustersFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListClustersPage + extends AbstractPage { + + private ListClustersPage( + PageContext context, + ListClustersResponse response) { + super(context, response); + } + + private static ListClustersPage createEmptyPage() { + return new ListClustersPage(null, null); + } + + @Override + protected ListClustersPage createPage( + PageContext context, + ListClustersResponse response) { + return new ListClustersPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListClustersFixedSizeCollection + extends AbstractFixedSizeCollection< + ListClustersRequest, + ListClustersResponse, + Cluster, + ListClustersPage, + ListClustersFixedSizeCollection> { + + private ListClustersFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListClustersFixedSizeCollection createEmptyCollection() { + return new ListClustersFixedSizeCollection(null, 0); + } + + @Override + protected ListClustersFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListClustersFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListNodesPagedResponse + extends AbstractPagedListResponse< + ListNodesRequest, ListNodesResponse, Node, ListNodesPage, ListNodesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListNodesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListNodesPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListNodesPagedResponse(ListNodesPage page) { + super(page, ListNodesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListNodesPage + extends AbstractPage { + + private ListNodesPage( + PageContext context, + ListNodesResponse response) { + super(context, response); + } + + private static ListNodesPage createEmptyPage() { + return new ListNodesPage(null, null); + } + + @Override + protected ListNodesPage createPage( + PageContext context, + ListNodesResponse response) { + return new ListNodesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListNodesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListNodesRequest, ListNodesResponse, Node, ListNodesPage, ListNodesFixedSizeCollection> { + + private ListNodesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListNodesFixedSizeCollection createEmptyCollection() { + return new ListNodesFixedSizeCollection(null, 0); + } + + @Override + protected ListNodesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListNodesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListExternalAddressesPagedResponse + extends AbstractPagedListResponse< + ListExternalAddressesRequest, + ListExternalAddressesResponse, + ExternalAddress, + ListExternalAddressesPage, + ListExternalAddressesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListExternalAddressesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListExternalAddressesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListExternalAddressesPagedResponse(ListExternalAddressesPage page) { + super(page, ListExternalAddressesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListExternalAddressesPage + extends AbstractPage< + ListExternalAddressesRequest, + ListExternalAddressesResponse, + ExternalAddress, + ListExternalAddressesPage> { + + private ListExternalAddressesPage( + PageContext + context, + ListExternalAddressesResponse response) { + super(context, response); + } + + private static ListExternalAddressesPage createEmptyPage() { + return new ListExternalAddressesPage(null, null); + } + + @Override + protected ListExternalAddressesPage createPage( + PageContext + context, + ListExternalAddressesResponse response) { + return new ListExternalAddressesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListExternalAddressesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListExternalAddressesRequest, + ListExternalAddressesResponse, + ExternalAddress, + ListExternalAddressesPage, + ListExternalAddressesFixedSizeCollection> { + + private ListExternalAddressesFixedSizeCollection( + List pages, int collectionSize) { super(pages, collectionSize); } - private static ListPrivateCloudsFixedSizeCollection createEmptyCollection() { - return new ListPrivateCloudsFixedSizeCollection(null, 0); + private static ListExternalAddressesFixedSizeCollection createEmptyCollection() { + return new ListExternalAddressesFixedSizeCollection(null, 0); } @Override - protected ListPrivateCloudsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListPrivateCloudsFixedSizeCollection(pages, collectionSize); + protected ListExternalAddressesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListExternalAddressesFixedSizeCollection(pages, collectionSize); } } - public static class ListClustersPagedResponse + public static class FetchNetworkPolicyExternalAddressesPagedResponse extends AbstractPagedListResponse< - ListClustersRequest, - ListClustersResponse, - Cluster, - ListClustersPage, - ListClustersFixedSizeCollection> { + FetchNetworkPolicyExternalAddressesRequest, + FetchNetworkPolicyExternalAddressesResponse, + ExternalAddress, + FetchNetworkPolicyExternalAddressesPage, + FetchNetworkPolicyExternalAddressesFixedSizeCollection> { - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListClustersPage.createEmptyPage().createPageAsync(context, futureResponse); + public static ApiFuture createAsync( + PageContext< + FetchNetworkPolicyExternalAddressesRequest, + FetchNetworkPolicyExternalAddressesResponse, + ExternalAddress> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + FetchNetworkPolicyExternalAddressesPage.createEmptyPage() + .createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - input -> new ListClustersPagedResponse(input), + input -> new FetchNetworkPolicyExternalAddressesPagedResponse(input), MoreExecutors.directExecutor()); } - private ListClustersPagedResponse(ListClustersPage page) { - super(page, ListClustersFixedSizeCollection.createEmptyCollection()); + private FetchNetworkPolicyExternalAddressesPagedResponse( + FetchNetworkPolicyExternalAddressesPage page) { + super(page, FetchNetworkPolicyExternalAddressesFixedSizeCollection.createEmptyCollection()); } } - public static class ListClustersPage - extends AbstractPage { + public static class FetchNetworkPolicyExternalAddressesPage + extends AbstractPage< + FetchNetworkPolicyExternalAddressesRequest, + FetchNetworkPolicyExternalAddressesResponse, + ExternalAddress, + FetchNetworkPolicyExternalAddressesPage> { - private ListClustersPage( - PageContext context, - ListClustersResponse response) { + private FetchNetworkPolicyExternalAddressesPage( + PageContext< + FetchNetworkPolicyExternalAddressesRequest, + FetchNetworkPolicyExternalAddressesResponse, + ExternalAddress> + context, + FetchNetworkPolicyExternalAddressesResponse response) { super(context, response); } - private static ListClustersPage createEmptyPage() { - return new ListClustersPage(null, null); + private static FetchNetworkPolicyExternalAddressesPage createEmptyPage() { + return new FetchNetworkPolicyExternalAddressesPage(null, null); } @Override - protected ListClustersPage createPage( - PageContext context, - ListClustersResponse response) { - return new ListClustersPage(context, response); + protected FetchNetworkPolicyExternalAddressesPage createPage( + PageContext< + FetchNetworkPolicyExternalAddressesRequest, + FetchNetworkPolicyExternalAddressesResponse, + ExternalAddress> + context, + FetchNetworkPolicyExternalAddressesResponse response) { + return new FetchNetworkPolicyExternalAddressesPage(context, response); } @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { + public ApiFuture createPageAsync( + PageContext< + FetchNetworkPolicyExternalAddressesRequest, + FetchNetworkPolicyExternalAddressesResponse, + ExternalAddress> + context, + ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } - public static class ListClustersFixedSizeCollection + public static class FetchNetworkPolicyExternalAddressesFixedSizeCollection extends AbstractFixedSizeCollection< - ListClustersRequest, - ListClustersResponse, - Cluster, - ListClustersPage, - ListClustersFixedSizeCollection> { - - private ListClustersFixedSizeCollection(List pages, int collectionSize) { + FetchNetworkPolicyExternalAddressesRequest, + FetchNetworkPolicyExternalAddressesResponse, + ExternalAddress, + FetchNetworkPolicyExternalAddressesPage, + FetchNetworkPolicyExternalAddressesFixedSizeCollection> { + + private FetchNetworkPolicyExternalAddressesFixedSizeCollection( + List pages, int collectionSize) { super(pages, collectionSize); } - private static ListClustersFixedSizeCollection createEmptyCollection() { - return new ListClustersFixedSizeCollection(null, 0); + private static FetchNetworkPolicyExternalAddressesFixedSizeCollection createEmptyCollection() { + return new FetchNetworkPolicyExternalAddressesFixedSizeCollection(null, 0); } @Override - protected ListClustersFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListClustersFixedSizeCollection(pages, collectionSize); + protected FetchNetworkPolicyExternalAddressesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new FetchNetworkPolicyExternalAddressesFixedSizeCollection(pages, collectionSize); } } @@ -7985,6 +14694,174 @@ protected ListSubnetsFixedSizeCollection createCollection( } } + public static class ListExternalAccessRulesPagedResponse + extends AbstractPagedListResponse< + ListExternalAccessRulesRequest, + ListExternalAccessRulesResponse, + ExternalAccessRule, + ListExternalAccessRulesPage, + ListExternalAccessRulesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListExternalAccessRulesRequest, ListExternalAccessRulesResponse, ExternalAccessRule> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListExternalAccessRulesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListExternalAccessRulesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListExternalAccessRulesPagedResponse(ListExternalAccessRulesPage page) { + super(page, ListExternalAccessRulesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListExternalAccessRulesPage + extends AbstractPage< + ListExternalAccessRulesRequest, + ListExternalAccessRulesResponse, + ExternalAccessRule, + ListExternalAccessRulesPage> { + + private ListExternalAccessRulesPage( + PageContext< + ListExternalAccessRulesRequest, ListExternalAccessRulesResponse, ExternalAccessRule> + context, + ListExternalAccessRulesResponse response) { + super(context, response); + } + + private static ListExternalAccessRulesPage createEmptyPage() { + return new ListExternalAccessRulesPage(null, null); + } + + @Override + protected ListExternalAccessRulesPage createPage( + PageContext< + ListExternalAccessRulesRequest, ListExternalAccessRulesResponse, ExternalAccessRule> + context, + ListExternalAccessRulesResponse response) { + return new ListExternalAccessRulesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListExternalAccessRulesRequest, ListExternalAccessRulesResponse, ExternalAccessRule> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListExternalAccessRulesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListExternalAccessRulesRequest, + ListExternalAccessRulesResponse, + ExternalAccessRule, + ListExternalAccessRulesPage, + ListExternalAccessRulesFixedSizeCollection> { + + private ListExternalAccessRulesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListExternalAccessRulesFixedSizeCollection createEmptyCollection() { + return new ListExternalAccessRulesFixedSizeCollection(null, 0); + } + + @Override + protected ListExternalAccessRulesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListExternalAccessRulesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLoggingServersPagedResponse + extends AbstractPagedListResponse< + ListLoggingServersRequest, + ListLoggingServersResponse, + LoggingServer, + ListLoggingServersPage, + ListLoggingServersFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLoggingServersPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLoggingServersPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLoggingServersPagedResponse(ListLoggingServersPage page) { + super(page, ListLoggingServersFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLoggingServersPage + extends AbstractPage< + ListLoggingServersRequest, + ListLoggingServersResponse, + LoggingServer, + ListLoggingServersPage> { + + private ListLoggingServersPage( + PageContext context, + ListLoggingServersResponse response) { + super(context, response); + } + + private static ListLoggingServersPage createEmptyPage() { + return new ListLoggingServersPage(null, null); + } + + @Override + protected ListLoggingServersPage createPage( + PageContext context, + ListLoggingServersResponse response) { + return new ListLoggingServersPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLoggingServersFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLoggingServersRequest, + ListLoggingServersResponse, + LoggingServer, + ListLoggingServersPage, + ListLoggingServersFixedSizeCollection> { + + private ListLoggingServersFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLoggingServersFixedSizeCollection createEmptyCollection() { + return new ListLoggingServersFixedSizeCollection(null, 0); + } + + @Override + protected ListLoggingServersFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLoggingServersFixedSizeCollection(pages, collectionSize); + } + } + public static class ListNodeTypesPagedResponse extends AbstractPagedListResponse< ListNodeTypesRequest, @@ -8061,6 +14938,170 @@ protected ListNodeTypesFixedSizeCollection createCollection( } } + public static class ListNetworkPeeringsPagedResponse + extends AbstractPagedListResponse< + ListNetworkPeeringsRequest, + ListNetworkPeeringsResponse, + NetworkPeering, + ListNetworkPeeringsPage, + ListNetworkPeeringsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListNetworkPeeringsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListNetworkPeeringsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListNetworkPeeringsPagedResponse(ListNetworkPeeringsPage page) { + super(page, ListNetworkPeeringsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListNetworkPeeringsPage + extends AbstractPage< + ListNetworkPeeringsRequest, + ListNetworkPeeringsResponse, + NetworkPeering, + ListNetworkPeeringsPage> { + + private ListNetworkPeeringsPage( + PageContext + context, + ListNetworkPeeringsResponse response) { + super(context, response); + } + + private static ListNetworkPeeringsPage createEmptyPage() { + return new ListNetworkPeeringsPage(null, null); + } + + @Override + protected ListNetworkPeeringsPage createPage( + PageContext + context, + ListNetworkPeeringsResponse response) { + return new ListNetworkPeeringsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListNetworkPeeringsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListNetworkPeeringsRequest, + ListNetworkPeeringsResponse, + NetworkPeering, + ListNetworkPeeringsPage, + ListNetworkPeeringsFixedSizeCollection> { + + private ListNetworkPeeringsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListNetworkPeeringsFixedSizeCollection createEmptyCollection() { + return new ListNetworkPeeringsFixedSizeCollection(null, 0); + } + + @Override + protected ListNetworkPeeringsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListNetworkPeeringsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListPeeringRoutesPagedResponse + extends AbstractPagedListResponse< + ListPeeringRoutesRequest, + ListPeeringRoutesResponse, + PeeringRoute, + ListPeeringRoutesPage, + ListPeeringRoutesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListPeeringRoutesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListPeeringRoutesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListPeeringRoutesPagedResponse(ListPeeringRoutesPage page) { + super(page, ListPeeringRoutesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListPeeringRoutesPage + extends AbstractPage< + ListPeeringRoutesRequest, + ListPeeringRoutesResponse, + PeeringRoute, + ListPeeringRoutesPage> { + + private ListPeeringRoutesPage( + PageContext context, + ListPeeringRoutesResponse response) { + super(context, response); + } + + private static ListPeeringRoutesPage createEmptyPage() { + return new ListPeeringRoutesPage(null, null); + } + + @Override + protected ListPeeringRoutesPage createPage( + PageContext context, + ListPeeringRoutesResponse response) { + return new ListPeeringRoutesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListPeeringRoutesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListPeeringRoutesRequest, + ListPeeringRoutesResponse, + PeeringRoute, + ListPeeringRoutesPage, + ListPeeringRoutesFixedSizeCollection> { + + private ListPeeringRoutesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListPeeringRoutesFixedSizeCollection createEmptyCollection() { + return new ListPeeringRoutesFixedSizeCollection(null, 0); + } + + @Override + protected ListPeeringRoutesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListPeeringRoutesFixedSizeCollection(pages, collectionSize); + } + } + public static class ListHcxActivationKeysPagedResponse extends AbstractPagedListResponse< ListHcxActivationKeysRequest, @@ -8225,6 +15266,103 @@ protected ListNetworkPoliciesFixedSizeCollection createCollection( } } + public static class ListManagementDnsZoneBindingsPagedResponse + extends AbstractPagedListResponse< + ListManagementDnsZoneBindingsRequest, + ListManagementDnsZoneBindingsResponse, + ManagementDnsZoneBinding, + ListManagementDnsZoneBindingsPage, + ListManagementDnsZoneBindingsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListManagementDnsZoneBindingsRequest, + ListManagementDnsZoneBindingsResponse, + ManagementDnsZoneBinding> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListManagementDnsZoneBindingsPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListManagementDnsZoneBindingsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListManagementDnsZoneBindingsPagedResponse(ListManagementDnsZoneBindingsPage page) { + super(page, ListManagementDnsZoneBindingsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListManagementDnsZoneBindingsPage + extends AbstractPage< + ListManagementDnsZoneBindingsRequest, + ListManagementDnsZoneBindingsResponse, + ManagementDnsZoneBinding, + ListManagementDnsZoneBindingsPage> { + + private ListManagementDnsZoneBindingsPage( + PageContext< + ListManagementDnsZoneBindingsRequest, + ListManagementDnsZoneBindingsResponse, + ManagementDnsZoneBinding> + context, + ListManagementDnsZoneBindingsResponse response) { + super(context, response); + } + + private static ListManagementDnsZoneBindingsPage createEmptyPage() { + return new ListManagementDnsZoneBindingsPage(null, null); + } + + @Override + protected ListManagementDnsZoneBindingsPage createPage( + PageContext< + ListManagementDnsZoneBindingsRequest, + ListManagementDnsZoneBindingsResponse, + ManagementDnsZoneBinding> + context, + ListManagementDnsZoneBindingsResponse response) { + return new ListManagementDnsZoneBindingsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListManagementDnsZoneBindingsRequest, + ListManagementDnsZoneBindingsResponse, + ManagementDnsZoneBinding> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListManagementDnsZoneBindingsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListManagementDnsZoneBindingsRequest, + ListManagementDnsZoneBindingsResponse, + ManagementDnsZoneBinding, + ListManagementDnsZoneBindingsPage, + ListManagementDnsZoneBindingsFixedSizeCollection> { + + private ListManagementDnsZoneBindingsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListManagementDnsZoneBindingsFixedSizeCollection createEmptyCollection() { + return new ListManagementDnsZoneBindingsFixedSizeCollection(null, 0); + } + + @Override + protected ListManagementDnsZoneBindingsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListManagementDnsZoneBindingsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListVmwareEngineNetworksPagedResponse extends AbstractPagedListResponse< ListVmwareEngineNetworksRequest, 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 dee70f680e0b..f7116831104d 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 @@ -16,11 +16,19 @@ package com.google.cloud.vmwareengine.v1; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.FetchNetworkPolicyExternalAddressesPagedResponse; import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListClustersPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListExternalAccessRulesPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListExternalAddressesPagedResponse; import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListHcxActivationKeysPagedResponse; import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListLocationsPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListLoggingServersPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListManagementDnsZoneBindingsPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNetworkPeeringsPagedResponse; 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.ListNodesPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPeeringRoutesPagedResponse; 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; @@ -195,6 +203,78 @@ public UnaryCallSettings deleteClusterSettings( return ((VmwareEngineStubSettings) getStubSettings()).deleteClusterOperationSettings(); } + /** Returns the object with the settings used for calls to listNodes. */ + public PagedCallSettings + listNodesSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).listNodesSettings(); + } + + /** Returns the object with the settings used for calls to getNode. */ + public UnaryCallSettings getNodeSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).getNodeSettings(); + } + + /** Returns the object with the settings used for calls to listExternalAddresses. */ + public PagedCallSettings< + ListExternalAddressesRequest, + ListExternalAddressesResponse, + ListExternalAddressesPagedResponse> + listExternalAddressesSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).listExternalAddressesSettings(); + } + + /** Returns the object with the settings used for calls to fetchNetworkPolicyExternalAddresses. */ + public PagedCallSettings< + FetchNetworkPolicyExternalAddressesRequest, + FetchNetworkPolicyExternalAddressesResponse, + FetchNetworkPolicyExternalAddressesPagedResponse> + fetchNetworkPolicyExternalAddressesSettings() { + return ((VmwareEngineStubSettings) getStubSettings()) + .fetchNetworkPolicyExternalAddressesSettings(); + } + + /** Returns the object with the settings used for calls to getExternalAddress. */ + public UnaryCallSettings + getExternalAddressSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).getExternalAddressSettings(); + } + + /** Returns the object with the settings used for calls to createExternalAddress. */ + public UnaryCallSettings + createExternalAddressSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).createExternalAddressSettings(); + } + + /** Returns the object with the settings used for calls to createExternalAddress. */ + public OperationCallSettings + createExternalAddressOperationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).createExternalAddressOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateExternalAddress. */ + public UnaryCallSettings + updateExternalAddressSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).updateExternalAddressSettings(); + } + + /** Returns the object with the settings used for calls to updateExternalAddress. */ + public OperationCallSettings + updateExternalAddressOperationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).updateExternalAddressOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteExternalAddress. */ + public UnaryCallSettings + deleteExternalAddressSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).deleteExternalAddressSettings(); + } + + /** Returns the object with the settings used for calls to deleteExternalAddress. */ + public OperationCallSettings + deleteExternalAddressOperationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).deleteExternalAddressOperationSettings(); + } + /** Returns the object with the settings used for calls to listSubnets. */ public PagedCallSettings listSubnetsSettings() { @@ -217,6 +297,107 @@ public UnaryCallSettings updateSubnetSettings() return ((VmwareEngineStubSettings) getStubSettings()).updateSubnetOperationSettings(); } + /** Returns the object with the settings used for calls to listExternalAccessRules. */ + public PagedCallSettings< + ListExternalAccessRulesRequest, + ListExternalAccessRulesResponse, + ListExternalAccessRulesPagedResponse> + listExternalAccessRulesSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).listExternalAccessRulesSettings(); + } + + /** Returns the object with the settings used for calls to getExternalAccessRule. */ + public UnaryCallSettings + getExternalAccessRuleSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).getExternalAccessRuleSettings(); + } + + /** Returns the object with the settings used for calls to createExternalAccessRule. */ + public UnaryCallSettings + createExternalAccessRuleSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).createExternalAccessRuleSettings(); + } + + /** Returns the object with the settings used for calls to createExternalAccessRule. */ + public OperationCallSettings< + CreateExternalAccessRuleRequest, ExternalAccessRule, OperationMetadata> + createExternalAccessRuleOperationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()) + .createExternalAccessRuleOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateExternalAccessRule. */ + public UnaryCallSettings + updateExternalAccessRuleSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).updateExternalAccessRuleSettings(); + } + + /** Returns the object with the settings used for calls to updateExternalAccessRule. */ + public OperationCallSettings< + UpdateExternalAccessRuleRequest, ExternalAccessRule, OperationMetadata> + updateExternalAccessRuleOperationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()) + .updateExternalAccessRuleOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteExternalAccessRule. */ + public UnaryCallSettings + deleteExternalAccessRuleSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).deleteExternalAccessRuleSettings(); + } + + /** Returns the object with the settings used for calls to deleteExternalAccessRule. */ + public OperationCallSettings + deleteExternalAccessRuleOperationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()) + .deleteExternalAccessRuleOperationSettings(); + } + + /** Returns the object with the settings used for calls to listLoggingServers. */ + public PagedCallSettings< + ListLoggingServersRequest, ListLoggingServersResponse, ListLoggingServersPagedResponse> + listLoggingServersSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).listLoggingServersSettings(); + } + + /** Returns the object with the settings used for calls to getLoggingServer. */ + public UnaryCallSettings getLoggingServerSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).getLoggingServerSettings(); + } + + /** Returns the object with the settings used for calls to createLoggingServer. */ + public UnaryCallSettings createLoggingServerSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).createLoggingServerSettings(); + } + + /** Returns the object with the settings used for calls to createLoggingServer. */ + public OperationCallSettings + createLoggingServerOperationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).createLoggingServerOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateLoggingServer. */ + public UnaryCallSettings updateLoggingServerSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).updateLoggingServerSettings(); + } + + /** Returns the object with the settings used for calls to updateLoggingServer. */ + public OperationCallSettings + updateLoggingServerOperationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).updateLoggingServerOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteLoggingServer. */ + public UnaryCallSettings deleteLoggingServerSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).deleteLoggingServerSettings(); + } + + /** Returns the object with the settings used for calls to deleteLoggingServer. */ + public OperationCallSettings + deleteLoggingServerOperationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).deleteLoggingServerOperationSettings(); + } + /** Returns the object with the settings used for calls to listNodeTypes. */ public PagedCallSettings listNodeTypesSettings() { @@ -263,6 +444,74 @@ public UnaryCallSettings resetNsxCredenti .resetVcenterCredentialsOperationSettings(); } + /** Returns the object with the settings used for calls to getDnsForwarding. */ + public UnaryCallSettings getDnsForwardingSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).getDnsForwardingSettings(); + } + + /** Returns the object with the settings used for calls to updateDnsForwarding. */ + public UnaryCallSettings updateDnsForwardingSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).updateDnsForwardingSettings(); + } + + /** Returns the object with the settings used for calls to updateDnsForwarding. */ + public OperationCallSettings + updateDnsForwardingOperationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).updateDnsForwardingOperationSettings(); + } + + /** Returns the object with the settings used for calls to getNetworkPeering. */ + public UnaryCallSettings getNetworkPeeringSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).getNetworkPeeringSettings(); + } + + /** Returns the object with the settings used for calls to listNetworkPeerings. */ + public PagedCallSettings< + ListNetworkPeeringsRequest, ListNetworkPeeringsResponse, ListNetworkPeeringsPagedResponse> + listNetworkPeeringsSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).listNetworkPeeringsSettings(); + } + + /** Returns the object with the settings used for calls to createNetworkPeering. */ + public UnaryCallSettings createNetworkPeeringSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).createNetworkPeeringSettings(); + } + + /** Returns the object with the settings used for calls to createNetworkPeering. */ + public OperationCallSettings + createNetworkPeeringOperationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).createNetworkPeeringOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteNetworkPeering. */ + public UnaryCallSettings deleteNetworkPeeringSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).deleteNetworkPeeringSettings(); + } + + /** Returns the object with the settings used for calls to deleteNetworkPeering. */ + public OperationCallSettings + deleteNetworkPeeringOperationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).deleteNetworkPeeringOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateNetworkPeering. */ + public UnaryCallSettings updateNetworkPeeringSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).updateNetworkPeeringSettings(); + } + + /** Returns the object with the settings used for calls to updateNetworkPeering. */ + public OperationCallSettings + updateNetworkPeeringOperationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).updateNetworkPeeringOperationSettings(); + } + + /** Returns the object with the settings used for calls to listPeeringRoutes. */ + public PagedCallSettings< + ListPeeringRoutesRequest, ListPeeringRoutesResponse, ListPeeringRoutesPagedResponse> + listPeeringRoutesSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).listPeeringRoutesSettings(); + } + /** Returns the object with the settings used for calls to createHcxActivationKey. */ public UnaryCallSettings createHcxActivationKeySettings() { @@ -335,6 +584,76 @@ public UnaryCallSettings deleteNetworkPol return ((VmwareEngineStubSettings) getStubSettings()).deleteNetworkPolicyOperationSettings(); } + /** Returns the object with the settings used for calls to listManagementDnsZoneBindings. */ + public PagedCallSettings< + ListManagementDnsZoneBindingsRequest, + ListManagementDnsZoneBindingsResponse, + ListManagementDnsZoneBindingsPagedResponse> + listManagementDnsZoneBindingsSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).listManagementDnsZoneBindingsSettings(); + } + + /** Returns the object with the settings used for calls to getManagementDnsZoneBinding. */ + public UnaryCallSettings + getManagementDnsZoneBindingSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).getManagementDnsZoneBindingSettings(); + } + + /** Returns the object with the settings used for calls to createManagementDnsZoneBinding. */ + public UnaryCallSettings + createManagementDnsZoneBindingSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).createManagementDnsZoneBindingSettings(); + } + + /** Returns the object with the settings used for calls to createManagementDnsZoneBinding. */ + public OperationCallSettings< + CreateManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + createManagementDnsZoneBindingOperationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()) + .createManagementDnsZoneBindingOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateManagementDnsZoneBinding. */ + public UnaryCallSettings + updateManagementDnsZoneBindingSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).updateManagementDnsZoneBindingSettings(); + } + + /** Returns the object with the settings used for calls to updateManagementDnsZoneBinding. */ + public OperationCallSettings< + UpdateManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + updateManagementDnsZoneBindingOperationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()) + .updateManagementDnsZoneBindingOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteManagementDnsZoneBinding. */ + public UnaryCallSettings + deleteManagementDnsZoneBindingSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).deleteManagementDnsZoneBindingSettings(); + } + + /** Returns the object with the settings used for calls to deleteManagementDnsZoneBinding. */ + public OperationCallSettings + deleteManagementDnsZoneBindingOperationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()) + .deleteManagementDnsZoneBindingOperationSettings(); + } + + /** Returns the object with the settings used for calls to repairManagementDnsZoneBinding. */ + public UnaryCallSettings + repairManagementDnsZoneBindingSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).repairManagementDnsZoneBindingSettings(); + } + + /** Returns the object with the settings used for calls to repairManagementDnsZoneBinding. */ + public OperationCallSettings< + RepairManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + repairManagementDnsZoneBindingOperationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()) + .repairManagementDnsZoneBindingOperationSettings(); + } + /** Returns the object with the settings used for calls to createVmwareEngineNetwork. */ public UnaryCallSettings createVmwareEngineNetworkSettings() { @@ -455,6 +774,37 @@ public UnaryCallSettings deleteNetworkPol .listPrivateConnectionPeeringRoutesSettings(); } + /** Returns the object with the settings used for calls to grantDnsBindPermission. */ + public UnaryCallSettings + grantDnsBindPermissionSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).grantDnsBindPermissionSettings(); + } + + /** Returns the object with the settings used for calls to grantDnsBindPermission. */ + public OperationCallSettings + grantDnsBindPermissionOperationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).grantDnsBindPermissionOperationSettings(); + } + + /** Returns the object with the settings used for calls to getDnsBindPermission. */ + public UnaryCallSettings + getDnsBindPermissionSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).getDnsBindPermissionSettings(); + } + + /** Returns the object with the settings used for calls to revokeDnsBindPermission. */ + public UnaryCallSettings + revokeDnsBindPermissionSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).revokeDnsBindPermissionSettings(); + } + + /** Returns the object with the settings used for calls to revokeDnsBindPermission. */ + public OperationCallSettings + revokeDnsBindPermissionOperationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()) + .revokeDnsBindPermissionOperationSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -704,6 +1054,81 @@ public UnaryCallSettings.Builder deleteClusterS return getStubSettingsBuilder().deleteClusterOperationSettings(); } + /** Returns the builder for the settings used for calls to listNodes. */ + public PagedCallSettings.Builder + listNodesSettings() { + return getStubSettingsBuilder().listNodesSettings(); + } + + /** Returns the builder for the settings used for calls to getNode. */ + public UnaryCallSettings.Builder getNodeSettings() { + return getStubSettingsBuilder().getNodeSettings(); + } + + /** Returns the builder for the settings used for calls to listExternalAddresses. */ + public PagedCallSettings.Builder< + ListExternalAddressesRequest, + ListExternalAddressesResponse, + ListExternalAddressesPagedResponse> + listExternalAddressesSettings() { + return getStubSettingsBuilder().listExternalAddressesSettings(); + } + + /** + * Returns the builder for the settings used for calls to fetchNetworkPolicyExternalAddresses. + */ + public PagedCallSettings.Builder< + FetchNetworkPolicyExternalAddressesRequest, + FetchNetworkPolicyExternalAddressesResponse, + FetchNetworkPolicyExternalAddressesPagedResponse> + fetchNetworkPolicyExternalAddressesSettings() { + return getStubSettingsBuilder().fetchNetworkPolicyExternalAddressesSettings(); + } + + /** Returns the builder for the settings used for calls to getExternalAddress. */ + public UnaryCallSettings.Builder + getExternalAddressSettings() { + return getStubSettingsBuilder().getExternalAddressSettings(); + } + + /** Returns the builder for the settings used for calls to createExternalAddress. */ + public UnaryCallSettings.Builder + createExternalAddressSettings() { + return getStubSettingsBuilder().createExternalAddressSettings(); + } + + /** Returns the builder for the settings used for calls to createExternalAddress. */ + public OperationCallSettings.Builder< + CreateExternalAddressRequest, ExternalAddress, OperationMetadata> + createExternalAddressOperationSettings() { + return getStubSettingsBuilder().createExternalAddressOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateExternalAddress. */ + public UnaryCallSettings.Builder + updateExternalAddressSettings() { + return getStubSettingsBuilder().updateExternalAddressSettings(); + } + + /** Returns the builder for the settings used for calls to updateExternalAddress. */ + public OperationCallSettings.Builder< + UpdateExternalAddressRequest, ExternalAddress, OperationMetadata> + updateExternalAddressOperationSettings() { + return getStubSettingsBuilder().updateExternalAddressOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteExternalAddress. */ + public UnaryCallSettings.Builder + deleteExternalAddressSettings() { + return getStubSettingsBuilder().deleteExternalAddressSettings(); + } + + /** Returns the builder for the settings used for calls to deleteExternalAddress. */ + public OperationCallSettings.Builder + deleteExternalAddressOperationSettings() { + return getStubSettingsBuilder().deleteExternalAddressOperationSettings(); + } + /** Returns the builder for the settings used for calls to listSubnets. */ public PagedCallSettings.Builder< ListSubnetsRequest, ListSubnetsResponse, ListSubnetsPagedResponse> @@ -727,6 +1152,110 @@ public UnaryCallSettings.Builder updateSubnetSet return getStubSettingsBuilder().updateSubnetOperationSettings(); } + /** Returns the builder for the settings used for calls to listExternalAccessRules. */ + public PagedCallSettings.Builder< + ListExternalAccessRulesRequest, + ListExternalAccessRulesResponse, + ListExternalAccessRulesPagedResponse> + listExternalAccessRulesSettings() { + return getStubSettingsBuilder().listExternalAccessRulesSettings(); + } + + /** Returns the builder for the settings used for calls to getExternalAccessRule. */ + public UnaryCallSettings.Builder + getExternalAccessRuleSettings() { + return getStubSettingsBuilder().getExternalAccessRuleSettings(); + } + + /** Returns the builder for the settings used for calls to createExternalAccessRule. */ + public UnaryCallSettings.Builder + createExternalAccessRuleSettings() { + return getStubSettingsBuilder().createExternalAccessRuleSettings(); + } + + /** Returns the builder for the settings used for calls to createExternalAccessRule. */ + public OperationCallSettings.Builder< + CreateExternalAccessRuleRequest, ExternalAccessRule, OperationMetadata> + createExternalAccessRuleOperationSettings() { + return getStubSettingsBuilder().createExternalAccessRuleOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateExternalAccessRule. */ + public UnaryCallSettings.Builder + updateExternalAccessRuleSettings() { + return getStubSettingsBuilder().updateExternalAccessRuleSettings(); + } + + /** Returns the builder for the settings used for calls to updateExternalAccessRule. */ + public OperationCallSettings.Builder< + UpdateExternalAccessRuleRequest, ExternalAccessRule, OperationMetadata> + updateExternalAccessRuleOperationSettings() { + return getStubSettingsBuilder().updateExternalAccessRuleOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteExternalAccessRule. */ + public UnaryCallSettings.Builder + deleteExternalAccessRuleSettings() { + return getStubSettingsBuilder().deleteExternalAccessRuleSettings(); + } + + /** Returns the builder for the settings used for calls to deleteExternalAccessRule. */ + public OperationCallSettings.Builder + deleteExternalAccessRuleOperationSettings() { + return getStubSettingsBuilder().deleteExternalAccessRuleOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listLoggingServers. */ + public PagedCallSettings.Builder< + ListLoggingServersRequest, ListLoggingServersResponse, ListLoggingServersPagedResponse> + listLoggingServersSettings() { + return getStubSettingsBuilder().listLoggingServersSettings(); + } + + /** Returns the builder for the settings used for calls to getLoggingServer. */ + public UnaryCallSettings.Builder + getLoggingServerSettings() { + return getStubSettingsBuilder().getLoggingServerSettings(); + } + + /** Returns the builder for the settings used for calls to createLoggingServer. */ + public UnaryCallSettings.Builder + createLoggingServerSettings() { + return getStubSettingsBuilder().createLoggingServerSettings(); + } + + /** Returns the builder for the settings used for calls to createLoggingServer. */ + public OperationCallSettings.Builder< + CreateLoggingServerRequest, LoggingServer, OperationMetadata> + createLoggingServerOperationSettings() { + return getStubSettingsBuilder().createLoggingServerOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateLoggingServer. */ + public UnaryCallSettings.Builder + updateLoggingServerSettings() { + return getStubSettingsBuilder().updateLoggingServerSettings(); + } + + /** Returns the builder for the settings used for calls to updateLoggingServer. */ + public OperationCallSettings.Builder< + UpdateLoggingServerRequest, LoggingServer, OperationMetadata> + updateLoggingServerOperationSettings() { + return getStubSettingsBuilder().updateLoggingServerOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteLoggingServer. */ + public UnaryCallSettings.Builder + deleteLoggingServerSettings() { + return getStubSettingsBuilder().deleteLoggingServerSettings(); + } + + /** Returns the builder for the settings used for calls to deleteLoggingServer. */ + public OperationCallSettings.Builder + deleteLoggingServerOperationSettings() { + return getStubSettingsBuilder().deleteLoggingServerOperationSettings(); + } + /** Returns the builder for the settings used for calls to listNodeTypes. */ public PagedCallSettings.Builder< ListNodeTypesRequest, ListNodeTypesResponse, ListNodeTypesPagedResponse> @@ -777,6 +1306,85 @@ public UnaryCallSettings.Builder getNodeTypeSettin return getStubSettingsBuilder().resetVcenterCredentialsOperationSettings(); } + /** Returns the builder for the settings used for calls to getDnsForwarding. */ + public UnaryCallSettings.Builder + getDnsForwardingSettings() { + return getStubSettingsBuilder().getDnsForwardingSettings(); + } + + /** Returns the builder for the settings used for calls to updateDnsForwarding. */ + public UnaryCallSettings.Builder + updateDnsForwardingSettings() { + return getStubSettingsBuilder().updateDnsForwardingSettings(); + } + + /** Returns the builder for the settings used for calls to updateDnsForwarding. */ + public OperationCallSettings.Builder< + UpdateDnsForwardingRequest, DnsForwarding, OperationMetadata> + updateDnsForwardingOperationSettings() { + return getStubSettingsBuilder().updateDnsForwardingOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getNetworkPeering. */ + public UnaryCallSettings.Builder + getNetworkPeeringSettings() { + return getStubSettingsBuilder().getNetworkPeeringSettings(); + } + + /** Returns the builder for the settings used for calls to listNetworkPeerings. */ + public PagedCallSettings.Builder< + ListNetworkPeeringsRequest, + ListNetworkPeeringsResponse, + ListNetworkPeeringsPagedResponse> + listNetworkPeeringsSettings() { + return getStubSettingsBuilder().listNetworkPeeringsSettings(); + } + + /** Returns the builder for the settings used for calls to createNetworkPeering. */ + public UnaryCallSettings.Builder + createNetworkPeeringSettings() { + return getStubSettingsBuilder().createNetworkPeeringSettings(); + } + + /** Returns the builder for the settings used for calls to createNetworkPeering. */ + public OperationCallSettings.Builder< + CreateNetworkPeeringRequest, NetworkPeering, OperationMetadata> + createNetworkPeeringOperationSettings() { + return getStubSettingsBuilder().createNetworkPeeringOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteNetworkPeering. */ + public UnaryCallSettings.Builder + deleteNetworkPeeringSettings() { + return getStubSettingsBuilder().deleteNetworkPeeringSettings(); + } + + /** Returns the builder for the settings used for calls to deleteNetworkPeering. */ + public OperationCallSettings.Builder + deleteNetworkPeeringOperationSettings() { + return getStubSettingsBuilder().deleteNetworkPeeringOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateNetworkPeering. */ + public UnaryCallSettings.Builder + updateNetworkPeeringSettings() { + return getStubSettingsBuilder().updateNetworkPeeringSettings(); + } + + /** Returns the builder for the settings used for calls to updateNetworkPeering. */ + public OperationCallSettings.Builder< + UpdateNetworkPeeringRequest, NetworkPeering, OperationMetadata> + updateNetworkPeeringOperationSettings() { + return getStubSettingsBuilder().updateNetworkPeeringOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listPeeringRoutes. */ + public PagedCallSettings.Builder< + ListPeeringRoutesRequest, ListPeeringRoutesResponse, ListPeeringRoutesPagedResponse> + listPeeringRoutesSettings() { + return getStubSettingsBuilder().listPeeringRoutesSettings(); + } + /** Returns the builder for the settings used for calls to createHcxActivationKey. */ public UnaryCallSettings.Builder createHcxActivationKeySettings() { @@ -858,6 +1466,73 @@ public UnaryCallSettings.Builder getNodeTypeSettin return getStubSettingsBuilder().deleteNetworkPolicyOperationSettings(); } + /** Returns the builder for the settings used for calls to listManagementDnsZoneBindings. */ + public PagedCallSettings.Builder< + ListManagementDnsZoneBindingsRequest, + ListManagementDnsZoneBindingsResponse, + ListManagementDnsZoneBindingsPagedResponse> + listManagementDnsZoneBindingsSettings() { + return getStubSettingsBuilder().listManagementDnsZoneBindingsSettings(); + } + + /** Returns the builder for the settings used for calls to getManagementDnsZoneBinding. */ + public UnaryCallSettings.Builder + getManagementDnsZoneBindingSettings() { + return getStubSettingsBuilder().getManagementDnsZoneBindingSettings(); + } + + /** Returns the builder for the settings used for calls to createManagementDnsZoneBinding. */ + public UnaryCallSettings.Builder + createManagementDnsZoneBindingSettings() { + return getStubSettingsBuilder().createManagementDnsZoneBindingSettings(); + } + + /** Returns the builder for the settings used for calls to createManagementDnsZoneBinding. */ + public OperationCallSettings.Builder< + CreateManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + createManagementDnsZoneBindingOperationSettings() { + return getStubSettingsBuilder().createManagementDnsZoneBindingOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateManagementDnsZoneBinding. */ + public UnaryCallSettings.Builder + updateManagementDnsZoneBindingSettings() { + return getStubSettingsBuilder().updateManagementDnsZoneBindingSettings(); + } + + /** Returns the builder for the settings used for calls to updateManagementDnsZoneBinding. */ + public OperationCallSettings.Builder< + UpdateManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + updateManagementDnsZoneBindingOperationSettings() { + return getStubSettingsBuilder().updateManagementDnsZoneBindingOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteManagementDnsZoneBinding. */ + public UnaryCallSettings.Builder + deleteManagementDnsZoneBindingSettings() { + return getStubSettingsBuilder().deleteManagementDnsZoneBindingSettings(); + } + + /** Returns the builder for the settings used for calls to deleteManagementDnsZoneBinding. */ + public OperationCallSettings.Builder< + DeleteManagementDnsZoneBindingRequest, Empty, OperationMetadata> + deleteManagementDnsZoneBindingOperationSettings() { + return getStubSettingsBuilder().deleteManagementDnsZoneBindingOperationSettings(); + } + + /** Returns the builder for the settings used for calls to repairManagementDnsZoneBinding. */ + public UnaryCallSettings.Builder + repairManagementDnsZoneBindingSettings() { + return getStubSettingsBuilder().repairManagementDnsZoneBindingSettings(); + } + + /** Returns the builder for the settings used for calls to repairManagementDnsZoneBinding. */ + public OperationCallSettings.Builder< + RepairManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + repairManagementDnsZoneBindingOperationSettings() { + return getStubSettingsBuilder().repairManagementDnsZoneBindingOperationSettings(); + } + /** Returns the builder for the settings used for calls to createVmwareEngineNetwork. */ public UnaryCallSettings.Builder createVmwareEngineNetworkSettings() { @@ -975,6 +1650,38 @@ public UnaryCallSettings.Builder getNodeTypeSettin return getStubSettingsBuilder().listPrivateConnectionPeeringRoutesSettings(); } + /** Returns the builder for the settings used for calls to grantDnsBindPermission. */ + public UnaryCallSettings.Builder + grantDnsBindPermissionSettings() { + return getStubSettingsBuilder().grantDnsBindPermissionSettings(); + } + + /** Returns the builder for the settings used for calls to grantDnsBindPermission. */ + public OperationCallSettings.Builder< + GrantDnsBindPermissionRequest, DnsBindPermission, OperationMetadata> + grantDnsBindPermissionOperationSettings() { + return getStubSettingsBuilder().grantDnsBindPermissionOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getDnsBindPermission. */ + public UnaryCallSettings.Builder + getDnsBindPermissionSettings() { + return getStubSettingsBuilder().getDnsBindPermissionSettings(); + } + + /** Returns the builder for the settings used for calls to revokeDnsBindPermission. */ + public UnaryCallSettings.Builder + revokeDnsBindPermissionSettings() { + return getStubSettingsBuilder().revokeDnsBindPermissionSettings(); + } + + /** Returns the builder for the settings used for calls to revokeDnsBindPermission. */ + public OperationCallSettings.Builder< + RevokeDnsBindPermissionRequest, DnsBindPermission, OperationMetadata> + revokeDnsBindPermissionOperationSettings() { + return getStubSettingsBuilder().revokeDnsBindPermissionOperationSettings(); + } + /** 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 a4833973c88b..6a856c6128b1 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 @@ -13,9 +13,24 @@ "CreateCluster": { "methods": ["createClusterAsync", "createClusterAsync", "createClusterAsync", "createClusterOperationCallable", "createClusterCallable"] }, + "CreateExternalAccessRule": { + "methods": ["createExternalAccessRuleAsync", "createExternalAccessRuleAsync", "createExternalAccessRuleAsync", "createExternalAccessRuleOperationCallable", "createExternalAccessRuleCallable"] + }, + "CreateExternalAddress": { + "methods": ["createExternalAddressAsync", "createExternalAddressAsync", "createExternalAddressAsync", "createExternalAddressOperationCallable", "createExternalAddressCallable"] + }, "CreateHcxActivationKey": { "methods": ["createHcxActivationKeyAsync", "createHcxActivationKeyAsync", "createHcxActivationKeyAsync", "createHcxActivationKeyOperationCallable", "createHcxActivationKeyCallable"] }, + "CreateLoggingServer": { + "methods": ["createLoggingServerAsync", "createLoggingServerAsync", "createLoggingServerAsync", "createLoggingServerOperationCallable", "createLoggingServerCallable"] + }, + "CreateManagementDnsZoneBinding": { + "methods": ["createManagementDnsZoneBindingAsync", "createManagementDnsZoneBindingAsync", "createManagementDnsZoneBindingAsync", "createManagementDnsZoneBindingOperationCallable", "createManagementDnsZoneBindingCallable"] + }, + "CreateNetworkPeering": { + "methods": ["createNetworkPeeringAsync", "createNetworkPeeringAsync", "createNetworkPeeringAsync", "createNetworkPeeringOperationCallable", "createNetworkPeeringCallable"] + }, "CreateNetworkPolicy": { "methods": ["createNetworkPolicyAsync", "createNetworkPolicyAsync", "createNetworkPolicyAsync", "createNetworkPolicyOperationCallable", "createNetworkPolicyCallable"] }, @@ -31,6 +46,21 @@ "DeleteCluster": { "methods": ["deleteClusterAsync", "deleteClusterAsync", "deleteClusterAsync", "deleteClusterOperationCallable", "deleteClusterCallable"] }, + "DeleteExternalAccessRule": { + "methods": ["deleteExternalAccessRuleAsync", "deleteExternalAccessRuleAsync", "deleteExternalAccessRuleAsync", "deleteExternalAccessRuleOperationCallable", "deleteExternalAccessRuleCallable"] + }, + "DeleteExternalAddress": { + "methods": ["deleteExternalAddressAsync", "deleteExternalAddressAsync", "deleteExternalAddressAsync", "deleteExternalAddressOperationCallable", "deleteExternalAddressCallable"] + }, + "DeleteLoggingServer": { + "methods": ["deleteLoggingServerAsync", "deleteLoggingServerAsync", "deleteLoggingServerAsync", "deleteLoggingServerOperationCallable", "deleteLoggingServerCallable"] + }, + "DeleteManagementDnsZoneBinding": { + "methods": ["deleteManagementDnsZoneBindingAsync", "deleteManagementDnsZoneBindingAsync", "deleteManagementDnsZoneBindingAsync", "deleteManagementDnsZoneBindingOperationCallable", "deleteManagementDnsZoneBindingCallable"] + }, + "DeleteNetworkPeering": { + "methods": ["deleteNetworkPeeringAsync", "deleteNetworkPeeringAsync", "deleteNetworkPeeringAsync", "deleteNetworkPeeringOperationCallable", "deleteNetworkPeeringCallable"] + }, "DeleteNetworkPolicy": { "methods": ["deleteNetworkPolicyAsync", "deleteNetworkPolicyAsync", "deleteNetworkPolicyAsync", "deleteNetworkPolicyOperationCallable", "deleteNetworkPolicyCallable"] }, @@ -43,9 +73,24 @@ "DeleteVmwareEngineNetwork": { "methods": ["deleteVmwareEngineNetworkAsync", "deleteVmwareEngineNetworkAsync", "deleteVmwareEngineNetworkAsync", "deleteVmwareEngineNetworkOperationCallable", "deleteVmwareEngineNetworkCallable"] }, + "FetchNetworkPolicyExternalAddresses": { + "methods": ["fetchNetworkPolicyExternalAddresses", "fetchNetworkPolicyExternalAddresses", "fetchNetworkPolicyExternalAddresses", "fetchNetworkPolicyExternalAddressesPagedCallable", "fetchNetworkPolicyExternalAddressesCallable"] + }, "GetCluster": { "methods": ["getCluster", "getCluster", "getCluster", "getClusterCallable"] }, + "GetDnsBindPermission": { + "methods": ["getDnsBindPermission", "getDnsBindPermission", "getDnsBindPermission", "getDnsBindPermissionCallable"] + }, + "GetDnsForwarding": { + "methods": ["getDnsForwarding", "getDnsForwarding", "getDnsForwarding", "getDnsForwardingCallable"] + }, + "GetExternalAccessRule": { + "methods": ["getExternalAccessRule", "getExternalAccessRule", "getExternalAccessRule", "getExternalAccessRuleCallable"] + }, + "GetExternalAddress": { + "methods": ["getExternalAddress", "getExternalAddress", "getExternalAddress", "getExternalAddressCallable"] + }, "GetHcxActivationKey": { "methods": ["getHcxActivationKey", "getHcxActivationKey", "getHcxActivationKey", "getHcxActivationKeyCallable"] }, @@ -55,9 +100,21 @@ "GetLocation": { "methods": ["getLocation", "getLocationCallable"] }, + "GetLoggingServer": { + "methods": ["getLoggingServer", "getLoggingServer", "getLoggingServer", "getLoggingServerCallable"] + }, + "GetManagementDnsZoneBinding": { + "methods": ["getManagementDnsZoneBinding", "getManagementDnsZoneBinding", "getManagementDnsZoneBinding", "getManagementDnsZoneBindingCallable"] + }, + "GetNetworkPeering": { + "methods": ["getNetworkPeering", "getNetworkPeering", "getNetworkPeering", "getNetworkPeeringCallable"] + }, "GetNetworkPolicy": { "methods": ["getNetworkPolicy", "getNetworkPolicy", "getNetworkPolicy", "getNetworkPolicyCallable"] }, + "GetNode": { + "methods": ["getNode", "getNode", "getNode", "getNodeCallable"] + }, "GetNodeType": { "methods": ["getNodeType", "getNodeType", "getNodeType", "getNodeTypeCallable"] }, @@ -73,21 +130,45 @@ "GetVmwareEngineNetwork": { "methods": ["getVmwareEngineNetwork", "getVmwareEngineNetwork", "getVmwareEngineNetwork", "getVmwareEngineNetworkCallable"] }, + "GrantDnsBindPermission": { + "methods": ["grantDnsBindPermissionAsync", "grantDnsBindPermissionAsync", "grantDnsBindPermissionAsync", "grantDnsBindPermissionOperationCallable", "grantDnsBindPermissionCallable"] + }, "ListClusters": { "methods": ["listClusters", "listClusters", "listClusters", "listClustersPagedCallable", "listClustersCallable"] }, + "ListExternalAccessRules": { + "methods": ["listExternalAccessRules", "listExternalAccessRules", "listExternalAccessRules", "listExternalAccessRulesPagedCallable", "listExternalAccessRulesCallable"] + }, + "ListExternalAddresses": { + "methods": ["listExternalAddresses", "listExternalAddresses", "listExternalAddresses", "listExternalAddressesPagedCallable", "listExternalAddressesCallable"] + }, "ListHcxActivationKeys": { "methods": ["listHcxActivationKeys", "listHcxActivationKeys", "listHcxActivationKeys", "listHcxActivationKeysPagedCallable", "listHcxActivationKeysCallable"] }, "ListLocations": { "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] }, + "ListLoggingServers": { + "methods": ["listLoggingServers", "listLoggingServers", "listLoggingServers", "listLoggingServersPagedCallable", "listLoggingServersCallable"] + }, + "ListManagementDnsZoneBindings": { + "methods": ["listManagementDnsZoneBindings", "listManagementDnsZoneBindings", "listManagementDnsZoneBindings", "listManagementDnsZoneBindingsPagedCallable", "listManagementDnsZoneBindingsCallable"] + }, + "ListNetworkPeerings": { + "methods": ["listNetworkPeerings", "listNetworkPeerings", "listNetworkPeerings", "listNetworkPeeringsPagedCallable", "listNetworkPeeringsCallable"] + }, "ListNetworkPolicies": { "methods": ["listNetworkPolicies", "listNetworkPolicies", "listNetworkPolicies", "listNetworkPoliciesPagedCallable", "listNetworkPoliciesCallable"] }, "ListNodeTypes": { "methods": ["listNodeTypes", "listNodeTypes", "listNodeTypes", "listNodeTypesPagedCallable", "listNodeTypesCallable"] }, + "ListNodes": { + "methods": ["listNodes", "listNodes", "listNodes", "listNodesPagedCallable", "listNodesCallable"] + }, + "ListPeeringRoutes": { + "methods": ["listPeeringRoutes", "listPeeringRoutes", "listPeeringRoutes", "listPeeringRoutesPagedCallable", "listPeeringRoutesCallable"] + }, "ListPrivateClouds": { "methods": ["listPrivateClouds", "listPrivateClouds", "listPrivateClouds", "listPrivateCloudsPagedCallable", "listPrivateCloudsCallable"] }, @@ -103,12 +184,18 @@ "ListVmwareEngineNetworks": { "methods": ["listVmwareEngineNetworks", "listVmwareEngineNetworks", "listVmwareEngineNetworks", "listVmwareEngineNetworksPagedCallable", "listVmwareEngineNetworksCallable"] }, + "RepairManagementDnsZoneBinding": { + "methods": ["repairManagementDnsZoneBindingAsync", "repairManagementDnsZoneBindingAsync", "repairManagementDnsZoneBindingAsync", "repairManagementDnsZoneBindingOperationCallable", "repairManagementDnsZoneBindingCallable"] + }, "ResetNsxCredentials": { "methods": ["resetNsxCredentialsAsync", "resetNsxCredentialsAsync", "resetNsxCredentialsAsync", "resetNsxCredentialsOperationCallable", "resetNsxCredentialsCallable"] }, "ResetVcenterCredentials": { "methods": ["resetVcenterCredentialsAsync", "resetVcenterCredentialsAsync", "resetVcenterCredentialsAsync", "resetVcenterCredentialsOperationCallable", "resetVcenterCredentialsCallable"] }, + "RevokeDnsBindPermission": { + "methods": ["revokeDnsBindPermissionAsync", "revokeDnsBindPermissionAsync", "revokeDnsBindPermissionAsync", "revokeDnsBindPermissionOperationCallable", "revokeDnsBindPermissionCallable"] + }, "SetIamPolicy": { "methods": ["setIamPolicy", "setIamPolicyCallable"] }, @@ -127,6 +214,24 @@ "UpdateCluster": { "methods": ["updateClusterAsync", "updateClusterAsync", "updateClusterOperationCallable", "updateClusterCallable"] }, + "UpdateDnsForwarding": { + "methods": ["updateDnsForwardingAsync", "updateDnsForwardingAsync", "updateDnsForwardingOperationCallable", "updateDnsForwardingCallable"] + }, + "UpdateExternalAccessRule": { + "methods": ["updateExternalAccessRuleAsync", "updateExternalAccessRuleAsync", "updateExternalAccessRuleOperationCallable", "updateExternalAccessRuleCallable"] + }, + "UpdateExternalAddress": { + "methods": ["updateExternalAddressAsync", "updateExternalAddressAsync", "updateExternalAddressOperationCallable", "updateExternalAddressCallable"] + }, + "UpdateLoggingServer": { + "methods": ["updateLoggingServerAsync", "updateLoggingServerAsync", "updateLoggingServerOperationCallable", "updateLoggingServerCallable"] + }, + "UpdateManagementDnsZoneBinding": { + "methods": ["updateManagementDnsZoneBindingAsync", "updateManagementDnsZoneBindingAsync", "updateManagementDnsZoneBindingOperationCallable", "updateManagementDnsZoneBindingCallable"] + }, + "UpdateNetworkPeering": { + "methods": ["updateNetworkPeeringAsync", "updateNetworkPeeringAsync", "updateNetworkPeeringOperationCallable", "updateNetworkPeeringCallable"] + }, "UpdateNetworkPolicy": { "methods": ["updateNetworkPolicyAsync", "updateNetworkPolicyAsync", "updateNetworkPolicyOperationCallable", "updateNetworkPolicyCallable"] }, 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 d126926ac2b4..ba1ea375a966 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 @@ -16,11 +16,19 @@ package com.google.cloud.vmwareengine.v1.stub; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.FetchNetworkPolicyExternalAddressesPagedResponse; import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListClustersPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListExternalAccessRulesPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListExternalAddressesPagedResponse; import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListHcxActivationKeysPagedResponse; import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListLocationsPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListLoggingServersPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListManagementDnsZoneBindingsPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNetworkPeeringsPagedResponse; 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.ListNodesPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPeeringRoutesPagedResponse; 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; @@ -41,34 +49,73 @@ import com.google.cloud.location.Location; import com.google.cloud.vmwareengine.v1.Cluster; import com.google.cloud.vmwareengine.v1.CreateClusterRequest; +import com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest; +import com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest; import com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest; +import com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest; +import com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest; +import com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest; 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.DeleteExternalAccessRuleRequest; +import com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest; +import com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest; +import com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest; +import com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest; 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.DnsBindPermission; +import com.google.cloud.vmwareengine.v1.DnsForwarding; +import com.google.cloud.vmwareengine.v1.ExternalAccessRule; +import com.google.cloud.vmwareengine.v1.ExternalAddress; +import com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest; +import com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse; import com.google.cloud.vmwareengine.v1.GetClusterRequest; +import com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest; +import com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest; +import com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest; +import com.google.cloud.vmwareengine.v1.GetExternalAddressRequest; import com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest; +import com.google.cloud.vmwareengine.v1.GetLoggingServerRequest; +import com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest; +import com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest; import com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest; +import com.google.cloud.vmwareengine.v1.GetNodeRequest; 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.GrantDnsBindPermissionRequest; import com.google.cloud.vmwareengine.v1.HcxActivationKey; import com.google.cloud.vmwareengine.v1.ListClustersRequest; import com.google.cloud.vmwareengine.v1.ListClustersResponse; +import com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest; +import com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse; +import com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest; +import com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse; import com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest; import com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse; +import com.google.cloud.vmwareengine.v1.ListLoggingServersRequest; +import com.google.cloud.vmwareengine.v1.ListLoggingServersResponse; +import com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest; +import com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse; +import com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest; +import com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse; import com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest; import com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse; import com.google.cloud.vmwareengine.v1.ListNodeTypesRequest; import com.google.cloud.vmwareengine.v1.ListNodeTypesResponse; +import com.google.cloud.vmwareengine.v1.ListNodesRequest; +import com.google.cloud.vmwareengine.v1.ListNodesResponse; +import com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest; +import com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse; import com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest; import com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse; import com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest; @@ -79,18 +126,30 @@ import com.google.cloud.vmwareengine.v1.ListSubnetsResponse; import com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest; import com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse; +import com.google.cloud.vmwareengine.v1.LoggingServer; +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding; +import com.google.cloud.vmwareengine.v1.NetworkPeering; import com.google.cloud.vmwareengine.v1.NetworkPolicy; +import com.google.cloud.vmwareengine.v1.Node; 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.RepairManagementDnsZoneBindingRequest; import com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest; import com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest; +import com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest; 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.UpdateDnsForwardingRequest; +import com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest; +import com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest; +import com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest; +import com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest; +import com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest; import com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest; import com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest; import com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest; @@ -228,6 +287,92 @@ public class GrpcVmwareEngineStub extends VmwareEngineStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + listNodesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ListNodes") + .setRequestMarshaller(ProtoUtils.marshaller(ListNodesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListNodesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getNodeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetNode") + .setRequestMarshaller(ProtoUtils.marshaller(GetNodeRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Node.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listExternalAddressesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ListExternalAddresses") + .setRequestMarshaller( + ProtoUtils.marshaller(ListExternalAddressesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListExternalAddressesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + FetchNetworkPolicyExternalAddressesRequest, FetchNetworkPolicyExternalAddressesResponse> + fetchNetworkPolicyExternalAddressesMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.vmwareengine.v1.VmwareEngine/FetchNetworkPolicyExternalAddresses") + .setRequestMarshaller( + ProtoUtils.marshaller( + FetchNetworkPolicyExternalAddressesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + FetchNetworkPolicyExternalAddressesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getExternalAddressMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetExternalAddress") + .setRequestMarshaller( + ProtoUtils.marshaller(GetExternalAddressRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ExternalAddress.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createExternalAddressMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/CreateExternalAddress") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateExternalAddressRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateExternalAddressMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/UpdateExternalAddress") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateExternalAddressRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteExternalAddressMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/DeleteExternalAddress") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteExternalAddressRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor listSubnetsMethodDescriptor = MethodDescriptor.newBuilder() @@ -255,6 +400,114 @@ public class GrpcVmwareEngineStub extends VmwareEngineStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor< + ListExternalAccessRulesRequest, ListExternalAccessRulesResponse> + listExternalAccessRulesMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.vmwareengine.v1.VmwareEngine/ListExternalAccessRules") + .setRequestMarshaller( + ProtoUtils.marshaller(ListExternalAccessRulesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListExternalAccessRulesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getExternalAccessRuleMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetExternalAccessRule") + .setRequestMarshaller( + ProtoUtils.marshaller(GetExternalAccessRuleRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ExternalAccessRule.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createExternalAccessRuleMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.vmwareengine.v1.VmwareEngine/CreateExternalAccessRule") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateExternalAccessRuleRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateExternalAccessRuleMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.vmwareengine.v1.VmwareEngine/UpdateExternalAccessRule") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateExternalAccessRuleRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteExternalAccessRuleMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.vmwareengine.v1.VmwareEngine/DeleteExternalAccessRule") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteExternalAccessRuleRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listLoggingServersMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ListLoggingServers") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLoggingServersRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLoggingServersResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getLoggingServerMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetLoggingServer") + .setRequestMarshaller( + ProtoUtils.marshaller(GetLoggingServerRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(LoggingServer.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createLoggingServerMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/CreateLoggingServer") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateLoggingServerRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateLoggingServerMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/UpdateLoggingServer") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateLoggingServerRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteLoggingServerMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/DeleteLoggingServer") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteLoggingServerRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor listNodeTypesMethodDescriptor = MethodDescriptor.newBuilder() @@ -315,6 +568,88 @@ public class GrpcVmwareEngineStub extends VmwareEngineStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + getDnsForwardingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetDnsForwarding") + .setRequestMarshaller( + ProtoUtils.marshaller(GetDnsForwardingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DnsForwarding.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateDnsForwardingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/UpdateDnsForwarding") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateDnsForwardingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getNetworkPeeringMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetNetworkPeering") + .setRequestMarshaller( + ProtoUtils.marshaller(GetNetworkPeeringRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(NetworkPeering.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listNetworkPeeringsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ListNetworkPeerings") + .setRequestMarshaller( + ProtoUtils.marshaller(ListNetworkPeeringsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListNetworkPeeringsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createNetworkPeeringMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/CreateNetworkPeering") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateNetworkPeeringRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteNetworkPeeringMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/DeleteNetworkPeering") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteNetworkPeeringRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateNetworkPeeringMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/UpdateNetworkPeering") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateNetworkPeeringRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listPeeringRoutesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ListPeeringRoutes") + .setRequestMarshaller( + ProtoUtils.marshaller(ListPeeringRoutesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListPeeringRoutesResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor createHcxActivationKeyMethodDescriptor = MethodDescriptor.newBuilder() @@ -397,6 +732,79 @@ public class GrpcVmwareEngineStub extends VmwareEngineStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor< + ListManagementDnsZoneBindingsRequest, ListManagementDnsZoneBindingsResponse> + listManagementDnsZoneBindingsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.vmwareengine.v1.VmwareEngine/ListManagementDnsZoneBindings") + .setRequestMarshaller( + ProtoUtils.marshaller(ListManagementDnsZoneBindingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListManagementDnsZoneBindingsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + GetManagementDnsZoneBindingRequest, ManagementDnsZoneBinding> + getManagementDnsZoneBindingMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.vmwareengine.v1.VmwareEngine/GetManagementDnsZoneBinding") + .setRequestMarshaller( + ProtoUtils.marshaller(GetManagementDnsZoneBindingRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ManagementDnsZoneBinding.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createManagementDnsZoneBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.vmwareengine.v1.VmwareEngine/CreateManagementDnsZoneBinding") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateManagementDnsZoneBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateManagementDnsZoneBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.vmwareengine.v1.VmwareEngine/UpdateManagementDnsZoneBinding") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateManagementDnsZoneBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteManagementDnsZoneBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.vmwareengine.v1.VmwareEngine/DeleteManagementDnsZoneBinding") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteManagementDnsZoneBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + repairManagementDnsZoneBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.vmwareengine.v1.VmwareEngine/RepairManagementDnsZoneBinding") + .setRequestMarshaller( + ProtoUtils.marshaller(RepairManagementDnsZoneBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor createVmwareEngineNetworkMethodDescriptor = MethodDescriptor.newBuilder() @@ -529,6 +937,37 @@ public class GrpcVmwareEngineStub extends VmwareEngineStub { ListPrivateConnectionPeeringRoutesResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor + grantDnsBindPermissionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GrantDnsBindPermission") + .setRequestMarshaller( + ProtoUtils.marshaller(GrantDnsBindPermissionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getDnsBindPermissionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetDnsBindPermission") + .setRequestMarshaller( + ProtoUtils.marshaller(GetDnsBindPermissionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DnsBindPermission.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + revokeDnsBindPermissionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.vmwareengine.v1.VmwareEngine/RevokeDnsBindPermission") + .setRequestMarshaller( + ProtoUtils.marshaller(RevokeDnsBindPermissionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -605,6 +1044,34 @@ public class GrpcVmwareEngineStub extends VmwareEngineStub { private final UnaryCallable deleteClusterCallable; private final OperationCallable deleteClusterOperationCallable; + private final UnaryCallable listNodesCallable; + private final UnaryCallable listNodesPagedCallable; + private final UnaryCallable getNodeCallable; + private final UnaryCallable + listExternalAddressesCallable; + private final UnaryCallable + listExternalAddressesPagedCallable; + private final UnaryCallable< + FetchNetworkPolicyExternalAddressesRequest, FetchNetworkPolicyExternalAddressesResponse> + fetchNetworkPolicyExternalAddressesCallable; + private final UnaryCallable< + FetchNetworkPolicyExternalAddressesRequest, + FetchNetworkPolicyExternalAddressesPagedResponse> + fetchNetworkPolicyExternalAddressesPagedCallable; + private final UnaryCallable + getExternalAddressCallable; + private final UnaryCallable + createExternalAddressCallable; + private final OperationCallable + createExternalAddressOperationCallable; + private final UnaryCallable + updateExternalAddressCallable; + private final OperationCallable + updateExternalAddressOperationCallable; + private final UnaryCallable + deleteExternalAddressCallable; + private final OperationCallable + deleteExternalAddressOperationCallable; private final UnaryCallable listSubnetsCallable; private final UnaryCallable listSubnetsPagedCallable; @@ -612,6 +1079,40 @@ public class GrpcVmwareEngineStub extends VmwareEngineStub { private final UnaryCallable updateSubnetCallable; private final OperationCallable updateSubnetOperationCallable; + private final UnaryCallable + listExternalAccessRulesCallable; + private final UnaryCallable + listExternalAccessRulesPagedCallable; + private final UnaryCallable + getExternalAccessRuleCallable; + private final UnaryCallable + createExternalAccessRuleCallable; + private final OperationCallable< + CreateExternalAccessRuleRequest, ExternalAccessRule, OperationMetadata> + createExternalAccessRuleOperationCallable; + private final UnaryCallable + updateExternalAccessRuleCallable; + private final OperationCallable< + UpdateExternalAccessRuleRequest, ExternalAccessRule, OperationMetadata> + updateExternalAccessRuleOperationCallable; + private final UnaryCallable + deleteExternalAccessRuleCallable; + private final OperationCallable + deleteExternalAccessRuleOperationCallable; + private final UnaryCallable + listLoggingServersCallable; + private final UnaryCallable + listLoggingServersPagedCallable; + private final UnaryCallable getLoggingServerCallable; + private final UnaryCallable createLoggingServerCallable; + private final OperationCallable + createLoggingServerOperationCallable; + private final UnaryCallable updateLoggingServerCallable; + private final OperationCallable + updateLoggingServerOperationCallable; + private final UnaryCallable deleteLoggingServerCallable; + private final OperationCallable + deleteLoggingServerOperationCallable; private final UnaryCallable listNodeTypesCallable; private final UnaryCallable listNodeTypesPagedCallable; @@ -626,6 +1127,28 @@ public class GrpcVmwareEngineStub extends VmwareEngineStub { resetVcenterCredentialsCallable; private final OperationCallable resetVcenterCredentialsOperationCallable; + private final UnaryCallable getDnsForwardingCallable; + private final UnaryCallable updateDnsForwardingCallable; + private final OperationCallable + updateDnsForwardingOperationCallable; + private final UnaryCallable getNetworkPeeringCallable; + private final UnaryCallable + listNetworkPeeringsCallable; + private final UnaryCallable + listNetworkPeeringsPagedCallable; + private final UnaryCallable createNetworkPeeringCallable; + private final OperationCallable + createNetworkPeeringOperationCallable; + private final UnaryCallable deleteNetworkPeeringCallable; + private final OperationCallable + deleteNetworkPeeringOperationCallable; + private final UnaryCallable updateNetworkPeeringCallable; + private final OperationCallable + updateNetworkPeeringOperationCallable; + private final UnaryCallable + listPeeringRoutesCallable; + private final UnaryCallable + listPeeringRoutesPagedCallable; private final UnaryCallable createHcxActivationKeyCallable; private final OperationCallable< @@ -651,6 +1174,33 @@ public class GrpcVmwareEngineStub extends VmwareEngineStub { private final UnaryCallable deleteNetworkPolicyCallable; private final OperationCallable deleteNetworkPolicyOperationCallable; + private final UnaryCallable< + ListManagementDnsZoneBindingsRequest, ListManagementDnsZoneBindingsResponse> + listManagementDnsZoneBindingsCallable; + private final UnaryCallable< + ListManagementDnsZoneBindingsRequest, ListManagementDnsZoneBindingsPagedResponse> + listManagementDnsZoneBindingsPagedCallable; + private final UnaryCallable + getManagementDnsZoneBindingCallable; + private final UnaryCallable + createManagementDnsZoneBindingCallable; + private final OperationCallable< + CreateManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + createManagementDnsZoneBindingOperationCallable; + private final UnaryCallable + updateManagementDnsZoneBindingCallable; + private final OperationCallable< + UpdateManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + updateManagementDnsZoneBindingOperationCallable; + private final UnaryCallable + deleteManagementDnsZoneBindingCallable; + private final OperationCallable + deleteManagementDnsZoneBindingOperationCallable; + private final UnaryCallable + repairManagementDnsZoneBindingCallable; + private final OperationCallable< + RepairManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + repairManagementDnsZoneBindingOperationCallable; private final UnaryCallable createVmwareEngineNetworkCallable; private final OperationCallable< @@ -699,6 +1249,18 @@ public class GrpcVmwareEngineStub extends VmwareEngineStub { ListPrivateConnectionPeeringRoutesRequest, ListPrivateConnectionPeeringRoutesPagedResponse> listPrivateConnectionPeeringRoutesPagedCallable; + private final UnaryCallable + grantDnsBindPermissionCallable; + private final OperationCallable< + GrantDnsBindPermissionRequest, DnsBindPermission, OperationMetadata> + grantDnsBindPermissionOperationCallable; + private final UnaryCallable + getDnsBindPermissionCallable; + private final UnaryCallable + revokeDnsBindPermissionCallable; + private final OperationCallable< + RevokeDnsBindPermissionRequest, DnsBindPermission, OperationMetadata> + revokeDnsBindPermissionOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -862,39 +1424,9 @@ protected GrpcVmwareEngineStub( return builder.build(); }) .build(); - GrpcCallSettings listSubnetsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listSubnetsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - 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) + GrpcCallSettings listNodesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listNodesMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); @@ -902,9 +1434,9 @@ protected GrpcVmwareEngineStub( return builder.build(); }) .build(); - GrpcCallSettings getNodeTypeTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getNodeTypeMethodDescriptor) + GrpcCallSettings getNodeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getNodeMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); @@ -912,30 +1444,263 @@ protected GrpcVmwareEngineStub( return builder.build(); }) .build(); - GrpcCallSettings showNsxCredentialsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(showNsxCredentialsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("private_cloud", String.valueOf(request.getPrivateCloud())); - return builder.build(); - }) - .build(); - GrpcCallSettings - showVcenterCredentialsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(showVcenterCredentialsMethodDescriptor) + GrpcCallSettings + listExternalAddressesTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listExternalAddressesMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("private_cloud", String.valueOf(request.getPrivateCloud())); + builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); - GrpcCallSettings resetNsxCredentialsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(resetNsxCredentialsMethodDescriptor) + GrpcCallSettings< + FetchNetworkPolicyExternalAddressesRequest, FetchNetworkPolicyExternalAddressesResponse> + fetchNetworkPolicyExternalAddressesTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(fetchNetworkPolicyExternalAddressesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("network_policy", String.valueOf(request.getNetworkPolicy())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getExternalAddressTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getExternalAddressMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createExternalAddressTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createExternalAddressMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateExternalAddressTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateExternalAddressMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "external_address.name", + String.valueOf(request.getExternalAddress().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteExternalAddressTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteExternalAddressMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listSubnetsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listSubnetsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + 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 + listExternalAccessRulesTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listExternalAccessRulesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getExternalAccessRuleTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getExternalAccessRuleMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createExternalAccessRuleTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createExternalAccessRuleMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateExternalAccessRuleTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateExternalAccessRuleMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "external_access_rule.name", + String.valueOf(request.getExternalAccessRule().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteExternalAccessRuleTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteExternalAccessRuleMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listLoggingServersTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLoggingServersMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLoggingServerTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLoggingServerMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createLoggingServerTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createLoggingServerMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateLoggingServerTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateLoggingServerMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "logging_server.name", String.valueOf(request.getLoggingServer().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteLoggingServerTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteLoggingServerMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listNodeTypesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listNodeTypesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getNodeTypeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getNodeTypeMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings showNsxCredentialsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(showNsxCredentialsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("private_cloud", String.valueOf(request.getPrivateCloud())); + return builder.build(); + }) + .build(); + GrpcCallSettings + showVcenterCredentialsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(showVcenterCredentialsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("private_cloud", String.valueOf(request.getPrivateCloud())); + return builder.build(); + }) + .build(); + GrpcCallSettings resetNsxCredentialsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(resetNsxCredentialsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); @@ -954,6 +1719,91 @@ protected GrpcVmwareEngineStub( return builder.build(); }) .build(); + GrpcCallSettings getDnsForwardingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDnsForwardingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateDnsForwardingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateDnsForwardingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "dns_forwarding.name", String.valueOf(request.getDnsForwarding().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getNetworkPeeringTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getNetworkPeeringMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listNetworkPeeringsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listNetworkPeeringsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings createNetworkPeeringTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createNetworkPeeringMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteNetworkPeeringTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteNetworkPeeringMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateNetworkPeeringTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateNetworkPeeringMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "network_peering.name", + String.valueOf(request.getNetworkPeering().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listPeeringRoutesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listPeeringRoutesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); GrpcCallSettings createHcxActivationKeyTransportSettings = GrpcCallSettings.newBuilder() @@ -1040,6 +1890,77 @@ protected GrpcVmwareEngineStub( return builder.build(); }) .build(); + GrpcCallSettings + listManagementDnsZoneBindingsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listManagementDnsZoneBindingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getManagementDnsZoneBindingTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(getManagementDnsZoneBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createManagementDnsZoneBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createManagementDnsZoneBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateManagementDnsZoneBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateManagementDnsZoneBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "management_dns_zone_binding.name", + String.valueOf(request.getManagementDnsZoneBinding().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteManagementDnsZoneBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteManagementDnsZoneBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + repairManagementDnsZoneBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(repairManagementDnsZoneBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings createVmwareEngineNetworkTransportSettings = GrpcCallSettings.newBuilder() @@ -1171,6 +2092,39 @@ protected GrpcVmwareEngineStub( return builder.build(); }) .build(); + GrpcCallSettings + grantDnsBindPermissionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(grantDnsBindPermissionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getDnsBindPermissionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDnsBindPermissionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + revokeDnsBindPermissionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(revokeDnsBindPermissionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -1316,6 +2270,73 @@ protected GrpcVmwareEngineStub( settings.deleteClusterOperationSettings(), clientContext, operationsStub); + this.listNodesCallable = + callableFactory.createUnaryCallable( + listNodesTransportSettings, settings.listNodesSettings(), clientContext); + this.listNodesPagedCallable = + callableFactory.createPagedCallable( + listNodesTransportSettings, settings.listNodesSettings(), clientContext); + this.getNodeCallable = + callableFactory.createUnaryCallable( + getNodeTransportSettings, settings.getNodeSettings(), clientContext); + this.listExternalAddressesCallable = + callableFactory.createUnaryCallable( + listExternalAddressesTransportSettings, + settings.listExternalAddressesSettings(), + clientContext); + this.listExternalAddressesPagedCallable = + callableFactory.createPagedCallable( + listExternalAddressesTransportSettings, + settings.listExternalAddressesSettings(), + clientContext); + this.fetchNetworkPolicyExternalAddressesCallable = + callableFactory.createUnaryCallable( + fetchNetworkPolicyExternalAddressesTransportSettings, + settings.fetchNetworkPolicyExternalAddressesSettings(), + clientContext); + this.fetchNetworkPolicyExternalAddressesPagedCallable = + callableFactory.createPagedCallable( + fetchNetworkPolicyExternalAddressesTransportSettings, + settings.fetchNetworkPolicyExternalAddressesSettings(), + clientContext); + this.getExternalAddressCallable = + callableFactory.createUnaryCallable( + getExternalAddressTransportSettings, + settings.getExternalAddressSettings(), + clientContext); + this.createExternalAddressCallable = + callableFactory.createUnaryCallable( + createExternalAddressTransportSettings, + settings.createExternalAddressSettings(), + clientContext); + this.createExternalAddressOperationCallable = + callableFactory.createOperationCallable( + createExternalAddressTransportSettings, + settings.createExternalAddressOperationSettings(), + clientContext, + operationsStub); + this.updateExternalAddressCallable = + callableFactory.createUnaryCallable( + updateExternalAddressTransportSettings, + settings.updateExternalAddressSettings(), + clientContext); + this.updateExternalAddressOperationCallable = + callableFactory.createOperationCallable( + updateExternalAddressTransportSettings, + settings.updateExternalAddressOperationSettings(), + clientContext, + operationsStub); + this.deleteExternalAddressCallable = + callableFactory.createUnaryCallable( + deleteExternalAddressTransportSettings, + settings.deleteExternalAddressSettings(), + clientContext); + this.deleteExternalAddressOperationCallable = + callableFactory.createOperationCallable( + deleteExternalAddressTransportSettings, + settings.deleteExternalAddressOperationSettings(), + clientContext, + operationsStub); this.listSubnetsCallable = callableFactory.createUnaryCallable( listSubnetsTransportSettings, settings.listSubnetsSettings(), clientContext); @@ -1334,6 +2355,100 @@ protected GrpcVmwareEngineStub( settings.updateSubnetOperationSettings(), clientContext, operationsStub); + this.listExternalAccessRulesCallable = + callableFactory.createUnaryCallable( + listExternalAccessRulesTransportSettings, + settings.listExternalAccessRulesSettings(), + clientContext); + this.listExternalAccessRulesPagedCallable = + callableFactory.createPagedCallable( + listExternalAccessRulesTransportSettings, + settings.listExternalAccessRulesSettings(), + clientContext); + this.getExternalAccessRuleCallable = + callableFactory.createUnaryCallable( + getExternalAccessRuleTransportSettings, + settings.getExternalAccessRuleSettings(), + clientContext); + this.createExternalAccessRuleCallable = + callableFactory.createUnaryCallable( + createExternalAccessRuleTransportSettings, + settings.createExternalAccessRuleSettings(), + clientContext); + this.createExternalAccessRuleOperationCallable = + callableFactory.createOperationCallable( + createExternalAccessRuleTransportSettings, + settings.createExternalAccessRuleOperationSettings(), + clientContext, + operationsStub); + this.updateExternalAccessRuleCallable = + callableFactory.createUnaryCallable( + updateExternalAccessRuleTransportSettings, + settings.updateExternalAccessRuleSettings(), + clientContext); + this.updateExternalAccessRuleOperationCallable = + callableFactory.createOperationCallable( + updateExternalAccessRuleTransportSettings, + settings.updateExternalAccessRuleOperationSettings(), + clientContext, + operationsStub); + this.deleteExternalAccessRuleCallable = + callableFactory.createUnaryCallable( + deleteExternalAccessRuleTransportSettings, + settings.deleteExternalAccessRuleSettings(), + clientContext); + this.deleteExternalAccessRuleOperationCallable = + callableFactory.createOperationCallable( + deleteExternalAccessRuleTransportSettings, + settings.deleteExternalAccessRuleOperationSettings(), + clientContext, + operationsStub); + this.listLoggingServersCallable = + callableFactory.createUnaryCallable( + listLoggingServersTransportSettings, + settings.listLoggingServersSettings(), + clientContext); + this.listLoggingServersPagedCallable = + callableFactory.createPagedCallable( + listLoggingServersTransportSettings, + settings.listLoggingServersSettings(), + clientContext); + this.getLoggingServerCallable = + callableFactory.createUnaryCallable( + getLoggingServerTransportSettings, settings.getLoggingServerSettings(), clientContext); + this.createLoggingServerCallable = + callableFactory.createUnaryCallable( + createLoggingServerTransportSettings, + settings.createLoggingServerSettings(), + clientContext); + this.createLoggingServerOperationCallable = + callableFactory.createOperationCallable( + createLoggingServerTransportSettings, + settings.createLoggingServerOperationSettings(), + clientContext, + operationsStub); + this.updateLoggingServerCallable = + callableFactory.createUnaryCallable( + updateLoggingServerTransportSettings, + settings.updateLoggingServerSettings(), + clientContext); + this.updateLoggingServerOperationCallable = + callableFactory.createOperationCallable( + updateLoggingServerTransportSettings, + settings.updateLoggingServerOperationSettings(), + clientContext, + operationsStub); + this.deleteLoggingServerCallable = + callableFactory.createUnaryCallable( + deleteLoggingServerTransportSettings, + settings.deleteLoggingServerSettings(), + clientContext); + this.deleteLoggingServerOperationCallable = + callableFactory.createOperationCallable( + deleteLoggingServerTransportSettings, + settings.deleteLoggingServerOperationSettings(), + clientContext, + operationsStub); this.listNodeTypesCallable = callableFactory.createUnaryCallable( listNodeTypesTransportSettings, settings.listNodeTypesSettings(), clientContext); @@ -1342,39 +2457,111 @@ protected GrpcVmwareEngineStub( listNodeTypesTransportSettings, settings.listNodeTypesSettings(), clientContext); this.getNodeTypeCallable = callableFactory.createUnaryCallable( - getNodeTypeTransportSettings, settings.getNodeTypeSettings(), clientContext); - this.showNsxCredentialsCallable = + getNodeTypeTransportSettings, settings.getNodeTypeSettings(), clientContext); + this.showNsxCredentialsCallable = + callableFactory.createUnaryCallable( + showNsxCredentialsTransportSettings, + settings.showNsxCredentialsSettings(), + clientContext); + this.showVcenterCredentialsCallable = + callableFactory.createUnaryCallable( + showVcenterCredentialsTransportSettings, + settings.showVcenterCredentialsSettings(), + clientContext); + this.resetNsxCredentialsCallable = + callableFactory.createUnaryCallable( + resetNsxCredentialsTransportSettings, + settings.resetNsxCredentialsSettings(), + clientContext); + this.resetNsxCredentialsOperationCallable = + callableFactory.createOperationCallable( + resetNsxCredentialsTransportSettings, + settings.resetNsxCredentialsOperationSettings(), + clientContext, + operationsStub); + this.resetVcenterCredentialsCallable = + callableFactory.createUnaryCallable( + resetVcenterCredentialsTransportSettings, + settings.resetVcenterCredentialsSettings(), + clientContext); + this.resetVcenterCredentialsOperationCallable = + callableFactory.createOperationCallable( + resetVcenterCredentialsTransportSettings, + settings.resetVcenterCredentialsOperationSettings(), + clientContext, + operationsStub); + this.getDnsForwardingCallable = + callableFactory.createUnaryCallable( + getDnsForwardingTransportSettings, settings.getDnsForwardingSettings(), clientContext); + this.updateDnsForwardingCallable = + callableFactory.createUnaryCallable( + updateDnsForwardingTransportSettings, + settings.updateDnsForwardingSettings(), + clientContext); + this.updateDnsForwardingOperationCallable = + callableFactory.createOperationCallable( + updateDnsForwardingTransportSettings, + settings.updateDnsForwardingOperationSettings(), + clientContext, + operationsStub); + this.getNetworkPeeringCallable = + callableFactory.createUnaryCallable( + getNetworkPeeringTransportSettings, + settings.getNetworkPeeringSettings(), + clientContext); + this.listNetworkPeeringsCallable = callableFactory.createUnaryCallable( - showNsxCredentialsTransportSettings, - settings.showNsxCredentialsSettings(), + listNetworkPeeringsTransportSettings, + settings.listNetworkPeeringsSettings(), clientContext); - this.showVcenterCredentialsCallable = + this.listNetworkPeeringsPagedCallable = + callableFactory.createPagedCallable( + listNetworkPeeringsTransportSettings, + settings.listNetworkPeeringsSettings(), + clientContext); + this.createNetworkPeeringCallable = callableFactory.createUnaryCallable( - showVcenterCredentialsTransportSettings, - settings.showVcenterCredentialsSettings(), + createNetworkPeeringTransportSettings, + settings.createNetworkPeeringSettings(), clientContext); - this.resetNsxCredentialsCallable = + this.createNetworkPeeringOperationCallable = + callableFactory.createOperationCallable( + createNetworkPeeringTransportSettings, + settings.createNetworkPeeringOperationSettings(), + clientContext, + operationsStub); + this.deleteNetworkPeeringCallable = callableFactory.createUnaryCallable( - resetNsxCredentialsTransportSettings, - settings.resetNsxCredentialsSettings(), + deleteNetworkPeeringTransportSettings, + settings.deleteNetworkPeeringSettings(), clientContext); - this.resetNsxCredentialsOperationCallable = + this.deleteNetworkPeeringOperationCallable = callableFactory.createOperationCallable( - resetNsxCredentialsTransportSettings, - settings.resetNsxCredentialsOperationSettings(), + deleteNetworkPeeringTransportSettings, + settings.deleteNetworkPeeringOperationSettings(), clientContext, operationsStub); - this.resetVcenterCredentialsCallable = + this.updateNetworkPeeringCallable = callableFactory.createUnaryCallable( - resetVcenterCredentialsTransportSettings, - settings.resetVcenterCredentialsSettings(), + updateNetworkPeeringTransportSettings, + settings.updateNetworkPeeringSettings(), clientContext); - this.resetVcenterCredentialsOperationCallable = + this.updateNetworkPeeringOperationCallable = callableFactory.createOperationCallable( - resetVcenterCredentialsTransportSettings, - settings.resetVcenterCredentialsOperationSettings(), + updateNetworkPeeringTransportSettings, + settings.updateNetworkPeeringOperationSettings(), clientContext, operationsStub); + this.listPeeringRoutesCallable = + callableFactory.createUnaryCallable( + listPeeringRoutesTransportSettings, + settings.listPeeringRoutesSettings(), + clientContext); + this.listPeeringRoutesPagedCallable = + callableFactory.createPagedCallable( + listPeeringRoutesTransportSettings, + settings.listPeeringRoutesSettings(), + clientContext); this.createHcxActivationKeyCallable = callableFactory.createUnaryCallable( createHcxActivationKeyTransportSettings, @@ -1447,6 +2634,65 @@ protected GrpcVmwareEngineStub( settings.deleteNetworkPolicyOperationSettings(), clientContext, operationsStub); + this.listManagementDnsZoneBindingsCallable = + callableFactory.createUnaryCallable( + listManagementDnsZoneBindingsTransportSettings, + settings.listManagementDnsZoneBindingsSettings(), + clientContext); + this.listManagementDnsZoneBindingsPagedCallable = + callableFactory.createPagedCallable( + listManagementDnsZoneBindingsTransportSettings, + settings.listManagementDnsZoneBindingsSettings(), + clientContext); + this.getManagementDnsZoneBindingCallable = + callableFactory.createUnaryCallable( + getManagementDnsZoneBindingTransportSettings, + settings.getManagementDnsZoneBindingSettings(), + clientContext); + this.createManagementDnsZoneBindingCallable = + callableFactory.createUnaryCallable( + createManagementDnsZoneBindingTransportSettings, + settings.createManagementDnsZoneBindingSettings(), + clientContext); + this.createManagementDnsZoneBindingOperationCallable = + callableFactory.createOperationCallable( + createManagementDnsZoneBindingTransportSettings, + settings.createManagementDnsZoneBindingOperationSettings(), + clientContext, + operationsStub); + this.updateManagementDnsZoneBindingCallable = + callableFactory.createUnaryCallable( + updateManagementDnsZoneBindingTransportSettings, + settings.updateManagementDnsZoneBindingSettings(), + clientContext); + this.updateManagementDnsZoneBindingOperationCallable = + callableFactory.createOperationCallable( + updateManagementDnsZoneBindingTransportSettings, + settings.updateManagementDnsZoneBindingOperationSettings(), + clientContext, + operationsStub); + this.deleteManagementDnsZoneBindingCallable = + callableFactory.createUnaryCallable( + deleteManagementDnsZoneBindingTransportSettings, + settings.deleteManagementDnsZoneBindingSettings(), + clientContext); + this.deleteManagementDnsZoneBindingOperationCallable = + callableFactory.createOperationCallable( + deleteManagementDnsZoneBindingTransportSettings, + settings.deleteManagementDnsZoneBindingOperationSettings(), + clientContext, + operationsStub); + this.repairManagementDnsZoneBindingCallable = + callableFactory.createUnaryCallable( + repairManagementDnsZoneBindingTransportSettings, + settings.repairManagementDnsZoneBindingSettings(), + clientContext); + this.repairManagementDnsZoneBindingOperationCallable = + callableFactory.createOperationCallable( + repairManagementDnsZoneBindingTransportSettings, + settings.repairManagementDnsZoneBindingOperationSettings(), + clientContext, + operationsStub); this.createVmwareEngineNetworkCallable = callableFactory.createUnaryCallable( createVmwareEngineNetworkTransportSettings, @@ -1553,6 +2799,33 @@ protected GrpcVmwareEngineStub( listPrivateConnectionPeeringRoutesTransportSettings, settings.listPrivateConnectionPeeringRoutesSettings(), clientContext); + this.grantDnsBindPermissionCallable = + callableFactory.createUnaryCallable( + grantDnsBindPermissionTransportSettings, + settings.grantDnsBindPermissionSettings(), + clientContext); + this.grantDnsBindPermissionOperationCallable = + callableFactory.createOperationCallable( + grantDnsBindPermissionTransportSettings, + settings.grantDnsBindPermissionOperationSettings(), + clientContext, + operationsStub); + this.getDnsBindPermissionCallable = + callableFactory.createUnaryCallable( + getDnsBindPermissionTransportSettings, + settings.getDnsBindPermissionSettings(), + clientContext); + this.revokeDnsBindPermissionCallable = + callableFactory.createUnaryCallable( + revokeDnsBindPermissionTransportSettings, + settings.revokeDnsBindPermissionSettings(), + clientContext); + this.revokeDnsBindPermissionOperationCallable = + callableFactory.createOperationCallable( + revokeDnsBindPermissionTransportSettings, + settings.revokeDnsBindPermissionOperationSettings(), + clientContext, + operationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -1691,6 +2964,86 @@ public UnaryCallable deleteClusterCallable() { return deleteClusterOperationCallable; } + @Override + public UnaryCallable listNodesCallable() { + return listNodesCallable; + } + + @Override + public UnaryCallable listNodesPagedCallable() { + return listNodesPagedCallable; + } + + @Override + public UnaryCallable getNodeCallable() { + return getNodeCallable; + } + + @Override + public UnaryCallable + listExternalAddressesCallable() { + return listExternalAddressesCallable; + } + + @Override + public UnaryCallable + listExternalAddressesPagedCallable() { + return listExternalAddressesPagedCallable; + } + + @Override + public UnaryCallable< + FetchNetworkPolicyExternalAddressesRequest, FetchNetworkPolicyExternalAddressesResponse> + fetchNetworkPolicyExternalAddressesCallable() { + return fetchNetworkPolicyExternalAddressesCallable; + } + + @Override + public UnaryCallable< + FetchNetworkPolicyExternalAddressesRequest, + FetchNetworkPolicyExternalAddressesPagedResponse> + fetchNetworkPolicyExternalAddressesPagedCallable() { + return fetchNetworkPolicyExternalAddressesPagedCallable; + } + + @Override + public UnaryCallable getExternalAddressCallable() { + return getExternalAddressCallable; + } + + @Override + public UnaryCallable createExternalAddressCallable() { + return createExternalAddressCallable; + } + + @Override + public OperationCallable + createExternalAddressOperationCallable() { + return createExternalAddressOperationCallable; + } + + @Override + public UnaryCallable updateExternalAddressCallable() { + return updateExternalAddressCallable; + } + + @Override + public OperationCallable + updateExternalAddressOperationCallable() { + return updateExternalAddressOperationCallable; + } + + @Override + public UnaryCallable deleteExternalAddressCallable() { + return deleteExternalAddressCallable; + } + + @Override + public OperationCallable + deleteExternalAddressOperationCallable() { + return deleteExternalAddressOperationCallable; + } + @Override public UnaryCallable listSubnetsCallable() { return listSubnetsCallable; @@ -1717,6 +3070,110 @@ public UnaryCallable updateSubnetCallable() { return updateSubnetOperationCallable; } + @Override + public UnaryCallable + listExternalAccessRulesCallable() { + return listExternalAccessRulesCallable; + } + + @Override + public UnaryCallable + listExternalAccessRulesPagedCallable() { + return listExternalAccessRulesPagedCallable; + } + + @Override + public UnaryCallable + getExternalAccessRuleCallable() { + return getExternalAccessRuleCallable; + } + + @Override + public UnaryCallable + createExternalAccessRuleCallable() { + return createExternalAccessRuleCallable; + } + + @Override + public OperationCallable + createExternalAccessRuleOperationCallable() { + return createExternalAccessRuleOperationCallable; + } + + @Override + public UnaryCallable + updateExternalAccessRuleCallable() { + return updateExternalAccessRuleCallable; + } + + @Override + public OperationCallable + updateExternalAccessRuleOperationCallable() { + return updateExternalAccessRuleOperationCallable; + } + + @Override + public UnaryCallable + deleteExternalAccessRuleCallable() { + return deleteExternalAccessRuleCallable; + } + + @Override + public OperationCallable + deleteExternalAccessRuleOperationCallable() { + return deleteExternalAccessRuleOperationCallable; + } + + @Override + public UnaryCallable + listLoggingServersCallable() { + return listLoggingServersCallable; + } + + @Override + public UnaryCallable + listLoggingServersPagedCallable() { + return listLoggingServersPagedCallable; + } + + @Override + public UnaryCallable getLoggingServerCallable() { + return getLoggingServerCallable; + } + + @Override + public UnaryCallable createLoggingServerCallable() { + return createLoggingServerCallable; + } + + @Override + public OperationCallable + createLoggingServerOperationCallable() { + return createLoggingServerOperationCallable; + } + + @Override + public UnaryCallable updateLoggingServerCallable() { + return updateLoggingServerCallable; + } + + @Override + public OperationCallable + updateLoggingServerOperationCallable() { + return updateLoggingServerOperationCallable; + } + + @Override + public UnaryCallable deleteLoggingServerCallable() { + return deleteLoggingServerCallable; + } + + @Override + public OperationCallable + deleteLoggingServerOperationCallable() { + return deleteLoggingServerOperationCallable; + } + @Override public UnaryCallable listNodeTypesCallable() { return listNodeTypesCallable; @@ -1767,6 +3224,84 @@ public UnaryCallable resetNsxCredentialsC return resetVcenterCredentialsOperationCallable; } + @Override + public UnaryCallable getDnsForwardingCallable() { + return getDnsForwardingCallable; + } + + @Override + public UnaryCallable updateDnsForwardingCallable() { + return updateDnsForwardingCallable; + } + + @Override + public OperationCallable + updateDnsForwardingOperationCallable() { + return updateDnsForwardingOperationCallable; + } + + @Override + public UnaryCallable getNetworkPeeringCallable() { + return getNetworkPeeringCallable; + } + + @Override + public UnaryCallable + listNetworkPeeringsCallable() { + return listNetworkPeeringsCallable; + } + + @Override + public UnaryCallable + listNetworkPeeringsPagedCallable() { + return listNetworkPeeringsPagedCallable; + } + + @Override + public UnaryCallable createNetworkPeeringCallable() { + return createNetworkPeeringCallable; + } + + @Override + public OperationCallable + createNetworkPeeringOperationCallable() { + return createNetworkPeeringOperationCallable; + } + + @Override + public UnaryCallable deleteNetworkPeeringCallable() { + return deleteNetworkPeeringCallable; + } + + @Override + public OperationCallable + deleteNetworkPeeringOperationCallable() { + return deleteNetworkPeeringOperationCallable; + } + + @Override + public UnaryCallable updateNetworkPeeringCallable() { + return updateNetworkPeeringCallable; + } + + @Override + public OperationCallable + updateNetworkPeeringOperationCallable() { + return updateNetworkPeeringOperationCallable; + } + + @Override + public UnaryCallable + listPeeringRoutesCallable() { + return listPeeringRoutesCallable; + } + + @Override + public UnaryCallable + listPeeringRoutesPagedCallable() { + return listPeeringRoutesPagedCallable; + } + @Override public UnaryCallable createHcxActivationKeyCallable() { return createHcxActivationKeyCallable; @@ -1845,6 +3380,76 @@ public UnaryCallable deleteNetworkPolicyC return deleteNetworkPolicyOperationCallable; } + @Override + public UnaryCallable + listManagementDnsZoneBindingsCallable() { + return listManagementDnsZoneBindingsCallable; + } + + @Override + public UnaryCallable< + ListManagementDnsZoneBindingsRequest, ListManagementDnsZoneBindingsPagedResponse> + listManagementDnsZoneBindingsPagedCallable() { + return listManagementDnsZoneBindingsPagedCallable; + } + + @Override + public UnaryCallable + getManagementDnsZoneBindingCallable() { + return getManagementDnsZoneBindingCallable; + } + + @Override + public UnaryCallable + createManagementDnsZoneBindingCallable() { + return createManagementDnsZoneBindingCallable; + } + + @Override + public OperationCallable< + CreateManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + createManagementDnsZoneBindingOperationCallable() { + return createManagementDnsZoneBindingOperationCallable; + } + + @Override + public UnaryCallable + updateManagementDnsZoneBindingCallable() { + return updateManagementDnsZoneBindingCallable; + } + + @Override + public OperationCallable< + UpdateManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + updateManagementDnsZoneBindingOperationCallable() { + return updateManagementDnsZoneBindingOperationCallable; + } + + @Override + public UnaryCallable + deleteManagementDnsZoneBindingCallable() { + return deleteManagementDnsZoneBindingCallable; + } + + @Override + public OperationCallable + deleteManagementDnsZoneBindingOperationCallable() { + return deleteManagementDnsZoneBindingOperationCallable; + } + + @Override + public UnaryCallable + repairManagementDnsZoneBindingCallable() { + return repairManagementDnsZoneBindingCallable; + } + + @Override + public OperationCallable< + RepairManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + repairManagementDnsZoneBindingOperationCallable() { + return repairManagementDnsZoneBindingOperationCallable; + } + @Override public UnaryCallable createVmwareEngineNetworkCallable() { @@ -1968,6 +3573,35 @@ public UnaryCallable deleteNetworkPolicyC return listPrivateConnectionPeeringRoutesPagedCallable; } + @Override + public UnaryCallable grantDnsBindPermissionCallable() { + return grantDnsBindPermissionCallable; + } + + @Override + public OperationCallable + grantDnsBindPermissionOperationCallable() { + return grantDnsBindPermissionOperationCallable; + } + + @Override + public UnaryCallable + getDnsBindPermissionCallable() { + return getDnsBindPermissionCallable; + } + + @Override + public UnaryCallable + revokeDnsBindPermissionCallable() { + return revokeDnsBindPermissionCallable; + } + + @Override + public OperationCallable + revokeDnsBindPermissionOperationCallable() { + return revokeDnsBindPermissionOperationCallable; + } + @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 163e77283d74..8cbc046182f6 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 @@ -16,11 +16,19 @@ package com.google.cloud.vmwareengine.v1.stub; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.FetchNetworkPolicyExternalAddressesPagedResponse; import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListClustersPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListExternalAccessRulesPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListExternalAddressesPagedResponse; import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListHcxActivationKeysPagedResponse; import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListLocationsPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListLoggingServersPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListManagementDnsZoneBindingsPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNetworkPeeringsPagedResponse; 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.ListNodesPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPeeringRoutesPagedResponse; 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; @@ -50,34 +58,73 @@ import com.google.cloud.location.Location; import com.google.cloud.vmwareengine.v1.Cluster; import com.google.cloud.vmwareengine.v1.CreateClusterRequest; +import com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest; +import com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest; import com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest; +import com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest; +import com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest; +import com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest; 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.DeleteExternalAccessRuleRequest; +import com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest; +import com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest; +import com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest; +import com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest; 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.DnsBindPermission; +import com.google.cloud.vmwareengine.v1.DnsForwarding; +import com.google.cloud.vmwareengine.v1.ExternalAccessRule; +import com.google.cloud.vmwareengine.v1.ExternalAddress; +import com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest; +import com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse; import com.google.cloud.vmwareengine.v1.GetClusterRequest; +import com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest; +import com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest; +import com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest; +import com.google.cloud.vmwareengine.v1.GetExternalAddressRequest; import com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest; +import com.google.cloud.vmwareengine.v1.GetLoggingServerRequest; +import com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest; +import com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest; import com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest; +import com.google.cloud.vmwareengine.v1.GetNodeRequest; 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.GrantDnsBindPermissionRequest; import com.google.cloud.vmwareengine.v1.HcxActivationKey; import com.google.cloud.vmwareengine.v1.ListClustersRequest; import com.google.cloud.vmwareengine.v1.ListClustersResponse; +import com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest; +import com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse; +import com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest; +import com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse; import com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest; import com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse; +import com.google.cloud.vmwareengine.v1.ListLoggingServersRequest; +import com.google.cloud.vmwareengine.v1.ListLoggingServersResponse; +import com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest; +import com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse; +import com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest; +import com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse; import com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest; import com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse; import com.google.cloud.vmwareengine.v1.ListNodeTypesRequest; import com.google.cloud.vmwareengine.v1.ListNodeTypesResponse; +import com.google.cloud.vmwareengine.v1.ListNodesRequest; +import com.google.cloud.vmwareengine.v1.ListNodesResponse; +import com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest; +import com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse; import com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest; import com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse; import com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest; @@ -88,18 +135,30 @@ import com.google.cloud.vmwareengine.v1.ListSubnetsResponse; import com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest; import com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse; +import com.google.cloud.vmwareengine.v1.LoggingServer; +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding; +import com.google.cloud.vmwareengine.v1.NetworkPeering; import com.google.cloud.vmwareengine.v1.NetworkPolicy; +import com.google.cloud.vmwareengine.v1.Node; 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.RepairManagementDnsZoneBindingRequest; import com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest; import com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest; +import com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest; 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.UpdateDnsForwardingRequest; +import com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest; +import com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest; +import com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest; +import com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest; +import com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest; import com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest; import com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest; import com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest; @@ -134,15 +193,22 @@ public class HttpJsonVmwareEngineStub extends VmwareEngineStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder() + .add(ExternalAddress.getDescriptor()) + .add(Subnet.getDescriptor()) + .add(ManagementDnsZoneBinding.getDescriptor()) + .add(DnsForwarding.getDescriptor()) + .add(NetworkPeering.getDescriptor()) + .add(PrivateCloud.getDescriptor()) + .add(ExternalAccessRule.getDescriptor()) + .add(NetworkPolicy.getDescriptor()) .add(Cluster.getDescriptor()) + .add(DnsBindPermission.getDescriptor()) .add(Empty.getDescriptor()) - .add(Subnet.getDescriptor()) .add(PrivateConnection.getDescriptor()) .add(OperationMetadata.getDescriptor()) - .add(PrivateCloud.getDescriptor()) .add(HcxActivationKey.getDescriptor()) + .add(LoggingServer.getDescriptor()) .add(VmwareEngineNetwork.getDescriptor()) - .add(NetworkPolicy.getDescriptor()) .build(); private static final ApiMethodDescriptor @@ -586,19 +652,19 @@ public class HttpJsonVmwareEngineStub extends VmwareEngineStub { HttpJsonOperationSnapshot.create(response)) .build(); - private static final ApiMethodDescriptor - listSubnetsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ListSubnets") + private static final ApiMethodDescriptor + listNodesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ListNodes") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1/{parent=projects/*/locations/*/privateClouds/*}/subnets", + "/v1/{parent=projects/*/locations/*/privateClouds/*/clusters/*}/nodes", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; @@ -606,7 +672,7 @@ public class HttpJsonVmwareEngineStub extends VmwareEngineStub { .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); @@ -616,24 +682,24 @@ public class HttpJsonVmwareEngineStub extends VmwareEngineStub { .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListSubnetsResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListNodesResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor getSubnetMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetSubnet") + private static final ApiMethodDescriptor getNodeMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetNode") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1/{name=projects/*/locations/*/privateClouds/*/subnets/*}", + "/v1/{name=projects/*/locations/*/privateClouds/*/clusters/*/nodes/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; @@ -641,7 +707,7 @@ public class HttpJsonVmwareEngineStub extends VmwareEngineStub { .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; @@ -649,67 +715,27 @@ public class HttpJsonVmwareEngineStub extends VmwareEngineStub { .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Subnet.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Node.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() - .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ListNodeTypes") + private static final ApiMethodDescriptor< + ListExternalAddressesRequest, ListExternalAddressesResponse> + listExternalAddressesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ListExternalAddresses") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1/{parent=projects/*/locations/*}/nodeTypes", + "/v1/{parent=projects/*/locations/*/privateClouds/*}/externalAddresses", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; @@ -717,9 +743,10 @@ public class HttpJsonVmwareEngineStub extends VmwareEngineStub { .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + 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"); @@ -728,103 +755,78 @@ public class HttpJsonVmwareEngineStub extends VmwareEngineStub { .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListNodeTypesResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getNodeTypeMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetNodeType") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/nodeTypes/*}", - 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(NodeType.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListExternalAddressesResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - showNsxCredentialsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ShowNsxCredentials") + private static final ApiMethodDescriptor< + FetchNetworkPolicyExternalAddressesRequest, FetchNetworkPolicyExternalAddressesResponse> + fetchNetworkPolicyExternalAddressesMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.vmwareengine.v1.VmwareEngine/FetchNetworkPolicyExternalAddresses") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter + .newBuilder() .setPath( - "/v1/{privateCloud=projects/*/locations/*/privateClouds/*}:showNsxCredentials", + "/v1/{networkPolicy=projects/*/locations/*/networkPolicies/*}:fetchExternalAddresses", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); serializer.putPathParam( - fields, "privateCloud", request.getPrivateCloud()); + fields, "networkPolicy", request.getNetworkPolicy()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); + 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(Credentials.getDefaultInstance()) + ProtoMessageResponseParser + .newBuilder() + .setDefaultInstance( + FetchNetworkPolicyExternalAddressesResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - showVcenterCredentialsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ShowVcenterCredentials") + private static final ApiMethodDescriptor + getExternalAddressMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetExternalAddress") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1/{privateCloud=projects/*/locations/*/privateClouds/*}:showVcenterCredentials", + "/v1/{name=projects/*/locations/*/privateClouds/*/externalAddresses/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "privateCloud", request.getPrivateCloud()); + serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; @@ -832,43 +834,44 @@ public class HttpJsonVmwareEngineStub extends VmwareEngineStub { .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Credentials.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ExternalAddress.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - resetNsxCredentialsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ResetNsxCredentials") + private static final ApiMethodDescriptor + createExternalAddressMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/CreateExternalAddress") .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1/{privateCloud=projects/*/locations/*/privateClouds/*}:resetNsxCredentials", + "/v1/{parent=projects/*/locations/*/privateClouds/*}/externalAddresses", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "privateCloud", request.getPrivateCloud()); + serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "externalAddressId", request.getExternalAddressId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody( - "*", request.toBuilder().clearPrivateCloud().build(), true)) + .toBody("externalAddress", request.getExternalAddress(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -876,42 +879,44 @@ public class HttpJsonVmwareEngineStub extends VmwareEngineStub { .setDefaultTypeRegistry(typeRegistry) .build()) .setOperationSnapshotFactory( - (ResetNsxCredentialsRequest request, Operation response) -> + (CreateExternalAddressRequest request, Operation response) -> HttpJsonOperationSnapshot.create(response)) .build(); - private static final ApiMethodDescriptor - resetVcenterCredentialsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.vmwareengine.v1.VmwareEngine/ResetVcenterCredentials") - .setHttpMethod("POST") + private static final ApiMethodDescriptor + updateExternalAddressMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/UpdateExternalAddress") + .setHttpMethod("PATCH") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1/{privateCloud=projects/*/locations/*/privateClouds/*}:resetVcenterCredentials", + "/v1/{externalAddress.name=projects/*/locations/*/privateClouds/*/externalAddresses/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam( - fields, "privateCloud", request.getPrivateCloud()); + fields, + "externalAddress.name", + request.getExternalAddress().getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + 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( - "*", request.toBuilder().clearPrivateCloud().build(), true)) + .toBody("externalAddress", request.getExternalAddress(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -919,42 +924,37 @@ public class HttpJsonVmwareEngineStub extends VmwareEngineStub { .setDefaultTypeRegistry(typeRegistry) .build()) .setOperationSnapshotFactory( - (ResetVcenterCredentialsRequest request, Operation response) -> + (UpdateExternalAddressRequest request, Operation response) -> HttpJsonOperationSnapshot.create(response)) .build(); - private static final ApiMethodDescriptor - createHcxActivationKeyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/CreateHcxActivationKey") - .setHttpMethod("POST") + private static final ApiMethodDescriptor + deleteExternalAddressMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/DeleteExternalAddress") + .setHttpMethod("DELETE") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1/{parent=projects/*/locations/*/privateClouds/*}/hcxActivationKeys", + "/v1/{name=projects/*/locations/*/privateClouds/*/externalAddresses/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); + serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putQueryParam( - fields, "hcxActivationKeyId", request.getHcxActivationKeyId()); serializer.putQueryParam(fields, "requestId", request.getRequestId()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("hcxActivationKey", request.getHcxActivationKey(), true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -962,25 +962,23 @@ public class HttpJsonVmwareEngineStub extends VmwareEngineStub { .setDefaultTypeRegistry(typeRegistry) .build()) .setOperationSnapshotFactory( - (CreateHcxActivationKeyRequest request, Operation response) -> + (DeleteExternalAddressRequest request, Operation response) -> HttpJsonOperationSnapshot.create(response)) .build(); - private static final ApiMethodDescriptor< - ListHcxActivationKeysRequest, ListHcxActivationKeysResponse> - listHcxActivationKeysMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ListHcxActivationKeys") + private static final ApiMethodDescriptor + listSubnetsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ListSubnets") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1/{parent=projects/*/locations/*/privateClouds/*}/hcxActivationKeys", + "/v1/{parent=projects/*/locations/*/privateClouds/*}/subnets", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; @@ -988,7 +986,7 @@ public class HttpJsonVmwareEngineStub extends VmwareEngineStub { .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); @@ -998,41 +996,1138 @@ public class HttpJsonVmwareEngineStub extends VmwareEngineStub { .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListHcxActivationKeysResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListSubnetsResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - getHcxActivationKeyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetHcxActivationKey") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/privateClouds/*/hcxActivationKeys/*}", - 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() + 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< + ListExternalAccessRulesRequest, ListExternalAccessRulesResponse> + listExternalAccessRulesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.vmwareengine.v1.VmwareEngine/ListExternalAccessRules") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/networkPolicies/*}/externalAccessRules", + 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(ListExternalAccessRulesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getExternalAccessRuleMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetExternalAccessRule") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/networkPolicies/*/externalAccessRules/*}", + 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(ExternalAccessRule.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createExternalAccessRuleMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.vmwareengine.v1.VmwareEngine/CreateExternalAccessRule") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/networkPolicies/*}/externalAccessRules", + 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, "externalAccessRuleId", request.getExternalAccessRuleId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "externalAccessRule", request.getExternalAccessRule(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateExternalAccessRuleRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateExternalAccessRuleMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.vmwareengine.v1.VmwareEngine/UpdateExternalAccessRule") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{externalAccessRule.name=projects/*/locations/*/networkPolicies/*/externalAccessRules/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "externalAccessRule.name", + request.getExternalAccessRule().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( + "externalAccessRule", request.getExternalAccessRule(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateExternalAccessRuleRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteExternalAccessRuleMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.vmwareengine.v1.VmwareEngine/DeleteExternalAccessRule") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/networkPolicies/*/externalAccessRules/*}", + 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( + (DeleteExternalAccessRuleRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listLoggingServersMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ListLoggingServers") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/privateClouds/*}/loggingServers", + 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(ListLoggingServersResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLoggingServerMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetLoggingServer") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/privateClouds/*/loggingServers/*}", + 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(LoggingServer.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createLoggingServerMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/CreateLoggingServer") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/privateClouds/*}/loggingServers", + 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, "loggingServerId", request.getLoggingServerId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("loggingServer", request.getLoggingServer(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateLoggingServerRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateLoggingServerMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/UpdateLoggingServer") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{loggingServer.name=projects/*/locations/*/privateClouds/*/loggingServers/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "loggingServer.name", request.getLoggingServer().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("loggingServer", request.getLoggingServer(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateLoggingServerRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteLoggingServerMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/DeleteLoggingServer") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/privateClouds/*/loggingServers/*}", + 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( + (DeleteLoggingServerRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listNodeTypesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ListNodeTypes") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/nodeTypes", + 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, "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(ListNodeTypesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getNodeTypeMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetNodeType") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/nodeTypes/*}", + 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(NodeType.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + showNsxCredentialsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ShowNsxCredentials") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{privateCloud=projects/*/locations/*/privateClouds/*}:showNsxCredentials", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "privateCloud", request.getPrivateCloud()); + 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(Credentials.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + showVcenterCredentialsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ShowVcenterCredentials") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{privateCloud=projects/*/locations/*/privateClouds/*}:showVcenterCredentials", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "privateCloud", request.getPrivateCloud()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "username", request.getUsername()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Credentials.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + resetNsxCredentialsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ResetNsxCredentials") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{privateCloud=projects/*/locations/*/privateClouds/*}:resetNsxCredentials", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "privateCloud", request.getPrivateCloud()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", request.toBuilder().clearPrivateCloud().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ResetNsxCredentialsRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + resetVcenterCredentialsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.vmwareengine.v1.VmwareEngine/ResetVcenterCredentials") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{privateCloud=projects/*/locations/*/privateClouds/*}:resetVcenterCredentials", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "privateCloud", request.getPrivateCloud()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", request.toBuilder().clearPrivateCloud().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ResetVcenterCredentialsRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + getDnsForwardingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetDnsForwarding") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/privateClouds/*/dnsForwarding}", + 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(DnsForwarding.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateDnsForwardingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/UpdateDnsForwarding") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{dnsForwarding.name=projects/*/locations/*/privateClouds/*/dnsForwarding}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "dnsForwarding.name", request.getDnsForwarding().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("dnsForwarding", request.getDnsForwarding(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateDnsForwardingRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + getNetworkPeeringMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetNetworkPeering") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/networkPeerings/*}", + 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(NetworkPeering.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listNetworkPeeringsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ListNetworkPeerings") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/networkPeerings", + 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(ListNetworkPeeringsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createNetworkPeeringMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/CreateNetworkPeering") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/networkPeerings", + 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, "networkPeeringId", request.getNetworkPeeringId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("networkPeering", request.getNetworkPeering(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateNetworkPeeringRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteNetworkPeeringMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/DeleteNetworkPeering") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/networkPeerings/*}", + 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( + (DeleteNetworkPeeringRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateNetworkPeeringMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/UpdateNetworkPeering") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{networkPeering.name=projects/*/locations/*/networkPeerings/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "networkPeering.name", + request.getNetworkPeering().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("networkPeering", request.getNetworkPeering(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateNetworkPeeringRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listPeeringRoutesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ListPeeringRoutes") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/networkPeerings/*}/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, "filter", request.getFilter()); + 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(ListPeeringRoutesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createHcxActivationKeyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/CreateHcxActivationKey") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/privateClouds/*}/hcxActivationKeys", + 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, "hcxActivationKeyId", request.getHcxActivationKeyId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("hcxActivationKey", request.getHcxActivationKey(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateHcxActivationKeyRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + ListHcxActivationKeysRequest, ListHcxActivationKeysResponse> + listHcxActivationKeysMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ListHcxActivationKeys") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/privateClouds/*}/hcxActivationKeys", + 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(ListHcxActivationKeysResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getHcxActivationKeyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetHcxActivationKey") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/privateClouds/*/hcxActivationKeys/*}", + 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(HcxActivationKey.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) @@ -1203,12 +2298,268 @@ public class HttpJsonVmwareEngineStub extends VmwareEngineStub { .setHttpMethod("DELETE") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/networkPolicies/*}", + 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( + (DeleteNetworkPolicyRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + ListManagementDnsZoneBindingsRequest, ListManagementDnsZoneBindingsResponse> + listManagementDnsZoneBindingsMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.vmwareengine.v1.VmwareEngine/ListManagementDnsZoneBindings") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/privateClouds/*}/managementDnsZoneBindings", + 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( + ListManagementDnsZoneBindingsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + GetManagementDnsZoneBindingRequest, ManagementDnsZoneBinding> + getManagementDnsZoneBindingMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.vmwareengine.v1.VmwareEngine/GetManagementDnsZoneBinding") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/privateClouds/*/managementDnsZoneBindings/*}", + 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(ManagementDnsZoneBinding.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createManagementDnsZoneBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.vmwareengine.v1.VmwareEngine/CreateManagementDnsZoneBinding") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/privateClouds/*}/managementDnsZoneBindings", + 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, + "managementDnsZoneBindingId", + request.getManagementDnsZoneBindingId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "managementDnsZoneBinding", + request.getManagementDnsZoneBinding(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateManagementDnsZoneBindingRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateManagementDnsZoneBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.vmwareengine.v1.VmwareEngine/UpdateManagementDnsZoneBinding") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{managementDnsZoneBinding.name=projects/*/locations/*/privateClouds/*/managementDnsZoneBindings/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "managementDnsZoneBinding.name", + request.getManagementDnsZoneBinding().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( + "managementDnsZoneBinding", + request.getManagementDnsZoneBinding(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateManagementDnsZoneBindingRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteManagementDnsZoneBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.vmwareengine.v1.VmwareEngine/DeleteManagementDnsZoneBinding") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/privateClouds/*/managementDnsZoneBindings/*}", + 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( + (DeleteManagementDnsZoneBindingRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + repairManagementDnsZoneBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.vmwareengine.v1.VmwareEngine/RepairManagementDnsZoneBinding") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1/{name=projects/*/locations/*/networkPolicies/*}", + "/v1/{name=projects/*/locations/*/privateClouds/*/managementDnsZoneBindings/*}:repair", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; @@ -1216,13 +2567,15 @@ public class HttpJsonVmwareEngineStub extends VmwareEngineStub { .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "requestId", request.getRequestId()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor(request -> null) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -1230,7 +2583,7 @@ public class HttpJsonVmwareEngineStub extends VmwareEngineStub { .setDefaultTypeRegistry(typeRegistry) .build()) .setOperationSnapshotFactory( - (DeleteNetworkPolicyRequest request, Operation response) -> + (RepairManagementDnsZoneBindingRequest request, Operation response) -> HttpJsonOperationSnapshot.create(response)) .build(); @@ -1696,6 +3049,121 @@ public class HttpJsonVmwareEngineStub extends VmwareEngineStub { .build()) .build(); + private static final ApiMethodDescriptor + grantDnsBindPermissionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GrantDnsBindPermission") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/dnsBindPermission}:grant", + 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 -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (GrantDnsBindPermissionRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + getDnsBindPermissionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetDnsBindPermission") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/dnsBindPermission}", + 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(DnsBindPermission.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + revokeDnsBindPermissionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.vmwareengine.v1.VmwareEngine/RevokeDnsBindPermission") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/dnsBindPermission}:revoke", + 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 -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (RevokeDnsBindPermissionRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor listLocationsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1911,6 +3379,34 @@ public class HttpJsonVmwareEngineStub extends VmwareEngineStub { private final UnaryCallable deleteClusterCallable; private final OperationCallable deleteClusterOperationCallable; + private final UnaryCallable listNodesCallable; + private final UnaryCallable listNodesPagedCallable; + private final UnaryCallable getNodeCallable; + private final UnaryCallable + listExternalAddressesCallable; + private final UnaryCallable + listExternalAddressesPagedCallable; + private final UnaryCallable< + FetchNetworkPolicyExternalAddressesRequest, FetchNetworkPolicyExternalAddressesResponse> + fetchNetworkPolicyExternalAddressesCallable; + private final UnaryCallable< + FetchNetworkPolicyExternalAddressesRequest, + FetchNetworkPolicyExternalAddressesPagedResponse> + fetchNetworkPolicyExternalAddressesPagedCallable; + private final UnaryCallable + getExternalAddressCallable; + private final UnaryCallable + createExternalAddressCallable; + private final OperationCallable + createExternalAddressOperationCallable; + private final UnaryCallable + updateExternalAddressCallable; + private final OperationCallable + updateExternalAddressOperationCallable; + private final UnaryCallable + deleteExternalAddressCallable; + private final OperationCallable + deleteExternalAddressOperationCallable; private final UnaryCallable listSubnetsCallable; private final UnaryCallable listSubnetsPagedCallable; @@ -1918,6 +3414,40 @@ public class HttpJsonVmwareEngineStub extends VmwareEngineStub { private final UnaryCallable updateSubnetCallable; private final OperationCallable updateSubnetOperationCallable; + private final UnaryCallable + listExternalAccessRulesCallable; + private final UnaryCallable + listExternalAccessRulesPagedCallable; + private final UnaryCallable + getExternalAccessRuleCallable; + private final UnaryCallable + createExternalAccessRuleCallable; + private final OperationCallable< + CreateExternalAccessRuleRequest, ExternalAccessRule, OperationMetadata> + createExternalAccessRuleOperationCallable; + private final UnaryCallable + updateExternalAccessRuleCallable; + private final OperationCallable< + UpdateExternalAccessRuleRequest, ExternalAccessRule, OperationMetadata> + updateExternalAccessRuleOperationCallable; + private final UnaryCallable + deleteExternalAccessRuleCallable; + private final OperationCallable + deleteExternalAccessRuleOperationCallable; + private final UnaryCallable + listLoggingServersCallable; + private final UnaryCallable + listLoggingServersPagedCallable; + private final UnaryCallable getLoggingServerCallable; + private final UnaryCallable createLoggingServerCallable; + private final OperationCallable + createLoggingServerOperationCallable; + private final UnaryCallable updateLoggingServerCallable; + private final OperationCallable + updateLoggingServerOperationCallable; + private final UnaryCallable deleteLoggingServerCallable; + private final OperationCallable + deleteLoggingServerOperationCallable; private final UnaryCallable listNodeTypesCallable; private final UnaryCallable listNodeTypesPagedCallable; @@ -1932,6 +3462,28 @@ public class HttpJsonVmwareEngineStub extends VmwareEngineStub { resetVcenterCredentialsCallable; private final OperationCallable resetVcenterCredentialsOperationCallable; + private final UnaryCallable getDnsForwardingCallable; + private final UnaryCallable updateDnsForwardingCallable; + private final OperationCallable + updateDnsForwardingOperationCallable; + private final UnaryCallable getNetworkPeeringCallable; + private final UnaryCallable + listNetworkPeeringsCallable; + private final UnaryCallable + listNetworkPeeringsPagedCallable; + private final UnaryCallable createNetworkPeeringCallable; + private final OperationCallable + createNetworkPeeringOperationCallable; + private final UnaryCallable deleteNetworkPeeringCallable; + private final OperationCallable + deleteNetworkPeeringOperationCallable; + private final UnaryCallable updateNetworkPeeringCallable; + private final OperationCallable + updateNetworkPeeringOperationCallable; + private final UnaryCallable + listPeeringRoutesCallable; + private final UnaryCallable + listPeeringRoutesPagedCallable; private final UnaryCallable createHcxActivationKeyCallable; private final OperationCallable< @@ -1957,6 +3509,33 @@ public class HttpJsonVmwareEngineStub extends VmwareEngineStub { private final UnaryCallable deleteNetworkPolicyCallable; private final OperationCallable deleteNetworkPolicyOperationCallable; + private final UnaryCallable< + ListManagementDnsZoneBindingsRequest, ListManagementDnsZoneBindingsResponse> + listManagementDnsZoneBindingsCallable; + private final UnaryCallable< + ListManagementDnsZoneBindingsRequest, ListManagementDnsZoneBindingsPagedResponse> + listManagementDnsZoneBindingsPagedCallable; + private final UnaryCallable + getManagementDnsZoneBindingCallable; + private final UnaryCallable + createManagementDnsZoneBindingCallable; + private final OperationCallable< + CreateManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + createManagementDnsZoneBindingOperationCallable; + private final UnaryCallable + updateManagementDnsZoneBindingCallable; + private final OperationCallable< + UpdateManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + updateManagementDnsZoneBindingOperationCallable; + private final UnaryCallable + deleteManagementDnsZoneBindingCallable; + private final OperationCallable + deleteManagementDnsZoneBindingOperationCallable; + private final UnaryCallable + repairManagementDnsZoneBindingCallable; + private final OperationCallable< + RepairManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + repairManagementDnsZoneBindingOperationCallable; private final UnaryCallable createVmwareEngineNetworkCallable; private final OperationCallable< @@ -2005,6 +3584,18 @@ public class HttpJsonVmwareEngineStub extends VmwareEngineStub { ListPrivateConnectionPeeringRoutesRequest, ListPrivateConnectionPeeringRoutesPagedResponse> listPrivateConnectionPeeringRoutesPagedCallable; + private final UnaryCallable + grantDnsBindPermissionCallable; + private final OperationCallable< + GrantDnsBindPermissionRequest, DnsBindPermission, OperationMetadata> + grantDnsBindPermissionOperationCallable; + private final UnaryCallable + getDnsBindPermissionCallable; + private final UnaryCallable + revokeDnsBindPermissionCallable; + private final OperationCallable< + RevokeDnsBindPermissionRequest, DnsBindPermission, OperationMetadata> + revokeDnsBindPermissionOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -2203,6 +3794,107 @@ protected HttpJsonVmwareEngineStub( return builder.build(); }) .build(); + HttpJsonCallSettings listNodesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listNodesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getNodeTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getNodeMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listExternalAddressesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listExternalAddressesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings< + FetchNetworkPolicyExternalAddressesRequest, FetchNetworkPolicyExternalAddressesResponse> + fetchNetworkPolicyExternalAddressesTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(fetchNetworkPolicyExternalAddressesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("network_policy", String.valueOf(request.getNetworkPolicy())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getExternalAddressTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getExternalAddressMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createExternalAddressTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createExternalAddressMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateExternalAddressTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateExternalAddressMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "external_address.name", + String.valueOf(request.getExternalAddress().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteExternalAddressTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteExternalAddressMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listSubnetsTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(listSubnetsMethodDescriptor) @@ -2236,6 +3928,130 @@ protected HttpJsonVmwareEngineStub( return builder.build(); }) .build(); + HttpJsonCallSettings + listExternalAccessRulesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listExternalAccessRulesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getExternalAccessRuleTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getExternalAccessRuleMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createExternalAccessRuleTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createExternalAccessRuleMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateExternalAccessRuleTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateExternalAccessRuleMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "external_access_rule.name", + String.valueOf(request.getExternalAccessRule().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteExternalAccessRuleTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteExternalAccessRuleMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listLoggingServersTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLoggingServersMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getLoggingServerTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLoggingServerMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createLoggingServerTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createLoggingServerMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateLoggingServerTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateLoggingServerMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "logging_server.name", + String.valueOf(request.getLoggingServer().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteLoggingServerTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteLoggingServerMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listNodeTypesTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2307,6 +4123,106 @@ protected HttpJsonVmwareEngineStub( return builder.build(); }) .build(); + HttpJsonCallSettings getDnsForwardingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getDnsForwardingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateDnsForwardingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateDnsForwardingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "dns_forwarding.name", + String.valueOf(request.getDnsForwarding().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getNetworkPeeringTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getNetworkPeeringMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listNetworkPeeringsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listNetworkPeeringsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createNetworkPeeringTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createNetworkPeeringMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteNetworkPeeringTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteNetworkPeeringMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateNetworkPeeringTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateNetworkPeeringMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "network_peering.name", + String.valueOf(request.getNetworkPeering().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listPeeringRoutesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listPeeringRoutesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); HttpJsonCallSettings createHcxActivationKeyTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2406,6 +4322,84 @@ protected HttpJsonVmwareEngineStub( return builder.build(); }) .build(); + HttpJsonCallSettings< + ListManagementDnsZoneBindingsRequest, ListManagementDnsZoneBindingsResponse> + listManagementDnsZoneBindingsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(listManagementDnsZoneBindingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getManagementDnsZoneBindingTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(getManagementDnsZoneBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createManagementDnsZoneBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createManagementDnsZoneBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateManagementDnsZoneBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateManagementDnsZoneBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "management_dns_zone_binding.name", + String.valueOf(request.getManagementDnsZoneBinding().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteManagementDnsZoneBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteManagementDnsZoneBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + repairManagementDnsZoneBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(repairManagementDnsZoneBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings createVmwareEngineNetworkTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2548,6 +4542,42 @@ protected HttpJsonVmwareEngineStub( return builder.build(); }) .build(); + HttpJsonCallSettings + grantDnsBindPermissionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(grantDnsBindPermissionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getDnsBindPermissionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getDnsBindPermissionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + revokeDnsBindPermissionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(revokeDnsBindPermissionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listLocationsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2699,6 +4729,73 @@ protected HttpJsonVmwareEngineStub( settings.deleteClusterOperationSettings(), clientContext, httpJsonOperationsStub); + this.listNodesCallable = + callableFactory.createUnaryCallable( + listNodesTransportSettings, settings.listNodesSettings(), clientContext); + this.listNodesPagedCallable = + callableFactory.createPagedCallable( + listNodesTransportSettings, settings.listNodesSettings(), clientContext); + this.getNodeCallable = + callableFactory.createUnaryCallable( + getNodeTransportSettings, settings.getNodeSettings(), clientContext); + this.listExternalAddressesCallable = + callableFactory.createUnaryCallable( + listExternalAddressesTransportSettings, + settings.listExternalAddressesSettings(), + clientContext); + this.listExternalAddressesPagedCallable = + callableFactory.createPagedCallable( + listExternalAddressesTransportSettings, + settings.listExternalAddressesSettings(), + clientContext); + this.fetchNetworkPolicyExternalAddressesCallable = + callableFactory.createUnaryCallable( + fetchNetworkPolicyExternalAddressesTransportSettings, + settings.fetchNetworkPolicyExternalAddressesSettings(), + clientContext); + this.fetchNetworkPolicyExternalAddressesPagedCallable = + callableFactory.createPagedCallable( + fetchNetworkPolicyExternalAddressesTransportSettings, + settings.fetchNetworkPolicyExternalAddressesSettings(), + clientContext); + this.getExternalAddressCallable = + callableFactory.createUnaryCallable( + getExternalAddressTransportSettings, + settings.getExternalAddressSettings(), + clientContext); + this.createExternalAddressCallable = + callableFactory.createUnaryCallable( + createExternalAddressTransportSettings, + settings.createExternalAddressSettings(), + clientContext); + this.createExternalAddressOperationCallable = + callableFactory.createOperationCallable( + createExternalAddressTransportSettings, + settings.createExternalAddressOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateExternalAddressCallable = + callableFactory.createUnaryCallable( + updateExternalAddressTransportSettings, + settings.updateExternalAddressSettings(), + clientContext); + this.updateExternalAddressOperationCallable = + callableFactory.createOperationCallable( + updateExternalAddressTransportSettings, + settings.updateExternalAddressOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteExternalAddressCallable = + callableFactory.createUnaryCallable( + deleteExternalAddressTransportSettings, + settings.deleteExternalAddressSettings(), + clientContext); + this.deleteExternalAddressOperationCallable = + callableFactory.createOperationCallable( + deleteExternalAddressTransportSettings, + settings.deleteExternalAddressOperationSettings(), + clientContext, + httpJsonOperationsStub); this.listSubnetsCallable = callableFactory.createUnaryCallable( listSubnetsTransportSettings, settings.listSubnetsSettings(), clientContext); @@ -2717,6 +4814,100 @@ protected HttpJsonVmwareEngineStub( settings.updateSubnetOperationSettings(), clientContext, httpJsonOperationsStub); + this.listExternalAccessRulesCallable = + callableFactory.createUnaryCallable( + listExternalAccessRulesTransportSettings, + settings.listExternalAccessRulesSettings(), + clientContext); + this.listExternalAccessRulesPagedCallable = + callableFactory.createPagedCallable( + listExternalAccessRulesTransportSettings, + settings.listExternalAccessRulesSettings(), + clientContext); + this.getExternalAccessRuleCallable = + callableFactory.createUnaryCallable( + getExternalAccessRuleTransportSettings, + settings.getExternalAccessRuleSettings(), + clientContext); + this.createExternalAccessRuleCallable = + callableFactory.createUnaryCallable( + createExternalAccessRuleTransportSettings, + settings.createExternalAccessRuleSettings(), + clientContext); + this.createExternalAccessRuleOperationCallable = + callableFactory.createOperationCallable( + createExternalAccessRuleTransportSettings, + settings.createExternalAccessRuleOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateExternalAccessRuleCallable = + callableFactory.createUnaryCallable( + updateExternalAccessRuleTransportSettings, + settings.updateExternalAccessRuleSettings(), + clientContext); + this.updateExternalAccessRuleOperationCallable = + callableFactory.createOperationCallable( + updateExternalAccessRuleTransportSettings, + settings.updateExternalAccessRuleOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteExternalAccessRuleCallable = + callableFactory.createUnaryCallable( + deleteExternalAccessRuleTransportSettings, + settings.deleteExternalAccessRuleSettings(), + clientContext); + this.deleteExternalAccessRuleOperationCallable = + callableFactory.createOperationCallable( + deleteExternalAccessRuleTransportSettings, + settings.deleteExternalAccessRuleOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listLoggingServersCallable = + callableFactory.createUnaryCallable( + listLoggingServersTransportSettings, + settings.listLoggingServersSettings(), + clientContext); + this.listLoggingServersPagedCallable = + callableFactory.createPagedCallable( + listLoggingServersTransportSettings, + settings.listLoggingServersSettings(), + clientContext); + this.getLoggingServerCallable = + callableFactory.createUnaryCallable( + getLoggingServerTransportSettings, settings.getLoggingServerSettings(), clientContext); + this.createLoggingServerCallable = + callableFactory.createUnaryCallable( + createLoggingServerTransportSettings, + settings.createLoggingServerSettings(), + clientContext); + this.createLoggingServerOperationCallable = + callableFactory.createOperationCallable( + createLoggingServerTransportSettings, + settings.createLoggingServerOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateLoggingServerCallable = + callableFactory.createUnaryCallable( + updateLoggingServerTransportSettings, + settings.updateLoggingServerSettings(), + clientContext); + this.updateLoggingServerOperationCallable = + callableFactory.createOperationCallable( + updateLoggingServerTransportSettings, + settings.updateLoggingServerOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteLoggingServerCallable = + callableFactory.createUnaryCallable( + deleteLoggingServerTransportSettings, + settings.deleteLoggingServerSettings(), + clientContext); + this.deleteLoggingServerOperationCallable = + callableFactory.createOperationCallable( + deleteLoggingServerTransportSettings, + settings.deleteLoggingServerOperationSettings(), + clientContext, + httpJsonOperationsStub); this.listNodeTypesCallable = callableFactory.createUnaryCallable( listNodeTypesTransportSettings, settings.listNodeTypesSettings(), clientContext); @@ -2725,39 +4916,111 @@ protected HttpJsonVmwareEngineStub( listNodeTypesTransportSettings, settings.listNodeTypesSettings(), clientContext); this.getNodeTypeCallable = callableFactory.createUnaryCallable( - getNodeTypeTransportSettings, settings.getNodeTypeSettings(), clientContext); - this.showNsxCredentialsCallable = + getNodeTypeTransportSettings, settings.getNodeTypeSettings(), clientContext); + this.showNsxCredentialsCallable = + callableFactory.createUnaryCallable( + showNsxCredentialsTransportSettings, + settings.showNsxCredentialsSettings(), + clientContext); + this.showVcenterCredentialsCallable = + callableFactory.createUnaryCallable( + showVcenterCredentialsTransportSettings, + settings.showVcenterCredentialsSettings(), + clientContext); + this.resetNsxCredentialsCallable = + callableFactory.createUnaryCallable( + resetNsxCredentialsTransportSettings, + settings.resetNsxCredentialsSettings(), + clientContext); + this.resetNsxCredentialsOperationCallable = + callableFactory.createOperationCallable( + resetNsxCredentialsTransportSettings, + settings.resetNsxCredentialsOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.resetVcenterCredentialsCallable = + callableFactory.createUnaryCallable( + resetVcenterCredentialsTransportSettings, + settings.resetVcenterCredentialsSettings(), + clientContext); + this.resetVcenterCredentialsOperationCallable = + callableFactory.createOperationCallable( + resetVcenterCredentialsTransportSettings, + settings.resetVcenterCredentialsOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getDnsForwardingCallable = + callableFactory.createUnaryCallable( + getDnsForwardingTransportSettings, settings.getDnsForwardingSettings(), clientContext); + this.updateDnsForwardingCallable = + callableFactory.createUnaryCallable( + updateDnsForwardingTransportSettings, + settings.updateDnsForwardingSettings(), + clientContext); + this.updateDnsForwardingOperationCallable = + callableFactory.createOperationCallable( + updateDnsForwardingTransportSettings, + settings.updateDnsForwardingOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getNetworkPeeringCallable = + callableFactory.createUnaryCallable( + getNetworkPeeringTransportSettings, + settings.getNetworkPeeringSettings(), + clientContext); + this.listNetworkPeeringsCallable = callableFactory.createUnaryCallable( - showNsxCredentialsTransportSettings, - settings.showNsxCredentialsSettings(), + listNetworkPeeringsTransportSettings, + settings.listNetworkPeeringsSettings(), clientContext); - this.showVcenterCredentialsCallable = + this.listNetworkPeeringsPagedCallable = + callableFactory.createPagedCallable( + listNetworkPeeringsTransportSettings, + settings.listNetworkPeeringsSettings(), + clientContext); + this.createNetworkPeeringCallable = callableFactory.createUnaryCallable( - showVcenterCredentialsTransportSettings, - settings.showVcenterCredentialsSettings(), + createNetworkPeeringTransportSettings, + settings.createNetworkPeeringSettings(), clientContext); - this.resetNsxCredentialsCallable = + this.createNetworkPeeringOperationCallable = + callableFactory.createOperationCallable( + createNetworkPeeringTransportSettings, + settings.createNetworkPeeringOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteNetworkPeeringCallable = callableFactory.createUnaryCallable( - resetNsxCredentialsTransportSettings, - settings.resetNsxCredentialsSettings(), + deleteNetworkPeeringTransportSettings, + settings.deleteNetworkPeeringSettings(), clientContext); - this.resetNsxCredentialsOperationCallable = + this.deleteNetworkPeeringOperationCallable = callableFactory.createOperationCallable( - resetNsxCredentialsTransportSettings, - settings.resetNsxCredentialsOperationSettings(), + deleteNetworkPeeringTransportSettings, + settings.deleteNetworkPeeringOperationSettings(), clientContext, httpJsonOperationsStub); - this.resetVcenterCredentialsCallable = + this.updateNetworkPeeringCallable = callableFactory.createUnaryCallable( - resetVcenterCredentialsTransportSettings, - settings.resetVcenterCredentialsSettings(), + updateNetworkPeeringTransportSettings, + settings.updateNetworkPeeringSettings(), clientContext); - this.resetVcenterCredentialsOperationCallable = + this.updateNetworkPeeringOperationCallable = callableFactory.createOperationCallable( - resetVcenterCredentialsTransportSettings, - settings.resetVcenterCredentialsOperationSettings(), + updateNetworkPeeringTransportSettings, + settings.updateNetworkPeeringOperationSettings(), clientContext, httpJsonOperationsStub); + this.listPeeringRoutesCallable = + callableFactory.createUnaryCallable( + listPeeringRoutesTransportSettings, + settings.listPeeringRoutesSettings(), + clientContext); + this.listPeeringRoutesPagedCallable = + callableFactory.createPagedCallable( + listPeeringRoutesTransportSettings, + settings.listPeeringRoutesSettings(), + clientContext); this.createHcxActivationKeyCallable = callableFactory.createUnaryCallable( createHcxActivationKeyTransportSettings, @@ -2830,6 +5093,65 @@ protected HttpJsonVmwareEngineStub( settings.deleteNetworkPolicyOperationSettings(), clientContext, httpJsonOperationsStub); + this.listManagementDnsZoneBindingsCallable = + callableFactory.createUnaryCallable( + listManagementDnsZoneBindingsTransportSettings, + settings.listManagementDnsZoneBindingsSettings(), + clientContext); + this.listManagementDnsZoneBindingsPagedCallable = + callableFactory.createPagedCallable( + listManagementDnsZoneBindingsTransportSettings, + settings.listManagementDnsZoneBindingsSettings(), + clientContext); + this.getManagementDnsZoneBindingCallable = + callableFactory.createUnaryCallable( + getManagementDnsZoneBindingTransportSettings, + settings.getManagementDnsZoneBindingSettings(), + clientContext); + this.createManagementDnsZoneBindingCallable = + callableFactory.createUnaryCallable( + createManagementDnsZoneBindingTransportSettings, + settings.createManagementDnsZoneBindingSettings(), + clientContext); + this.createManagementDnsZoneBindingOperationCallable = + callableFactory.createOperationCallable( + createManagementDnsZoneBindingTransportSettings, + settings.createManagementDnsZoneBindingOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateManagementDnsZoneBindingCallable = + callableFactory.createUnaryCallable( + updateManagementDnsZoneBindingTransportSettings, + settings.updateManagementDnsZoneBindingSettings(), + clientContext); + this.updateManagementDnsZoneBindingOperationCallable = + callableFactory.createOperationCallable( + updateManagementDnsZoneBindingTransportSettings, + settings.updateManagementDnsZoneBindingOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteManagementDnsZoneBindingCallable = + callableFactory.createUnaryCallable( + deleteManagementDnsZoneBindingTransportSettings, + settings.deleteManagementDnsZoneBindingSettings(), + clientContext); + this.deleteManagementDnsZoneBindingOperationCallable = + callableFactory.createOperationCallable( + deleteManagementDnsZoneBindingTransportSettings, + settings.deleteManagementDnsZoneBindingOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.repairManagementDnsZoneBindingCallable = + callableFactory.createUnaryCallable( + repairManagementDnsZoneBindingTransportSettings, + settings.repairManagementDnsZoneBindingSettings(), + clientContext); + this.repairManagementDnsZoneBindingOperationCallable = + callableFactory.createOperationCallable( + repairManagementDnsZoneBindingTransportSettings, + settings.repairManagementDnsZoneBindingOperationSettings(), + clientContext, + httpJsonOperationsStub); this.createVmwareEngineNetworkCallable = callableFactory.createUnaryCallable( createVmwareEngineNetworkTransportSettings, @@ -2936,6 +5258,33 @@ protected HttpJsonVmwareEngineStub( listPrivateConnectionPeeringRoutesTransportSettings, settings.listPrivateConnectionPeeringRoutesSettings(), clientContext); + this.grantDnsBindPermissionCallable = + callableFactory.createUnaryCallable( + grantDnsBindPermissionTransportSettings, + settings.grantDnsBindPermissionSettings(), + clientContext); + this.grantDnsBindPermissionOperationCallable = + callableFactory.createOperationCallable( + grantDnsBindPermissionTransportSettings, + settings.grantDnsBindPermissionOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getDnsBindPermissionCallable = + callableFactory.createUnaryCallable( + getDnsBindPermissionTransportSettings, + settings.getDnsBindPermissionSettings(), + clientContext); + this.revokeDnsBindPermissionCallable = + callableFactory.createUnaryCallable( + revokeDnsBindPermissionTransportSettings, + settings.revokeDnsBindPermissionSettings(), + clientContext); + this.revokeDnsBindPermissionOperationCallable = + callableFactory.createOperationCallable( + revokeDnsBindPermissionTransportSettings, + settings.revokeDnsBindPermissionOperationSettings(), + clientContext, + httpJsonOperationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -2975,15 +5324,41 @@ public static List getMethodDescriptors() { methodDescriptors.add(createClusterMethodDescriptor); methodDescriptors.add(updateClusterMethodDescriptor); methodDescriptors.add(deleteClusterMethodDescriptor); + methodDescriptors.add(listNodesMethodDescriptor); + methodDescriptors.add(getNodeMethodDescriptor); + methodDescriptors.add(listExternalAddressesMethodDescriptor); + methodDescriptors.add(fetchNetworkPolicyExternalAddressesMethodDescriptor); + methodDescriptors.add(getExternalAddressMethodDescriptor); + methodDescriptors.add(createExternalAddressMethodDescriptor); + methodDescriptors.add(updateExternalAddressMethodDescriptor); + methodDescriptors.add(deleteExternalAddressMethodDescriptor); methodDescriptors.add(listSubnetsMethodDescriptor); methodDescriptors.add(getSubnetMethodDescriptor); methodDescriptors.add(updateSubnetMethodDescriptor); + methodDescriptors.add(listExternalAccessRulesMethodDescriptor); + methodDescriptors.add(getExternalAccessRuleMethodDescriptor); + methodDescriptors.add(createExternalAccessRuleMethodDescriptor); + methodDescriptors.add(updateExternalAccessRuleMethodDescriptor); + methodDescriptors.add(deleteExternalAccessRuleMethodDescriptor); + methodDescriptors.add(listLoggingServersMethodDescriptor); + methodDescriptors.add(getLoggingServerMethodDescriptor); + methodDescriptors.add(createLoggingServerMethodDescriptor); + methodDescriptors.add(updateLoggingServerMethodDescriptor); + methodDescriptors.add(deleteLoggingServerMethodDescriptor); methodDescriptors.add(listNodeTypesMethodDescriptor); methodDescriptors.add(getNodeTypeMethodDescriptor); methodDescriptors.add(showNsxCredentialsMethodDescriptor); methodDescriptors.add(showVcenterCredentialsMethodDescriptor); methodDescriptors.add(resetNsxCredentialsMethodDescriptor); methodDescriptors.add(resetVcenterCredentialsMethodDescriptor); + methodDescriptors.add(getDnsForwardingMethodDescriptor); + methodDescriptors.add(updateDnsForwardingMethodDescriptor); + methodDescriptors.add(getNetworkPeeringMethodDescriptor); + methodDescriptors.add(listNetworkPeeringsMethodDescriptor); + methodDescriptors.add(createNetworkPeeringMethodDescriptor); + methodDescriptors.add(deleteNetworkPeeringMethodDescriptor); + methodDescriptors.add(updateNetworkPeeringMethodDescriptor); + methodDescriptors.add(listPeeringRoutesMethodDescriptor); methodDescriptors.add(createHcxActivationKeyMethodDescriptor); methodDescriptors.add(listHcxActivationKeysMethodDescriptor); methodDescriptors.add(getHcxActivationKeyMethodDescriptor); @@ -2992,6 +5367,12 @@ public static List getMethodDescriptors() { methodDescriptors.add(createNetworkPolicyMethodDescriptor); methodDescriptors.add(updateNetworkPolicyMethodDescriptor); methodDescriptors.add(deleteNetworkPolicyMethodDescriptor); + methodDescriptors.add(listManagementDnsZoneBindingsMethodDescriptor); + methodDescriptors.add(getManagementDnsZoneBindingMethodDescriptor); + methodDescriptors.add(createManagementDnsZoneBindingMethodDescriptor); + methodDescriptors.add(updateManagementDnsZoneBindingMethodDescriptor); + methodDescriptors.add(deleteManagementDnsZoneBindingMethodDescriptor); + methodDescriptors.add(repairManagementDnsZoneBindingMethodDescriptor); methodDescriptors.add(createVmwareEngineNetworkMethodDescriptor); methodDescriptors.add(updateVmwareEngineNetworkMethodDescriptor); methodDescriptors.add(deleteVmwareEngineNetworkMethodDescriptor); @@ -3003,6 +5384,9 @@ public static List getMethodDescriptors() { methodDescriptors.add(updatePrivateConnectionMethodDescriptor); methodDescriptors.add(deletePrivateConnectionMethodDescriptor); methodDescriptors.add(listPrivateConnectionPeeringRoutesMethodDescriptor); + methodDescriptors.add(grantDnsBindPermissionMethodDescriptor); + methodDescriptors.add(getDnsBindPermissionMethodDescriptor); + methodDescriptors.add(revokeDnsBindPermissionMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); methodDescriptors.add(getLocationMethodDescriptor); methodDescriptors.add(setIamPolicyMethodDescriptor); @@ -3124,6 +5508,86 @@ public UnaryCallable deleteClusterCallable() { return deleteClusterOperationCallable; } + @Override + public UnaryCallable listNodesCallable() { + return listNodesCallable; + } + + @Override + public UnaryCallable listNodesPagedCallable() { + return listNodesPagedCallable; + } + + @Override + public UnaryCallable getNodeCallable() { + return getNodeCallable; + } + + @Override + public UnaryCallable + listExternalAddressesCallable() { + return listExternalAddressesCallable; + } + + @Override + public UnaryCallable + listExternalAddressesPagedCallable() { + return listExternalAddressesPagedCallable; + } + + @Override + public UnaryCallable< + FetchNetworkPolicyExternalAddressesRequest, FetchNetworkPolicyExternalAddressesResponse> + fetchNetworkPolicyExternalAddressesCallable() { + return fetchNetworkPolicyExternalAddressesCallable; + } + + @Override + public UnaryCallable< + FetchNetworkPolicyExternalAddressesRequest, + FetchNetworkPolicyExternalAddressesPagedResponse> + fetchNetworkPolicyExternalAddressesPagedCallable() { + return fetchNetworkPolicyExternalAddressesPagedCallable; + } + + @Override + public UnaryCallable getExternalAddressCallable() { + return getExternalAddressCallable; + } + + @Override + public UnaryCallable createExternalAddressCallable() { + return createExternalAddressCallable; + } + + @Override + public OperationCallable + createExternalAddressOperationCallable() { + return createExternalAddressOperationCallable; + } + + @Override + public UnaryCallable updateExternalAddressCallable() { + return updateExternalAddressCallable; + } + + @Override + public OperationCallable + updateExternalAddressOperationCallable() { + return updateExternalAddressOperationCallable; + } + + @Override + public UnaryCallable deleteExternalAddressCallable() { + return deleteExternalAddressCallable; + } + + @Override + public OperationCallable + deleteExternalAddressOperationCallable() { + return deleteExternalAddressOperationCallable; + } + @Override public UnaryCallable listSubnetsCallable() { return listSubnetsCallable; @@ -3150,6 +5614,110 @@ public UnaryCallable updateSubnetCallable() { return updateSubnetOperationCallable; } + @Override + public UnaryCallable + listExternalAccessRulesCallable() { + return listExternalAccessRulesCallable; + } + + @Override + public UnaryCallable + listExternalAccessRulesPagedCallable() { + return listExternalAccessRulesPagedCallable; + } + + @Override + public UnaryCallable + getExternalAccessRuleCallable() { + return getExternalAccessRuleCallable; + } + + @Override + public UnaryCallable + createExternalAccessRuleCallable() { + return createExternalAccessRuleCallable; + } + + @Override + public OperationCallable + createExternalAccessRuleOperationCallable() { + return createExternalAccessRuleOperationCallable; + } + + @Override + public UnaryCallable + updateExternalAccessRuleCallable() { + return updateExternalAccessRuleCallable; + } + + @Override + public OperationCallable + updateExternalAccessRuleOperationCallable() { + return updateExternalAccessRuleOperationCallable; + } + + @Override + public UnaryCallable + deleteExternalAccessRuleCallable() { + return deleteExternalAccessRuleCallable; + } + + @Override + public OperationCallable + deleteExternalAccessRuleOperationCallable() { + return deleteExternalAccessRuleOperationCallable; + } + + @Override + public UnaryCallable + listLoggingServersCallable() { + return listLoggingServersCallable; + } + + @Override + public UnaryCallable + listLoggingServersPagedCallable() { + return listLoggingServersPagedCallable; + } + + @Override + public UnaryCallable getLoggingServerCallable() { + return getLoggingServerCallable; + } + + @Override + public UnaryCallable createLoggingServerCallable() { + return createLoggingServerCallable; + } + + @Override + public OperationCallable + createLoggingServerOperationCallable() { + return createLoggingServerOperationCallable; + } + + @Override + public UnaryCallable updateLoggingServerCallable() { + return updateLoggingServerCallable; + } + + @Override + public OperationCallable + updateLoggingServerOperationCallable() { + return updateLoggingServerOperationCallable; + } + + @Override + public UnaryCallable deleteLoggingServerCallable() { + return deleteLoggingServerCallable; + } + + @Override + public OperationCallable + deleteLoggingServerOperationCallable() { + return deleteLoggingServerOperationCallable; + } + @Override public UnaryCallable listNodeTypesCallable() { return listNodeTypesCallable; @@ -3200,6 +5768,84 @@ public UnaryCallable resetNsxCredentialsC return resetVcenterCredentialsOperationCallable; } + @Override + public UnaryCallable getDnsForwardingCallable() { + return getDnsForwardingCallable; + } + + @Override + public UnaryCallable updateDnsForwardingCallable() { + return updateDnsForwardingCallable; + } + + @Override + public OperationCallable + updateDnsForwardingOperationCallable() { + return updateDnsForwardingOperationCallable; + } + + @Override + public UnaryCallable getNetworkPeeringCallable() { + return getNetworkPeeringCallable; + } + + @Override + public UnaryCallable + listNetworkPeeringsCallable() { + return listNetworkPeeringsCallable; + } + + @Override + public UnaryCallable + listNetworkPeeringsPagedCallable() { + return listNetworkPeeringsPagedCallable; + } + + @Override + public UnaryCallable createNetworkPeeringCallable() { + return createNetworkPeeringCallable; + } + + @Override + public OperationCallable + createNetworkPeeringOperationCallable() { + return createNetworkPeeringOperationCallable; + } + + @Override + public UnaryCallable deleteNetworkPeeringCallable() { + return deleteNetworkPeeringCallable; + } + + @Override + public OperationCallable + deleteNetworkPeeringOperationCallable() { + return deleteNetworkPeeringOperationCallable; + } + + @Override + public UnaryCallable updateNetworkPeeringCallable() { + return updateNetworkPeeringCallable; + } + + @Override + public OperationCallable + updateNetworkPeeringOperationCallable() { + return updateNetworkPeeringOperationCallable; + } + + @Override + public UnaryCallable + listPeeringRoutesCallable() { + return listPeeringRoutesCallable; + } + + @Override + public UnaryCallable + listPeeringRoutesPagedCallable() { + return listPeeringRoutesPagedCallable; + } + @Override public UnaryCallable createHcxActivationKeyCallable() { return createHcxActivationKeyCallable; @@ -3278,6 +5924,76 @@ public UnaryCallable deleteNetworkPolicyC return deleteNetworkPolicyOperationCallable; } + @Override + public UnaryCallable + listManagementDnsZoneBindingsCallable() { + return listManagementDnsZoneBindingsCallable; + } + + @Override + public UnaryCallable< + ListManagementDnsZoneBindingsRequest, ListManagementDnsZoneBindingsPagedResponse> + listManagementDnsZoneBindingsPagedCallable() { + return listManagementDnsZoneBindingsPagedCallable; + } + + @Override + public UnaryCallable + getManagementDnsZoneBindingCallable() { + return getManagementDnsZoneBindingCallable; + } + + @Override + public UnaryCallable + createManagementDnsZoneBindingCallable() { + return createManagementDnsZoneBindingCallable; + } + + @Override + public OperationCallable< + CreateManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + createManagementDnsZoneBindingOperationCallable() { + return createManagementDnsZoneBindingOperationCallable; + } + + @Override + public UnaryCallable + updateManagementDnsZoneBindingCallable() { + return updateManagementDnsZoneBindingCallable; + } + + @Override + public OperationCallable< + UpdateManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + updateManagementDnsZoneBindingOperationCallable() { + return updateManagementDnsZoneBindingOperationCallable; + } + + @Override + public UnaryCallable + deleteManagementDnsZoneBindingCallable() { + return deleteManagementDnsZoneBindingCallable; + } + + @Override + public OperationCallable + deleteManagementDnsZoneBindingOperationCallable() { + return deleteManagementDnsZoneBindingOperationCallable; + } + + @Override + public UnaryCallable + repairManagementDnsZoneBindingCallable() { + return repairManagementDnsZoneBindingCallable; + } + + @Override + public OperationCallable< + RepairManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + repairManagementDnsZoneBindingOperationCallable() { + return repairManagementDnsZoneBindingOperationCallable; + } + @Override public UnaryCallable createVmwareEngineNetworkCallable() { @@ -3401,6 +6117,35 @@ public UnaryCallable deleteNetworkPolicyC return listPrivateConnectionPeeringRoutesPagedCallable; } + @Override + public UnaryCallable grantDnsBindPermissionCallable() { + return grantDnsBindPermissionCallable; + } + + @Override + public OperationCallable + grantDnsBindPermissionOperationCallable() { + return grantDnsBindPermissionOperationCallable; + } + + @Override + public UnaryCallable + getDnsBindPermissionCallable() { + return getDnsBindPermissionCallable; + } + + @Override + public UnaryCallable + revokeDnsBindPermissionCallable() { + return revokeDnsBindPermissionCallable; + } + + @Override + public OperationCallable + revokeDnsBindPermissionOperationCallable() { + return revokeDnsBindPermissionOperationCallable; + } + @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 95a7ec237574..d794b5d8a70f 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 @@ -16,11 +16,19 @@ package com.google.cloud.vmwareengine.v1.stub; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.FetchNetworkPolicyExternalAddressesPagedResponse; import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListClustersPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListExternalAccessRulesPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListExternalAddressesPagedResponse; import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListHcxActivationKeysPagedResponse; import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListLocationsPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListLoggingServersPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListManagementDnsZoneBindingsPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNetworkPeeringsPagedResponse; 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.ListNodesPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPeeringRoutesPagedResponse; 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; @@ -36,34 +44,73 @@ import com.google.cloud.location.Location; import com.google.cloud.vmwareengine.v1.Cluster; import com.google.cloud.vmwareengine.v1.CreateClusterRequest; +import com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest; +import com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest; import com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest; +import com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest; +import com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest; +import com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest; 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.DeleteExternalAccessRuleRequest; +import com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest; +import com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest; +import com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest; +import com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest; 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.DnsBindPermission; +import com.google.cloud.vmwareengine.v1.DnsForwarding; +import com.google.cloud.vmwareengine.v1.ExternalAccessRule; +import com.google.cloud.vmwareengine.v1.ExternalAddress; +import com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest; +import com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse; import com.google.cloud.vmwareengine.v1.GetClusterRequest; +import com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest; +import com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest; +import com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest; +import com.google.cloud.vmwareengine.v1.GetExternalAddressRequest; import com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest; +import com.google.cloud.vmwareengine.v1.GetLoggingServerRequest; +import com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest; +import com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest; import com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest; +import com.google.cloud.vmwareengine.v1.GetNodeRequest; 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.GrantDnsBindPermissionRequest; import com.google.cloud.vmwareengine.v1.HcxActivationKey; import com.google.cloud.vmwareengine.v1.ListClustersRequest; import com.google.cloud.vmwareengine.v1.ListClustersResponse; +import com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest; +import com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse; +import com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest; +import com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse; import com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest; import com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse; +import com.google.cloud.vmwareengine.v1.ListLoggingServersRequest; +import com.google.cloud.vmwareengine.v1.ListLoggingServersResponse; +import com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest; +import com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse; +import com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest; +import com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse; import com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest; import com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse; import com.google.cloud.vmwareengine.v1.ListNodeTypesRequest; import com.google.cloud.vmwareengine.v1.ListNodeTypesResponse; +import com.google.cloud.vmwareengine.v1.ListNodesRequest; +import com.google.cloud.vmwareengine.v1.ListNodesResponse; +import com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest; +import com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse; import com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest; import com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse; import com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest; @@ -74,18 +121,30 @@ import com.google.cloud.vmwareengine.v1.ListSubnetsResponse; import com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest; import com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse; +import com.google.cloud.vmwareengine.v1.LoggingServer; +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding; +import com.google.cloud.vmwareengine.v1.NetworkPeering; import com.google.cloud.vmwareengine.v1.NetworkPolicy; +import com.google.cloud.vmwareengine.v1.Node; 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.RepairManagementDnsZoneBindingRequest; import com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest; import com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest; +import com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest; 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.UpdateDnsForwardingRequest; +import com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest; +import com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest; +import com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest; +import com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest; +import com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest; import com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest; import com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest; import com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest; @@ -212,6 +271,78 @@ public UnaryCallable deleteClusterCallable() { throw new UnsupportedOperationException("Not implemented: deleteClusterCallable()"); } + public UnaryCallable listNodesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listNodesPagedCallable()"); + } + + public UnaryCallable listNodesCallable() { + throw new UnsupportedOperationException("Not implemented: listNodesCallable()"); + } + + public UnaryCallable getNodeCallable() { + throw new UnsupportedOperationException("Not implemented: getNodeCallable()"); + } + + public UnaryCallable + listExternalAddressesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listExternalAddressesPagedCallable()"); + } + + public UnaryCallable + listExternalAddressesCallable() { + throw new UnsupportedOperationException("Not implemented: listExternalAddressesCallable()"); + } + + public UnaryCallable< + FetchNetworkPolicyExternalAddressesRequest, + FetchNetworkPolicyExternalAddressesPagedResponse> + fetchNetworkPolicyExternalAddressesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: fetchNetworkPolicyExternalAddressesPagedCallable()"); + } + + public UnaryCallable< + FetchNetworkPolicyExternalAddressesRequest, FetchNetworkPolicyExternalAddressesResponse> + fetchNetworkPolicyExternalAddressesCallable() { + throw new UnsupportedOperationException( + "Not implemented: fetchNetworkPolicyExternalAddressesCallable()"); + } + + public UnaryCallable getExternalAddressCallable() { + throw new UnsupportedOperationException("Not implemented: getExternalAddressCallable()"); + } + + public OperationCallable + createExternalAddressOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createExternalAddressOperationCallable()"); + } + + public UnaryCallable createExternalAddressCallable() { + throw new UnsupportedOperationException("Not implemented: createExternalAddressCallable()"); + } + + public OperationCallable + updateExternalAddressOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateExternalAddressOperationCallable()"); + } + + public UnaryCallable updateExternalAddressCallable() { + throw new UnsupportedOperationException("Not implemented: updateExternalAddressCallable()"); + } + + public OperationCallable + deleteExternalAddressOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteExternalAddressOperationCallable()"); + } + + public UnaryCallable deleteExternalAddressCallable() { + throw new UnsupportedOperationException("Not implemented: deleteExternalAddressCallable()"); + } + public UnaryCallable listSubnetsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listSubnetsPagedCallable()"); } @@ -233,6 +364,99 @@ public UnaryCallable updateSubnetCallable() { throw new UnsupportedOperationException("Not implemented: updateSubnetCallable()"); } + public UnaryCallable + listExternalAccessRulesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listExternalAccessRulesPagedCallable()"); + } + + public UnaryCallable + listExternalAccessRulesCallable() { + throw new UnsupportedOperationException("Not implemented: listExternalAccessRulesCallable()"); + } + + public UnaryCallable + getExternalAccessRuleCallable() { + throw new UnsupportedOperationException("Not implemented: getExternalAccessRuleCallable()"); + } + + public OperationCallable + createExternalAccessRuleOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createExternalAccessRuleOperationCallable()"); + } + + public UnaryCallable + createExternalAccessRuleCallable() { + throw new UnsupportedOperationException("Not implemented: createExternalAccessRuleCallable()"); + } + + public OperationCallable + updateExternalAccessRuleOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateExternalAccessRuleOperationCallable()"); + } + + public UnaryCallable + updateExternalAccessRuleCallable() { + throw new UnsupportedOperationException("Not implemented: updateExternalAccessRuleCallable()"); + } + + public OperationCallable + deleteExternalAccessRuleOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteExternalAccessRuleOperationCallable()"); + } + + public UnaryCallable + deleteExternalAccessRuleCallable() { + throw new UnsupportedOperationException("Not implemented: deleteExternalAccessRuleCallable()"); + } + + public UnaryCallable + listLoggingServersPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLoggingServersPagedCallable()"); + } + + public UnaryCallable + listLoggingServersCallable() { + throw new UnsupportedOperationException("Not implemented: listLoggingServersCallable()"); + } + + public UnaryCallable getLoggingServerCallable() { + throw new UnsupportedOperationException("Not implemented: getLoggingServerCallable()"); + } + + public OperationCallable + createLoggingServerOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createLoggingServerOperationCallable()"); + } + + public UnaryCallable createLoggingServerCallable() { + throw new UnsupportedOperationException("Not implemented: createLoggingServerCallable()"); + } + + public OperationCallable + updateLoggingServerOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateLoggingServerOperationCallable()"); + } + + public UnaryCallable updateLoggingServerCallable() { + throw new UnsupportedOperationException("Not implemented: updateLoggingServerCallable()"); + } + + public OperationCallable + deleteLoggingServerOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteLoggingServerOperationCallable()"); + } + + public UnaryCallable deleteLoggingServerCallable() { + throw new UnsupportedOperationException("Not implemented: deleteLoggingServerCallable()"); + } + public UnaryCallable listNodeTypesPagedCallable() { throw new UnsupportedOperationException("Not implemented: listNodeTypesPagedCallable()"); @@ -276,6 +500,74 @@ public UnaryCallable resetNsxCredentialsC throw new UnsupportedOperationException("Not implemented: resetVcenterCredentialsCallable()"); } + public UnaryCallable getDnsForwardingCallable() { + throw new UnsupportedOperationException("Not implemented: getDnsForwardingCallable()"); + } + + public OperationCallable + updateDnsForwardingOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateDnsForwardingOperationCallable()"); + } + + public UnaryCallable updateDnsForwardingCallable() { + throw new UnsupportedOperationException("Not implemented: updateDnsForwardingCallable()"); + } + + public UnaryCallable getNetworkPeeringCallable() { + throw new UnsupportedOperationException("Not implemented: getNetworkPeeringCallable()"); + } + + public UnaryCallable + listNetworkPeeringsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listNetworkPeeringsPagedCallable()"); + } + + public UnaryCallable + listNetworkPeeringsCallable() { + throw new UnsupportedOperationException("Not implemented: listNetworkPeeringsCallable()"); + } + + public OperationCallable + createNetworkPeeringOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createNetworkPeeringOperationCallable()"); + } + + public UnaryCallable createNetworkPeeringCallable() { + throw new UnsupportedOperationException("Not implemented: createNetworkPeeringCallable()"); + } + + public OperationCallable + deleteNetworkPeeringOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteNetworkPeeringOperationCallable()"); + } + + public UnaryCallable deleteNetworkPeeringCallable() { + throw new UnsupportedOperationException("Not implemented: deleteNetworkPeeringCallable()"); + } + + public OperationCallable + updateNetworkPeeringOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateNetworkPeeringOperationCallable()"); + } + + public UnaryCallable updateNetworkPeeringCallable() { + throw new UnsupportedOperationException("Not implemented: updateNetworkPeeringCallable()"); + } + + public UnaryCallable + listPeeringRoutesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listPeeringRoutesPagedCallable()"); + } + + public UnaryCallable + listPeeringRoutesCallable() { + throw new UnsupportedOperationException("Not implemented: listPeeringRoutesCallable()"); + } + public OperationCallable createHcxActivationKeyOperationCallable() { throw new UnsupportedOperationException( @@ -345,6 +637,76 @@ public UnaryCallable deleteNetworkPolicyC throw new UnsupportedOperationException("Not implemented: deleteNetworkPolicyCallable()"); } + public UnaryCallable< + ListManagementDnsZoneBindingsRequest, ListManagementDnsZoneBindingsPagedResponse> + listManagementDnsZoneBindingsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listManagementDnsZoneBindingsPagedCallable()"); + } + + public UnaryCallable + listManagementDnsZoneBindingsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listManagementDnsZoneBindingsCallable()"); + } + + public UnaryCallable + getManagementDnsZoneBindingCallable() { + throw new UnsupportedOperationException( + "Not implemented: getManagementDnsZoneBindingCallable()"); + } + + public OperationCallable< + CreateManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + createManagementDnsZoneBindingOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createManagementDnsZoneBindingOperationCallable()"); + } + + public UnaryCallable + createManagementDnsZoneBindingCallable() { + throw new UnsupportedOperationException( + "Not implemented: createManagementDnsZoneBindingCallable()"); + } + + public OperationCallable< + UpdateManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + updateManagementDnsZoneBindingOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateManagementDnsZoneBindingOperationCallable()"); + } + + public UnaryCallable + updateManagementDnsZoneBindingCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateManagementDnsZoneBindingCallable()"); + } + + public OperationCallable + deleteManagementDnsZoneBindingOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteManagementDnsZoneBindingOperationCallable()"); + } + + public UnaryCallable + deleteManagementDnsZoneBindingCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteManagementDnsZoneBindingCallable()"); + } + + public OperationCallable< + RepairManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + repairManagementDnsZoneBindingOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: repairManagementDnsZoneBindingOperationCallable()"); + } + + public UnaryCallable + repairManagementDnsZoneBindingCallable() { + throw new UnsupportedOperationException( + "Not implemented: repairManagementDnsZoneBindingCallable()"); + } + public OperationCallable createVmwareEngineNetworkOperationCallable() { throw new UnsupportedOperationException( @@ -458,6 +820,32 @@ public UnaryCallable deleteNetworkPolicyC "Not implemented: listPrivateConnectionPeeringRoutesCallable()"); } + public OperationCallable + grantDnsBindPermissionOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: grantDnsBindPermissionOperationCallable()"); + } + + public UnaryCallable grantDnsBindPermissionCallable() { + throw new UnsupportedOperationException("Not implemented: grantDnsBindPermissionCallable()"); + } + + public UnaryCallable + getDnsBindPermissionCallable() { + throw new UnsupportedOperationException("Not implemented: getDnsBindPermissionCallable()"); + } + + public OperationCallable + revokeDnsBindPermissionOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: revokeDnsBindPermissionOperationCallable()"); + } + + public UnaryCallable + revokeDnsBindPermissionCallable() { + throw new UnsupportedOperationException("Not implemented: revokeDnsBindPermissionCallable()"); + } + 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 0f3b3ce270ad..098824cc8f93 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 @@ -16,11 +16,19 @@ package com.google.cloud.vmwareengine.v1.stub; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.FetchNetworkPolicyExternalAddressesPagedResponse; import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListClustersPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListExternalAccessRulesPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListExternalAddressesPagedResponse; import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListHcxActivationKeysPagedResponse; import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListLocationsPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListLoggingServersPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListManagementDnsZoneBindingsPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNetworkPeeringsPagedResponse; 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.ListNodesPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPeeringRoutesPagedResponse; 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; @@ -62,34 +70,73 @@ import com.google.cloud.location.Location; import com.google.cloud.vmwareengine.v1.Cluster; import com.google.cloud.vmwareengine.v1.CreateClusterRequest; +import com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest; +import com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest; import com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest; +import com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest; +import com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest; +import com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest; 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.DeleteExternalAccessRuleRequest; +import com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest; +import com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest; +import com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest; +import com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest; 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.DnsBindPermission; +import com.google.cloud.vmwareengine.v1.DnsForwarding; +import com.google.cloud.vmwareengine.v1.ExternalAccessRule; +import com.google.cloud.vmwareengine.v1.ExternalAddress; +import com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest; +import com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse; import com.google.cloud.vmwareengine.v1.GetClusterRequest; +import com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest; +import com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest; +import com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest; +import com.google.cloud.vmwareengine.v1.GetExternalAddressRequest; import com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest; +import com.google.cloud.vmwareengine.v1.GetLoggingServerRequest; +import com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest; +import com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest; import com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest; +import com.google.cloud.vmwareengine.v1.GetNodeRequest; 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.GrantDnsBindPermissionRequest; import com.google.cloud.vmwareengine.v1.HcxActivationKey; import com.google.cloud.vmwareengine.v1.ListClustersRequest; import com.google.cloud.vmwareengine.v1.ListClustersResponse; +import com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest; +import com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse; +import com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest; +import com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse; import com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest; import com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse; +import com.google.cloud.vmwareengine.v1.ListLoggingServersRequest; +import com.google.cloud.vmwareengine.v1.ListLoggingServersResponse; +import com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest; +import com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse; +import com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest; +import com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse; import com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest; import com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse; import com.google.cloud.vmwareengine.v1.ListNodeTypesRequest; import com.google.cloud.vmwareengine.v1.ListNodeTypesResponse; +import com.google.cloud.vmwareengine.v1.ListNodesRequest; +import com.google.cloud.vmwareengine.v1.ListNodesResponse; +import com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest; +import com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse; import com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest; import com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse; import com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest; @@ -100,19 +147,31 @@ import com.google.cloud.vmwareengine.v1.ListSubnetsResponse; import com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest; import com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse; +import com.google.cloud.vmwareengine.v1.LoggingServer; +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding; +import com.google.cloud.vmwareengine.v1.NetworkPeering; import com.google.cloud.vmwareengine.v1.NetworkPolicy; +import com.google.cloud.vmwareengine.v1.Node; 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.RepairManagementDnsZoneBindingRequest; import com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest; import com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest; +import com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest; 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.UpdateDnsForwardingRequest; +import com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest; +import com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest; +import com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest; +import com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest; +import com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest; import com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest; import com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest; import com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest; @@ -208,12 +267,78 @@ public class VmwareEngineStubSettings extends StubSettings deleteClusterSettings; private final OperationCallSettings deleteClusterOperationSettings; + private final PagedCallSettings + listNodesSettings; + private final UnaryCallSettings getNodeSettings; + private final PagedCallSettings< + ListExternalAddressesRequest, + ListExternalAddressesResponse, + ListExternalAddressesPagedResponse> + listExternalAddressesSettings; + private final PagedCallSettings< + FetchNetworkPolicyExternalAddressesRequest, + FetchNetworkPolicyExternalAddressesResponse, + FetchNetworkPolicyExternalAddressesPagedResponse> + fetchNetworkPolicyExternalAddressesSettings; + private final UnaryCallSettings + getExternalAddressSettings; + private final UnaryCallSettings + createExternalAddressSettings; + private final OperationCallSettings< + CreateExternalAddressRequest, ExternalAddress, OperationMetadata> + createExternalAddressOperationSettings; + private final UnaryCallSettings + updateExternalAddressSettings; + private final OperationCallSettings< + UpdateExternalAddressRequest, ExternalAddress, OperationMetadata> + updateExternalAddressOperationSettings; + private final UnaryCallSettings + deleteExternalAddressSettings; + private final OperationCallSettings + deleteExternalAddressOperationSettings; private final PagedCallSettings listSubnetsSettings; private final UnaryCallSettings getSubnetSettings; private final UnaryCallSettings updateSubnetSettings; private final OperationCallSettings updateSubnetOperationSettings; + private final PagedCallSettings< + ListExternalAccessRulesRequest, + ListExternalAccessRulesResponse, + ListExternalAccessRulesPagedResponse> + listExternalAccessRulesSettings; + private final UnaryCallSettings + getExternalAccessRuleSettings; + private final UnaryCallSettings + createExternalAccessRuleSettings; + private final OperationCallSettings< + CreateExternalAccessRuleRequest, ExternalAccessRule, OperationMetadata> + createExternalAccessRuleOperationSettings; + private final UnaryCallSettings + updateExternalAccessRuleSettings; + private final OperationCallSettings< + UpdateExternalAccessRuleRequest, ExternalAccessRule, OperationMetadata> + updateExternalAccessRuleOperationSettings; + private final UnaryCallSettings + deleteExternalAccessRuleSettings; + private final OperationCallSettings + deleteExternalAccessRuleOperationSettings; + private final PagedCallSettings< + ListLoggingServersRequest, ListLoggingServersResponse, ListLoggingServersPagedResponse> + listLoggingServersSettings; + private final UnaryCallSettings getLoggingServerSettings; + private final UnaryCallSettings + createLoggingServerSettings; + private final OperationCallSettings + createLoggingServerOperationSettings; + private final UnaryCallSettings + updateLoggingServerSettings; + private final OperationCallSettings + updateLoggingServerOperationSettings; + private final UnaryCallSettings + deleteLoggingServerSettings; + private final OperationCallSettings + deleteLoggingServerOperationSettings; private final PagedCallSettings< ListNodeTypesRequest, ListNodeTypesResponse, ListNodeTypesPagedResponse> listNodeTypesSettings; @@ -231,6 +356,33 @@ public class VmwareEngineStubSettings extends StubSettings resetVcenterCredentialsOperationSettings; + private final UnaryCallSettings getDnsForwardingSettings; + private final UnaryCallSettings + updateDnsForwardingSettings; + private final OperationCallSettings + updateDnsForwardingOperationSettings; + private final UnaryCallSettings + getNetworkPeeringSettings; + private final PagedCallSettings< + ListNetworkPeeringsRequest, ListNetworkPeeringsResponse, ListNetworkPeeringsPagedResponse> + listNetworkPeeringsSettings; + private final UnaryCallSettings + createNetworkPeeringSettings; + private final OperationCallSettings< + CreateNetworkPeeringRequest, NetworkPeering, OperationMetadata> + createNetworkPeeringOperationSettings; + private final UnaryCallSettings + deleteNetworkPeeringSettings; + private final OperationCallSettings + deleteNetworkPeeringOperationSettings; + private final UnaryCallSettings + updateNetworkPeeringSettings; + private final OperationCallSettings< + UpdateNetworkPeeringRequest, NetworkPeering, OperationMetadata> + updateNetworkPeeringOperationSettings; + private final PagedCallSettings< + ListPeeringRoutesRequest, ListPeeringRoutesResponse, ListPeeringRoutesPagedResponse> + listPeeringRoutesSettings; private final UnaryCallSettings createHcxActivationKeySettings; private final OperationCallSettings< @@ -259,6 +411,33 @@ public class VmwareEngineStubSettings extends StubSettings deleteNetworkPolicyOperationSettings; + private final PagedCallSettings< + ListManagementDnsZoneBindingsRequest, + ListManagementDnsZoneBindingsResponse, + ListManagementDnsZoneBindingsPagedResponse> + listManagementDnsZoneBindingsSettings; + private final UnaryCallSettings + getManagementDnsZoneBindingSettings; + private final UnaryCallSettings + createManagementDnsZoneBindingSettings; + private final OperationCallSettings< + CreateManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + createManagementDnsZoneBindingOperationSettings; + private final UnaryCallSettings + updateManagementDnsZoneBindingSettings; + private final OperationCallSettings< + UpdateManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + updateManagementDnsZoneBindingOperationSettings; + private final UnaryCallSettings + deleteManagementDnsZoneBindingSettings; + private final OperationCallSettings< + DeleteManagementDnsZoneBindingRequest, Empty, OperationMetadata> + deleteManagementDnsZoneBindingOperationSettings; + private final UnaryCallSettings + repairManagementDnsZoneBindingSettings; + private final OperationCallSettings< + RepairManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + repairManagementDnsZoneBindingOperationSettings; private final UnaryCallSettings createVmwareEngineNetworkSettings; private final OperationCallSettings< @@ -306,6 +485,18 @@ public class VmwareEngineStubSettings extends StubSettings listPrivateConnectionPeeringRoutesSettings; + private final UnaryCallSettings + grantDnsBindPermissionSettings; + private final OperationCallSettings< + GrantDnsBindPermissionRequest, DnsBindPermission, OperationMetadata> + grantDnsBindPermissionOperationSettings; + private final UnaryCallSettings + getDnsBindPermissionSettings; + private final UnaryCallSettings + revokeDnsBindPermissionSettings; + private final OperationCallSettings< + RevokeDnsBindPermissionRequest, DnsBindPermission, OperationMetadata> + revokeDnsBindPermissionOperationSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -391,6 +582,132 @@ public Iterable extractResources(ListClustersResponse payload) { } }; + private static final PagedListDescriptor + LIST_NODES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListNodesRequest injectToken(ListNodesRequest payload, String token) { + return ListNodesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListNodesRequest injectPageSize(ListNodesRequest payload, int pageSize) { + return ListNodesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListNodesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListNodesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListNodesResponse payload) { + return payload.getNodesList() == null + ? ImmutableList.of() + : payload.getNodesList(); + } + }; + + private static final PagedListDescriptor< + ListExternalAddressesRequest, ListExternalAddressesResponse, ExternalAddress> + LIST_EXTERNAL_ADDRESSES_PAGE_STR_DESC = + new PagedListDescriptor< + ListExternalAddressesRequest, ListExternalAddressesResponse, ExternalAddress>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListExternalAddressesRequest injectToken( + ListExternalAddressesRequest payload, String token) { + return ListExternalAddressesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListExternalAddressesRequest injectPageSize( + ListExternalAddressesRequest payload, int pageSize) { + return ListExternalAddressesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListExternalAddressesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListExternalAddressesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListExternalAddressesResponse payload) { + return payload.getExternalAddressesList() == null + ? ImmutableList.of() + : payload.getExternalAddressesList(); + } + }; + + private static final PagedListDescriptor< + FetchNetworkPolicyExternalAddressesRequest, + FetchNetworkPolicyExternalAddressesResponse, + ExternalAddress> + FETCH_NETWORK_POLICY_EXTERNAL_ADDRESSES_PAGE_STR_DESC = + new PagedListDescriptor< + FetchNetworkPolicyExternalAddressesRequest, + FetchNetworkPolicyExternalAddressesResponse, + ExternalAddress>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public FetchNetworkPolicyExternalAddressesRequest injectToken( + FetchNetworkPolicyExternalAddressesRequest payload, String token) { + return FetchNetworkPolicyExternalAddressesRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public FetchNetworkPolicyExternalAddressesRequest injectPageSize( + FetchNetworkPolicyExternalAddressesRequest payload, int pageSize) { + return FetchNetworkPolicyExternalAddressesRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(FetchNetworkPolicyExternalAddressesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(FetchNetworkPolicyExternalAddressesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + FetchNetworkPolicyExternalAddressesResponse payload) { + return payload.getExternalAddressesList() == null + ? ImmutableList.of() + : payload.getExternalAddressesList(); + } + }; + private static final PagedListDescriptor LIST_SUBNETS_PAGE_STR_DESC = new PagedListDescriptor() { @@ -427,6 +744,91 @@ public Iterable extractResources(ListSubnetsResponse payload) { } }; + private static final PagedListDescriptor< + ListExternalAccessRulesRequest, ListExternalAccessRulesResponse, ExternalAccessRule> + LIST_EXTERNAL_ACCESS_RULES_PAGE_STR_DESC = + new PagedListDescriptor< + ListExternalAccessRulesRequest, + ListExternalAccessRulesResponse, + ExternalAccessRule>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListExternalAccessRulesRequest injectToken( + ListExternalAccessRulesRequest payload, String token) { + return ListExternalAccessRulesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListExternalAccessRulesRequest injectPageSize( + ListExternalAccessRulesRequest payload, int pageSize) { + return ListExternalAccessRulesRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListExternalAccessRulesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListExternalAccessRulesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListExternalAccessRulesResponse payload) { + return payload.getExternalAccessRulesList() == null + ? ImmutableList.of() + : payload.getExternalAccessRulesList(); + } + }; + + private static final PagedListDescriptor< + ListLoggingServersRequest, ListLoggingServersResponse, LoggingServer> + LIST_LOGGING_SERVERS_PAGE_STR_DESC = + new PagedListDescriptor< + ListLoggingServersRequest, ListLoggingServersResponse, LoggingServer>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLoggingServersRequest injectToken( + ListLoggingServersRequest payload, String token) { + return ListLoggingServersRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLoggingServersRequest injectPageSize( + ListLoggingServersRequest payload, int pageSize) { + return ListLoggingServersRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLoggingServersRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLoggingServersResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLoggingServersResponse payload) { + return payload.getLoggingServersList() == null + ? ImmutableList.of() + : payload.getLoggingServersList(); + } + }; + private static final PagedListDescriptor LIST_NODE_TYPES_PAGE_STR_DESC = new PagedListDescriptor() { @@ -463,6 +865,86 @@ public Iterable extractResources(ListNodeTypesResponse payload) { } }; + private static final PagedListDescriptor< + ListNetworkPeeringsRequest, ListNetworkPeeringsResponse, NetworkPeering> + LIST_NETWORK_PEERINGS_PAGE_STR_DESC = + new PagedListDescriptor< + ListNetworkPeeringsRequest, ListNetworkPeeringsResponse, NetworkPeering>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListNetworkPeeringsRequest injectToken( + ListNetworkPeeringsRequest payload, String token) { + return ListNetworkPeeringsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListNetworkPeeringsRequest injectPageSize( + ListNetworkPeeringsRequest payload, int pageSize) { + return ListNetworkPeeringsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListNetworkPeeringsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListNetworkPeeringsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListNetworkPeeringsResponse payload) { + return payload.getNetworkPeeringsList() == null + ? ImmutableList.of() + : payload.getNetworkPeeringsList(); + } + }; + + private static final PagedListDescriptor< + ListPeeringRoutesRequest, ListPeeringRoutesResponse, PeeringRoute> + LIST_PEERING_ROUTES_PAGE_STR_DESC = + new PagedListDescriptor< + ListPeeringRoutesRequest, ListPeeringRoutesResponse, PeeringRoute>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListPeeringRoutesRequest injectToken( + ListPeeringRoutesRequest payload, String token) { + return ListPeeringRoutesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListPeeringRoutesRequest injectPageSize( + ListPeeringRoutesRequest payload, int pageSize) { + return ListPeeringRoutesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListPeeringRoutesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListPeeringRoutesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListPeeringRoutesResponse payload) { + return payload.getPeeringRoutesList() == null + ? ImmutableList.of() + : payload.getPeeringRoutesList(); + } + }; + private static final PagedListDescriptor< ListHcxActivationKeysRequest, ListHcxActivationKeysResponse, HcxActivationKey> LIST_HCX_ACTIVATION_KEYS_PAGE_STR_DESC = @@ -544,6 +1026,55 @@ public Iterable extractResources(ListNetworkPoliciesResponse payl } }; + private static final PagedListDescriptor< + ListManagementDnsZoneBindingsRequest, + ListManagementDnsZoneBindingsResponse, + ManagementDnsZoneBinding> + LIST_MANAGEMENT_DNS_ZONE_BINDINGS_PAGE_STR_DESC = + new PagedListDescriptor< + ListManagementDnsZoneBindingsRequest, + ListManagementDnsZoneBindingsResponse, + ManagementDnsZoneBinding>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListManagementDnsZoneBindingsRequest injectToken( + ListManagementDnsZoneBindingsRequest payload, String token) { + return ListManagementDnsZoneBindingsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListManagementDnsZoneBindingsRequest injectPageSize( + ListManagementDnsZoneBindingsRequest payload, int pageSize) { + return ListManagementDnsZoneBindingsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListManagementDnsZoneBindingsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListManagementDnsZoneBindingsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListManagementDnsZoneBindingsResponse payload) { + return payload.getManagementDnsZoneBindingsList() == null + ? ImmutableList.of() + : payload.getManagementDnsZoneBindingsList(); + } + }; + private static final PagedListDescriptor< ListVmwareEngineNetworksRequest, ListVmwareEngineNetworksResponse, VmwareEngineNetwork> LIST_VMWARE_ENGINE_NETWORKS_PAGE_STR_DESC = @@ -758,43 +1289,208 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListSubnetsRequest, ListSubnetsResponse, ListSubnetsPagedResponse> - LIST_SUBNETS_PAGE_STR_FACT = + ListNodesRequest, ListNodesResponse, ListNodesPagedResponse> + LIST_NODES_PAGE_STR_FACT = new PagedListResponseFactory< - ListSubnetsRequest, ListSubnetsResponse, ListSubnetsPagedResponse>() { + ListNodesRequest, ListNodesResponse, ListNodesPagedResponse>() { @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListSubnetsRequest request, + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListNodesRequest request, ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_SUBNETS_PAGE_STR_DESC, request, context); - return ListSubnetsPagedResponse.createAsync(pageContext, futureResponse); + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_NODES_PAGE_STR_DESC, request, context); + return ListNodesPagedResponse.createAsync(pageContext, futureResponse); } }; private static final PagedListResponseFactory< - ListNodeTypesRequest, ListNodeTypesResponse, ListNodeTypesPagedResponse> - LIST_NODE_TYPES_PAGE_STR_FACT = + ListExternalAddressesRequest, + ListExternalAddressesResponse, + ListExternalAddressesPagedResponse> + LIST_EXTERNAL_ADDRESSES_PAGE_STR_FACT = new PagedListResponseFactory< - ListNodeTypesRequest, ListNodeTypesResponse, ListNodeTypesPagedResponse>() { + ListExternalAddressesRequest, + ListExternalAddressesResponse, + ListExternalAddressesPagedResponse>() { @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListNodeTypesRequest request, + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListExternalAddressesRequest request, ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_NODE_TYPES_PAGE_STR_DESC, request, context); - return ListNodeTypesPagedResponse.createAsync(pageContext, futureResponse); + ApiFuture futureResponse) { + PageContext< + ListExternalAddressesRequest, ListExternalAddressesResponse, ExternalAddress> + pageContext = + PageContext.create( + callable, LIST_EXTERNAL_ADDRESSES_PAGE_STR_DESC, request, context); + return ListExternalAddressesPagedResponse.createAsync(pageContext, futureResponse); } }; private static final PagedListResponseFactory< - ListHcxActivationKeysRequest, - ListHcxActivationKeysResponse, - ListHcxActivationKeysPagedResponse> + FetchNetworkPolicyExternalAddressesRequest, + FetchNetworkPolicyExternalAddressesResponse, + FetchNetworkPolicyExternalAddressesPagedResponse> + FETCH_NETWORK_POLICY_EXTERNAL_ADDRESSES_PAGE_STR_FACT = + new PagedListResponseFactory< + FetchNetworkPolicyExternalAddressesRequest, + FetchNetworkPolicyExternalAddressesResponse, + FetchNetworkPolicyExternalAddressesPagedResponse>() { + @Override + public ApiFuture + getFuturePagedResponse( + UnaryCallable< + FetchNetworkPolicyExternalAddressesRequest, + FetchNetworkPolicyExternalAddressesResponse> + callable, + FetchNetworkPolicyExternalAddressesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + FetchNetworkPolicyExternalAddressesRequest, + FetchNetworkPolicyExternalAddressesResponse, + ExternalAddress> + pageContext = + PageContext.create( + callable, + FETCH_NETWORK_POLICY_EXTERNAL_ADDRESSES_PAGE_STR_DESC, + request, + context); + return FetchNetworkPolicyExternalAddressesPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListSubnetsRequest, ListSubnetsResponse, ListSubnetsPagedResponse> + LIST_SUBNETS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListSubnetsRequest, ListSubnetsResponse, ListSubnetsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListSubnetsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_SUBNETS_PAGE_STR_DESC, request, context); + return ListSubnetsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListExternalAccessRulesRequest, + ListExternalAccessRulesResponse, + ListExternalAccessRulesPagedResponse> + LIST_EXTERNAL_ACCESS_RULES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListExternalAccessRulesRequest, + ListExternalAccessRulesResponse, + ListExternalAccessRulesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListExternalAccessRulesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListExternalAccessRulesRequest, + ListExternalAccessRulesResponse, + ExternalAccessRule> + pageContext = + PageContext.create( + callable, LIST_EXTERNAL_ACCESS_RULES_PAGE_STR_DESC, request, context); + return ListExternalAccessRulesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLoggingServersRequest, ListLoggingServersResponse, ListLoggingServersPagedResponse> + LIST_LOGGING_SERVERS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLoggingServersRequest, + ListLoggingServersResponse, + ListLoggingServersPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLoggingServersRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_LOGGING_SERVERS_PAGE_STR_DESC, request, context); + return ListLoggingServersPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListNodeTypesRequest, ListNodeTypesResponse, ListNodeTypesPagedResponse> + LIST_NODE_TYPES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListNodeTypesRequest, ListNodeTypesResponse, ListNodeTypesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListNodeTypesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_NODE_TYPES_PAGE_STR_DESC, request, context); + return ListNodeTypesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListNetworkPeeringsRequest, ListNetworkPeeringsResponse, ListNetworkPeeringsPagedResponse> + LIST_NETWORK_PEERINGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListNetworkPeeringsRequest, + ListNetworkPeeringsResponse, + ListNetworkPeeringsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListNetworkPeeringsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_NETWORK_PEERINGS_PAGE_STR_DESC, request, context); + return ListNetworkPeeringsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListPeeringRoutesRequest, ListPeeringRoutesResponse, ListPeeringRoutesPagedResponse> + LIST_PEERING_ROUTES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListPeeringRoutesRequest, + ListPeeringRoutesResponse, + ListPeeringRoutesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListPeeringRoutesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_PEERING_ROUTES_PAGE_STR_DESC, request, context); + return ListPeeringRoutesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListHcxActivationKeysRequest, + ListHcxActivationKeysResponse, + ListHcxActivationKeysPagedResponse> LIST_HCX_ACTIVATION_KEYS_PAGE_STR_FACT = new PagedListResponseFactory< ListHcxActivationKeysRequest, @@ -836,6 +1532,38 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListManagementDnsZoneBindingsRequest, + ListManagementDnsZoneBindingsResponse, + ListManagementDnsZoneBindingsPagedResponse> + LIST_MANAGEMENT_DNS_ZONE_BINDINGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListManagementDnsZoneBindingsRequest, + ListManagementDnsZoneBindingsResponse, + ListManagementDnsZoneBindingsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListManagementDnsZoneBindingsRequest, ListManagementDnsZoneBindingsResponse> + callable, + ListManagementDnsZoneBindingsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListManagementDnsZoneBindingsRequest, + ListManagementDnsZoneBindingsResponse, + ManagementDnsZoneBinding> + pageContext = + PageContext.create( + callable, + LIST_MANAGEMENT_DNS_ZONE_BINDINGS_PAGE_STR_DESC, + request, + context); + return ListManagementDnsZoneBindingsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListVmwareEngineNetworksRequest, ListVmwareEngineNetworksResponse, @@ -1041,6 +1769,77 @@ public UnaryCallSettings deleteClusterSettings( return deleteClusterOperationSettings; } + /** Returns the object with the settings used for calls to listNodes. */ + public PagedCallSettings + listNodesSettings() { + return listNodesSettings; + } + + /** Returns the object with the settings used for calls to getNode. */ + public UnaryCallSettings getNodeSettings() { + return getNodeSettings; + } + + /** Returns the object with the settings used for calls to listExternalAddresses. */ + public PagedCallSettings< + ListExternalAddressesRequest, + ListExternalAddressesResponse, + ListExternalAddressesPagedResponse> + listExternalAddressesSettings() { + return listExternalAddressesSettings; + } + + /** Returns the object with the settings used for calls to fetchNetworkPolicyExternalAddresses. */ + public PagedCallSettings< + FetchNetworkPolicyExternalAddressesRequest, + FetchNetworkPolicyExternalAddressesResponse, + FetchNetworkPolicyExternalAddressesPagedResponse> + fetchNetworkPolicyExternalAddressesSettings() { + return fetchNetworkPolicyExternalAddressesSettings; + } + + /** Returns the object with the settings used for calls to getExternalAddress. */ + public UnaryCallSettings + getExternalAddressSettings() { + return getExternalAddressSettings; + } + + /** Returns the object with the settings used for calls to createExternalAddress. */ + public UnaryCallSettings + createExternalAddressSettings() { + return createExternalAddressSettings; + } + + /** Returns the object with the settings used for calls to createExternalAddress. */ + public OperationCallSettings + createExternalAddressOperationSettings() { + return createExternalAddressOperationSettings; + } + + /** Returns the object with the settings used for calls to updateExternalAddress. */ + public UnaryCallSettings + updateExternalAddressSettings() { + return updateExternalAddressSettings; + } + + /** Returns the object with the settings used for calls to updateExternalAddress. */ + public OperationCallSettings + updateExternalAddressOperationSettings() { + return updateExternalAddressOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteExternalAddress. */ + public UnaryCallSettings + deleteExternalAddressSettings() { + return deleteExternalAddressSettings; + } + + /** Returns the object with the settings used for calls to deleteExternalAddress. */ + public OperationCallSettings + deleteExternalAddressOperationSettings() { + return deleteExternalAddressOperationSettings; + } + /** Returns the object with the settings used for calls to listSubnets. */ public PagedCallSettings listSubnetsSettings() { @@ -1063,6 +1862,104 @@ public UnaryCallSettings updateSubnetSettings() return updateSubnetOperationSettings; } + /** Returns the object with the settings used for calls to listExternalAccessRules. */ + public PagedCallSettings< + ListExternalAccessRulesRequest, + ListExternalAccessRulesResponse, + ListExternalAccessRulesPagedResponse> + listExternalAccessRulesSettings() { + return listExternalAccessRulesSettings; + } + + /** Returns the object with the settings used for calls to getExternalAccessRule. */ + public UnaryCallSettings + getExternalAccessRuleSettings() { + return getExternalAccessRuleSettings; + } + + /** Returns the object with the settings used for calls to createExternalAccessRule. */ + public UnaryCallSettings + createExternalAccessRuleSettings() { + return createExternalAccessRuleSettings; + } + + /** Returns the object with the settings used for calls to createExternalAccessRule. */ + public OperationCallSettings< + CreateExternalAccessRuleRequest, ExternalAccessRule, OperationMetadata> + createExternalAccessRuleOperationSettings() { + return createExternalAccessRuleOperationSettings; + } + + /** Returns the object with the settings used for calls to updateExternalAccessRule. */ + public UnaryCallSettings + updateExternalAccessRuleSettings() { + return updateExternalAccessRuleSettings; + } + + /** Returns the object with the settings used for calls to updateExternalAccessRule. */ + public OperationCallSettings< + UpdateExternalAccessRuleRequest, ExternalAccessRule, OperationMetadata> + updateExternalAccessRuleOperationSettings() { + return updateExternalAccessRuleOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteExternalAccessRule. */ + public UnaryCallSettings + deleteExternalAccessRuleSettings() { + return deleteExternalAccessRuleSettings; + } + + /** Returns the object with the settings used for calls to deleteExternalAccessRule. */ + public OperationCallSettings + deleteExternalAccessRuleOperationSettings() { + return deleteExternalAccessRuleOperationSettings; + } + + /** Returns the object with the settings used for calls to listLoggingServers. */ + public PagedCallSettings< + ListLoggingServersRequest, ListLoggingServersResponse, ListLoggingServersPagedResponse> + listLoggingServersSettings() { + return listLoggingServersSettings; + } + + /** Returns the object with the settings used for calls to getLoggingServer. */ + public UnaryCallSettings getLoggingServerSettings() { + return getLoggingServerSettings; + } + + /** Returns the object with the settings used for calls to createLoggingServer. */ + public UnaryCallSettings createLoggingServerSettings() { + return createLoggingServerSettings; + } + + /** Returns the object with the settings used for calls to createLoggingServer. */ + public OperationCallSettings + createLoggingServerOperationSettings() { + return createLoggingServerOperationSettings; + } + + /** Returns the object with the settings used for calls to updateLoggingServer. */ + public UnaryCallSettings updateLoggingServerSettings() { + return updateLoggingServerSettings; + } + + /** Returns the object with the settings used for calls to updateLoggingServer. */ + public OperationCallSettings + updateLoggingServerOperationSettings() { + return updateLoggingServerOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteLoggingServer. */ + public UnaryCallSettings deleteLoggingServerSettings() { + return deleteLoggingServerSettings; + } + + /** Returns the object with the settings used for calls to deleteLoggingServer. */ + public OperationCallSettings + deleteLoggingServerOperationSettings() { + return deleteLoggingServerOperationSettings; + } + /** Returns the object with the settings used for calls to listNodeTypes. */ public PagedCallSettings listNodeTypesSettings() { @@ -1108,6 +2005,74 @@ public UnaryCallSettings resetNsxCredenti return resetVcenterCredentialsOperationSettings; } + /** Returns the object with the settings used for calls to getDnsForwarding. */ + public UnaryCallSettings getDnsForwardingSettings() { + return getDnsForwardingSettings; + } + + /** Returns the object with the settings used for calls to updateDnsForwarding. */ + public UnaryCallSettings updateDnsForwardingSettings() { + return updateDnsForwardingSettings; + } + + /** Returns the object with the settings used for calls to updateDnsForwarding. */ + public OperationCallSettings + updateDnsForwardingOperationSettings() { + return updateDnsForwardingOperationSettings; + } + + /** Returns the object with the settings used for calls to getNetworkPeering. */ + public UnaryCallSettings getNetworkPeeringSettings() { + return getNetworkPeeringSettings; + } + + /** Returns the object with the settings used for calls to listNetworkPeerings. */ + public PagedCallSettings< + ListNetworkPeeringsRequest, ListNetworkPeeringsResponse, ListNetworkPeeringsPagedResponse> + listNetworkPeeringsSettings() { + return listNetworkPeeringsSettings; + } + + /** Returns the object with the settings used for calls to createNetworkPeering. */ + public UnaryCallSettings createNetworkPeeringSettings() { + return createNetworkPeeringSettings; + } + + /** Returns the object with the settings used for calls to createNetworkPeering. */ + public OperationCallSettings + createNetworkPeeringOperationSettings() { + return createNetworkPeeringOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteNetworkPeering. */ + public UnaryCallSettings deleteNetworkPeeringSettings() { + return deleteNetworkPeeringSettings; + } + + /** Returns the object with the settings used for calls to deleteNetworkPeering. */ + public OperationCallSettings + deleteNetworkPeeringOperationSettings() { + return deleteNetworkPeeringOperationSettings; + } + + /** Returns the object with the settings used for calls to updateNetworkPeering. */ + public UnaryCallSettings updateNetworkPeeringSettings() { + return updateNetworkPeeringSettings; + } + + /** Returns the object with the settings used for calls to updateNetworkPeering. */ + public OperationCallSettings + updateNetworkPeeringOperationSettings() { + return updateNetworkPeeringOperationSettings; + } + + /** Returns the object with the settings used for calls to listPeeringRoutes. */ + public PagedCallSettings< + ListPeeringRoutesRequest, ListPeeringRoutesResponse, ListPeeringRoutesPagedResponse> + listPeeringRoutesSettings() { + return listPeeringRoutesSettings; + } + /** Returns the object with the settings used for calls to createHcxActivationKey. */ public UnaryCallSettings createHcxActivationKeySettings() { @@ -1180,6 +2145,72 @@ public UnaryCallSettings deleteNetworkPol return deleteNetworkPolicyOperationSettings; } + /** Returns the object with the settings used for calls to listManagementDnsZoneBindings. */ + public PagedCallSettings< + ListManagementDnsZoneBindingsRequest, + ListManagementDnsZoneBindingsResponse, + ListManagementDnsZoneBindingsPagedResponse> + listManagementDnsZoneBindingsSettings() { + return listManagementDnsZoneBindingsSettings; + } + + /** Returns the object with the settings used for calls to getManagementDnsZoneBinding. */ + public UnaryCallSettings + getManagementDnsZoneBindingSettings() { + return getManagementDnsZoneBindingSettings; + } + + /** Returns the object with the settings used for calls to createManagementDnsZoneBinding. */ + public UnaryCallSettings + createManagementDnsZoneBindingSettings() { + return createManagementDnsZoneBindingSettings; + } + + /** Returns the object with the settings used for calls to createManagementDnsZoneBinding. */ + public OperationCallSettings< + CreateManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + createManagementDnsZoneBindingOperationSettings() { + return createManagementDnsZoneBindingOperationSettings; + } + + /** Returns the object with the settings used for calls to updateManagementDnsZoneBinding. */ + public UnaryCallSettings + updateManagementDnsZoneBindingSettings() { + return updateManagementDnsZoneBindingSettings; + } + + /** Returns the object with the settings used for calls to updateManagementDnsZoneBinding. */ + public OperationCallSettings< + UpdateManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + updateManagementDnsZoneBindingOperationSettings() { + return updateManagementDnsZoneBindingOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteManagementDnsZoneBinding. */ + public UnaryCallSettings + deleteManagementDnsZoneBindingSettings() { + return deleteManagementDnsZoneBindingSettings; + } + + /** Returns the object with the settings used for calls to deleteManagementDnsZoneBinding. */ + public OperationCallSettings + deleteManagementDnsZoneBindingOperationSettings() { + return deleteManagementDnsZoneBindingOperationSettings; + } + + /** Returns the object with the settings used for calls to repairManagementDnsZoneBinding. */ + public UnaryCallSettings + repairManagementDnsZoneBindingSettings() { + return repairManagementDnsZoneBindingSettings; + } + + /** Returns the object with the settings used for calls to repairManagementDnsZoneBinding. */ + public OperationCallSettings< + RepairManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + repairManagementDnsZoneBindingOperationSettings() { + return repairManagementDnsZoneBindingOperationSettings; + } + /** Returns the object with the settings used for calls to createVmwareEngineNetwork. */ public UnaryCallSettings createVmwareEngineNetworkSettings() { @@ -1293,6 +2324,36 @@ public UnaryCallSettings deleteNetworkPol return listPrivateConnectionPeeringRoutesSettings; } + /** Returns the object with the settings used for calls to grantDnsBindPermission. */ + public UnaryCallSettings + grantDnsBindPermissionSettings() { + return grantDnsBindPermissionSettings; + } + + /** Returns the object with the settings used for calls to grantDnsBindPermission. */ + public OperationCallSettings + grantDnsBindPermissionOperationSettings() { + return grantDnsBindPermissionOperationSettings; + } + + /** Returns the object with the settings used for calls to getDnsBindPermission. */ + public UnaryCallSettings + getDnsBindPermissionSettings() { + return getDnsBindPermissionSettings; + } + + /** Returns the object with the settings used for calls to revokeDnsBindPermission. */ + public UnaryCallSettings + revokeDnsBindPermissionSettings() { + return revokeDnsBindPermissionSettings; + } + + /** Returns the object with the settings used for calls to revokeDnsBindPermission. */ + public OperationCallSettings + revokeDnsBindPermissionOperationSettings() { + return revokeDnsBindPermissionOperationSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -1454,10 +2515,47 @@ protected VmwareEngineStubSettings(Builder settingsBuilder) throws IOException { updateClusterOperationSettings = settingsBuilder.updateClusterOperationSettings().build(); deleteClusterSettings = settingsBuilder.deleteClusterSettings().build(); deleteClusterOperationSettings = settingsBuilder.deleteClusterOperationSettings().build(); + listNodesSettings = settingsBuilder.listNodesSettings().build(); + getNodeSettings = settingsBuilder.getNodeSettings().build(); + listExternalAddressesSettings = settingsBuilder.listExternalAddressesSettings().build(); + fetchNetworkPolicyExternalAddressesSettings = + settingsBuilder.fetchNetworkPolicyExternalAddressesSettings().build(); + getExternalAddressSettings = settingsBuilder.getExternalAddressSettings().build(); + createExternalAddressSettings = settingsBuilder.createExternalAddressSettings().build(); + createExternalAddressOperationSettings = + settingsBuilder.createExternalAddressOperationSettings().build(); + updateExternalAddressSettings = settingsBuilder.updateExternalAddressSettings().build(); + updateExternalAddressOperationSettings = + settingsBuilder.updateExternalAddressOperationSettings().build(); + deleteExternalAddressSettings = settingsBuilder.deleteExternalAddressSettings().build(); + deleteExternalAddressOperationSettings = + settingsBuilder.deleteExternalAddressOperationSettings().build(); listSubnetsSettings = settingsBuilder.listSubnetsSettings().build(); getSubnetSettings = settingsBuilder.getSubnetSettings().build(); updateSubnetSettings = settingsBuilder.updateSubnetSettings().build(); updateSubnetOperationSettings = settingsBuilder.updateSubnetOperationSettings().build(); + listExternalAccessRulesSettings = settingsBuilder.listExternalAccessRulesSettings().build(); + getExternalAccessRuleSettings = settingsBuilder.getExternalAccessRuleSettings().build(); + createExternalAccessRuleSettings = settingsBuilder.createExternalAccessRuleSettings().build(); + createExternalAccessRuleOperationSettings = + settingsBuilder.createExternalAccessRuleOperationSettings().build(); + updateExternalAccessRuleSettings = settingsBuilder.updateExternalAccessRuleSettings().build(); + updateExternalAccessRuleOperationSettings = + settingsBuilder.updateExternalAccessRuleOperationSettings().build(); + deleteExternalAccessRuleSettings = settingsBuilder.deleteExternalAccessRuleSettings().build(); + deleteExternalAccessRuleOperationSettings = + settingsBuilder.deleteExternalAccessRuleOperationSettings().build(); + listLoggingServersSettings = settingsBuilder.listLoggingServersSettings().build(); + getLoggingServerSettings = settingsBuilder.getLoggingServerSettings().build(); + createLoggingServerSettings = settingsBuilder.createLoggingServerSettings().build(); + createLoggingServerOperationSettings = + settingsBuilder.createLoggingServerOperationSettings().build(); + updateLoggingServerSettings = settingsBuilder.updateLoggingServerSettings().build(); + updateLoggingServerOperationSettings = + settingsBuilder.updateLoggingServerOperationSettings().build(); + deleteLoggingServerSettings = settingsBuilder.deleteLoggingServerSettings().build(); + deleteLoggingServerOperationSettings = + settingsBuilder.deleteLoggingServerOperationSettings().build(); listNodeTypesSettings = settingsBuilder.listNodeTypesSettings().build(); getNodeTypeSettings = settingsBuilder.getNodeTypeSettings().build(); showNsxCredentialsSettings = settingsBuilder.showNsxCredentialsSettings().build(); @@ -1468,6 +2566,22 @@ protected VmwareEngineStubSettings(Builder settingsBuilder) throws IOException { resetVcenterCredentialsSettings = settingsBuilder.resetVcenterCredentialsSettings().build(); resetVcenterCredentialsOperationSettings = settingsBuilder.resetVcenterCredentialsOperationSettings().build(); + getDnsForwardingSettings = settingsBuilder.getDnsForwardingSettings().build(); + updateDnsForwardingSettings = settingsBuilder.updateDnsForwardingSettings().build(); + updateDnsForwardingOperationSettings = + settingsBuilder.updateDnsForwardingOperationSettings().build(); + getNetworkPeeringSettings = settingsBuilder.getNetworkPeeringSettings().build(); + listNetworkPeeringsSettings = settingsBuilder.listNetworkPeeringsSettings().build(); + createNetworkPeeringSettings = settingsBuilder.createNetworkPeeringSettings().build(); + createNetworkPeeringOperationSettings = + settingsBuilder.createNetworkPeeringOperationSettings().build(); + deleteNetworkPeeringSettings = settingsBuilder.deleteNetworkPeeringSettings().build(); + deleteNetworkPeeringOperationSettings = + settingsBuilder.deleteNetworkPeeringOperationSettings().build(); + updateNetworkPeeringSettings = settingsBuilder.updateNetworkPeeringSettings().build(); + updateNetworkPeeringOperationSettings = + settingsBuilder.updateNetworkPeeringOperationSettings().build(); + listPeeringRoutesSettings = settingsBuilder.listPeeringRoutesSettings().build(); createHcxActivationKeySettings = settingsBuilder.createHcxActivationKeySettings().build(); createHcxActivationKeyOperationSettings = settingsBuilder.createHcxActivationKeyOperationSettings().build(); @@ -1484,6 +2598,26 @@ protected VmwareEngineStubSettings(Builder settingsBuilder) throws IOException { deleteNetworkPolicySettings = settingsBuilder.deleteNetworkPolicySettings().build(); deleteNetworkPolicyOperationSettings = settingsBuilder.deleteNetworkPolicyOperationSettings().build(); + listManagementDnsZoneBindingsSettings = + settingsBuilder.listManagementDnsZoneBindingsSettings().build(); + getManagementDnsZoneBindingSettings = + settingsBuilder.getManagementDnsZoneBindingSettings().build(); + createManagementDnsZoneBindingSettings = + settingsBuilder.createManagementDnsZoneBindingSettings().build(); + createManagementDnsZoneBindingOperationSettings = + settingsBuilder.createManagementDnsZoneBindingOperationSettings().build(); + updateManagementDnsZoneBindingSettings = + settingsBuilder.updateManagementDnsZoneBindingSettings().build(); + updateManagementDnsZoneBindingOperationSettings = + settingsBuilder.updateManagementDnsZoneBindingOperationSettings().build(); + deleteManagementDnsZoneBindingSettings = + settingsBuilder.deleteManagementDnsZoneBindingSettings().build(); + deleteManagementDnsZoneBindingOperationSettings = + settingsBuilder.deleteManagementDnsZoneBindingOperationSettings().build(); + repairManagementDnsZoneBindingSettings = + settingsBuilder.repairManagementDnsZoneBindingSettings().build(); + repairManagementDnsZoneBindingOperationSettings = + settingsBuilder.repairManagementDnsZoneBindingOperationSettings().build(); createVmwareEngineNetworkSettings = settingsBuilder.createVmwareEngineNetworkSettings().build(); createVmwareEngineNetworkOperationSettings = settingsBuilder.createVmwareEngineNetworkOperationSettings().build(); @@ -1508,6 +2642,13 @@ protected VmwareEngineStubSettings(Builder settingsBuilder) throws IOException { settingsBuilder.deletePrivateConnectionOperationSettings().build(); listPrivateConnectionPeeringRoutesSettings = settingsBuilder.listPrivateConnectionPeeringRoutesSettings().build(); + grantDnsBindPermissionSettings = settingsBuilder.grantDnsBindPermissionSettings().build(); + grantDnsBindPermissionOperationSettings = + settingsBuilder.grantDnsBindPermissionOperationSettings().build(); + getDnsBindPermissionSettings = settingsBuilder.getDnsBindPermissionSettings().build(); + revokeDnsBindPermissionSettings = settingsBuilder.revokeDnsBindPermissionSettings().build(); + revokeDnsBindPermissionOperationSettings = + settingsBuilder.revokeDnsBindPermissionOperationSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); @@ -1556,6 +2697,37 @@ public static class Builder extends StubSettings.Builder deleteClusterSettings; private final OperationCallSettings.Builder deleteClusterOperationSettings; + private final PagedCallSettings.Builder< + ListNodesRequest, ListNodesResponse, ListNodesPagedResponse> + listNodesSettings; + private final UnaryCallSettings.Builder getNodeSettings; + private final PagedCallSettings.Builder< + ListExternalAddressesRequest, + ListExternalAddressesResponse, + ListExternalAddressesPagedResponse> + listExternalAddressesSettings; + private final PagedCallSettings.Builder< + FetchNetworkPolicyExternalAddressesRequest, + FetchNetworkPolicyExternalAddressesResponse, + FetchNetworkPolicyExternalAddressesPagedResponse> + fetchNetworkPolicyExternalAddressesSettings; + private final UnaryCallSettings.Builder + getExternalAddressSettings; + private final UnaryCallSettings.Builder + createExternalAddressSettings; + private final OperationCallSettings.Builder< + CreateExternalAddressRequest, ExternalAddress, OperationMetadata> + createExternalAddressOperationSettings; + private final UnaryCallSettings.Builder + updateExternalAddressSettings; + private final OperationCallSettings.Builder< + UpdateExternalAddressRequest, ExternalAddress, OperationMetadata> + updateExternalAddressOperationSettings; + private final UnaryCallSettings.Builder + deleteExternalAddressSettings; + private final OperationCallSettings.Builder< + DeleteExternalAddressRequest, Empty, OperationMetadata> + deleteExternalAddressOperationSettings; private final PagedCallSettings.Builder< ListSubnetsRequest, ListSubnetsResponse, ListSubnetsPagedResponse> listSubnetsSettings; @@ -1563,6 +2735,48 @@ public static class Builder extends StubSettings.Builder updateSubnetSettings; private final OperationCallSettings.Builder updateSubnetOperationSettings; + private final PagedCallSettings.Builder< + ListExternalAccessRulesRequest, + ListExternalAccessRulesResponse, + ListExternalAccessRulesPagedResponse> + listExternalAccessRulesSettings; + private final UnaryCallSettings.Builder + getExternalAccessRuleSettings; + private final UnaryCallSettings.Builder + createExternalAccessRuleSettings; + private final OperationCallSettings.Builder< + CreateExternalAccessRuleRequest, ExternalAccessRule, OperationMetadata> + createExternalAccessRuleOperationSettings; + private final UnaryCallSettings.Builder + updateExternalAccessRuleSettings; + private final OperationCallSettings.Builder< + UpdateExternalAccessRuleRequest, ExternalAccessRule, OperationMetadata> + updateExternalAccessRuleOperationSettings; + private final UnaryCallSettings.Builder + deleteExternalAccessRuleSettings; + private final OperationCallSettings.Builder< + DeleteExternalAccessRuleRequest, Empty, OperationMetadata> + deleteExternalAccessRuleOperationSettings; + private final PagedCallSettings.Builder< + ListLoggingServersRequest, ListLoggingServersResponse, ListLoggingServersPagedResponse> + listLoggingServersSettings; + private final UnaryCallSettings.Builder + getLoggingServerSettings; + private final UnaryCallSettings.Builder + createLoggingServerSettings; + private final OperationCallSettings.Builder< + CreateLoggingServerRequest, LoggingServer, OperationMetadata> + createLoggingServerOperationSettings; + private final UnaryCallSettings.Builder + updateLoggingServerSettings; + private final OperationCallSettings.Builder< + UpdateLoggingServerRequest, LoggingServer, OperationMetadata> + updateLoggingServerOperationSettings; + private final UnaryCallSettings.Builder + deleteLoggingServerSettings; + private final OperationCallSettings.Builder< + DeleteLoggingServerRequest, Empty, OperationMetadata> + deleteLoggingServerOperationSettings; private final PagedCallSettings.Builder< ListNodeTypesRequest, ListNodeTypesResponse, ListNodeTypesPagedResponse> listNodeTypesSettings; @@ -1581,6 +2795,38 @@ public static class Builder extends StubSettings.Builder resetVcenterCredentialsOperationSettings; + private final UnaryCallSettings.Builder + getDnsForwardingSettings; + private final UnaryCallSettings.Builder + updateDnsForwardingSettings; + private final OperationCallSettings.Builder< + UpdateDnsForwardingRequest, DnsForwarding, OperationMetadata> + updateDnsForwardingOperationSettings; + private final UnaryCallSettings.Builder + getNetworkPeeringSettings; + private final PagedCallSettings.Builder< + ListNetworkPeeringsRequest, + ListNetworkPeeringsResponse, + ListNetworkPeeringsPagedResponse> + listNetworkPeeringsSettings; + private final UnaryCallSettings.Builder + createNetworkPeeringSettings; + private final OperationCallSettings.Builder< + CreateNetworkPeeringRequest, NetworkPeering, OperationMetadata> + createNetworkPeeringOperationSettings; + private final UnaryCallSettings.Builder + deleteNetworkPeeringSettings; + private final OperationCallSettings.Builder< + DeleteNetworkPeeringRequest, Empty, OperationMetadata> + deleteNetworkPeeringOperationSettings; + private final UnaryCallSettings.Builder + updateNetworkPeeringSettings; + private final OperationCallSettings.Builder< + UpdateNetworkPeeringRequest, NetworkPeering, OperationMetadata> + updateNetworkPeeringOperationSettings; + private final PagedCallSettings.Builder< + ListPeeringRoutesRequest, ListPeeringRoutesResponse, ListPeeringRoutesPagedResponse> + listPeeringRoutesSettings; private final UnaryCallSettings.Builder createHcxActivationKeySettings; private final OperationCallSettings.Builder< @@ -1615,6 +2861,34 @@ public static class Builder extends StubSettings.Builder deleteNetworkPolicyOperationSettings; + private final PagedCallSettings.Builder< + ListManagementDnsZoneBindingsRequest, + ListManagementDnsZoneBindingsResponse, + ListManagementDnsZoneBindingsPagedResponse> + listManagementDnsZoneBindingsSettings; + private final UnaryCallSettings.Builder< + GetManagementDnsZoneBindingRequest, ManagementDnsZoneBinding> + getManagementDnsZoneBindingSettings; + private final UnaryCallSettings.Builder + createManagementDnsZoneBindingSettings; + private final OperationCallSettings.Builder< + CreateManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + createManagementDnsZoneBindingOperationSettings; + private final UnaryCallSettings.Builder + updateManagementDnsZoneBindingSettings; + private final OperationCallSettings.Builder< + UpdateManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + updateManagementDnsZoneBindingOperationSettings; + private final UnaryCallSettings.Builder + deleteManagementDnsZoneBindingSettings; + private final OperationCallSettings.Builder< + DeleteManagementDnsZoneBindingRequest, Empty, OperationMetadata> + deleteManagementDnsZoneBindingOperationSettings; + private final UnaryCallSettings.Builder + repairManagementDnsZoneBindingSettings; + private final OperationCallSettings.Builder< + RepairManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + repairManagementDnsZoneBindingOperationSettings; private final UnaryCallSettings.Builder createVmwareEngineNetworkSettings; private final OperationCallSettings.Builder< @@ -1664,6 +2938,18 @@ public static class Builder extends StubSettings.Builder listPrivateConnectionPeeringRoutesSettings; + private final UnaryCallSettings.Builder + grantDnsBindPermissionSettings; + private final OperationCallSettings.Builder< + GrantDnsBindPermissionRequest, DnsBindPermission, OperationMetadata> + grantDnsBindPermissionOperationSettings; + private final UnaryCallSettings.Builder + getDnsBindPermissionSettings; + private final UnaryCallSettings.Builder + revokeDnsBindPermissionSettings; + private final OperationCallSettings.Builder< + RevokeDnsBindPermissionRequest, DnsBindPermission, OperationMetadata> + revokeDnsBindPermissionOperationSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -1748,10 +3034,40 @@ protected Builder(ClientContext clientContext) { updateClusterOperationSettings = OperationCallSettings.newBuilder(); deleteClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteClusterOperationSettings = OperationCallSettings.newBuilder(); + listNodesSettings = PagedCallSettings.newBuilder(LIST_NODES_PAGE_STR_FACT); + getNodeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listExternalAddressesSettings = + PagedCallSettings.newBuilder(LIST_EXTERNAL_ADDRESSES_PAGE_STR_FACT); + fetchNetworkPolicyExternalAddressesSettings = + PagedCallSettings.newBuilder(FETCH_NETWORK_POLICY_EXTERNAL_ADDRESSES_PAGE_STR_FACT); + getExternalAddressSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createExternalAddressSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createExternalAddressOperationSettings = OperationCallSettings.newBuilder(); + updateExternalAddressSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateExternalAddressOperationSettings = OperationCallSettings.newBuilder(); + deleteExternalAddressSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteExternalAddressOperationSettings = OperationCallSettings.newBuilder(); listSubnetsSettings = PagedCallSettings.newBuilder(LIST_SUBNETS_PAGE_STR_FACT); getSubnetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateSubnetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateSubnetOperationSettings = OperationCallSettings.newBuilder(); + listExternalAccessRulesSettings = + PagedCallSettings.newBuilder(LIST_EXTERNAL_ACCESS_RULES_PAGE_STR_FACT); + getExternalAccessRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createExternalAccessRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createExternalAccessRuleOperationSettings = OperationCallSettings.newBuilder(); + updateExternalAccessRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateExternalAccessRuleOperationSettings = OperationCallSettings.newBuilder(); + deleteExternalAccessRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteExternalAccessRuleOperationSettings = OperationCallSettings.newBuilder(); + listLoggingServersSettings = PagedCallSettings.newBuilder(LIST_LOGGING_SERVERS_PAGE_STR_FACT); + getLoggingServerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createLoggingServerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createLoggingServerOperationSettings = OperationCallSettings.newBuilder(); + updateLoggingServerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateLoggingServerOperationSettings = OperationCallSettings.newBuilder(); + deleteLoggingServerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteLoggingServerOperationSettings = OperationCallSettings.newBuilder(); listNodeTypesSettings = PagedCallSettings.newBuilder(LIST_NODE_TYPES_PAGE_STR_FACT); getNodeTypeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); showNsxCredentialsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1760,6 +3076,19 @@ protected Builder(ClientContext clientContext) { resetNsxCredentialsOperationSettings = OperationCallSettings.newBuilder(); resetVcenterCredentialsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); resetVcenterCredentialsOperationSettings = OperationCallSettings.newBuilder(); + getDnsForwardingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateDnsForwardingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateDnsForwardingOperationSettings = OperationCallSettings.newBuilder(); + getNetworkPeeringSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listNetworkPeeringsSettings = + PagedCallSettings.newBuilder(LIST_NETWORK_PEERINGS_PAGE_STR_FACT); + createNetworkPeeringSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createNetworkPeeringOperationSettings = OperationCallSettings.newBuilder(); + deleteNetworkPeeringSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteNetworkPeeringOperationSettings = OperationCallSettings.newBuilder(); + updateNetworkPeeringSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateNetworkPeeringOperationSettings = OperationCallSettings.newBuilder(); + listPeeringRoutesSettings = PagedCallSettings.newBuilder(LIST_PEERING_ROUTES_PAGE_STR_FACT); createHcxActivationKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createHcxActivationKeyOperationSettings = OperationCallSettings.newBuilder(); listHcxActivationKeysSettings = @@ -1774,6 +3103,17 @@ protected Builder(ClientContext clientContext) { updateNetworkPolicyOperationSettings = OperationCallSettings.newBuilder(); deleteNetworkPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteNetworkPolicyOperationSettings = OperationCallSettings.newBuilder(); + listManagementDnsZoneBindingsSettings = + PagedCallSettings.newBuilder(LIST_MANAGEMENT_DNS_ZONE_BINDINGS_PAGE_STR_FACT); + getManagementDnsZoneBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createManagementDnsZoneBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createManagementDnsZoneBindingOperationSettings = OperationCallSettings.newBuilder(); + updateManagementDnsZoneBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateManagementDnsZoneBindingOperationSettings = OperationCallSettings.newBuilder(); + deleteManagementDnsZoneBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteManagementDnsZoneBindingOperationSettings = OperationCallSettings.newBuilder(); + repairManagementDnsZoneBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + repairManagementDnsZoneBindingOperationSettings = OperationCallSettings.newBuilder(); createVmwareEngineNetworkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createVmwareEngineNetworkOperationSettings = OperationCallSettings.newBuilder(); updateVmwareEngineNetworkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1794,6 +3134,11 @@ protected Builder(ClientContext clientContext) { deletePrivateConnectionOperationSettings = OperationCallSettings.newBuilder(); listPrivateConnectionPeeringRoutesSettings = PagedCallSettings.newBuilder(LIST_PRIVATE_CONNECTION_PEERING_ROUTES_PAGE_STR_FACT); + grantDnsBindPermissionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + grantDnsBindPermissionOperationSettings = OperationCallSettings.newBuilder(); + getDnsBindPermissionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + revokeDnsBindPermissionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + revokeDnsBindPermissionOperationSettings = OperationCallSettings.newBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1813,15 +3158,41 @@ protected Builder(ClientContext clientContext) { createClusterSettings, updateClusterSettings, deleteClusterSettings, + listNodesSettings, + getNodeSettings, + listExternalAddressesSettings, + fetchNetworkPolicyExternalAddressesSettings, + getExternalAddressSettings, + createExternalAddressSettings, + updateExternalAddressSettings, + deleteExternalAddressSettings, listSubnetsSettings, getSubnetSettings, updateSubnetSettings, + listExternalAccessRulesSettings, + getExternalAccessRuleSettings, + createExternalAccessRuleSettings, + updateExternalAccessRuleSettings, + deleteExternalAccessRuleSettings, + listLoggingServersSettings, + getLoggingServerSettings, + createLoggingServerSettings, + updateLoggingServerSettings, + deleteLoggingServerSettings, listNodeTypesSettings, getNodeTypeSettings, showNsxCredentialsSettings, showVcenterCredentialsSettings, resetNsxCredentialsSettings, resetVcenterCredentialsSettings, + getDnsForwardingSettings, + updateDnsForwardingSettings, + getNetworkPeeringSettings, + listNetworkPeeringsSettings, + createNetworkPeeringSettings, + deleteNetworkPeeringSettings, + updateNetworkPeeringSettings, + listPeeringRoutesSettings, createHcxActivationKeySettings, listHcxActivationKeysSettings, getHcxActivationKeySettings, @@ -1830,6 +3201,12 @@ protected Builder(ClientContext clientContext) { createNetworkPolicySettings, updateNetworkPolicySettings, deleteNetworkPolicySettings, + listManagementDnsZoneBindingsSettings, + getManagementDnsZoneBindingSettings, + createManagementDnsZoneBindingSettings, + updateManagementDnsZoneBindingSettings, + deleteManagementDnsZoneBindingSettings, + repairManagementDnsZoneBindingSettings, createVmwareEngineNetworkSettings, updateVmwareEngineNetworkSettings, deleteVmwareEngineNetworkSettings, @@ -1841,6 +3218,9 @@ protected Builder(ClientContext clientContext) { updatePrivateConnectionSettings, deletePrivateConnectionSettings, listPrivateConnectionPeeringRoutesSettings, + grantDnsBindPermissionSettings, + getDnsBindPermissionSettings, + revokeDnsBindPermissionSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -1874,10 +3254,47 @@ protected Builder(VmwareEngineStubSettings settings) { updateClusterOperationSettings = settings.updateClusterOperationSettings.toBuilder(); deleteClusterSettings = settings.deleteClusterSettings.toBuilder(); deleteClusterOperationSettings = settings.deleteClusterOperationSettings.toBuilder(); + listNodesSettings = settings.listNodesSettings.toBuilder(); + getNodeSettings = settings.getNodeSettings.toBuilder(); + listExternalAddressesSettings = settings.listExternalAddressesSettings.toBuilder(); + fetchNetworkPolicyExternalAddressesSettings = + settings.fetchNetworkPolicyExternalAddressesSettings.toBuilder(); + getExternalAddressSettings = settings.getExternalAddressSettings.toBuilder(); + createExternalAddressSettings = settings.createExternalAddressSettings.toBuilder(); + createExternalAddressOperationSettings = + settings.createExternalAddressOperationSettings.toBuilder(); + updateExternalAddressSettings = settings.updateExternalAddressSettings.toBuilder(); + updateExternalAddressOperationSettings = + settings.updateExternalAddressOperationSettings.toBuilder(); + deleteExternalAddressSettings = settings.deleteExternalAddressSettings.toBuilder(); + deleteExternalAddressOperationSettings = + settings.deleteExternalAddressOperationSettings.toBuilder(); listSubnetsSettings = settings.listSubnetsSettings.toBuilder(); getSubnetSettings = settings.getSubnetSettings.toBuilder(); updateSubnetSettings = settings.updateSubnetSettings.toBuilder(); updateSubnetOperationSettings = settings.updateSubnetOperationSettings.toBuilder(); + listExternalAccessRulesSettings = settings.listExternalAccessRulesSettings.toBuilder(); + getExternalAccessRuleSettings = settings.getExternalAccessRuleSettings.toBuilder(); + createExternalAccessRuleSettings = settings.createExternalAccessRuleSettings.toBuilder(); + createExternalAccessRuleOperationSettings = + settings.createExternalAccessRuleOperationSettings.toBuilder(); + updateExternalAccessRuleSettings = settings.updateExternalAccessRuleSettings.toBuilder(); + updateExternalAccessRuleOperationSettings = + settings.updateExternalAccessRuleOperationSettings.toBuilder(); + deleteExternalAccessRuleSettings = settings.deleteExternalAccessRuleSettings.toBuilder(); + deleteExternalAccessRuleOperationSettings = + settings.deleteExternalAccessRuleOperationSettings.toBuilder(); + listLoggingServersSettings = settings.listLoggingServersSettings.toBuilder(); + getLoggingServerSettings = settings.getLoggingServerSettings.toBuilder(); + createLoggingServerSettings = settings.createLoggingServerSettings.toBuilder(); + createLoggingServerOperationSettings = + settings.createLoggingServerOperationSettings.toBuilder(); + updateLoggingServerSettings = settings.updateLoggingServerSettings.toBuilder(); + updateLoggingServerOperationSettings = + settings.updateLoggingServerOperationSettings.toBuilder(); + deleteLoggingServerSettings = settings.deleteLoggingServerSettings.toBuilder(); + deleteLoggingServerOperationSettings = + settings.deleteLoggingServerOperationSettings.toBuilder(); listNodeTypesSettings = settings.listNodeTypesSettings.toBuilder(); getNodeTypeSettings = settings.getNodeTypeSettings.toBuilder(); showNsxCredentialsSettings = settings.showNsxCredentialsSettings.toBuilder(); @@ -1888,6 +3305,22 @@ protected Builder(VmwareEngineStubSettings settings) { resetVcenterCredentialsSettings = settings.resetVcenterCredentialsSettings.toBuilder(); resetVcenterCredentialsOperationSettings = settings.resetVcenterCredentialsOperationSettings.toBuilder(); + getDnsForwardingSettings = settings.getDnsForwardingSettings.toBuilder(); + updateDnsForwardingSettings = settings.updateDnsForwardingSettings.toBuilder(); + updateDnsForwardingOperationSettings = + settings.updateDnsForwardingOperationSettings.toBuilder(); + getNetworkPeeringSettings = settings.getNetworkPeeringSettings.toBuilder(); + listNetworkPeeringsSettings = settings.listNetworkPeeringsSettings.toBuilder(); + createNetworkPeeringSettings = settings.createNetworkPeeringSettings.toBuilder(); + createNetworkPeeringOperationSettings = + settings.createNetworkPeeringOperationSettings.toBuilder(); + deleteNetworkPeeringSettings = settings.deleteNetworkPeeringSettings.toBuilder(); + deleteNetworkPeeringOperationSettings = + settings.deleteNetworkPeeringOperationSettings.toBuilder(); + updateNetworkPeeringSettings = settings.updateNetworkPeeringSettings.toBuilder(); + updateNetworkPeeringOperationSettings = + settings.updateNetworkPeeringOperationSettings.toBuilder(); + listPeeringRoutesSettings = settings.listPeeringRoutesSettings.toBuilder(); createHcxActivationKeySettings = settings.createHcxActivationKeySettings.toBuilder(); createHcxActivationKeyOperationSettings = settings.createHcxActivationKeyOperationSettings.toBuilder(); @@ -1904,6 +3337,26 @@ protected Builder(VmwareEngineStubSettings settings) { deleteNetworkPolicySettings = settings.deleteNetworkPolicySettings.toBuilder(); deleteNetworkPolicyOperationSettings = settings.deleteNetworkPolicyOperationSettings.toBuilder(); + listManagementDnsZoneBindingsSettings = + settings.listManagementDnsZoneBindingsSettings.toBuilder(); + getManagementDnsZoneBindingSettings = + settings.getManagementDnsZoneBindingSettings.toBuilder(); + createManagementDnsZoneBindingSettings = + settings.createManagementDnsZoneBindingSettings.toBuilder(); + createManagementDnsZoneBindingOperationSettings = + settings.createManagementDnsZoneBindingOperationSettings.toBuilder(); + updateManagementDnsZoneBindingSettings = + settings.updateManagementDnsZoneBindingSettings.toBuilder(); + updateManagementDnsZoneBindingOperationSettings = + settings.updateManagementDnsZoneBindingOperationSettings.toBuilder(); + deleteManagementDnsZoneBindingSettings = + settings.deleteManagementDnsZoneBindingSettings.toBuilder(); + deleteManagementDnsZoneBindingOperationSettings = + settings.deleteManagementDnsZoneBindingOperationSettings.toBuilder(); + repairManagementDnsZoneBindingSettings = + settings.repairManagementDnsZoneBindingSettings.toBuilder(); + repairManagementDnsZoneBindingOperationSettings = + settings.repairManagementDnsZoneBindingOperationSettings.toBuilder(); createVmwareEngineNetworkSettings = settings.createVmwareEngineNetworkSettings.toBuilder(); createVmwareEngineNetworkOperationSettings = settings.createVmwareEngineNetworkOperationSettings.toBuilder(); @@ -1928,6 +3381,13 @@ protected Builder(VmwareEngineStubSettings settings) { settings.deletePrivateConnectionOperationSettings.toBuilder(); listPrivateConnectionPeeringRoutesSettings = settings.listPrivateConnectionPeeringRoutesSettings.toBuilder(); + grantDnsBindPermissionSettings = settings.grantDnsBindPermissionSettings.toBuilder(); + grantDnsBindPermissionOperationSettings = + settings.grantDnsBindPermissionOperationSettings.toBuilder(); + getDnsBindPermissionSettings = settings.getDnsBindPermissionSettings.toBuilder(); + revokeDnsBindPermissionSettings = settings.revokeDnsBindPermissionSettings.toBuilder(); + revokeDnsBindPermissionOperationSettings = + settings.revokeDnsBindPermissionOperationSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); @@ -1947,15 +3407,41 @@ protected Builder(VmwareEngineStubSettings settings) { createClusterSettings, updateClusterSettings, deleteClusterSettings, + listNodesSettings, + getNodeSettings, + listExternalAddressesSettings, + fetchNetworkPolicyExternalAddressesSettings, + getExternalAddressSettings, + createExternalAddressSettings, + updateExternalAddressSettings, + deleteExternalAddressSettings, listSubnetsSettings, getSubnetSettings, updateSubnetSettings, + listExternalAccessRulesSettings, + getExternalAccessRuleSettings, + createExternalAccessRuleSettings, + updateExternalAccessRuleSettings, + deleteExternalAccessRuleSettings, + listLoggingServersSettings, + getLoggingServerSettings, + createLoggingServerSettings, + updateLoggingServerSettings, + deleteLoggingServerSettings, listNodeTypesSettings, getNodeTypeSettings, showNsxCredentialsSettings, showVcenterCredentialsSettings, resetNsxCredentialsSettings, resetVcenterCredentialsSettings, + getDnsForwardingSettings, + updateDnsForwardingSettings, + getNetworkPeeringSettings, + listNetworkPeeringsSettings, + createNetworkPeeringSettings, + deleteNetworkPeeringSettings, + updateNetworkPeeringSettings, + listPeeringRoutesSettings, createHcxActivationKeySettings, listHcxActivationKeysSettings, getHcxActivationKeySettings, @@ -1964,6 +3450,12 @@ protected Builder(VmwareEngineStubSettings settings) { createNetworkPolicySettings, updateNetworkPolicySettings, deleteNetworkPolicySettings, + listManagementDnsZoneBindingsSettings, + getManagementDnsZoneBindingSettings, + createManagementDnsZoneBindingSettings, + updateManagementDnsZoneBindingSettings, + deleteManagementDnsZoneBindingSettings, + repairManagementDnsZoneBindingSettings, createVmwareEngineNetworkSettings, updateVmwareEngineNetworkSettings, deleteVmwareEngineNetworkSettings, @@ -1975,6 +3467,9 @@ protected Builder(VmwareEngineStubSettings settings) { updatePrivateConnectionSettings, deletePrivateConnectionSettings, listPrivateConnectionPeeringRoutesSettings, + grantDnsBindPermissionSettings, + getDnsBindPermissionSettings, + revokeDnsBindPermissionSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -2065,12 +3560,52 @@ private static Builder initDefaults(Builder builder) { .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); builder - .listSubnetsSettings() + .listNodesSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder - .getSubnetSettings() + .getNodeSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listExternalAddressesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .fetchNetworkPolicyExternalAddressesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .getExternalAddressSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createExternalAddressSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .updateExternalAddressSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .deleteExternalAddressSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .listSubnetsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getSubnetSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); @@ -2079,6 +3614,56 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder + .listExternalAccessRulesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getExternalAccessRuleSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createExternalAccessRuleSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .updateExternalAccessRuleSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .deleteExternalAccessRuleSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .listLoggingServersSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getLoggingServerSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createLoggingServerSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .updateLoggingServerSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .deleteLoggingServerSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + builder .listNodeTypesSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -2109,6 +3694,46 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + builder + .getDnsForwardingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateDnsForwardingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .getNetworkPeeringSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listNetworkPeeringsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createNetworkPeeringSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .deleteNetworkPeeringSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .updateNetworkPeeringSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .listPeeringRoutesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .createHcxActivationKeySettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) @@ -2149,6 +3774,36 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + builder + .listManagementDnsZoneBindingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getManagementDnsZoneBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createManagementDnsZoneBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .updateManagementDnsZoneBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .deleteManagementDnsZoneBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .repairManagementDnsZoneBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + builder .createVmwareEngineNetworkSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) @@ -2204,6 +3859,21 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .grantDnsBindPermissionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .getDnsBindPermissionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .revokeDnsBindPermissionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) @@ -2350,15 +4020,471 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .updateClusterOperationSettings() + .updateClusterOperationSettings() + .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(Cluster.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 + .deleteClusterOperationSettings() + .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 + .createExternalAddressOperationSettings() + .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(ExternalAddress.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 + .updateExternalAddressOperationSettings() + .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(ExternalAddress.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 + .deleteExternalAddressOperationSettings() + .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(Subnet.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 + .createExternalAccessRuleOperationSettings() + .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(ExternalAccessRule.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 + .updateExternalAccessRuleOperationSettings() + .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(ExternalAccessRule.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 + .deleteExternalAccessRuleOperationSettings() + .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 + .createLoggingServerOperationSettings() + .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(LoggingServer.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 + .updateLoggingServerOperationSettings() + .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(LoggingServer.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 + .deleteLoggingServerOperationSettings() + .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 + .resetNsxCredentialsOperationSettings() + .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(PrivateCloud.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 + .resetVcenterCredentialsOperationSettings() + .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(PrivateCloud.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 + .updateDnsForwardingOperationSettings() + .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(DnsForwarding.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 + .createNetworkPeeringOperationSettings() + .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(NetworkPeering.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 + .deleteNetworkPeeringOperationSettings() + .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 + .updateNetworkPeeringOperationSettings() + .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(NetworkPeering.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 + .createHcxActivationKeyOperationSettings() + .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(HcxActivationKey.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 + .createNetworkPolicyOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + .newUnaryCallSettingsBuilder() .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)) + ProtoOperationTransformers.ResponseTransformer.create(NetworkPolicy.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( @@ -2374,15 +4500,15 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .deleteClusterOperationSettings() + .updateNetworkPolicyOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + .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)) + ProtoOperationTransformers.ResponseTransformer.create(NetworkPolicy.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( @@ -2398,15 +4524,15 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .updateSubnetOperationSettings() + .deleteNetworkPolicyOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) .build()) .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Subnet.class)) + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( @@ -2422,15 +4548,16 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .resetNsxCredentialsOperationSettings() + .createManagementDnsZoneBindingOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + . + newUnaryCallSettingsBuilder() .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)) + ProtoOperationTransformers.ResponseTransformer.create(ManagementDnsZoneBinding.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( @@ -2446,15 +4573,16 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .resetVcenterCredentialsOperationSettings() + .updateManagementDnsZoneBindingOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + . + newUnaryCallSettingsBuilder() .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)) + ProtoOperationTransformers.ResponseTransformer.create(ManagementDnsZoneBinding.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( @@ -2470,15 +4598,16 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .createHcxActivationKeyOperationSettings() + .deleteManagementDnsZoneBindingOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + . + newUnaryCallSettingsBuilder() .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)) + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( @@ -2494,15 +4623,16 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .createNetworkPolicyOperationSettings() + .repairManagementDnsZoneBindingOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + . + newUnaryCallSettingsBuilder() .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)) + ProtoOperationTransformers.ResponseTransformer.create(ManagementDnsZoneBinding.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( @@ -2518,15 +4648,16 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .updateNetworkPolicyOperationSettings() + .createVmwareEngineNetworkOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + . + newUnaryCallSettingsBuilder() .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)) + ProtoOperationTransformers.ResponseTransformer.create(VmwareEngineNetwork.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( @@ -2542,15 +4673,16 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .deleteNetworkPolicyOperationSettings() + .updateVmwareEngineNetworkOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + . + 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)) + ProtoOperationTransformers.ResponseTransformer.create(VmwareEngineNetwork.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( @@ -2566,16 +4698,16 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .createVmwareEngineNetworkOperationSettings() + .deleteVmwareEngineNetworkOperationSettings() .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(VmwareEngineNetwork.class)) + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( @@ -2591,16 +4723,15 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .updateVmwareEngineNetworkOperationSettings() + .createPrivateConnectionOperationSettings() .setInitialCallSettings( UnaryCallSettings - . - newUnaryCallSettingsBuilder() + .newUnaryCallSettingsBuilder() .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)) + ProtoOperationTransformers.ResponseTransformer.create(PrivateConnection.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( @@ -2616,16 +4747,15 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .deleteVmwareEngineNetworkOperationSettings() + .updatePrivateConnectionOperationSettings() .setInitialCallSettings( UnaryCallSettings - . - newUnaryCallSettingsBuilder() + .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)) + ProtoOperationTransformers.ResponseTransformer.create(PrivateConnection.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( @@ -2641,15 +4771,15 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .createPrivateConnectionOperationSettings() + .deletePrivateConnectionOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + .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)) + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( @@ -2665,15 +4795,15 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .updatePrivateConnectionOperationSettings() + .grantDnsBindPermissionOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + .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)) + ProtoOperationTransformers.ResponseTransformer.create(DnsBindPermission.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( @@ -2689,15 +4819,15 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .deletePrivateConnectionOperationSettings() + .revokeDnsBindPermissionOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + .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)) + ProtoOperationTransformers.ResponseTransformer.create(DnsBindPermission.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( @@ -2851,6 +4981,87 @@ public UnaryCallSettings.Builder deleteClusterS return deleteClusterOperationSettings; } + /** Returns the builder for the settings used for calls to listNodes. */ + public PagedCallSettings.Builder + listNodesSettings() { + return listNodesSettings; + } + + /** Returns the builder for the settings used for calls to getNode. */ + public UnaryCallSettings.Builder getNodeSettings() { + return getNodeSettings; + } + + /** Returns the builder for the settings used for calls to listExternalAddresses. */ + public PagedCallSettings.Builder< + ListExternalAddressesRequest, + ListExternalAddressesResponse, + ListExternalAddressesPagedResponse> + listExternalAddressesSettings() { + return listExternalAddressesSettings; + } + + /** + * Returns the builder for the settings used for calls to fetchNetworkPolicyExternalAddresses. + */ + public PagedCallSettings.Builder< + FetchNetworkPolicyExternalAddressesRequest, + FetchNetworkPolicyExternalAddressesResponse, + FetchNetworkPolicyExternalAddressesPagedResponse> + fetchNetworkPolicyExternalAddressesSettings() { + return fetchNetworkPolicyExternalAddressesSettings; + } + + /** Returns the builder for the settings used for calls to getExternalAddress. */ + public UnaryCallSettings.Builder + getExternalAddressSettings() { + return getExternalAddressSettings; + } + + /** Returns the builder for the settings used for calls to createExternalAddress. */ + public UnaryCallSettings.Builder + createExternalAddressSettings() { + return createExternalAddressSettings; + } + + /** Returns the builder for the settings used for calls to createExternalAddress. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + CreateExternalAddressRequest, ExternalAddress, OperationMetadata> + createExternalAddressOperationSettings() { + return createExternalAddressOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateExternalAddress. */ + public UnaryCallSettings.Builder + updateExternalAddressSettings() { + return updateExternalAddressSettings; + } + + /** Returns the builder for the settings used for calls to updateExternalAddress. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + UpdateExternalAddressRequest, ExternalAddress, OperationMetadata> + updateExternalAddressOperationSettings() { + return updateExternalAddressOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteExternalAddress. */ + public UnaryCallSettings.Builder + deleteExternalAddressSettings() { + return deleteExternalAddressSettings; + } + + /** Returns the builder for the settings used for calls to deleteExternalAddress. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteExternalAddressOperationSettings() { + return deleteExternalAddressOperationSettings; + } + /** Returns the builder for the settings used for calls to listSubnets. */ public PagedCallSettings.Builder< ListSubnetsRequest, ListSubnetsResponse, ListSubnetsPagedResponse> @@ -2876,6 +5087,122 @@ public UnaryCallSettings.Builder updateSubnetSet return updateSubnetOperationSettings; } + /** Returns the builder for the settings used for calls to listExternalAccessRules. */ + public PagedCallSettings.Builder< + ListExternalAccessRulesRequest, + ListExternalAccessRulesResponse, + ListExternalAccessRulesPagedResponse> + listExternalAccessRulesSettings() { + return listExternalAccessRulesSettings; + } + + /** Returns the builder for the settings used for calls to getExternalAccessRule. */ + public UnaryCallSettings.Builder + getExternalAccessRuleSettings() { + return getExternalAccessRuleSettings; + } + + /** Returns the builder for the settings used for calls to createExternalAccessRule. */ + public UnaryCallSettings.Builder + createExternalAccessRuleSettings() { + return createExternalAccessRuleSettings; + } + + /** Returns the builder for the settings used for calls to createExternalAccessRule. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + CreateExternalAccessRuleRequest, ExternalAccessRule, OperationMetadata> + createExternalAccessRuleOperationSettings() { + return createExternalAccessRuleOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateExternalAccessRule. */ + public UnaryCallSettings.Builder + updateExternalAccessRuleSettings() { + return updateExternalAccessRuleSettings; + } + + /** Returns the builder for the settings used for calls to updateExternalAccessRule. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + UpdateExternalAccessRuleRequest, ExternalAccessRule, OperationMetadata> + updateExternalAccessRuleOperationSettings() { + return updateExternalAccessRuleOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteExternalAccessRule. */ + public UnaryCallSettings.Builder + deleteExternalAccessRuleSettings() { + return deleteExternalAccessRuleSettings; + } + + /** Returns the builder for the settings used for calls to deleteExternalAccessRule. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteExternalAccessRuleOperationSettings() { + return deleteExternalAccessRuleOperationSettings; + } + + /** Returns the builder for the settings used for calls to listLoggingServers. */ + public PagedCallSettings.Builder< + ListLoggingServersRequest, ListLoggingServersResponse, ListLoggingServersPagedResponse> + listLoggingServersSettings() { + return listLoggingServersSettings; + } + + /** Returns the builder for the settings used for calls to getLoggingServer. */ + public UnaryCallSettings.Builder + getLoggingServerSettings() { + return getLoggingServerSettings; + } + + /** Returns the builder for the settings used for calls to createLoggingServer. */ + public UnaryCallSettings.Builder + createLoggingServerSettings() { + return createLoggingServerSettings; + } + + /** Returns the builder for the settings used for calls to createLoggingServer. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + CreateLoggingServerRequest, LoggingServer, OperationMetadata> + createLoggingServerOperationSettings() { + return createLoggingServerOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateLoggingServer. */ + public UnaryCallSettings.Builder + updateLoggingServerSettings() { + return updateLoggingServerSettings; + } + + /** Returns the builder for the settings used for calls to updateLoggingServer. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + UpdateLoggingServerRequest, LoggingServer, OperationMetadata> + updateLoggingServerOperationSettings() { + return updateLoggingServerOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteLoggingServer. */ + public UnaryCallSettings.Builder + deleteLoggingServerSettings() { + return deleteLoggingServerSettings; + } + + /** Returns the builder for the settings used for calls to deleteLoggingServer. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteLoggingServerOperationSettings() { + return deleteLoggingServerOperationSettings; + } + /** Returns the builder for the settings used for calls to listNodeTypes. */ public PagedCallSettings.Builder< ListNodeTypesRequest, ListNodeTypesResponse, ListNodeTypesPagedResponse> @@ -2930,6 +5257,93 @@ public UnaryCallSettings.Builder getNodeTypeSettin return resetVcenterCredentialsOperationSettings; } + /** Returns the builder for the settings used for calls to getDnsForwarding. */ + public UnaryCallSettings.Builder + getDnsForwardingSettings() { + return getDnsForwardingSettings; + } + + /** Returns the builder for the settings used for calls to updateDnsForwarding. */ + public UnaryCallSettings.Builder + updateDnsForwardingSettings() { + return updateDnsForwardingSettings; + } + + /** Returns the builder for the settings used for calls to updateDnsForwarding. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + UpdateDnsForwardingRequest, DnsForwarding, OperationMetadata> + updateDnsForwardingOperationSettings() { + return updateDnsForwardingOperationSettings; + } + + /** Returns the builder for the settings used for calls to getNetworkPeering. */ + public UnaryCallSettings.Builder + getNetworkPeeringSettings() { + return getNetworkPeeringSettings; + } + + /** Returns the builder for the settings used for calls to listNetworkPeerings. */ + public PagedCallSettings.Builder< + ListNetworkPeeringsRequest, + ListNetworkPeeringsResponse, + ListNetworkPeeringsPagedResponse> + listNetworkPeeringsSettings() { + return listNetworkPeeringsSettings; + } + + /** Returns the builder for the settings used for calls to createNetworkPeering. */ + public UnaryCallSettings.Builder + createNetworkPeeringSettings() { + return createNetworkPeeringSettings; + } + + /** Returns the builder for the settings used for calls to createNetworkPeering. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + CreateNetworkPeeringRequest, NetworkPeering, OperationMetadata> + createNetworkPeeringOperationSettings() { + return createNetworkPeeringOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteNetworkPeering. */ + public UnaryCallSettings.Builder + deleteNetworkPeeringSettings() { + return deleteNetworkPeeringSettings; + } + + /** Returns the builder for the settings used for calls to deleteNetworkPeering. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteNetworkPeeringOperationSettings() { + return deleteNetworkPeeringOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateNetworkPeering. */ + public UnaryCallSettings.Builder + updateNetworkPeeringSettings() { + return updateNetworkPeeringSettings; + } + + /** Returns the builder for the settings used for calls to updateNetworkPeering. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + UpdateNetworkPeeringRequest, NetworkPeering, OperationMetadata> + updateNetworkPeeringOperationSettings() { + return updateNetworkPeeringOperationSettings; + } + + /** Returns the builder for the settings used for calls to listPeeringRoutes. */ + public PagedCallSettings.Builder< + ListPeeringRoutesRequest, ListPeeringRoutesResponse, ListPeeringRoutesPagedResponse> + listPeeringRoutesSettings() { + return listPeeringRoutesSettings; + } + /** Returns the builder for the settings used for calls to createHcxActivationKey. */ public UnaryCallSettings.Builder createHcxActivationKeySettings() { @@ -3019,6 +5433,81 @@ public UnaryCallSettings.Builder getNodeTypeSettin return deleteNetworkPolicyOperationSettings; } + /** Returns the builder for the settings used for calls to listManagementDnsZoneBindings. */ + public PagedCallSettings.Builder< + ListManagementDnsZoneBindingsRequest, + ListManagementDnsZoneBindingsResponse, + ListManagementDnsZoneBindingsPagedResponse> + listManagementDnsZoneBindingsSettings() { + return listManagementDnsZoneBindingsSettings; + } + + /** Returns the builder for the settings used for calls to getManagementDnsZoneBinding. */ + public UnaryCallSettings.Builder + getManagementDnsZoneBindingSettings() { + return getManagementDnsZoneBindingSettings; + } + + /** Returns the builder for the settings used for calls to createManagementDnsZoneBinding. */ + public UnaryCallSettings.Builder + createManagementDnsZoneBindingSettings() { + return createManagementDnsZoneBindingSettings; + } + + /** Returns the builder for the settings used for calls to createManagementDnsZoneBinding. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + CreateManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + createManagementDnsZoneBindingOperationSettings() { + return createManagementDnsZoneBindingOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateManagementDnsZoneBinding. */ + public UnaryCallSettings.Builder + updateManagementDnsZoneBindingSettings() { + return updateManagementDnsZoneBindingSettings; + } + + /** Returns the builder for the settings used for calls to updateManagementDnsZoneBinding. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + UpdateManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + updateManagementDnsZoneBindingOperationSettings() { + return updateManagementDnsZoneBindingOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteManagementDnsZoneBinding. */ + public UnaryCallSettings.Builder + deleteManagementDnsZoneBindingSettings() { + return deleteManagementDnsZoneBindingSettings; + } + + /** Returns the builder for the settings used for calls to deleteManagementDnsZoneBinding. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + DeleteManagementDnsZoneBindingRequest, Empty, OperationMetadata> + deleteManagementDnsZoneBindingOperationSettings() { + return deleteManagementDnsZoneBindingOperationSettings; + } + + /** Returns the builder for the settings used for calls to repairManagementDnsZoneBinding. */ + public UnaryCallSettings.Builder + repairManagementDnsZoneBindingSettings() { + return repairManagementDnsZoneBindingSettings; + } + + /** Returns the builder for the settings used for calls to repairManagementDnsZoneBinding. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + RepairManagementDnsZoneBindingRequest, ManagementDnsZoneBinding, OperationMetadata> + repairManagementDnsZoneBindingOperationSettings() { + return repairManagementDnsZoneBindingOperationSettings; + } + /** Returns the builder for the settings used for calls to createVmwareEngineNetwork. */ public UnaryCallSettings.Builder createVmwareEngineNetworkSettings() { @@ -3148,6 +5637,42 @@ public UnaryCallSettings.Builder getNodeTypeSettin return listPrivateConnectionPeeringRoutesSettings; } + /** Returns the builder for the settings used for calls to grantDnsBindPermission. */ + public UnaryCallSettings.Builder + grantDnsBindPermissionSettings() { + return grantDnsBindPermissionSettings; + } + + /** Returns the builder for the settings used for calls to grantDnsBindPermission. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + GrantDnsBindPermissionRequest, DnsBindPermission, OperationMetadata> + grantDnsBindPermissionOperationSettings() { + return grantDnsBindPermissionOperationSettings; + } + + /** Returns the builder for the settings used for calls to getDnsBindPermission. */ + public UnaryCallSettings.Builder + getDnsBindPermissionSettings() { + return getDnsBindPermissionSettings; + } + + /** Returns the builder for the settings used for calls to revokeDnsBindPermission. */ + public UnaryCallSettings.Builder + revokeDnsBindPermissionSettings() { + return revokeDnsBindPermissionSettings; + } + + /** Returns the builder for the settings used for calls to revokeDnsBindPermission. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + RevokeDnsBindPermissionRequest, DnsBindPermission, OperationMetadata> + revokeDnsBindPermissionOperationSettings() { + return revokeDnsBindPermissionOperationSettings; + } + /** 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/resources/META-INF/native-image/com.google.cloud.vmwareengine.v1/reflect-config.json b/java-vmwareengine/google-cloud-vmwareengine/src/main/resources/META-INF/native-image/com.google.cloud.vmwareengine.v1/reflect-config.json index 0d31f9a603c4..2983cd224f74 100644 --- a/java-vmwareengine/google-cloud-vmwareengine/src/main/resources/META-INF/native-image/com.google.cloud.vmwareengine.v1/reflect-config.json +++ b/java-vmwareengine/google-cloud-vmwareengine/src/main/resources/META-INF/native-image/com.google.cloud.vmwareengine.v1/reflect-config.json @@ -116,6 +116,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.FieldInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Format", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.GoSettings", "queryAllDeclaredConstructors": true, @@ -494,6 +521,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest", "queryAllDeclaredConstructors": true, @@ -513,7 +576,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest", + "name": "com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -522,7 +585,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest$Builder", + "name": "com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -531,7 +594,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest", + "name": "com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -540,7 +603,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest$Builder", + "name": "com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -549,7 +612,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest", + "name": "com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -558,7 +621,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest$Builder", + "name": "com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -567,7 +630,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest", + "name": "com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -576,7 +639,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest$Builder", + "name": "com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -585,7 +648,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.Credentials", + "name": "com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -594,7 +657,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.Credentials$Builder", + "name": "com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -603,7 +666,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.DeleteClusterRequest", + "name": "com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -612,7 +675,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.DeleteClusterRequest$Builder", + "name": "com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -621,7 +684,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest", + "name": "com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -630,7 +693,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest$Builder", + "name": "com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -639,7 +702,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest", + "name": "com.google.cloud.vmwareengine.v1.Credentials", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -648,7 +711,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest$Builder", + "name": "com.google.cloud.vmwareengine.v1.Credentials$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -657,7 +720,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest", + "name": "com.google.cloud.vmwareengine.v1.DeleteClusterRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -666,7 +729,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest$Builder", + "name": "com.google.cloud.vmwareengine.v1.DeleteClusterRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -675,7 +738,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest", + "name": "com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -684,7 +747,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest$Builder", + "name": "com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -693,7 +756,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.GetClusterRequest", + "name": "com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -702,7 +765,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.GetClusterRequest$Builder", + "name": "com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -711,7 +774,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest", + "name": "com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -720,7 +783,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest$Builder", + "name": "com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -729,7 +792,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest", + "name": "com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -738,7 +801,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest$Builder", + "name": "com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -747,7 +810,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.GetNodeTypeRequest", + "name": "com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -756,7 +819,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.GetNodeTypeRequest$Builder", + "name": "com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -765,7 +828,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest", + "name": "com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -774,7 +837,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest$Builder", + "name": "com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -783,7 +846,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest", + "name": "com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -792,7 +855,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest$Builder", + "name": "com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -801,7 +864,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.GetSubnetRequest", + "name": "com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -810,7 +873,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.GetSubnetRequest$Builder", + "name": "com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -819,7 +882,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest", + "name": "com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -828,7 +891,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest$Builder", + "name": "com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -837,7 +900,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.Hcx", + "name": "com.google.cloud.vmwareengine.v1.DnsBindPermission", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -846,7 +909,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.Hcx$Builder", + "name": "com.google.cloud.vmwareengine.v1.DnsBindPermission$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -855,7 +918,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.Hcx$State", + "name": "com.google.cloud.vmwareengine.v1.DnsForwarding", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -864,7 +927,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.HcxActivationKey", + "name": "com.google.cloud.vmwareengine.v1.DnsForwarding$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -873,7 +936,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.HcxActivationKey$Builder", + "name": "com.google.cloud.vmwareengine.v1.DnsForwarding$ForwardingRule", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -882,7 +945,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.HcxActivationKey$State", + "name": "com.google.cloud.vmwareengine.v1.DnsForwarding$ForwardingRule$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -891,7 +954,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListClustersRequest", + "name": "com.google.cloud.vmwareengine.v1.ExternalAccessRule", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -900,7 +963,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListClustersRequest$Builder", + "name": "com.google.cloud.vmwareengine.v1.ExternalAccessRule$Action", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -909,7 +972,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListClustersResponse", + "name": "com.google.cloud.vmwareengine.v1.ExternalAccessRule$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -918,7 +981,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListClustersResponse$Builder", + "name": "com.google.cloud.vmwareengine.v1.ExternalAccessRule$IpRange", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -927,7 +990,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest", + "name": "com.google.cloud.vmwareengine.v1.ExternalAccessRule$IpRange$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -936,7 +999,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest$Builder", + "name": "com.google.cloud.vmwareengine.v1.ExternalAccessRule$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -945,7 +1008,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse", + "name": "com.google.cloud.vmwareengine.v1.ExternalAddress", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -954,7 +1017,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse$Builder", + "name": "com.google.cloud.vmwareengine.v1.ExternalAddress$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -963,7 +1026,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest", + "name": "com.google.cloud.vmwareengine.v1.ExternalAddress$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -972,7 +1035,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest$Builder", + "name": "com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -981,7 +1044,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse", + "name": "com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -990,7 +1053,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse$Builder", + "name": "com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -999,7 +1062,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListNodeTypesRequest", + "name": "com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1008,7 +1071,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListNodeTypesRequest$Builder", + "name": "com.google.cloud.vmwareengine.v1.GetClusterRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1017,7 +1080,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListNodeTypesResponse", + "name": "com.google.cloud.vmwareengine.v1.GetClusterRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1026,7 +1089,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListNodeTypesResponse$Builder", + "name": "com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1035,7 +1098,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest", + "name": "com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1044,7 +1107,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest$Builder", + "name": "com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1053,7 +1116,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse", + "name": "com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1062,7 +1125,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse$Builder", + "name": "com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1071,7 +1134,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest", + "name": "com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1080,7 +1143,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest$Builder", + "name": "com.google.cloud.vmwareengine.v1.GetExternalAddressRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1089,7 +1152,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse", + "name": "com.google.cloud.vmwareengine.v1.GetExternalAddressRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1098,7 +1161,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse$Builder", + "name": "com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1107,7 +1170,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest", + "name": "com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1116,7 +1179,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest$Builder", + "name": "com.google.cloud.vmwareengine.v1.GetLoggingServerRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1125,7 +1188,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse", + "name": "com.google.cloud.vmwareengine.v1.GetLoggingServerRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1134,7 +1197,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse$Builder", + "name": "com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1143,7 +1206,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListSubnetsRequest", + "name": "com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1152,7 +1215,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListSubnetsRequest$Builder", + "name": "com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1161,7 +1224,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListSubnetsResponse", + "name": "com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1170,7 +1233,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListSubnetsResponse$Builder", + "name": "com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1179,7 +1242,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest", + "name": "com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1188,7 +1251,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest$Builder", + "name": "com.google.cloud.vmwareengine.v1.GetNodeRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1197,7 +1260,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse", + "name": "com.google.cloud.vmwareengine.v1.GetNodeRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1206,7 +1269,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse$Builder", + "name": "com.google.cloud.vmwareengine.v1.GetNodeTypeRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1215,7 +1278,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.NetworkConfig", + "name": "com.google.cloud.vmwareengine.v1.GetNodeTypeRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1224,7 +1287,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.NetworkConfig$Builder", + "name": "com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1233,7 +1296,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.NetworkPolicy", + "name": "com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1242,7 +1305,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.NetworkPolicy$Builder", + "name": "com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1251,7 +1314,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.NetworkPolicy$NetworkService", + "name": "com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1260,7 +1323,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.NetworkPolicy$NetworkService$Builder", + "name": "com.google.cloud.vmwareengine.v1.GetSubnetRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1269,7 +1332,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.NetworkPolicy$NetworkService$State", + "name": "com.google.cloud.vmwareengine.v1.GetSubnetRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1278,7 +1341,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.NodeType", + "name": "com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1287,7 +1350,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.NodeType$Builder", + "name": "com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1296,7 +1359,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.NodeTypeConfig", + "name": "com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1305,7 +1368,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.NodeTypeConfig$Builder", + "name": "com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1314,7 +1377,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.Nsx", + "name": "com.google.cloud.vmwareengine.v1.Hcx", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1323,7 +1386,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.Nsx$Builder", + "name": "com.google.cloud.vmwareengine.v1.Hcx$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1332,7 +1395,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.Nsx$State", + "name": "com.google.cloud.vmwareengine.v1.Hcx$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1341,7 +1404,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.OperationMetadata", + "name": "com.google.cloud.vmwareengine.v1.HcxActivationKey", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1350,7 +1413,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.OperationMetadata$Builder", + "name": "com.google.cloud.vmwareengine.v1.HcxActivationKey$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1359,7 +1422,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.PeeringRoute", + "name": "com.google.cloud.vmwareengine.v1.HcxActivationKey$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1368,7 +1431,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.PeeringRoute$Builder", + "name": "com.google.cloud.vmwareengine.v1.ListClustersRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1377,7 +1440,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.PeeringRoute$Direction", + "name": "com.google.cloud.vmwareengine.v1.ListClustersRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1386,7 +1449,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.PeeringRoute$Type", + "name": "com.google.cloud.vmwareengine.v1.ListClustersResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1395,7 +1458,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.PrivateCloud", + "name": "com.google.cloud.vmwareengine.v1.ListClustersResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1404,7 +1467,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.PrivateCloud$Builder", + "name": "com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1413,7 +1476,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.PrivateCloud$ManagementCluster", + "name": "com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1422,7 +1485,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.PrivateCloud$ManagementCluster$Builder", + "name": "com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1431,7 +1494,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.PrivateCloud$State", + "name": "com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1440,7 +1503,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.PrivateCloud$Type", + "name": "com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1449,7 +1512,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.PrivateConnection", + "name": "com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1458,7 +1521,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.PrivateConnection$Builder", + "name": "com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1467,7 +1530,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.PrivateConnection$PeeringState", + "name": "com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1476,7 +1539,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.PrivateConnection$RoutingMode", + "name": "com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1485,7 +1548,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.PrivateConnection$State", + "name": "com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1494,7 +1557,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.PrivateConnection$Type", + "name": "com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1503,7 +1566,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest", + "name": "com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1512,7 +1575,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest$Builder", + "name": "com.google.cloud.vmwareengine.v1.ListLoggingServersRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1521,7 +1584,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest", + "name": "com.google.cloud.vmwareengine.v1.ListLoggingServersRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1530,7 +1593,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest$Builder", + "name": "com.google.cloud.vmwareengine.v1.ListLoggingServersResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1539,7 +1602,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest", + "name": "com.google.cloud.vmwareengine.v1.ListLoggingServersResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1548,7 +1611,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest$Builder", + "name": "com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1557,7 +1620,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest", + "name": "com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1566,7 +1629,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest$Builder", + "name": "com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1575,7 +1638,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.Subnet", + "name": "com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1584,7 +1647,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.Subnet$Builder", + "name": "com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1593,7 +1656,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.Subnet$State", + "name": "com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1602,7 +1665,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest", + "name": "com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1611,7 +1674,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest$Builder", + "name": "com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1620,7 +1683,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.UpdateClusterRequest", + "name": "com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1629,7 +1692,1087 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vmwareengine.v1.UpdateClusterRequest$Builder", + "name": "com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ListNodeTypesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ListNodeTypesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ListNodeTypesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ListNodeTypesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ListNodesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ListNodesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ListNodesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ListNodesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ListSubnetsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ListSubnetsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ListSubnetsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ListSubnetsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.LocationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.LocationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.LocationMetadata$Capability", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.LoggingServer", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.LoggingServer$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.LoggingServer$Protocol", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.LoggingServer$SourceType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.NetworkConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.NetworkConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.NetworkPeering", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.NetworkPeering$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.NetworkPeering$PeerNetworkType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.NetworkPeering$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.NetworkPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.NetworkPolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.NetworkPolicy$NetworkService", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.NetworkPolicy$NetworkService$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.NetworkPolicy$NetworkService$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.Node", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.Node$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.Node$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.NodeType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.NodeType$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.NodeType$Capability", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.NodeType$Kind", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.NodeTypeConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.NodeTypeConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.Nsx", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.Nsx$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.Nsx$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.OperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.OperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.PeeringRoute", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.PeeringRoute$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.PeeringRoute$Direction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.PeeringRoute$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.Principal", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.Principal$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.PrivateCloud", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.PrivateCloud$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.PrivateCloud$ManagementCluster", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.PrivateCloud$ManagementCluster$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.PrivateCloud$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.PrivateCloud$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.PrivateConnection", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.PrivateConnection$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.PrivateConnection$PeeringState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.PrivateConnection$RoutingMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.PrivateConnection$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.PrivateConnection$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.StretchedClusterConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.StretchedClusterConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.Subnet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.Subnet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.Subnet$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.UpdateClusterRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.UpdateClusterRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, 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 d44941f55975..d1a770f59d2a 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 @@ -290,13 +290,518 @@ public void deleteCluster( } } + @Override + public void listNodes( + ListNodesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListNodesResponse) { + requests.add(request); + responseObserver.onNext(((ListNodesResponse) 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 ListNodes, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListNodesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getNode(GetNodeRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Node) { + requests.add(request); + responseObserver.onNext(((Node) 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 GetNode, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Node.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listExternalAddresses( + ListExternalAddressesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListExternalAddressesResponse) { + requests.add(request); + responseObserver.onNext(((ListExternalAddressesResponse) 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 ListExternalAddresses, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListExternalAddressesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void fetchNetworkPolicyExternalAddresses( + FetchNetworkPolicyExternalAddressesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof FetchNetworkPolicyExternalAddressesResponse) { + requests.add(request); + responseObserver.onNext(((FetchNetworkPolicyExternalAddressesResponse) 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 FetchNetworkPolicyExternalAddresses, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + FetchNetworkPolicyExternalAddressesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getExternalAddress( + GetExternalAddressRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ExternalAddress) { + requests.add(request); + responseObserver.onNext(((ExternalAddress) 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 GetExternalAddress, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ExternalAddress.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createExternalAddress( + CreateExternalAddressRequest 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 CreateExternalAddress, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateExternalAddress( + UpdateExternalAddressRequest 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 UpdateExternalAddress, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteExternalAddress( + DeleteExternalAddressRequest 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 DeleteExternalAddress, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void listSubnets( ListSubnetsRequest request, StreamObserver responseObserver) { Object response = responses.poll(); - if (response instanceof ListSubnetsResponse) { + if (response instanceof ListSubnetsResponse) { + requests.add(request); + responseObserver.onNext(((ListSubnetsResponse) 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 ListSubnets, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListSubnetsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @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 listExternalAccessRules( + ListExternalAccessRulesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListExternalAccessRulesResponse) { + requests.add(request); + responseObserver.onNext(((ListExternalAccessRulesResponse) 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 ListExternalAccessRules, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListExternalAccessRulesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getExternalAccessRule( + GetExternalAccessRuleRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ExternalAccessRule) { + requests.add(request); + responseObserver.onNext(((ExternalAccessRule) 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 GetExternalAccessRule, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ExternalAccessRule.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createExternalAccessRule( + CreateExternalAccessRuleRequest 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 CreateExternalAccessRule, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateExternalAccessRule( + UpdateExternalAccessRuleRequest 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 UpdateExternalAccessRule, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteExternalAccessRule( + DeleteExternalAccessRuleRequest 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 DeleteExternalAccessRule, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listLoggingServers( + ListLoggingServersRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListLoggingServersResponse) { + requests.add(request); + responseObserver.onNext(((ListLoggingServersResponse) 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 ListLoggingServers, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListLoggingServersResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getLoggingServer( + GetLoggingServerRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof LoggingServer) { + requests.add(request); + responseObserver.onNext(((LoggingServer) 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 GetLoggingServer, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + LoggingServer.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createLoggingServer( + CreateLoggingServerRequest 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 CreateLoggingServer, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateLoggingServer( + UpdateLoggingServerRequest 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 UpdateLoggingServer, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteLoggingServer( + DeleteLoggingServerRequest 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 DeleteLoggingServer, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listNodeTypes( + ListNodeTypesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListNodeTypesResponse) { + requests.add(request); + responseObserver.onNext(((ListNodeTypesResponse) 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 ListNodeTypes, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListNodeTypesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getNodeType(GetNodeTypeRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof NodeType) { + requests.add(request); + responseObserver.onNext(((NodeType) 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 GetNodeType, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + NodeType.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void showNsxCredentials( + ShowNsxCredentialsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Credentials) { + requests.add(request); + responseObserver.onNext(((Credentials) 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 ShowNsxCredentials, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Credentials.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void showVcenterCredentials( + ShowVcenterCredentialsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Credentials) { requests.add(request); - responseObserver.onNext(((ListSubnetsResponse) response)); + responseObserver.onNext(((Credentials) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); @@ -304,19 +809,20 @@ public void listSubnets( responseObserver.onError( new IllegalArgumentException( String.format( - "Unrecognized response type %s for method ListSubnets, expected %s or %s", + "Unrecognized response type %s for method ShowVcenterCredentials, expected %s or %s", response == null ? "null" : response.getClass().getName(), - ListSubnetsResponse.class.getName(), + Credentials.class.getName(), Exception.class.getName()))); } } @Override - public void getSubnet(GetSubnetRequest request, StreamObserver responseObserver) { + public void resetNsxCredentials( + ResetNsxCredentialsRequest request, StreamObserver responseObserver) { Object response = responses.poll(); - if (response instanceof Subnet) { + if (response instanceof Operation) { requests.add(request); - responseObserver.onNext(((Subnet) response)); + responseObserver.onNext(((Operation) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); @@ -324,16 +830,16 @@ public void getSubnet(GetSubnetRequest request, StreamObserver responseO responseObserver.onError( new IllegalArgumentException( String.format( - "Unrecognized response type %s for method GetSubnet, expected %s or %s", + "Unrecognized response type %s for method ResetNsxCredentials, expected %s or %s", response == null ? "null" : response.getClass().getName(), - Subnet.class.getName(), + Operation.class.getName(), Exception.class.getName()))); } } @Override - public void updateSubnet( - UpdateSubnetRequest request, StreamObserver responseObserver) { + public void resetVcenterCredentials( + ResetVcenterCredentialsRequest request, StreamObserver responseObserver) { Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); @@ -345,7 +851,7 @@ public void updateSubnet( responseObserver.onError( new IllegalArgumentException( String.format( - "Unrecognized response type %s for method UpdateSubnet, expected %s or %s", + "Unrecognized response type %s for method ResetVcenterCredentials, expected %s or %s", response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); @@ -353,12 +859,12 @@ public void updateSubnet( } @Override - public void listNodeTypes( - ListNodeTypesRequest request, StreamObserver responseObserver) { + public void getDnsForwarding( + GetDnsForwardingRequest request, StreamObserver responseObserver) { Object response = responses.poll(); - if (response instanceof ListNodeTypesResponse) { + if (response instanceof DnsForwarding) { requests.add(request); - responseObserver.onNext(((ListNodeTypesResponse) response)); + responseObserver.onNext(((DnsForwarding) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); @@ -366,19 +872,20 @@ public void listNodeTypes( responseObserver.onError( new IllegalArgumentException( String.format( - "Unrecognized response type %s for method ListNodeTypes, expected %s or %s", + "Unrecognized response type %s for method GetDnsForwarding, expected %s or %s", response == null ? "null" : response.getClass().getName(), - ListNodeTypesResponse.class.getName(), + DnsForwarding.class.getName(), Exception.class.getName()))); } } @Override - public void getNodeType(GetNodeTypeRequest request, StreamObserver responseObserver) { + public void updateDnsForwarding( + UpdateDnsForwardingRequest request, StreamObserver responseObserver) { Object response = responses.poll(); - if (response instanceof NodeType) { + if (response instanceof Operation) { requests.add(request); - responseObserver.onNext(((NodeType) response)); + responseObserver.onNext(((Operation) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); @@ -386,20 +893,20 @@ public void getNodeType(GetNodeTypeRequest request, StreamObserver res responseObserver.onError( new IllegalArgumentException( String.format( - "Unrecognized response type %s for method GetNodeType, expected %s or %s", + "Unrecognized response type %s for method UpdateDnsForwarding, expected %s or %s", response == null ? "null" : response.getClass().getName(), - NodeType.class.getName(), + Operation.class.getName(), Exception.class.getName()))); } } @Override - public void showNsxCredentials( - ShowNsxCredentialsRequest request, StreamObserver responseObserver) { + public void getNetworkPeering( + GetNetworkPeeringRequest request, StreamObserver responseObserver) { Object response = responses.poll(); - if (response instanceof Credentials) { + if (response instanceof NetworkPeering) { requests.add(request); - responseObserver.onNext(((Credentials) response)); + responseObserver.onNext(((NetworkPeering) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); @@ -407,20 +914,21 @@ public void showNsxCredentials( responseObserver.onError( new IllegalArgumentException( String.format( - "Unrecognized response type %s for method ShowNsxCredentials, expected %s or %s", + "Unrecognized response type %s for method GetNetworkPeering, expected %s or %s", response == null ? "null" : response.getClass().getName(), - Credentials.class.getName(), + NetworkPeering.class.getName(), Exception.class.getName()))); } } @Override - public void showVcenterCredentials( - ShowVcenterCredentialsRequest request, StreamObserver responseObserver) { + public void listNetworkPeerings( + ListNetworkPeeringsRequest request, + StreamObserver responseObserver) { Object response = responses.poll(); - if (response instanceof Credentials) { + if (response instanceof ListNetworkPeeringsResponse) { requests.add(request); - responseObserver.onNext(((Credentials) response)); + responseObserver.onNext(((ListNetworkPeeringsResponse) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); @@ -428,16 +936,16 @@ public void showVcenterCredentials( responseObserver.onError( new IllegalArgumentException( String.format( - "Unrecognized response type %s for method ShowVcenterCredentials, expected %s or %s", + "Unrecognized response type %s for method ListNetworkPeerings, expected %s or %s", response == null ? "null" : response.getClass().getName(), - Credentials.class.getName(), + ListNetworkPeeringsResponse.class.getName(), Exception.class.getName()))); } } @Override - public void resetNsxCredentials( - ResetNsxCredentialsRequest request, StreamObserver responseObserver) { + public void createNetworkPeering( + CreateNetworkPeeringRequest request, StreamObserver responseObserver) { Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); @@ -449,7 +957,7 @@ public void resetNsxCredentials( responseObserver.onError( new IllegalArgumentException( String.format( - "Unrecognized response type %s for method ResetNsxCredentials, expected %s or %s", + "Unrecognized response type %s for method CreateNetworkPeering, expected %s or %s", response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); @@ -457,8 +965,8 @@ public void resetNsxCredentials( } @Override - public void resetVcenterCredentials( - ResetVcenterCredentialsRequest request, StreamObserver responseObserver) { + public void deleteNetworkPeering( + DeleteNetworkPeeringRequest request, StreamObserver responseObserver) { Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); @@ -470,13 +978,56 @@ public void resetVcenterCredentials( responseObserver.onError( new IllegalArgumentException( String.format( - "Unrecognized response type %s for method ResetVcenterCredentials, expected %s or %s", + "Unrecognized response type %s for method DeleteNetworkPeering, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateNetworkPeering( + UpdateNetworkPeeringRequest 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 UpdateNetworkPeering, expected %s or %s", response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } } + @Override + public void listPeeringRoutes( + ListPeeringRoutesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListPeeringRoutesResponse) { + requests.add(request); + responseObserver.onNext(((ListPeeringRoutesResponse) 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 ListPeeringRoutes, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListPeeringRoutesResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void createHcxActivationKey( CreateHcxActivationKeyRequest request, StreamObserver responseObserver) { @@ -647,6 +1198,134 @@ public void deleteNetworkPolicy( } } + @Override + public void listManagementDnsZoneBindings( + ListManagementDnsZoneBindingsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListManagementDnsZoneBindingsResponse) { + requests.add(request); + responseObserver.onNext(((ListManagementDnsZoneBindingsResponse) 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 ListManagementDnsZoneBindings, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListManagementDnsZoneBindingsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getManagementDnsZoneBinding( + GetManagementDnsZoneBindingRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ManagementDnsZoneBinding) { + requests.add(request); + responseObserver.onNext(((ManagementDnsZoneBinding) 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 GetManagementDnsZoneBinding, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ManagementDnsZoneBinding.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createManagementDnsZoneBinding( + CreateManagementDnsZoneBindingRequest 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 CreateManagementDnsZoneBinding, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateManagementDnsZoneBinding( + UpdateManagementDnsZoneBindingRequest 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 UpdateManagementDnsZoneBinding, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteManagementDnsZoneBinding( + DeleteManagementDnsZoneBindingRequest 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 DeleteManagementDnsZoneBinding, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void repairManagementDnsZoneBinding( + RepairManagementDnsZoneBindingRequest 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 RepairManagementDnsZoneBinding, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void createVmwareEngineNetwork( CreateVmwareEngineNetworkRequest request, StreamObserver responseObserver) { @@ -880,4 +1559,67 @@ public void listPrivateConnectionPeeringRoutes( Exception.class.getName()))); } } + + @Override + public void grantDnsBindPermission( + GrantDnsBindPermissionRequest 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 GrantDnsBindPermission, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getDnsBindPermission( + GetDnsBindPermissionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DnsBindPermission) { + requests.add(request); + responseObserver.onNext(((DnsBindPermission) 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 GetDnsBindPermission, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DnsBindPermission.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void revokeDnsBindPermission( + RevokeDnsBindPermissionRequest 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 RevokeDnsBindPermission, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.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 18b427c40dfa..1c34a1e30f3e 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 @@ -16,11 +16,19 @@ package com.google.cloud.vmwareengine.v1; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.FetchNetworkPolicyExternalAddressesPagedResponse; import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListClustersPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListExternalAccessRulesPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListExternalAddressesPagedResponse; import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListHcxActivationKeysPagedResponse; import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListLocationsPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListLoggingServersPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListManagementDnsZoneBindingsPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNetworkPeeringsPagedResponse; 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.ListNodesPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPeeringRoutesPagedResponse; 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; @@ -888,6 +896,7 @@ public void getClusterTest() throws Exception { .setManagement(true) .setUid("uid115792") .putAllNodeTypeConfigs(new HashMap()) + .setStretchedClusterConfig(StretchedClusterConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -939,6 +948,7 @@ public void getClusterTest2() throws Exception { .setManagement(true) .setUid("uid115792") .putAllNodeTypeConfigs(new HashMap()) + .setStretchedClusterConfig(StretchedClusterConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -992,6 +1002,7 @@ public void createClusterTest() throws Exception { .setManagement(true) .setUid("uid115792") .putAllNodeTypeConfigs(new HashMap()) + .setStretchedClusterConfig(StretchedClusterConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1052,6 +1063,7 @@ public void createClusterTest2() throws Exception { .setManagement(true) .setUid("uid115792") .putAllNodeTypeConfigs(new HashMap()) + .setStretchedClusterConfig(StretchedClusterConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1113,6 +1125,7 @@ public void updateClusterTest() throws Exception { .setManagement(true) .setUid("uid115792") .putAllNodeTypeConfigs(new HashMap()) + .setStretchedClusterConfig(StretchedClusterConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1132,6 +1145,7 @@ public void updateClusterTest() throws Exception { .setManagement(true) .setUid("uid115792") .putAllNodeTypeConfigs(new HashMap()) + .setStretchedClusterConfig(StretchedClusterConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1171,6 +1185,7 @@ public void updateClusterExceptionTest() throws Exception { .setManagement(true) .setUid("uid115792") .putAllNodeTypeConfigs(new HashMap()) + .setStretchedClusterConfig(StretchedClusterConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateClusterAsync(cluster, updateMask).get(); @@ -1272,23 +1287,23 @@ public void deleteClusterExceptionTest2() throws Exception { } @Test - public void listSubnetsTest() throws Exception { - Subnet responsesElement = Subnet.newBuilder().build(); - ListSubnetsResponse expectedResponse = - ListSubnetsResponse.newBuilder() + public void listNodesTest() throws Exception { + Node responsesElement = Node.newBuilder().build(); + ListNodesResponse expectedResponse = + ListNodesResponse.newBuilder() .setNextPageToken("") - .addAllSubnets(Arrays.asList(responsesElement)) + .addAllNodes(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); - PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + ClusterName parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]"); - ListSubnetsPagedResponse pagedListResponse = client.listSubnets(parent); + ListNodesPagedResponse pagedListResponse = client.listNodes(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getSubnetsList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getNodesList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -1306,15 +1321,16 @@ public void listSubnetsTest() throws Exception { } @Test - public void listSubnetsExceptionTest() throws Exception { + public void listNodesExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); - client.listSubnets(parent); + ClusterName parent = + ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]"); + client.listNodes(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1322,23 +1338,24 @@ public void listSubnetsExceptionTest() throws Exception { } @Test - public void listSubnetsTest2() throws Exception { - Subnet responsesElement = Subnet.newBuilder().build(); - ListSubnetsResponse expectedResponse = - ListSubnetsResponse.newBuilder() + public void listNodesTest2() throws Exception { + Node responsesElement = Node.newBuilder().build(); + ListNodesResponse expectedResponse = + ListNodesResponse.newBuilder() .setNextPageToken("") - .addAllSubnets(Arrays.asList(responsesElement)) + .addAllNodes(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); - String parent = "projects/project-4854/locations/location-4854/privateClouds/privateCloud-4854"; + String parent = + "projects/project-9101/locations/location-9101/privateClouds/privateCloud-9101/clusters/cluster-9101"; - ListSubnetsPagedResponse pagedListResponse = client.listSubnets(parent); + ListNodesPagedResponse pagedListResponse = client.listNodes(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getSubnetsList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getNodesList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -1356,7 +1373,7 @@ public void listSubnetsTest2() throws Exception { } @Test - public void listSubnetsExceptionTest2() throws Exception { + public void listNodesExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); @@ -1364,8 +1381,8 @@ public void listSubnetsExceptionTest2() throws Exception { try { String parent = - "projects/project-4854/locations/location-4854/privateClouds/privateCloud-4854"; - client.listSubnets(parent); + "projects/project-9101/locations/location-9101/privateClouds/privateCloud-9101/clusters/cluster-9101"; + client.listNodes(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1373,20 +1390,24 @@ public void listSubnetsExceptionTest2() throws Exception { } @Test - public void getSubnetTest() throws Exception { - Subnet expectedResponse = - Subnet.newBuilder() + public void getNodeTest() throws Exception { + Node expectedResponse = + Node.newBuilder() .setName( - SubnetName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[SUBNET]").toString()) - .setIpCidrRange("ipCidrRange-866375486") - .setGatewayIp("gatewayIp-1354641781") - .setType("type3575610") + NodeName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]", "[NODE]") + .toString()) + .setFqdn("fqdn3150485") + .setInternalIp("internalIp-1591143228") + .setNodeTypeId("nodeTypeId1245332119") + .setVersion("version351608024") + .setCustomCoreCount(2091833853) .build(); mockService.addResponse(expectedResponse); - SubnetName name = SubnetName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[SUBNET]"); + NodeName name = + NodeName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]", "[NODE]"); - Subnet actualResponse = client.getSubnet(name); + Node actualResponse = client.getNode(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1405,15 +1426,16 @@ public void getSubnetTest() throws Exception { } @Test - public void getSubnetExceptionTest() throws Exception { + public void getNodeExceptionTest() 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); + NodeName name = + NodeName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]", "[NODE]"); + client.getNode(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1421,21 +1443,24 @@ public void getSubnetExceptionTest() throws Exception { } @Test - public void getSubnetTest2() throws Exception { - Subnet expectedResponse = - Subnet.newBuilder() + public void getNodeTest2() throws Exception { + Node expectedResponse = + Node.newBuilder() .setName( - SubnetName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[SUBNET]").toString()) - .setIpCidrRange("ipCidrRange-866375486") - .setGatewayIp("gatewayIp-1354641781") - .setType("type3575610") + NodeName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]", "[NODE]") + .toString()) + .setFqdn("fqdn3150485") + .setInternalIp("internalIp-1591143228") + .setNodeTypeId("nodeTypeId1245332119") + .setVersion("version351608024") + .setCustomCoreCount(2091833853) .build(); mockService.addResponse(expectedResponse); String name = - "projects/project-2041/locations/location-2041/privateClouds/privateCloud-2041/subnets/subnet-2041"; + "projects/project-9257/locations/location-9257/privateClouds/privateCloud-9257/clusters/cluster-9257/nodes/node-9257"; - Subnet actualResponse = client.getSubnet(name); + Node actualResponse = client.getNode(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1454,7 +1479,7 @@ public void getSubnetTest2() throws Exception { } @Test - public void getSubnetExceptionTest2() throws Exception { + public void getNodeExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); @@ -1462,8 +1487,8 @@ public void getSubnetExceptionTest2() throws Exception { try { String name = - "projects/project-2041/locations/location-2041/privateClouds/privateCloud-2041/subnets/subnet-2041"; - client.getSubnet(name); + "projects/project-9257/locations/location-9257/privateClouds/privateCloud-9257/clusters/cluster-9257/nodes/node-9257"; + client.getNode(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1471,35 +1496,23 @@ public void getSubnetExceptionTest2() throws 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)) + public void listExternalAddressesTest() throws Exception { + ExternalAddress responsesElement = ExternalAddress.newBuilder().build(); + ListExternalAddressesResponse expectedResponse = + ListExternalAddressesResponse.newBuilder() + .setNextPageToken("") + .addAllExternalAddresses(Arrays.asList(responsesElement)) .build(); - mockService.addResponse(resultOperation); + mockService.addResponse(expectedResponse); - 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(); + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); - Subnet actualResponse = client.updateSubnetAsync(subnet, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); + ListExternalAddressesPagedResponse pagedListResponse = client.listExternalAddresses(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExternalAddressesList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -1517,47 +1530,39 @@ public void updateSubnetTest() throws Exception { } @Test - public void updateSubnetExceptionTest() throws Exception { + public void listExternalAddressesExceptionTest() 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(); + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.listExternalAddresses(parent); Assert.fail("No exception raised"); - } catch (ExecutionException e) { + } catch (InvalidArgumentException e) { + // Expected exception. } } @Test - public void listNodeTypesTest() throws Exception { - NodeType responsesElement = NodeType.newBuilder().build(); - ListNodeTypesResponse expectedResponse = - ListNodeTypesResponse.newBuilder() + public void listExternalAddressesTest2() throws Exception { + ExternalAddress responsesElement = ExternalAddress.newBuilder().build(); + ListExternalAddressesResponse expectedResponse = + ListExternalAddressesResponse.newBuilder() .setNextPageToken("") - .addAllNodeTypes(Arrays.asList(responsesElement)) + .addAllExternalAddresses(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String parent = "projects/project-4854/locations/location-4854/privateClouds/privateCloud-4854"; - ListNodeTypesPagedResponse pagedListResponse = client.listNodeTypes(parent); + ListExternalAddressesPagedResponse pagedListResponse = client.listExternalAddresses(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getNodeTypesList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getExternalAddressesList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -1575,15 +1580,16 @@ public void listNodeTypesTest() throws Exception { } @Test - public void listNodeTypesExceptionTest() throws Exception { + public void listExternalAddressesExceptionTest2() 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.listNodeTypes(parent); + String parent = + "projects/project-4854/locations/location-4854/privateClouds/privateCloud-4854"; + client.listExternalAddresses(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1591,23 +1597,25 @@ public void listNodeTypesExceptionTest() throws Exception { } @Test - public void listNodeTypesTest2() throws Exception { - NodeType responsesElement = NodeType.newBuilder().build(); - ListNodeTypesResponse expectedResponse = - ListNodeTypesResponse.newBuilder() + public void fetchNetworkPolicyExternalAddressesTest() throws Exception { + ExternalAddress responsesElement = ExternalAddress.newBuilder().build(); + FetchNetworkPolicyExternalAddressesResponse expectedResponse = + FetchNetworkPolicyExternalAddressesResponse.newBuilder() .setNextPageToken("") - .addAllNodeTypes(Arrays.asList(responsesElement)) + .addAllExternalAddresses(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); - String parent = "projects/project-5833/locations/location-5833"; + NetworkPolicyName networkPolicy = + NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); - ListNodeTypesPagedResponse pagedListResponse = client.listNodeTypes(parent); + FetchNetworkPolicyExternalAddressesPagedResponse pagedListResponse = + client.fetchNetworkPolicyExternalAddresses(networkPolicy); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getNodeTypesList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getExternalAddressesList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -1625,15 +1633,16 @@ public void listNodeTypesTest2() throws Exception { } @Test - public void listNodeTypesExceptionTest2() throws Exception { + public void fetchNetworkPolicyExternalAddressesExceptionTest() 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.listNodeTypes(parent); + NetworkPolicyName networkPolicy = + NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); + client.fetchNetworkPolicyExternalAddresses(networkPolicy); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1641,24 +1650,25 @@ public void listNodeTypesExceptionTest2() throws Exception { } @Test - public void getNodeTypeTest() throws Exception { - NodeType expectedResponse = - NodeType.newBuilder() - .setName(NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]").toString()) - .setNodeTypeId("nodeTypeId1245332119") - .setDisplayName("displayName1714148973") - .setVirtualCpuCount(289038212) - .setTotalCoreCount(-282953654) - .setMemoryGb(1726613721) - .setDiskSizeGb(-757478089) - .addAllAvailableCustomCoreCounts(new ArrayList()) + public void fetchNetworkPolicyExternalAddressesTest2() throws Exception { + ExternalAddress responsesElement = ExternalAddress.newBuilder().build(); + FetchNetworkPolicyExternalAddressesResponse expectedResponse = + FetchNetworkPolicyExternalAddressesResponse.newBuilder() + .setNextPageToken("") + .addAllExternalAddresses(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); - NodeTypeName name = NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]"); + String networkPolicy = + "projects/project-8039/locations/location-8039/networkPolicies/networkPolicie-8039"; - NodeType actualResponse = client.getNodeType(name); - Assert.assertEquals(expectedResponse, actualResponse); + FetchNetworkPolicyExternalAddressesPagedResponse pagedListResponse = + client.fetchNetworkPolicyExternalAddresses(networkPolicy); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExternalAddressesList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -1676,15 +1686,16 @@ public void getNodeTypeTest() throws Exception { } @Test - public void getNodeTypeExceptionTest() throws Exception { + public void fetchNetworkPolicyExternalAddressesExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - NodeTypeName name = NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]"); - client.getNodeType(name); + String networkPolicy = + "projects/project-8039/locations/location-8039/networkPolicies/networkPolicie-8039"; + client.fetchNetworkPolicyExternalAddresses(networkPolicy); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1692,23 +1703,26 @@ public void getNodeTypeExceptionTest() throws Exception { } @Test - public void getNodeTypeTest2() throws Exception { - NodeType expectedResponse = - NodeType.newBuilder() - .setName(NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]").toString()) - .setNodeTypeId("nodeTypeId1245332119") - .setDisplayName("displayName1714148973") - .setVirtualCpuCount(289038212) - .setTotalCoreCount(-282953654) - .setMemoryGb(1726613721) - .setDiskSizeGb(-757478089) - .addAllAvailableCustomCoreCounts(new ArrayList()) + public void getExternalAddressTest() throws Exception { + ExternalAddress expectedResponse = + ExternalAddress.newBuilder() + .setName( + ExternalAddressName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalIp("internalIp-1591143228") + .setExternalIp("externalIp-1699764654") + .setUid("uid115792") + .setDescription("description-1724546052") .build(); mockService.addResponse(expectedResponse); - String name = "projects/project-1203/locations/location-1203/nodeTypes/nodeType-1203"; + ExternalAddressName name = + ExternalAddressName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]"); - NodeType actualResponse = client.getNodeType(name); + ExternalAddress actualResponse = client.getExternalAddress(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1727,15 +1741,17 @@ public void getNodeTypeTest2() throws Exception { } @Test - public void getNodeTypeExceptionTest2() throws Exception { + public void getExternalAddressExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "projects/project-1203/locations/location-1203/nodeTypes/nodeType-1203"; - client.getNodeType(name); + ExternalAddressName name = + ExternalAddressName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]"); + client.getExternalAddress(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1743,18 +1759,26 @@ public void getNodeTypeExceptionTest2() throws Exception { } @Test - public void showNsxCredentialsTest() throws Exception { - Credentials expectedResponse = - Credentials.newBuilder() - .setUsername("username-265713450") - .setPassword("password1216985755") + public void getExternalAddressTest2() throws Exception { + ExternalAddress expectedResponse = + ExternalAddress.newBuilder() + .setName( + ExternalAddressName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalIp("internalIp-1591143228") + .setExternalIp("externalIp-1699764654") + .setUid("uid115792") + .setDescription("description-1724546052") .build(); mockService.addResponse(expectedResponse); - PrivateCloudName privateCloud = - PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + String name = + "projects/project-7690/locations/location-7690/privateClouds/privateCloud-7690/externalAddresses/externalAddresse-7690"; - Credentials actualResponse = client.showNsxCredentials(privateCloud); + ExternalAddress actualResponse = client.getExternalAddress(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1773,16 +1797,16 @@ public void showNsxCredentialsTest() throws Exception { } @Test - public void showNsxCredentialsExceptionTest() throws Exception { + public void getExternalAddressExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - PrivateCloudName privateCloud = - PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); - client.showNsxCredentials(privateCloud); + String name = + "projects/project-7690/locations/location-7690/privateClouds/privateCloud-7690/externalAddresses/externalAddresse-7690"; + client.getExternalAddress(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1790,18 +1814,34 @@ public void showNsxCredentialsExceptionTest() throws Exception { } @Test - public void showNsxCredentialsTest2() throws Exception { - Credentials expectedResponse = - Credentials.newBuilder() - .setUsername("username-265713450") - .setPassword("password1216985755") + public void createExternalAddressTest() throws Exception { + ExternalAddress expectedResponse = + ExternalAddress.newBuilder() + .setName( + ExternalAddressName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalIp("internalIp-1591143228") + .setExternalIp("externalIp-1699764654") + .setUid("uid115792") + .setDescription("description-1724546052") .build(); - mockService.addResponse(expectedResponse); + Operation resultOperation = + Operation.newBuilder() + .setName("createExternalAddressTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); - String privateCloud = - "projects/project-6942/locations/location-6942/privateClouds/privateCloud-6942"; + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + ExternalAddress externalAddress = ExternalAddress.newBuilder().build(); + String externalAddressId = "externalAddressId221595812"; - Credentials actualResponse = client.showNsxCredentials(privateCloud); + ExternalAddress actualResponse = + client.createExternalAddressAsync(parent, externalAddress, externalAddressId).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1820,35 +1860,51 @@ public void showNsxCredentialsTest2() throws Exception { } @Test - public void showNsxCredentialsExceptionTest2() throws Exception { + public void createExternalAddressExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String privateCloud = - "projects/project-6942/locations/location-6942/privateClouds/privateCloud-6942"; - client.showNsxCredentials(privateCloud); + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + ExternalAddress externalAddress = ExternalAddress.newBuilder().build(); + String externalAddressId = "externalAddressId221595812"; + client.createExternalAddressAsync(parent, externalAddress, externalAddressId).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } catch (ExecutionException e) { } } @Test - public void showVcenterCredentialsTest() throws Exception { - Credentials expectedResponse = - Credentials.newBuilder() - .setUsername("username-265713450") - .setPassword("password1216985755") + public void createExternalAddressTest2() throws Exception { + ExternalAddress expectedResponse = + ExternalAddress.newBuilder() + .setName( + ExternalAddressName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalIp("internalIp-1591143228") + .setExternalIp("externalIp-1699764654") + .setUid("uid115792") + .setDescription("description-1724546052") .build(); - mockService.addResponse(expectedResponse); + Operation resultOperation = + Operation.newBuilder() + .setName("createExternalAddressTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); - PrivateCloudName privateCloud = - PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + String parent = "projects/project-4854/locations/location-4854/privateClouds/privateCloud-4854"; + ExternalAddress externalAddress = ExternalAddress.newBuilder().build(); + String externalAddressId = "externalAddressId221595812"; - Credentials actualResponse = client.showVcenterCredentials(privateCloud); + ExternalAddress actualResponse = + client.createExternalAddressAsync(parent, externalAddress, externalAddressId).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1867,35 +1923,3308 @@ public void showVcenterCredentialsTest() throws Exception { } @Test - public void showVcenterCredentialsExceptionTest() throws Exception { + public void createExternalAddressExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - PrivateCloudName privateCloud = - PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); - client.showVcenterCredentials(privateCloud); + String parent = + "projects/project-4854/locations/location-4854/privateClouds/privateCloud-4854"; + ExternalAddress externalAddress = ExternalAddress.newBuilder().build(); + String externalAddressId = "externalAddressId221595812"; + client.createExternalAddressAsync(parent, externalAddress, externalAddressId).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } catch (ExecutionException e) { } } @Test - public void showVcenterCredentialsTest2() throws Exception { - Credentials expectedResponse = - Credentials.newBuilder() - .setUsername("username-265713450") + public void updateExternalAddressTest() throws Exception { + ExternalAddress expectedResponse = + ExternalAddress.newBuilder() + .setName( + ExternalAddressName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalIp("internalIp-1591143228") + .setExternalIp("externalIp-1699764654") + .setUid("uid115792") + .setDescription("description-1724546052") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateExternalAddressTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ExternalAddress externalAddress = + ExternalAddress.newBuilder() + .setName( + ExternalAddressName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalIp("internalIp-1591143228") + .setExternalIp("externalIp-1699764654") + .setUid("uid115792") + .setDescription("description-1724546052") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ExternalAddress actualResponse = + client.updateExternalAddressAsync(externalAddress, 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 updateExternalAddressExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ExternalAddress externalAddress = + ExternalAddress.newBuilder() + .setName( + ExternalAddressName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalIp("internalIp-1591143228") + .setExternalIp("externalIp-1699764654") + .setUid("uid115792") + .setDescription("description-1724546052") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateExternalAddressAsync(externalAddress, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteExternalAddressTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteExternalAddressTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ExternalAddressName name = + ExternalAddressName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]"); + + client.deleteExternalAddressAsync(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 deleteExternalAddressExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ExternalAddressName name = + ExternalAddressName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]"); + client.deleteExternalAddressAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteExternalAddressTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteExternalAddressTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-7690/locations/location-7690/privateClouds/privateCloud-7690/externalAddresses/externalAddresse-7690"; + + client.deleteExternalAddressAsync(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 deleteExternalAddressExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7690/locations/location-7690/privateClouds/privateCloud-7690/externalAddresses/externalAddresse-7690"; + client.deleteExternalAddressAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listSubnetsTest() throws Exception { + Subnet responsesElement = Subnet.newBuilder().build(); + ListSubnetsResponse expectedResponse = + ListSubnetsResponse.newBuilder() + .setNextPageToken("") + .addAllSubnets(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + ListSubnetsPagedResponse pagedListResponse = client.listSubnets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSubnetsList().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 listSubnetsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.listSubnets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSubnetsTest2() throws Exception { + Subnet responsesElement = Subnet.newBuilder().build(); + ListSubnetsResponse expectedResponse = + ListSubnetsResponse.newBuilder() + .setNextPageToken("") + .addAllSubnets(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-4854/locations/location-4854/privateClouds/privateCloud-4854"; + + ListSubnetsPagedResponse pagedListResponse = client.listSubnets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSubnetsList().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 listSubnetsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-4854/locations/location-4854/privateClouds/privateCloud-4854"; + client.listSubnets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected 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") + .setVlanId(536153463) + .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") + .setVlanId(536153463) + .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") + .setVlanId(536153463) + .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") + .setVlanId(536153463) + .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") + .setVlanId(536153463) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSubnetAsync(subnet, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listExternalAccessRulesTest() throws Exception { + ExternalAccessRule responsesElement = ExternalAccessRule.newBuilder().build(); + ListExternalAccessRulesResponse expectedResponse = + ListExternalAccessRulesResponse.newBuilder() + .setNextPageToken("") + .addAllExternalAccessRules(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + NetworkPolicyName parent = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); + + ListExternalAccessRulesPagedResponse pagedListResponse = client.listExternalAccessRules(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExternalAccessRulesList().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 listExternalAccessRulesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkPolicyName parent = + NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); + client.listExternalAccessRules(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listExternalAccessRulesTest2() throws Exception { + ExternalAccessRule responsesElement = ExternalAccessRule.newBuilder().build(); + ListExternalAccessRulesResponse expectedResponse = + ListExternalAccessRulesResponse.newBuilder() + .setNextPageToken("") + .addAllExternalAccessRules(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-5651/locations/location-5651/networkPolicies/networkPolicie-5651"; + + ListExternalAccessRulesPagedResponse pagedListResponse = client.listExternalAccessRules(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExternalAccessRulesList().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 listExternalAccessRulesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-5651/locations/location-5651/networkPolicies/networkPolicie-5651"; + client.listExternalAccessRules(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getExternalAccessRuleTest() throws Exception { + ExternalAccessRule expectedResponse = + ExternalAccessRule.newBuilder() + .setName( + ExternalAccessRuleName.of( + "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .setPriority(-1165461084) + .setIpProtocol("ipProtocol-655038241") + .addAllSourceIpRanges(new ArrayList()) + .addAllSourcePorts(new ArrayList()) + .addAllDestinationIpRanges(new ArrayList()) + .addAllDestinationPorts(new ArrayList()) + .setUid("uid115792") + .build(); + mockService.addResponse(expectedResponse); + + ExternalAccessRuleName name = + ExternalAccessRuleName.of( + "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]"); + + ExternalAccessRule actualResponse = client.getExternalAccessRule(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 getExternalAccessRuleExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ExternalAccessRuleName name = + ExternalAccessRuleName.of( + "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]"); + client.getExternalAccessRule(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getExternalAccessRuleTest2() throws Exception { + ExternalAccessRule expectedResponse = + ExternalAccessRule.newBuilder() + .setName( + ExternalAccessRuleName.of( + "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .setPriority(-1165461084) + .setIpProtocol("ipProtocol-655038241") + .addAllSourceIpRanges(new ArrayList()) + .addAllSourcePorts(new ArrayList()) + .addAllDestinationIpRanges(new ArrayList()) + .addAllDestinationPorts(new ArrayList()) + .setUid("uid115792") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-8120/locations/location-8120/networkPolicies/networkPolicie-8120/externalAccessRules/externalAccessRule-8120"; + + ExternalAccessRule actualResponse = client.getExternalAccessRule(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 getExternalAccessRuleExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8120/locations/location-8120/networkPolicies/networkPolicie-8120/externalAccessRules/externalAccessRule-8120"; + client.getExternalAccessRule(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createExternalAccessRuleTest() throws Exception { + ExternalAccessRule expectedResponse = + ExternalAccessRule.newBuilder() + .setName( + ExternalAccessRuleName.of( + "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .setPriority(-1165461084) + .setIpProtocol("ipProtocol-655038241") + .addAllSourceIpRanges(new ArrayList()) + .addAllSourcePorts(new ArrayList()) + .addAllDestinationIpRanges(new ArrayList()) + .addAllDestinationPorts(new ArrayList()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createExternalAccessRuleTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + NetworkPolicyName parent = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); + ExternalAccessRule externalAccessRule = ExternalAccessRule.newBuilder().build(); + String externalAccessRuleId = "externalAccessRuleId1937389350"; + + ExternalAccessRule actualResponse = + client + .createExternalAccessRuleAsync(parent, externalAccessRule, externalAccessRuleId) + .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 createExternalAccessRuleExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkPolicyName parent = + NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); + ExternalAccessRule externalAccessRule = ExternalAccessRule.newBuilder().build(); + String externalAccessRuleId = "externalAccessRuleId1937389350"; + client.createExternalAccessRuleAsync(parent, externalAccessRule, externalAccessRuleId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createExternalAccessRuleTest2() throws Exception { + ExternalAccessRule expectedResponse = + ExternalAccessRule.newBuilder() + .setName( + ExternalAccessRuleName.of( + "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .setPriority(-1165461084) + .setIpProtocol("ipProtocol-655038241") + .addAllSourceIpRanges(new ArrayList()) + .addAllSourcePorts(new ArrayList()) + .addAllDestinationIpRanges(new ArrayList()) + .addAllDestinationPorts(new ArrayList()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createExternalAccessRuleTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = + "projects/project-5651/locations/location-5651/networkPolicies/networkPolicie-5651"; + ExternalAccessRule externalAccessRule = ExternalAccessRule.newBuilder().build(); + String externalAccessRuleId = "externalAccessRuleId1937389350"; + + ExternalAccessRule actualResponse = + client + .createExternalAccessRuleAsync(parent, externalAccessRule, externalAccessRuleId) + .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 createExternalAccessRuleExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-5651/locations/location-5651/networkPolicies/networkPolicie-5651"; + ExternalAccessRule externalAccessRule = ExternalAccessRule.newBuilder().build(); + String externalAccessRuleId = "externalAccessRuleId1937389350"; + client.createExternalAccessRuleAsync(parent, externalAccessRule, externalAccessRuleId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateExternalAccessRuleTest() throws Exception { + ExternalAccessRule expectedResponse = + ExternalAccessRule.newBuilder() + .setName( + ExternalAccessRuleName.of( + "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .setPriority(-1165461084) + .setIpProtocol("ipProtocol-655038241") + .addAllSourceIpRanges(new ArrayList()) + .addAllSourcePorts(new ArrayList()) + .addAllDestinationIpRanges(new ArrayList()) + .addAllDestinationPorts(new ArrayList()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateExternalAccessRuleTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ExternalAccessRule externalAccessRule = + ExternalAccessRule.newBuilder() + .setName( + ExternalAccessRuleName.of( + "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .setPriority(-1165461084) + .setIpProtocol("ipProtocol-655038241") + .addAllSourceIpRanges(new ArrayList()) + .addAllSourcePorts(new ArrayList()) + .addAllDestinationIpRanges(new ArrayList()) + .addAllDestinationPorts(new ArrayList()) + .setUid("uid115792") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ExternalAccessRule actualResponse = + client.updateExternalAccessRuleAsync(externalAccessRule, 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 updateExternalAccessRuleExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ExternalAccessRule externalAccessRule = + ExternalAccessRule.newBuilder() + .setName( + ExternalAccessRuleName.of( + "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .setPriority(-1165461084) + .setIpProtocol("ipProtocol-655038241") + .addAllSourceIpRanges(new ArrayList()) + .addAllSourcePorts(new ArrayList()) + .addAllDestinationIpRanges(new ArrayList()) + .addAllDestinationPorts(new ArrayList()) + .setUid("uid115792") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateExternalAccessRuleAsync(externalAccessRule, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteExternalAccessRuleTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteExternalAccessRuleTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ExternalAccessRuleName name = + ExternalAccessRuleName.of( + "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]"); + + client.deleteExternalAccessRuleAsync(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 deleteExternalAccessRuleExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ExternalAccessRuleName name = + ExternalAccessRuleName.of( + "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]"); + client.deleteExternalAccessRuleAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteExternalAccessRuleTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteExternalAccessRuleTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-8120/locations/location-8120/networkPolicies/networkPolicie-8120/externalAccessRules/externalAccessRule-8120"; + + client.deleteExternalAccessRuleAsync(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 deleteExternalAccessRuleExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8120/locations/location-8120/networkPolicies/networkPolicie-8120/externalAccessRules/externalAccessRule-8120"; + client.deleteExternalAccessRuleAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listLoggingServersTest() throws Exception { + LoggingServer responsesElement = LoggingServer.newBuilder().build(); + ListLoggingServersResponse expectedResponse = + ListLoggingServersResponse.newBuilder() + .setNextPageToken("") + .addAllLoggingServers(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + ListLoggingServersPagedResponse pagedListResponse = client.listLoggingServers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLoggingServersList().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 listLoggingServersExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.listLoggingServers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLoggingServersTest2() throws Exception { + LoggingServer responsesElement = LoggingServer.newBuilder().build(); + ListLoggingServersResponse expectedResponse = + ListLoggingServersResponse.newBuilder() + .setNextPageToken("") + .addAllLoggingServers(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-4854/locations/location-4854/privateClouds/privateCloud-4854"; + + ListLoggingServersPagedResponse pagedListResponse = client.listLoggingServers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLoggingServersList().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 listLoggingServersExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-4854/locations/location-4854/privateClouds/privateCloud-4854"; + client.listLoggingServers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLoggingServerTest() throws Exception { + LoggingServer expectedResponse = + LoggingServer.newBuilder() + .setName( + LoggingServerName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setHostname("hostname-299803597") + .setPort(3446913) + .setUid("uid115792") + .build(); + mockService.addResponse(expectedResponse); + + LoggingServerName name = + LoggingServerName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]"); + + LoggingServer actualResponse = client.getLoggingServer(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 getLoggingServerExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LoggingServerName name = + LoggingServerName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]"); + client.getLoggingServer(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLoggingServerTest2() throws Exception { + LoggingServer expectedResponse = + LoggingServer.newBuilder() + .setName( + LoggingServerName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setHostname("hostname-299803597") + .setPort(3446913) + .setUid("uid115792") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-4740/locations/location-4740/privateClouds/privateCloud-4740/loggingServers/loggingServer-4740"; + + LoggingServer actualResponse = client.getLoggingServer(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 getLoggingServerExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-4740/locations/location-4740/privateClouds/privateCloud-4740/loggingServers/loggingServer-4740"; + client.getLoggingServer(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createLoggingServerTest() throws Exception { + LoggingServer expectedResponse = + LoggingServer.newBuilder() + .setName( + LoggingServerName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setHostname("hostname-299803597") + .setPort(3446913) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createLoggingServerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + LoggingServer loggingServer = LoggingServer.newBuilder().build(); + String loggingServerId = "loggingServerId-304163779"; + + LoggingServer actualResponse = + client.createLoggingServerAsync(parent, loggingServer, loggingServerId).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 createLoggingServerExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + LoggingServer loggingServer = LoggingServer.newBuilder().build(); + String loggingServerId = "loggingServerId-304163779"; + client.createLoggingServerAsync(parent, loggingServer, loggingServerId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createLoggingServerTest2() throws Exception { + LoggingServer expectedResponse = + LoggingServer.newBuilder() + .setName( + LoggingServerName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setHostname("hostname-299803597") + .setPort(3446913) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createLoggingServerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-4854/locations/location-4854/privateClouds/privateCloud-4854"; + LoggingServer loggingServer = LoggingServer.newBuilder().build(); + String loggingServerId = "loggingServerId-304163779"; + + LoggingServer actualResponse = + client.createLoggingServerAsync(parent, loggingServer, loggingServerId).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 createLoggingServerExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-4854/locations/location-4854/privateClouds/privateCloud-4854"; + LoggingServer loggingServer = LoggingServer.newBuilder().build(); + String loggingServerId = "loggingServerId-304163779"; + client.createLoggingServerAsync(parent, loggingServer, loggingServerId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateLoggingServerTest() throws Exception { + LoggingServer expectedResponse = + LoggingServer.newBuilder() + .setName( + LoggingServerName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setHostname("hostname-299803597") + .setPort(3446913) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateLoggingServerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LoggingServer loggingServer = + LoggingServer.newBuilder() + .setName( + LoggingServerName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setHostname("hostname-299803597") + .setPort(3446913) + .setUid("uid115792") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + LoggingServer actualResponse = client.updateLoggingServerAsync(loggingServer, 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 updateLoggingServerExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LoggingServer loggingServer = + LoggingServer.newBuilder() + .setName( + LoggingServerName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setHostname("hostname-299803597") + .setPort(3446913) + .setUid("uid115792") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateLoggingServerAsync(loggingServer, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteLoggingServerTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteLoggingServerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LoggingServerName name = + LoggingServerName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]"); + + client.deleteLoggingServerAsync(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 deleteLoggingServerExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LoggingServerName name = + LoggingServerName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]"); + client.deleteLoggingServerAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteLoggingServerTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteLoggingServerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-4740/locations/location-4740/privateClouds/privateCloud-4740/loggingServers/loggingServer-4740"; + + client.deleteLoggingServerAsync(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 deleteLoggingServerExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-4740/locations/location-4740/privateClouds/privateCloud-4740/loggingServers/loggingServer-4740"; + client.deleteLoggingServerAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listNodeTypesTest() throws Exception { + NodeType responsesElement = NodeType.newBuilder().build(); + ListNodeTypesResponse expectedResponse = + ListNodeTypesResponse.newBuilder() + .setNextPageToken("") + .addAllNodeTypes(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListNodeTypesPagedResponse pagedListResponse = client.listNodeTypes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getNodeTypesList().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 listNodeTypesExceptionTest() 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.listNodeTypes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listNodeTypesTest2() throws Exception { + NodeType responsesElement = NodeType.newBuilder().build(); + ListNodeTypesResponse expectedResponse = + ListNodeTypesResponse.newBuilder() + .setNextPageToken("") + .addAllNodeTypes(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListNodeTypesPagedResponse pagedListResponse = client.listNodeTypes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getNodeTypesList().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 listNodeTypesExceptionTest2() 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.listNodeTypes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getNodeTypeTest() throws Exception { + NodeType expectedResponse = + NodeType.newBuilder() + .setName(NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]").toString()) + .setNodeTypeId("nodeTypeId1245332119") + .setDisplayName("displayName1714148973") + .setVirtualCpuCount(289038212) + .setTotalCoreCount(-282953654) + .setMemoryGb(1726613721) + .setDiskSizeGb(-757478089) + .addAllAvailableCustomCoreCounts(new ArrayList()) + .addAllFamilies(new ArrayList()) + .addAllCapabilities(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + NodeTypeName name = NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]"); + + NodeType actualResponse = client.getNodeType(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 getNodeTypeExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NodeTypeName name = NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]"); + client.getNodeType(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getNodeTypeTest2() throws Exception { + NodeType expectedResponse = + NodeType.newBuilder() + .setName(NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]").toString()) + .setNodeTypeId("nodeTypeId1245332119") + .setDisplayName("displayName1714148973") + .setVirtualCpuCount(289038212) + .setTotalCoreCount(-282953654) + .setMemoryGb(1726613721) + .setDiskSizeGb(-757478089) + .addAllAvailableCustomCoreCounts(new ArrayList()) + .addAllFamilies(new ArrayList()) + .addAllCapabilities(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-1203/locations/location-1203/nodeTypes/nodeType-1203"; + + NodeType actualResponse = client.getNodeType(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 getNodeTypeExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1203/locations/location-1203/nodeTypes/nodeType-1203"; + client.getNodeType(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void showNsxCredentialsTest() throws Exception { + Credentials expectedResponse = + Credentials.newBuilder() + .setUsername("username-265713450") + .setPassword("password1216985755") + .build(); + mockService.addResponse(expectedResponse); + + PrivateCloudName privateCloud = + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + Credentials actualResponse = client.showNsxCredentials(privateCloud); + 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 showNsxCredentialsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PrivateCloudName privateCloud = + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.showNsxCredentials(privateCloud); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void showNsxCredentialsTest2() throws Exception { + Credentials expectedResponse = + Credentials.newBuilder() + .setUsername("username-265713450") + .setPassword("password1216985755") + .build(); + mockService.addResponse(expectedResponse); + + String privateCloud = + "projects/project-6942/locations/location-6942/privateClouds/privateCloud-6942"; + + Credentials actualResponse = client.showNsxCredentials(privateCloud); + 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 showNsxCredentialsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String privateCloud = + "projects/project-6942/locations/location-6942/privateClouds/privateCloud-6942"; + client.showNsxCredentials(privateCloud); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void showVcenterCredentialsTest() throws Exception { + Credentials expectedResponse = + Credentials.newBuilder() + .setUsername("username-265713450") + .setPassword("password1216985755") + .build(); + mockService.addResponse(expectedResponse); + + PrivateCloudName privateCloud = + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + Credentials actualResponse = client.showVcenterCredentials(privateCloud); + 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 showVcenterCredentialsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PrivateCloudName privateCloud = + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.showVcenterCredentials(privateCloud); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void showVcenterCredentialsTest2() throws Exception { + Credentials expectedResponse = + Credentials.newBuilder() + .setUsername("username-265713450") .setPassword("password1216985755") .build(); mockService.addResponse(expectedResponse); - String privateCloud = - "projects/project-6942/locations/location-6942/privateClouds/privateCloud-6942"; + String privateCloud = + "projects/project-6942/locations/location-6942/privateClouds/privateCloud-6942"; + + Credentials actualResponse = client.showVcenterCredentials(privateCloud); + 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 showVcenterCredentialsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String privateCloud = + "projects/project-6942/locations/location-6942/privateClouds/privateCloud-6942"; + client.showVcenterCredentials(privateCloud); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void resetNsxCredentialsTest() throws Exception { + PrivateCloud expectedResponse = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("resetNsxCredentialsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + PrivateCloudName privateCloud = + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + PrivateCloud actualResponse = client.resetNsxCredentialsAsync(privateCloud).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 resetNsxCredentialsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PrivateCloudName privateCloud = + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.resetNsxCredentialsAsync(privateCloud).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void resetNsxCredentialsTest2() throws Exception { + PrivateCloud expectedResponse = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("resetNsxCredentialsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String privateCloud = + "projects/project-6942/locations/location-6942/privateClouds/privateCloud-6942"; + + PrivateCloud actualResponse = client.resetNsxCredentialsAsync(privateCloud).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 resetNsxCredentialsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String privateCloud = + "projects/project-6942/locations/location-6942/privateClouds/privateCloud-6942"; + client.resetNsxCredentialsAsync(privateCloud).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void resetVcenterCredentialsTest() throws Exception { + PrivateCloud expectedResponse = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("resetVcenterCredentialsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + PrivateCloudName privateCloud = + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + PrivateCloud actualResponse = client.resetVcenterCredentialsAsync(privateCloud).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 resetVcenterCredentialsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PrivateCloudName privateCloud = + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.resetVcenterCredentialsAsync(privateCloud).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void resetVcenterCredentialsTest2() throws Exception { + PrivateCloud expectedResponse = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("resetVcenterCredentialsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String privateCloud = + "projects/project-6942/locations/location-6942/privateClouds/privateCloud-6942"; + + PrivateCloud actualResponse = client.resetVcenterCredentialsAsync(privateCloud).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 resetVcenterCredentialsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String privateCloud = + "projects/project-6942/locations/location-6942/privateClouds/privateCloud-6942"; + client.resetVcenterCredentialsAsync(privateCloud).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getDnsForwardingTest() throws Exception { + DnsForwarding expectedResponse = + DnsForwarding.newBuilder() + .setName(DnsForwardingName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllForwardingRules(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + DnsForwardingName name = DnsForwardingName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + DnsForwarding actualResponse = client.getDnsForwarding(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 getDnsForwardingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DnsForwardingName name = DnsForwardingName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.getDnsForwarding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDnsForwardingTest2() throws Exception { + DnsForwarding expectedResponse = + DnsForwarding.newBuilder() + .setName(DnsForwardingName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllForwardingRules(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9806/locations/location-9806/privateClouds/privateCloud-9806/dnsForwarding"; + + DnsForwarding actualResponse = client.getDnsForwarding(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 getDnsForwardingExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9806/locations/location-9806/privateClouds/privateCloud-9806/dnsForwarding"; + client.getDnsForwarding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateDnsForwardingTest() throws Exception { + DnsForwarding expectedResponse = + DnsForwarding.newBuilder() + .setName(DnsForwardingName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllForwardingRules(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateDnsForwardingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + DnsForwarding dnsForwarding = + DnsForwarding.newBuilder() + .setName(DnsForwardingName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllForwardingRules(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + DnsForwarding actualResponse = client.updateDnsForwardingAsync(dnsForwarding, 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 updateDnsForwardingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DnsForwarding dnsForwarding = + DnsForwarding.newBuilder() + .setName( + DnsForwardingName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllForwardingRules(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDnsForwardingAsync(dnsForwarding, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getNetworkPeeringTest() throws Exception { + NetworkPeering expectedResponse = + NetworkPeering.newBuilder() + .setName( + NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setPeerNetwork("peerNetwork392662636") + .setExportCustomRoutes(true) + .setImportCustomRoutes(true) + .setExchangeSubnetRoutes(true) + .setExportCustomRoutesWithPublicIp(true) + .setImportCustomRoutesWithPublicIp(true) + .setStateDetails("stateDetails1730982001") + .setPeerMtu(69584721) + .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .build(); + mockService.addResponse(expectedResponse); + + NetworkPeeringName name = NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]"); + + NetworkPeering actualResponse = client.getNetworkPeering(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 getNetworkPeeringExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkPeeringName name = + NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]"); + client.getNetworkPeering(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getNetworkPeeringTest2() throws Exception { + NetworkPeering expectedResponse = + NetworkPeering.newBuilder() + .setName( + NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setPeerNetwork("peerNetwork392662636") + .setExportCustomRoutes(true) + .setImportCustomRoutes(true) + .setExchangeSubnetRoutes(true) + .setExportCustomRoutesWithPublicIp(true) + .setImportCustomRoutesWithPublicIp(true) + .setStateDetails("stateDetails1730982001") + .setPeerMtu(69584721) + .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9207/locations/location-9207/networkPeerings/networkPeering-9207"; + + NetworkPeering actualResponse = client.getNetworkPeering(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 getNetworkPeeringExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9207/locations/location-9207/networkPeerings/networkPeering-9207"; + client.getNetworkPeering(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listNetworkPeeringsTest() throws Exception { + NetworkPeering responsesElement = NetworkPeering.newBuilder().build(); + ListNetworkPeeringsResponse expectedResponse = + ListNetworkPeeringsResponse.newBuilder() + .setNextPageToken("") + .addAllNetworkPeerings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListNetworkPeeringsPagedResponse pagedListResponse = client.listNetworkPeerings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getNetworkPeeringsList().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 listNetworkPeeringsExceptionTest() 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.listNetworkPeerings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listNetworkPeeringsTest2() throws Exception { + NetworkPeering responsesElement = NetworkPeering.newBuilder().build(); + ListNetworkPeeringsResponse expectedResponse = + ListNetworkPeeringsResponse.newBuilder() + .setNextPageToken("") + .addAllNetworkPeerings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListNetworkPeeringsPagedResponse pagedListResponse = client.listNetworkPeerings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getNetworkPeeringsList().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 listNetworkPeeringsExceptionTest2() 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.listNetworkPeerings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createNetworkPeeringTest() throws Exception { + NetworkPeering expectedResponse = + NetworkPeering.newBuilder() + .setName( + NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setPeerNetwork("peerNetwork392662636") + .setExportCustomRoutes(true) + .setImportCustomRoutes(true) + .setExchangeSubnetRoutes(true) + .setExportCustomRoutesWithPublicIp(true) + .setImportCustomRoutesWithPublicIp(true) + .setStateDetails("stateDetails1730982001") + .setPeerMtu(69584721) + .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createNetworkPeeringTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + NetworkPeering networkPeering = NetworkPeering.newBuilder().build(); + String networkPeeringId = "networkPeeringId1321772525"; + + NetworkPeering actualResponse = + client.createNetworkPeeringAsync(parent, networkPeering, networkPeeringId).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 createNetworkPeeringExceptionTest() 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]"); + NetworkPeering networkPeering = NetworkPeering.newBuilder().build(); + String networkPeeringId = "networkPeeringId1321772525"; + client.createNetworkPeeringAsync(parent, networkPeering, networkPeeringId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createNetworkPeeringTest2() throws Exception { + NetworkPeering expectedResponse = + NetworkPeering.newBuilder() + .setName( + NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setPeerNetwork("peerNetwork392662636") + .setExportCustomRoutes(true) + .setImportCustomRoutes(true) + .setExchangeSubnetRoutes(true) + .setExportCustomRoutesWithPublicIp(true) + .setImportCustomRoutesWithPublicIp(true) + .setStateDetails("stateDetails1730982001") + .setPeerMtu(69584721) + .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createNetworkPeeringTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + NetworkPeering networkPeering = NetworkPeering.newBuilder().build(); + String networkPeeringId = "networkPeeringId1321772525"; + + NetworkPeering actualResponse = + client.createNetworkPeeringAsync(parent, networkPeering, networkPeeringId).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 createNetworkPeeringExceptionTest2() 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"; + NetworkPeering networkPeering = NetworkPeering.newBuilder().build(); + String networkPeeringId = "networkPeeringId1321772525"; + client.createNetworkPeeringAsync(parent, networkPeering, networkPeeringId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteNetworkPeeringTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteNetworkPeeringTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + NetworkPeeringName name = NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]"); + + client.deleteNetworkPeeringAsync(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 deleteNetworkPeeringExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkPeeringName name = + NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]"); + client.deleteNetworkPeeringAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteNetworkPeeringTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteNetworkPeeringTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-9207/locations/location-9207/networkPeerings/networkPeering-9207"; + + client.deleteNetworkPeeringAsync(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 deleteNetworkPeeringExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9207/locations/location-9207/networkPeerings/networkPeering-9207"; + client.deleteNetworkPeeringAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateNetworkPeeringTest() throws Exception { + NetworkPeering expectedResponse = + NetworkPeering.newBuilder() + .setName( + NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setPeerNetwork("peerNetwork392662636") + .setExportCustomRoutes(true) + .setImportCustomRoutes(true) + .setExchangeSubnetRoutes(true) + .setExportCustomRoutesWithPublicIp(true) + .setImportCustomRoutesWithPublicIp(true) + .setStateDetails("stateDetails1730982001") + .setPeerMtu(69584721) + .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateNetworkPeeringTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + NetworkPeering networkPeering = + NetworkPeering.newBuilder() + .setName( + NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setPeerNetwork("peerNetwork392662636") + .setExportCustomRoutes(true) + .setImportCustomRoutes(true) + .setExchangeSubnetRoutes(true) + .setExportCustomRoutesWithPublicIp(true) + .setImportCustomRoutesWithPublicIp(true) + .setStateDetails("stateDetails1730982001") + .setPeerMtu(69584721) + .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + NetworkPeering actualResponse = + client.updateNetworkPeeringAsync(networkPeering, 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 updateNetworkPeeringExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkPeering networkPeering = + NetworkPeering.newBuilder() + .setName( + NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setPeerNetwork("peerNetwork392662636") + .setExportCustomRoutes(true) + .setImportCustomRoutes(true) + .setExchangeSubnetRoutes(true) + .setExportCustomRoutesWithPublicIp(true) + .setImportCustomRoutesWithPublicIp(true) + .setStateDetails("stateDetails1730982001") + .setPeerMtu(69584721) + .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateNetworkPeeringAsync(networkPeering, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listPeeringRoutesTest() throws Exception { + PeeringRoute responsesElement = PeeringRoute.newBuilder().build(); + ListPeeringRoutesResponse expectedResponse = + ListPeeringRoutesResponse.newBuilder() + .setNextPageToken("") + .addAllPeeringRoutes(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + NetworkPeeringName parent = + NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]"); + + ListPeeringRoutesPagedResponse pagedListResponse = client.listPeeringRoutes(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 listPeeringRoutesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkPeeringName parent = + NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]"); + client.listPeeringRoutes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPeeringRoutesTest2() throws Exception { + PeeringRoute responsesElement = PeeringRoute.newBuilder().build(); + ListPeeringRoutesResponse expectedResponse = + ListPeeringRoutesResponse.newBuilder() + .setNextPageToken("") + .addAllPeeringRoutes(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-6026/locations/location-6026/networkPeerings/networkPeering-6026"; + + ListPeeringRoutesPagedResponse pagedListResponse = client.listPeeringRoutes(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 listPeeringRoutesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-6026/locations/location-6026/networkPeerings/networkPeering-6026"; + client.listPeeringRoutes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createHcxActivationKeyTest() throws Exception { + HcxActivationKey expectedResponse = + HcxActivationKey.newBuilder() + .setName( + HcxActivationKeyName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setActivationKey("activationKey1757742441") + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createHcxActivationKeyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + HcxActivationKey hcxActivationKey = HcxActivationKey.newBuilder().build(); + String hcxActivationKeyId = "hcxActivationKeyId-645871673"; + + HcxActivationKey actualResponse = + client.createHcxActivationKeyAsync(parent, hcxActivationKey, hcxActivationKeyId).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 createHcxActivationKeyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + HcxActivationKey hcxActivationKey = HcxActivationKey.newBuilder().build(); + String hcxActivationKeyId = "hcxActivationKeyId-645871673"; + client.createHcxActivationKeyAsync(parent, hcxActivationKey, hcxActivationKeyId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createHcxActivationKeyTest2() throws Exception { + HcxActivationKey expectedResponse = + HcxActivationKey.newBuilder() + .setName( + HcxActivationKeyName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setActivationKey("activationKey1757742441") + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createHcxActivationKeyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-4854/locations/location-4854/privateClouds/privateCloud-4854"; + HcxActivationKey hcxActivationKey = HcxActivationKey.newBuilder().build(); + String hcxActivationKeyId = "hcxActivationKeyId-645871673"; + + HcxActivationKey actualResponse = + client.createHcxActivationKeyAsync(parent, hcxActivationKey, hcxActivationKeyId).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 createHcxActivationKeyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-4854/locations/location-4854/privateClouds/privateCloud-4854"; + HcxActivationKey hcxActivationKey = HcxActivationKey.newBuilder().build(); + String hcxActivationKeyId = "hcxActivationKeyId-645871673"; + client.createHcxActivationKeyAsync(parent, hcxActivationKey, hcxActivationKeyId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listHcxActivationKeysTest() throws Exception { + HcxActivationKey responsesElement = HcxActivationKey.newBuilder().build(); + ListHcxActivationKeysResponse expectedResponse = + ListHcxActivationKeysResponse.newBuilder() + .setNextPageToken("") + .addAllHcxActivationKeys(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + ListHcxActivationKeysPagedResponse pagedListResponse = client.listHcxActivationKeys(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getHcxActivationKeysList().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 listHcxActivationKeysExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.listHcxActivationKeys(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listHcxActivationKeysTest2() throws Exception { + HcxActivationKey responsesElement = HcxActivationKey.newBuilder().build(); + ListHcxActivationKeysResponse expectedResponse = + ListHcxActivationKeysResponse.newBuilder() + .setNextPageToken("") + .addAllHcxActivationKeys(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-4854/locations/location-4854/privateClouds/privateCloud-4854"; + + ListHcxActivationKeysPagedResponse pagedListResponse = client.listHcxActivationKeys(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getHcxActivationKeysList().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 listHcxActivationKeysExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-4854/locations/location-4854/privateClouds/privateCloud-4854"; + client.listHcxActivationKeys(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getHcxActivationKeyTest() throws Exception { + HcxActivationKey expectedResponse = + HcxActivationKey.newBuilder() + .setName( + HcxActivationKeyName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setActivationKey("activationKey1757742441") + .setUid("uid115792") + .build(); + mockService.addResponse(expectedResponse); + + HcxActivationKeyName name = + HcxActivationKeyName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]"); + + HcxActivationKey actualResponse = client.getHcxActivationKey(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 getHcxActivationKeyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + HcxActivationKeyName name = + HcxActivationKeyName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]"); + client.getHcxActivationKey(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getHcxActivationKeyTest2() throws Exception { + HcxActivationKey expectedResponse = + HcxActivationKey.newBuilder() + .setName( + HcxActivationKeyName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setActivationKey("activationKey1757742441") + .setUid("uid115792") + .build(); + mockService.addResponse(expectedResponse); - Credentials actualResponse = client.showVcenterCredentials(privateCloud); + String name = + "projects/project-3178/locations/location-3178/privateClouds/privateCloud-3178/hcxActivationKeys/hcxActivationKey-3178"; + + HcxActivationKey actualResponse = client.getHcxActivationKey(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1914,16 +5243,16 @@ public void showVcenterCredentialsTest2() throws Exception { } @Test - public void showVcenterCredentialsExceptionTest2() throws Exception { + public void getHcxActivationKeyExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String privateCloud = - "projects/project-6942/locations/location-6942/privateClouds/privateCloud-6942"; - client.showVcenterCredentials(privateCloud); + String name = + "projects/project-3178/locations/location-3178/privateClouds/privateCloud-3178/hcxActivationKeys/hcxActivationKey-3178"; + client.getHcxActivationKey(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1931,34 +5260,29 @@ public void showVcenterCredentialsExceptionTest2() throws Exception { } @Test - public void resetNsxCredentialsTest() throws Exception { - PrivateCloud expectedResponse = - PrivateCloud.newBuilder() - .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + public void getNetworkPolicyTest() throws Exception { + NetworkPolicy expectedResponse = + NetworkPolicy.newBuilder() + .setName(NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setNetworkConfig(NetworkConfig.newBuilder().build()) - .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) - .setDescription("description-1724546052") - .setHcx(Hcx.newBuilder().build()) - .setNsx(Nsx.newBuilder().build()) - .setVcenter(Vcenter.newBuilder().build()) + .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) + .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) + .setEdgeServicesCidr("edgeServicesCidr846515023") .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .setVmwareEngineNetworkCanonical( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("resetNsxCredentialsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); + mockService.addResponse(expectedResponse); - PrivateCloudName privateCloud = - PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + NetworkPolicyName name = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); - PrivateCloud actualResponse = client.resetNsxCredentialsAsync(privateCloud).get(); + NetworkPolicy actualResponse = client.getNetworkPolicy(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1977,50 +5301,46 @@ public void resetNsxCredentialsTest() throws Exception { } @Test - public void resetNsxCredentialsExceptionTest() throws Exception { + public void getNetworkPolicyExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - PrivateCloudName privateCloud = - PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); - client.resetNsxCredentialsAsync(privateCloud).get(); + NetworkPolicyName name = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); + client.getNetworkPolicy(name); Assert.fail("No exception raised"); - } catch (ExecutionException e) { + } catch (InvalidArgumentException e) { + // Expected exception. } } @Test - public void resetNsxCredentialsTest2() throws Exception { - PrivateCloud expectedResponse = - PrivateCloud.newBuilder() - .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + public void getNetworkPolicyTest2() throws Exception { + NetworkPolicy expectedResponse = + NetworkPolicy.newBuilder() + .setName(NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setNetworkConfig(NetworkConfig.newBuilder().build()) - .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) - .setDescription("description-1724546052") - .setHcx(Hcx.newBuilder().build()) - .setNsx(Nsx.newBuilder().build()) - .setVcenter(Vcenter.newBuilder().build()) + .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) + .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) + .setEdgeServicesCidr("edgeServicesCidr846515023") .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .setVmwareEngineNetworkCanonical( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("resetNsxCredentialsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); + mockService.addResponse(expectedResponse); - String privateCloud = - "projects/project-6942/locations/location-6942/privateClouds/privateCloud-6942"; + String name = + "projects/project-6412/locations/location-6412/networkPolicies/networkPolicie-6412"; - PrivateCloud actualResponse = client.resetNsxCredentialsAsync(privateCloud).get(); + NetworkPolicy actualResponse = client.getNetworkPolicy(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -2039,51 +5359,90 @@ public void resetNsxCredentialsTest2() throws Exception { } @Test - public void resetNsxCredentialsExceptionTest2() throws Exception { + public void getNetworkPolicyExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String privateCloud = - "projects/project-6942/locations/location-6942/privateClouds/privateCloud-6942"; - client.resetNsxCredentialsAsync(privateCloud).get(); + String name = + "projects/project-6412/locations/location-6412/networkPolicies/networkPolicie-6412"; + client.getNetworkPolicy(name); Assert.fail("No exception raised"); - } catch (ExecutionException e) { + } catch (InvalidArgumentException e) { + // Expected exception. } } @Test - public void resetVcenterCredentialsTest() throws Exception { - PrivateCloud expectedResponse = - PrivateCloud.newBuilder() - .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setNetworkConfig(NetworkConfig.newBuilder().build()) - .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) - .setDescription("description-1724546052") - .setHcx(Hcx.newBuilder().build()) - .setNsx(Nsx.newBuilder().build()) - .setVcenter(Vcenter.newBuilder().build()) - .setUid("uid115792") + public void listNetworkPoliciesTest() throws Exception { + NetworkPolicy responsesElement = NetworkPolicy.newBuilder().build(); + ListNetworkPoliciesResponse expectedResponse = + ListNetworkPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllNetworkPolicies(Arrays.asList(responsesElement)) .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("resetVcenterCredentialsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListNetworkPoliciesPagedResponse pagedListResponse = client.listNetworkPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getNetworkPoliciesList().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 listNetworkPoliciesExceptionTest() 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.listNetworkPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listNetworkPoliciesTest2() throws Exception { + NetworkPolicy responsesElement = NetworkPolicy.newBuilder().build(); + ListNetworkPoliciesResponse expectedResponse = + ListNetworkPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllNetworkPolicies(Arrays.asList(responsesElement)) .build(); - mockService.addResponse(resultOperation); + mockService.addResponse(expectedResponse); - PrivateCloudName privateCloud = - PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + String parent = "projects/project-5833/locations/location-5833"; - PrivateCloud actualResponse = client.resetVcenterCredentialsAsync(privateCloud).get(); - Assert.assertEquals(expectedResponse, actualResponse); + ListNetworkPoliciesPagedResponse pagedListResponse = client.listNetworkPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getNetworkPoliciesList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -2101,50 +5460,54 @@ public void resetVcenterCredentialsTest() throws Exception { } @Test - public void resetVcenterCredentialsExceptionTest() throws Exception { + public void listNetworkPoliciesExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - PrivateCloudName privateCloud = - PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); - client.resetVcenterCredentialsAsync(privateCloud).get(); + String parent = "projects/project-5833/locations/location-5833"; + client.listNetworkPolicies(parent); Assert.fail("No exception raised"); - } catch (ExecutionException e) { + } catch (InvalidArgumentException e) { + // Expected exception. } } @Test - public void resetVcenterCredentialsTest2() throws Exception { - PrivateCloud expectedResponse = - PrivateCloud.newBuilder() - .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + public void createNetworkPolicyTest() throws Exception { + NetworkPolicy expectedResponse = + NetworkPolicy.newBuilder() + .setName(NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setNetworkConfig(NetworkConfig.newBuilder().build()) - .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) - .setDescription("description-1724546052") - .setHcx(Hcx.newBuilder().build()) - .setNsx(Nsx.newBuilder().build()) - .setVcenter(Vcenter.newBuilder().build()) + .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) + .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) + .setEdgeServicesCidr("edgeServicesCidr846515023") .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .setVmwareEngineNetworkCanonical( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) .build(); Operation resultOperation = Operation.newBuilder() - .setName("resetVcenterCredentialsTest") + .setName("createNetworkPolicyTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockService.addResponse(resultOperation); - String privateCloud = - "projects/project-6942/locations/location-6942/privateClouds/privateCloud-6942"; + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); + String networkPolicyId = "networkPolicyId-727262661"; - PrivateCloud actualResponse = client.resetVcenterCredentialsAsync(privateCloud).get(); + NetworkPolicy actualResponse = + client.createNetworkPolicyAsync(parent, networkPolicy, networkPolicyId).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -2163,47 +5526,55 @@ public void resetVcenterCredentialsTest2() throws Exception { } @Test - public void resetVcenterCredentialsExceptionTest2() throws Exception { + public void createNetworkPolicyExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String privateCloud = - "projects/project-6942/locations/location-6942/privateClouds/privateCloud-6942"; - client.resetVcenterCredentialsAsync(privateCloud).get(); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); + String networkPolicyId = "networkPolicyId-727262661"; + client.createNetworkPolicyAsync(parent, networkPolicy, networkPolicyId).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { } } @Test - public void createHcxActivationKeyTest() throws Exception { - HcxActivationKey expectedResponse = - HcxActivationKey.newBuilder() - .setName( - HcxActivationKeyName.of( - "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]") - .toString()) + public void createNetworkPolicyTest2() throws Exception { + NetworkPolicy expectedResponse = + NetworkPolicy.newBuilder() + .setName(NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) .setCreateTime(Timestamp.newBuilder().build()) - .setActivationKey("activationKey1757742441") + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) + .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) + .setEdgeServicesCidr("edgeServicesCidr846515023") .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .setVmwareEngineNetworkCanonical( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) .build(); Operation resultOperation = Operation.newBuilder() - .setName("createHcxActivationKeyTest") + .setName("createNetworkPolicyTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockService.addResponse(resultOperation); - PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); - HcxActivationKey hcxActivationKey = HcxActivationKey.newBuilder().build(); - String hcxActivationKeyId = "hcxActivationKeyId-645871673"; + String parent = "projects/project-5833/locations/location-5833"; + NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); + String networkPolicyId = "networkPolicyId-727262661"; - HcxActivationKey actualResponse = - client.createHcxActivationKeyAsync(parent, hcxActivationKey, hcxActivationKeyId).get(); + NetworkPolicy actualResponse = + client.createNetworkPolicyAsync(parent, networkPolicy, networkPolicyId).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -2222,48 +5593,69 @@ public void createHcxActivationKeyTest() throws Exception { } @Test - public void createHcxActivationKeyExceptionTest() throws Exception { + public void createNetworkPolicyExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); - HcxActivationKey hcxActivationKey = HcxActivationKey.newBuilder().build(); - String hcxActivationKeyId = "hcxActivationKeyId-645871673"; - client.createHcxActivationKeyAsync(parent, hcxActivationKey, hcxActivationKeyId).get(); + String parent = "projects/project-5833/locations/location-5833"; + NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); + String networkPolicyId = "networkPolicyId-727262661"; + client.createNetworkPolicyAsync(parent, networkPolicy, networkPolicyId).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { } } @Test - public void createHcxActivationKeyTest2() throws Exception { - HcxActivationKey expectedResponse = - HcxActivationKey.newBuilder() - .setName( - HcxActivationKeyName.of( - "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]") - .toString()) + public void updateNetworkPolicyTest() throws Exception { + NetworkPolicy expectedResponse = + NetworkPolicy.newBuilder() + .setName(NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) .setCreateTime(Timestamp.newBuilder().build()) - .setActivationKey("activationKey1757742441") + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) + .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) + .setEdgeServicesCidr("edgeServicesCidr846515023") .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .setVmwareEngineNetworkCanonical( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) .build(); Operation resultOperation = Operation.newBuilder() - .setName("createHcxActivationKeyTest") + .setName("updateNetworkPolicyTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockService.addResponse(resultOperation); - String parent = "projects/project-4854/locations/location-4854/privateClouds/privateCloud-4854"; - HcxActivationKey hcxActivationKey = HcxActivationKey.newBuilder().build(); - String hcxActivationKeyId = "hcxActivationKeyId-645871673"; + NetworkPolicy networkPolicy = + NetworkPolicy.newBuilder() + .setName(NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) + .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) + .setEdgeServicesCidr("edgeServicesCidr846515023") + .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .setVmwareEngineNetworkCanonical( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - HcxActivationKey actualResponse = - client.createHcxActivationKeyAsync(parent, hcxActivationKey, hcxActivationKeyId).get(); + NetworkPolicy actualResponse = client.updateNetworkPolicyAsync(networkPolicy, updateMask).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -2282,41 +5674,52 @@ public void createHcxActivationKeyTest2() throws Exception { } @Test - public void createHcxActivationKeyExceptionTest2() throws Exception { + public void updateNetworkPolicyExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = - "projects/project-4854/locations/location-4854/privateClouds/privateCloud-4854"; - HcxActivationKey hcxActivationKey = HcxActivationKey.newBuilder().build(); - String hcxActivationKeyId = "hcxActivationKeyId-645871673"; - client.createHcxActivationKeyAsync(parent, hcxActivationKey, hcxActivationKeyId).get(); + NetworkPolicy networkPolicy = + NetworkPolicy.newBuilder() + .setName( + NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) + .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) + .setEdgeServicesCidr("edgeServicesCidr846515023") + .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .setVmwareEngineNetworkCanonical( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateNetworkPolicyAsync(networkPolicy, updateMask).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { } } @Test - public void listHcxActivationKeysTest() throws Exception { - HcxActivationKey responsesElement = HcxActivationKey.newBuilder().build(); - ListHcxActivationKeysResponse expectedResponse = - ListHcxActivationKeysResponse.newBuilder() - .setNextPageToken("") - .addAllHcxActivationKeys(Arrays.asList(responsesElement)) + public void deleteNetworkPolicyTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteNetworkPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); - - PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); - - ListHcxActivationKeysPagedResponse pagedListResponse = client.listHcxActivationKeys(parent); + mockService.addResponse(resultOperation); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + NetworkPolicyName name = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getHcxActivationKeysList().get(0), resources.get(0)); + client.deleteNetworkPolicyAsync(name).get(); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -2334,39 +5737,35 @@ public void listHcxActivationKeysTest() throws Exception { } @Test - public void listHcxActivationKeysExceptionTest() throws Exception { + public void deleteNetworkPolicyExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); - client.listHcxActivationKeys(parent); + NetworkPolicyName name = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); + client.deleteNetworkPolicyAsync(name).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } catch (ExecutionException e) { } } @Test - public void listHcxActivationKeysTest2() throws Exception { - HcxActivationKey responsesElement = HcxActivationKey.newBuilder().build(); - ListHcxActivationKeysResponse expectedResponse = - ListHcxActivationKeysResponse.newBuilder() - .setNextPageToken("") - .addAllHcxActivationKeys(Arrays.asList(responsesElement)) + public void deleteNetworkPolicyTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteNetworkPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-4854/locations/location-4854/privateClouds/privateCloud-4854"; - - ListHcxActivationKeysPagedResponse pagedListResponse = client.listHcxActivationKeys(parent); + mockService.addResponse(resultOperation); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + String name = + "projects/project-6412/locations/location-6412/networkPolicies/networkPolicie-6412"; - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getHcxActivationKeysList().get(0), resources.get(0)); + client.deleteNetworkPolicyAsync(name).get(); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -2384,42 +5783,41 @@ public void listHcxActivationKeysTest2() throws Exception { } @Test - public void listHcxActivationKeysExceptionTest2() throws Exception { + public void deleteNetworkPolicyExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = - "projects/project-4854/locations/location-4854/privateClouds/privateCloud-4854"; - client.listHcxActivationKeys(parent); + String name = + "projects/project-6412/locations/location-6412/networkPolicies/networkPolicie-6412"; + client.deleteNetworkPolicyAsync(name).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } catch (ExecutionException e) { } } @Test - public void getHcxActivationKeyTest() throws Exception { - HcxActivationKey expectedResponse = - HcxActivationKey.newBuilder() - .setName( - HcxActivationKeyName.of( - "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]") - .toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setActivationKey("activationKey1757742441") - .setUid("uid115792") + public void listManagementDnsZoneBindingsTest() throws Exception { + ManagementDnsZoneBinding responsesElement = ManagementDnsZoneBinding.newBuilder().build(); + ListManagementDnsZoneBindingsResponse expectedResponse = + ListManagementDnsZoneBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllManagementDnsZoneBindings(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); - HcxActivationKeyName name = - HcxActivationKeyName.of( - "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]"); + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); - HcxActivationKey actualResponse = client.getHcxActivationKey(name); - Assert.assertEquals(expectedResponse, actualResponse); + ListManagementDnsZoneBindingsPagedResponse pagedListResponse = + client.listManagementDnsZoneBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getManagementDnsZoneBindingsList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -2437,17 +5835,15 @@ public void getHcxActivationKeyTest() throws Exception { } @Test - public void getHcxActivationKeyExceptionTest() throws Exception { + public void listManagementDnsZoneBindingsExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - HcxActivationKeyName name = - HcxActivationKeyName.of( - "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]"); - client.getHcxActivationKey(name); + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.listManagementDnsZoneBindings(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2455,24 +5851,25 @@ public void getHcxActivationKeyExceptionTest() throws Exception { } @Test - public void getHcxActivationKeyTest2() throws Exception { - HcxActivationKey expectedResponse = - HcxActivationKey.newBuilder() - .setName( - HcxActivationKeyName.of( - "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]") - .toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setActivationKey("activationKey1757742441") - .setUid("uid115792") + public void listManagementDnsZoneBindingsTest2() throws Exception { + ManagementDnsZoneBinding responsesElement = ManagementDnsZoneBinding.newBuilder().build(); + ListManagementDnsZoneBindingsResponse expectedResponse = + ListManagementDnsZoneBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllManagementDnsZoneBindings(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); - String name = - "projects/project-3178/locations/location-3178/privateClouds/privateCloud-3178/hcxActivationKeys/hcxActivationKey-3178"; + String parent = "projects/project-4854/locations/location-4854/privateClouds/privateCloud-4854"; - HcxActivationKey actualResponse = client.getHcxActivationKey(name); - Assert.assertEquals(expectedResponse, actualResponse); + ListManagementDnsZoneBindingsPagedResponse pagedListResponse = + client.listManagementDnsZoneBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getManagementDnsZoneBindingsList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -2490,46 +5887,45 @@ public void getHcxActivationKeyTest2() throws Exception { } @Test - public void getHcxActivationKeyExceptionTest2() throws Exception { + public void listManagementDnsZoneBindingsExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = - "projects/project-3178/locations/location-3178/privateClouds/privateCloud-3178/hcxActivationKeys/hcxActivationKey-3178"; - client.getHcxActivationKey(name); + String parent = + "projects/project-4854/locations/location-4854/privateClouds/privateCloud-4854"; + client.listManagementDnsZoneBindings(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. } - } - - @Test - public void getNetworkPolicyTest() throws Exception { - NetworkPolicy expectedResponse = - NetworkPolicy.newBuilder() - .setName(NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) - .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) - .setEdgeServicesCidr("edgeServicesCidr846515023") - .setUid("uid115792") - .setVmwareEngineNetwork( - VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + } + + @Test + public void getManagementDnsZoneBindingTest() throws Exception { + ManagementDnsZoneBinding expectedResponse = + ManagementDnsZoneBinding.newBuilder() + .setName( + ManagementDnsZoneBindingName.of( + "[PROJECT]", + "[LOCATION]", + "[PRIVATE_CLOUD]", + "[MANAGEMENT_DNS_ZONE_BINDING]") .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .setDescription("description-1724546052") - .setVmwareEngineNetworkCanonical( - VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") - .toString()) + .setUid("uid115792") .build(); mockService.addResponse(expectedResponse); - NetworkPolicyName name = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); + ManagementDnsZoneBindingName name = + ManagementDnsZoneBindingName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[MANAGEMENT_DNS_ZONE_BINDING]"); - NetworkPolicy actualResponse = client.getNetworkPolicy(name); + ManagementDnsZoneBinding actualResponse = client.getManagementDnsZoneBinding(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -2548,15 +5944,17 @@ public void getNetworkPolicyTest() throws Exception { } @Test - public void getNetworkPolicyExceptionTest() throws Exception { + public void getManagementDnsZoneBindingExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - NetworkPolicyName name = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); - client.getNetworkPolicy(name); + ManagementDnsZoneBindingName name = + ManagementDnsZoneBindingName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[MANAGEMENT_DNS_ZONE_BINDING]"); + client.getManagementDnsZoneBinding(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2564,30 +5962,27 @@ public void getNetworkPolicyExceptionTest() throws Exception { } @Test - public void getNetworkPolicyTest2() throws Exception { - NetworkPolicy expectedResponse = - NetworkPolicy.newBuilder() - .setName(NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) + public void getManagementDnsZoneBindingTest2() throws Exception { + ManagementDnsZoneBinding expectedResponse = + ManagementDnsZoneBinding.newBuilder() + .setName( + ManagementDnsZoneBindingName.of( + "[PROJECT]", + "[LOCATION]", + "[PRIVATE_CLOUD]", + "[MANAGEMENT_DNS_ZONE_BINDING]") + .toString()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) - .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) - .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) - .setEdgeServicesCidr("edgeServicesCidr846515023") - .setUid("uid115792") - .setVmwareEngineNetwork( - VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") - .toString()) .setDescription("description-1724546052") - .setVmwareEngineNetworkCanonical( - VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") - .toString()) + .setUid("uid115792") .build(); mockService.addResponse(expectedResponse); String name = - "projects/project-6412/locations/location-6412/networkPolicies/networkPolicie-6412"; + "projects/project-4541/locations/location-4541/privateClouds/privateCloud-4541/managementDnsZoneBindings/managementDnsZoneBinding-4541"; - NetworkPolicy actualResponse = client.getNetworkPolicy(name); + ManagementDnsZoneBinding actualResponse = client.getManagementDnsZoneBinding(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -2606,7 +6001,7 @@ public void getNetworkPolicyTest2() throws Exception { } @Test - public void getNetworkPolicyExceptionTest2() throws Exception { + public void getManagementDnsZoneBindingExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); @@ -2614,8 +6009,8 @@ public void getNetworkPolicyExceptionTest2() throws Exception { try { String name = - "projects/project-6412/locations/location-6412/networkPolicies/networkPolicie-6412"; - client.getNetworkPolicy(name); + "projects/project-4541/locations/location-4541/privateClouds/privateCloud-4541/managementDnsZoneBindings/managementDnsZoneBinding-4541"; + client.getManagementDnsZoneBinding(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2623,23 +6018,40 @@ public void getNetworkPolicyExceptionTest2() throws Exception { } @Test - public void listNetworkPoliciesTest() throws Exception { - NetworkPolicy responsesElement = NetworkPolicy.newBuilder().build(); - ListNetworkPoliciesResponse expectedResponse = - ListNetworkPoliciesResponse.newBuilder() - .setNextPageToken("") - .addAllNetworkPolicies(Arrays.asList(responsesElement)) + public void createManagementDnsZoneBindingTest() throws Exception { + ManagementDnsZoneBinding expectedResponse = + ManagementDnsZoneBinding.newBuilder() + .setName( + ManagementDnsZoneBindingName.of( + "[PROJECT]", + "[LOCATION]", + "[PRIVATE_CLOUD]", + "[MANAGEMENT_DNS_ZONE_BINDING]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .setUid("uid115792") .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListNetworkPoliciesPagedResponse pagedListResponse = client.listNetworkPolicies(parent); + Operation resultOperation = + Operation.newBuilder() + .setName("createManagementDnsZoneBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + ManagementDnsZoneBinding managementDnsZoneBinding = + ManagementDnsZoneBinding.newBuilder().build(); + String managementDnsZoneBindingId = "managementDnsZoneBindingId-288984082"; - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getNetworkPoliciesList().get(0), resources.get(0)); + ManagementDnsZoneBinding actualResponse = + client + .createManagementDnsZoneBindingAsync( + parent, managementDnsZoneBinding, managementDnsZoneBindingId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -2657,39 +6069,61 @@ public void listNetworkPoliciesTest() throws Exception { } @Test - public void listNetworkPoliciesExceptionTest() throws Exception { + public void createManagementDnsZoneBindingExceptionTest() 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.listNetworkPolicies(parent); + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + ManagementDnsZoneBinding managementDnsZoneBinding = + ManagementDnsZoneBinding.newBuilder().build(); + String managementDnsZoneBindingId = "managementDnsZoneBindingId-288984082"; + client + .createManagementDnsZoneBindingAsync( + parent, managementDnsZoneBinding, managementDnsZoneBindingId) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } catch (ExecutionException e) { } } @Test - public void listNetworkPoliciesTest2() throws Exception { - NetworkPolicy responsesElement = NetworkPolicy.newBuilder().build(); - ListNetworkPoliciesResponse expectedResponse = - ListNetworkPoliciesResponse.newBuilder() - .setNextPageToken("") - .addAllNetworkPolicies(Arrays.asList(responsesElement)) + public void createManagementDnsZoneBindingTest2() throws Exception { + ManagementDnsZoneBinding expectedResponse = + ManagementDnsZoneBinding.newBuilder() + .setName( + ManagementDnsZoneBindingName.of( + "[PROJECT]", + "[LOCATION]", + "[PRIVATE_CLOUD]", + "[MANAGEMENT_DNS_ZONE_BINDING]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .setUid("uid115792") .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - - ListNetworkPoliciesPagedResponse pagedListResponse = client.listNetworkPolicies(parent); + Operation resultOperation = + Operation.newBuilder() + .setName("createManagementDnsZoneBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + String parent = "projects/project-4854/locations/location-4854/privateClouds/privateCloud-4854"; + ManagementDnsZoneBinding managementDnsZoneBinding = + ManagementDnsZoneBinding.newBuilder().build(); + String managementDnsZoneBindingId = "managementDnsZoneBindingId-288984082"; - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getNetworkPoliciesList().get(0), resources.get(0)); + ManagementDnsZoneBinding actualResponse = + client + .createManagementDnsZoneBindingAsync( + parent, managementDnsZoneBinding, managementDnsZoneBindingId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -2707,54 +6141,69 @@ public void listNetworkPoliciesTest2() throws Exception { } @Test - public void listNetworkPoliciesExceptionTest2() throws Exception { + public void createManagementDnsZoneBindingExceptionTest2() 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.listNetworkPolicies(parent); + String parent = + "projects/project-4854/locations/location-4854/privateClouds/privateCloud-4854"; + ManagementDnsZoneBinding managementDnsZoneBinding = + ManagementDnsZoneBinding.newBuilder().build(); + String managementDnsZoneBindingId = "managementDnsZoneBindingId-288984082"; + client + .createManagementDnsZoneBindingAsync( + parent, managementDnsZoneBinding, managementDnsZoneBindingId) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } catch (ExecutionException e) { } } @Test - public void createNetworkPolicyTest() throws Exception { - NetworkPolicy expectedResponse = - NetworkPolicy.newBuilder() - .setName(NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) + public void updateManagementDnsZoneBindingTest() throws Exception { + ManagementDnsZoneBinding expectedResponse = + ManagementDnsZoneBinding.newBuilder() + .setName( + ManagementDnsZoneBindingName.of( + "[PROJECT]", + "[LOCATION]", + "[PRIVATE_CLOUD]", + "[MANAGEMENT_DNS_ZONE_BINDING]") + .toString()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) - .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) - .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) - .setEdgeServicesCidr("edgeServicesCidr846515023") - .setUid("uid115792") - .setVmwareEngineNetwork( - VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") - .toString()) .setDescription("description-1724546052") - .setVmwareEngineNetworkCanonical( - VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") - .toString()) + .setUid("uid115792") .build(); Operation resultOperation = Operation.newBuilder() - .setName("createNetworkPolicyTest") + .setName("updateManagementDnsZoneBindingTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockService.addResponse(resultOperation); - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); - String networkPolicyId = "networkPolicyId-727262661"; + ManagementDnsZoneBinding managementDnsZoneBinding = + ManagementDnsZoneBinding.newBuilder() + .setName( + ManagementDnsZoneBindingName.of( + "[PROJECT]", + "[LOCATION]", + "[PRIVATE_CLOUD]", + "[MANAGEMENT_DNS_ZONE_BINDING]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .setUid("uid115792") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - NetworkPolicy actualResponse = - client.createNetworkPolicyAsync(parent, networkPolicy, networkPolicyId).get(); + ManagementDnsZoneBinding actualResponse = + client.updateManagementDnsZoneBindingAsync(managementDnsZoneBinding, updateMask).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -2773,56 +6222,50 @@ public void createNetworkPolicyTest() throws Exception { } @Test - public void createNetworkPolicyExceptionTest() throws Exception { + public void updateManagementDnsZoneBindingExceptionTest() 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]"); - NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); - String networkPolicyId = "networkPolicyId-727262661"; - client.createNetworkPolicyAsync(parent, networkPolicy, networkPolicyId).get(); + ManagementDnsZoneBinding managementDnsZoneBinding = + ManagementDnsZoneBinding.newBuilder() + .setName( + ManagementDnsZoneBindingName.of( + "[PROJECT]", + "[LOCATION]", + "[PRIVATE_CLOUD]", + "[MANAGEMENT_DNS_ZONE_BINDING]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .setUid("uid115792") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateManagementDnsZoneBindingAsync(managementDnsZoneBinding, updateMask).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { } } @Test - public void createNetworkPolicyTest2() throws Exception { - NetworkPolicy expectedResponse = - NetworkPolicy.newBuilder() - .setName(NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) - .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) - .setEdgeServicesCidr("edgeServicesCidr846515023") - .setUid("uid115792") - .setVmwareEngineNetwork( - VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") - .toString()) - .setDescription("description-1724546052") - .setVmwareEngineNetworkCanonical( - VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") - .toString()) - .build(); + public void deleteManagementDnsZoneBindingTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); Operation resultOperation = Operation.newBuilder() - .setName("createNetworkPolicyTest") + .setName("deleteManagementDnsZoneBindingTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockService.addResponse(resultOperation); - String parent = "projects/project-5833/locations/location-5833"; - NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); - String networkPolicyId = "networkPolicyId-727262661"; + ManagementDnsZoneBindingName name = + ManagementDnsZoneBindingName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[MANAGEMENT_DNS_ZONE_BINDING]"); - NetworkPolicy actualResponse = - client.createNetworkPolicyAsync(parent, networkPolicy, networkPolicyId).get(); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteManagementDnsZoneBindingAsync(name).get(); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -2840,70 +6283,37 @@ public void createNetworkPolicyTest2() throws Exception { } @Test - public void createNetworkPolicyExceptionTest2() throws Exception { + public void deleteManagementDnsZoneBindingExceptionTest() 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"; - NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); - String networkPolicyId = "networkPolicyId-727262661"; - client.createNetworkPolicyAsync(parent, networkPolicy, networkPolicyId).get(); + ManagementDnsZoneBindingName name = + ManagementDnsZoneBindingName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[MANAGEMENT_DNS_ZONE_BINDING]"); + client.deleteManagementDnsZoneBindingAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { } } @Test - public void updateNetworkPolicyTest() throws Exception { - NetworkPolicy expectedResponse = - NetworkPolicy.newBuilder() - .setName(NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) - .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) - .setEdgeServicesCidr("edgeServicesCidr846515023") - .setUid("uid115792") - .setVmwareEngineNetwork( - VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") - .toString()) - .setDescription("description-1724546052") - .setVmwareEngineNetworkCanonical( - VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") - .toString()) - .build(); + public void deleteManagementDnsZoneBindingTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); Operation resultOperation = Operation.newBuilder() - .setName("updateNetworkPolicyTest") + .setName("deleteManagementDnsZoneBindingTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockService.addResponse(resultOperation); - NetworkPolicy networkPolicy = - NetworkPolicy.newBuilder() - .setName(NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) - .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) - .setEdgeServicesCidr("edgeServicesCidr846515023") - .setUid("uid115792") - .setVmwareEngineNetwork( - VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") - .toString()) - .setDescription("description-1724546052") - .setVmwareEngineNetworkCanonical( - VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") - .toString()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + String name = + "projects/project-4541/locations/location-4541/privateClouds/privateCloud-4541/managementDnsZoneBindings/managementDnsZoneBinding-4541"; - NetworkPolicy actualResponse = client.updateNetworkPolicyAsync(networkPolicy, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteManagementDnsZoneBindingAsync(name).get(); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -2921,52 +6331,52 @@ public void updateNetworkPolicyTest() throws Exception { } @Test - public void updateNetworkPolicyExceptionTest() throws Exception { + public void deleteManagementDnsZoneBindingExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - NetworkPolicy networkPolicy = - NetworkPolicy.newBuilder() - .setName( - NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) - .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) - .setEdgeServicesCidr("edgeServicesCidr846515023") - .setUid("uid115792") - .setVmwareEngineNetwork( - VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") - .toString()) - .setDescription("description-1724546052") - .setVmwareEngineNetworkCanonical( - VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") - .toString()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateNetworkPolicyAsync(networkPolicy, updateMask).get(); + String name = + "projects/project-4541/locations/location-4541/privateClouds/privateCloud-4541/managementDnsZoneBindings/managementDnsZoneBinding-4541"; + client.deleteManagementDnsZoneBindingAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { } } @Test - public void deleteNetworkPolicyTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void repairManagementDnsZoneBindingTest() throws Exception { + ManagementDnsZoneBinding expectedResponse = + ManagementDnsZoneBinding.newBuilder() + .setName( + ManagementDnsZoneBindingName.of( + "[PROJECT]", + "[LOCATION]", + "[PRIVATE_CLOUD]", + "[MANAGEMENT_DNS_ZONE_BINDING]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .setUid("uid115792") + .build(); Operation resultOperation = Operation.newBuilder() - .setName("deleteNetworkPolicyTest") + .setName("repairManagementDnsZoneBindingTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockService.addResponse(resultOperation); - NetworkPolicyName name = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); + ManagementDnsZoneBindingName name = + ManagementDnsZoneBindingName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[MANAGEMENT_DNS_ZONE_BINDING]"); - client.deleteNetworkPolicyAsync(name).get(); + ManagementDnsZoneBinding actualResponse = + client.repairManagementDnsZoneBindingAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -2984,35 +6394,52 @@ public void deleteNetworkPolicyTest() throws Exception { } @Test - public void deleteNetworkPolicyExceptionTest() throws Exception { + public void repairManagementDnsZoneBindingExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - NetworkPolicyName name = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); - client.deleteNetworkPolicyAsync(name).get(); + ManagementDnsZoneBindingName name = + ManagementDnsZoneBindingName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[MANAGEMENT_DNS_ZONE_BINDING]"); + client.repairManagementDnsZoneBindingAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { } } @Test - public void deleteNetworkPolicyTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void repairManagementDnsZoneBindingTest2() throws Exception { + ManagementDnsZoneBinding expectedResponse = + ManagementDnsZoneBinding.newBuilder() + .setName( + ManagementDnsZoneBindingName.of( + "[PROJECT]", + "[LOCATION]", + "[PRIVATE_CLOUD]", + "[MANAGEMENT_DNS_ZONE_BINDING]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .setUid("uid115792") + .build(); Operation resultOperation = Operation.newBuilder() - .setName("deleteNetworkPolicyTest") + .setName("repairManagementDnsZoneBindingTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockService.addResponse(resultOperation); String name = - "projects/project-6412/locations/location-6412/networkPolicies/networkPolicie-6412"; + "projects/project-4541/locations/location-4541/privateClouds/privateCloud-4541/managementDnsZoneBindings/managementDnsZoneBinding-4541"; - client.deleteNetworkPolicyAsync(name).get(); + ManagementDnsZoneBinding actualResponse = + client.repairManagementDnsZoneBindingAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -3030,7 +6457,7 @@ public void deleteNetworkPolicyTest2() throws Exception { } @Test - public void deleteNetworkPolicyExceptionTest2() throws Exception { + public void repairManagementDnsZoneBindingExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); @@ -3038,8 +6465,8 @@ public void deleteNetworkPolicyExceptionTest2() throws Exception { try { String name = - "projects/project-6412/locations/location-6412/networkPolicies/networkPolicie-6412"; - client.deleteNetworkPolicyAsync(name).get(); + "projects/project-4541/locations/location-4541/privateClouds/privateCloud-4541/managementDnsZoneBindings/managementDnsZoneBinding-4541"; + client.repairManagementDnsZoneBindingAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { } @@ -4219,6 +7646,304 @@ public void listPrivateConnectionPeeringRoutesExceptionTest2() throws Exception } } + @Test + public void grantDnsBindPermissionTest() throws Exception { + DnsBindPermission expectedResponse = + DnsBindPermission.newBuilder() + .setName(DnsBindPermissionName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllPrincipals(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("grantDnsBindPermissionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + DnsBindPermissionName name = DnsBindPermissionName.of("[PROJECT]", "[LOCATION]"); + Principal principal = Principal.newBuilder().build(); + + DnsBindPermission actualResponse = client.grantDnsBindPermissionAsync(name, principal).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 grantDnsBindPermissionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DnsBindPermissionName name = DnsBindPermissionName.of("[PROJECT]", "[LOCATION]"); + Principal principal = Principal.newBuilder().build(); + client.grantDnsBindPermissionAsync(name, principal).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void grantDnsBindPermissionTest2() throws Exception { + DnsBindPermission expectedResponse = + DnsBindPermission.newBuilder() + .setName(DnsBindPermissionName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllPrincipals(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("grantDnsBindPermissionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-4464/locations/location-4464/dnsBindPermission"; + Principal principal = Principal.newBuilder().build(); + + DnsBindPermission actualResponse = client.grantDnsBindPermissionAsync(name, principal).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 grantDnsBindPermissionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4464/locations/location-4464/dnsBindPermission"; + Principal principal = Principal.newBuilder().build(); + client.grantDnsBindPermissionAsync(name, principal).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getDnsBindPermissionTest() throws Exception { + DnsBindPermission expectedResponse = + DnsBindPermission.newBuilder() + .setName(DnsBindPermissionName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllPrincipals(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + DnsBindPermissionName name = DnsBindPermissionName.of("[PROJECT]", "[LOCATION]"); + + DnsBindPermission actualResponse = client.getDnsBindPermission(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 getDnsBindPermissionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DnsBindPermissionName name = DnsBindPermissionName.of("[PROJECT]", "[LOCATION]"); + client.getDnsBindPermission(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDnsBindPermissionTest2() throws Exception { + DnsBindPermission expectedResponse = + DnsBindPermission.newBuilder() + .setName(DnsBindPermissionName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllPrincipals(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-4464/locations/location-4464/dnsBindPermission"; + + DnsBindPermission actualResponse = client.getDnsBindPermission(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 getDnsBindPermissionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4464/locations/location-4464/dnsBindPermission"; + client.getDnsBindPermission(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void revokeDnsBindPermissionTest() throws Exception { + DnsBindPermission expectedResponse = + DnsBindPermission.newBuilder() + .setName(DnsBindPermissionName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllPrincipals(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("revokeDnsBindPermissionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + DnsBindPermissionName name = DnsBindPermissionName.of("[PROJECT]", "[LOCATION]"); + Principal principal = Principal.newBuilder().build(); + + DnsBindPermission actualResponse = client.revokeDnsBindPermissionAsync(name, principal).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 revokeDnsBindPermissionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DnsBindPermissionName name = DnsBindPermissionName.of("[PROJECT]", "[LOCATION]"); + Principal principal = Principal.newBuilder().build(); + client.revokeDnsBindPermissionAsync(name, principal).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void revokeDnsBindPermissionTest2() throws Exception { + DnsBindPermission expectedResponse = + DnsBindPermission.newBuilder() + .setName(DnsBindPermissionName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllPrincipals(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("revokeDnsBindPermissionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-4464/locations/location-4464/dnsBindPermission"; + Principal principal = Principal.newBuilder().build(); + + DnsBindPermission actualResponse = client.revokeDnsBindPermissionAsync(name, principal).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 revokeDnsBindPermissionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4464/locations/location-4464/dnsBindPermission"; + Principal principal = Principal.newBuilder().build(); + client.revokeDnsBindPermissionAsync(name, principal).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @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 81c3710e9b1f..a1f540baab88 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 @@ -16,11 +16,19 @@ package com.google.cloud.vmwareengine.v1; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.FetchNetworkPolicyExternalAddressesPagedResponse; import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListClustersPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListExternalAccessRulesPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListExternalAddressesPagedResponse; import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListHcxActivationKeysPagedResponse; import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListLocationsPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListLoggingServersPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListManagementDnsZoneBindingsPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNetworkPeeringsPagedResponse; 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.ListNodesPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPeeringRoutesPagedResponse; 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; @@ -818,6 +826,7 @@ public void getClusterTest() throws Exception { .setManagement(true) .setUid("uid115792") .putAllNodeTypeConfigs(new HashMap()) + .setStretchedClusterConfig(StretchedClusterConfig.newBuilder().build()) .build(); mockVmwareEngine.addResponse(expectedResponse); @@ -863,6 +872,7 @@ public void getClusterTest2() throws Exception { .setManagement(true) .setUid("uid115792") .putAllNodeTypeConfigs(new HashMap()) + .setStretchedClusterConfig(StretchedClusterConfig.newBuilder().build()) .build(); mockVmwareEngine.addResponse(expectedResponse); @@ -908,6 +918,7 @@ public void createClusterTest() throws Exception { .setManagement(true) .setUid("uid115792") .putAllNodeTypeConfigs(new HashMap()) + .setStretchedClusterConfig(StretchedClusterConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -967,6 +978,7 @@ public void createClusterTest2() throws Exception { .setManagement(true) .setUid("uid115792") .putAllNodeTypeConfigs(new HashMap()) + .setStretchedClusterConfig(StretchedClusterConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1026,6 +1038,7 @@ public void updateClusterTest() throws Exception { .setManagement(true) .setUid("uid115792") .putAllNodeTypeConfigs(new HashMap()) + .setStretchedClusterConfig(StretchedClusterConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1155,27 +1168,27 @@ public void deleteClusterExceptionTest2() throws Exception { } @Test - public void listSubnetsTest() throws Exception { - Subnet responsesElement = Subnet.newBuilder().build(); - ListSubnetsResponse expectedResponse = - ListSubnetsResponse.newBuilder() + public void listNodesTest() throws Exception { + Node responsesElement = Node.newBuilder().build(); + ListNodesResponse expectedResponse = + ListNodesResponse.newBuilder() .setNextPageToken("") - .addAllSubnets(Arrays.asList(responsesElement)) + .addAllNodes(Arrays.asList(responsesElement)) .build(); mockVmwareEngine.addResponse(expectedResponse); - PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + ClusterName parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]"); - ListSubnetsPagedResponse pagedListResponse = client.listSubnets(parent); + ListNodesPagedResponse pagedListResponse = client.listNodes(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getSubnetsList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getNodesList().get(0), resources.get(0)); List actualRequests = mockVmwareEngine.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListSubnetsRequest actualRequest = ((ListSubnetsRequest) actualRequests.get(0)); + ListNodesRequest actualRequest = ((ListNodesRequest) actualRequests.get(0)); Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( @@ -1185,13 +1198,14 @@ public void listSubnetsTest() throws Exception { } @Test - public void listSubnetsExceptionTest() throws Exception { + public void listNodesExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVmwareEngine.addException(exception); try { - PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); - client.listSubnets(parent); + ClusterName parent = + ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]"); + client.listNodes(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1199,27 +1213,27 @@ public void listSubnetsExceptionTest() throws Exception { } @Test - public void listSubnetsTest2() throws Exception { - Subnet responsesElement = Subnet.newBuilder().build(); - ListSubnetsResponse expectedResponse = - ListSubnetsResponse.newBuilder() + public void listNodesTest2() throws Exception { + Node responsesElement = Node.newBuilder().build(); + ListNodesResponse expectedResponse = + ListNodesResponse.newBuilder() .setNextPageToken("") - .addAllSubnets(Arrays.asList(responsesElement)) + .addAllNodes(Arrays.asList(responsesElement)) .build(); mockVmwareEngine.addResponse(expectedResponse); String parent = "parent-995424086"; - ListSubnetsPagedResponse pagedListResponse = client.listSubnets(parent); + ListNodesPagedResponse pagedListResponse = client.listNodes(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getSubnetsList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getNodesList().get(0), resources.get(0)); List actualRequests = mockVmwareEngine.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListSubnetsRequest actualRequest = ((ListSubnetsRequest) actualRequests.get(0)); + ListNodesRequest actualRequest = ((ListNodesRequest) actualRequests.get(0)); Assert.assertEquals(parent, actualRequest.getParent()); Assert.assertTrue( @@ -1229,13 +1243,13 @@ public void listSubnetsTest2() throws Exception { } @Test - public void listSubnetsExceptionTest2() throws Exception { + public void listNodesExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVmwareEngine.addException(exception); try { String parent = "parent-995424086"; - client.listSubnets(parent); + client.listNodes(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1243,25 +1257,29 @@ public void listSubnetsExceptionTest2() throws Exception { } @Test - public void getSubnetTest() throws Exception { - Subnet expectedResponse = - Subnet.newBuilder() + public void getNodeTest() throws Exception { + Node expectedResponse = + Node.newBuilder() .setName( - SubnetName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[SUBNET]").toString()) - .setIpCidrRange("ipCidrRange-866375486") - .setGatewayIp("gatewayIp-1354641781") - .setType("type3575610") + NodeName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]", "[NODE]") + .toString()) + .setFqdn("fqdn3150485") + .setInternalIp("internalIp-1591143228") + .setNodeTypeId("nodeTypeId1245332119") + .setVersion("version351608024") + .setCustomCoreCount(2091833853) .build(); mockVmwareEngine.addResponse(expectedResponse); - SubnetName name = SubnetName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[SUBNET]"); + NodeName name = + NodeName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]", "[NODE]"); - Subnet actualResponse = client.getSubnet(name); + Node actualResponse = client.getNode(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockVmwareEngine.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetSubnetRequest actualRequest = ((GetSubnetRequest) actualRequests.get(0)); + GetNodeRequest actualRequest = ((GetNodeRequest) actualRequests.get(0)); Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( @@ -1271,13 +1289,14 @@ public void getSubnetTest() throws Exception { } @Test - public void getSubnetExceptionTest() throws Exception { + public void getNodeExceptionTest() 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); + NodeName name = + NodeName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]", "[NODE]"); + client.getNode(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1285,25 +1304,28 @@ public void getSubnetExceptionTest() throws Exception { } @Test - public void getSubnetTest2() throws Exception { - Subnet expectedResponse = - Subnet.newBuilder() + public void getNodeTest2() throws Exception { + Node expectedResponse = + Node.newBuilder() .setName( - SubnetName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[SUBNET]").toString()) - .setIpCidrRange("ipCidrRange-866375486") - .setGatewayIp("gatewayIp-1354641781") - .setType("type3575610") + NodeName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]", "[NODE]") + .toString()) + .setFqdn("fqdn3150485") + .setInternalIp("internalIp-1591143228") + .setNodeTypeId("nodeTypeId1245332119") + .setVersion("version351608024") + .setCustomCoreCount(2091833853) .build(); mockVmwareEngine.addResponse(expectedResponse); String name = "name3373707"; - Subnet actualResponse = client.getSubnet(name); + Node actualResponse = client.getNode(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockVmwareEngine.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetSubnetRequest actualRequest = ((GetSubnetRequest) actualRequests.get(0)); + GetNodeRequest actualRequest = ((GetNodeRequest) actualRequests.get(0)); Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( @@ -1313,13 +1335,13 @@ public void getSubnetTest2() throws Exception { } @Test - public void getSubnetExceptionTest2() throws Exception { + public void getNodeExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVmwareEngine.addException(exception); try { String name = "name3373707"; - client.getSubnet(name); + client.getNode(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1327,35 +1349,30 @@ public void getSubnetExceptionTest2() throws 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)) + public void listExternalAddressesTest() throws Exception { + ExternalAddress responsesElement = ExternalAddress.newBuilder().build(); + ListExternalAddressesResponse expectedResponse = + ListExternalAddressesResponse.newBuilder() + .setNextPageToken("") + .addAllExternalAddresses(Arrays.asList(responsesElement)) .build(); - mockVmwareEngine.addResponse(resultOperation); + mockVmwareEngine.addResponse(expectedResponse); - Subnet subnet = Subnet.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); - Subnet actualResponse = client.updateSubnetAsync(subnet, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); + ListExternalAddressesPagedResponse pagedListResponse = client.listExternalAddresses(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExternalAddressesList().get(0), resources.get(0)); List actualRequests = mockVmwareEngine.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateSubnetRequest actualRequest = ((UpdateSubnetRequest) actualRequests.get(0)); + ListExternalAddressesRequest actualRequest = + ((ListExternalAddressesRequest) actualRequests.get(0)); - Assert.assertEquals(subnet, actualRequest.getSubnet()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1363,46 +1380,44 @@ public void updateSubnetTest() throws Exception { } @Test - public void updateSubnetExceptionTest() throws Exception { + public void listExternalAddressesExceptionTest() 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(); + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.listExternalAddresses(parent); 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()); + } catch (InvalidArgumentException e) { + // Expected exception. } } @Test - public void listNodeTypesTest() throws Exception { - NodeType responsesElement = NodeType.newBuilder().build(); - ListNodeTypesResponse expectedResponse = - ListNodeTypesResponse.newBuilder() + public void listExternalAddressesTest2() throws Exception { + ExternalAddress responsesElement = ExternalAddress.newBuilder().build(); + ListExternalAddressesResponse expectedResponse = + ListExternalAddressesResponse.newBuilder() .setNextPageToken("") - .addAllNodeTypes(Arrays.asList(responsesElement)) + .addAllExternalAddresses(Arrays.asList(responsesElement)) .build(); mockVmwareEngine.addResponse(expectedResponse); - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String parent = "parent-995424086"; - ListNodeTypesPagedResponse pagedListResponse = client.listNodeTypes(parent); + ListExternalAddressesPagedResponse pagedListResponse = client.listExternalAddresses(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getNodeTypesList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getExternalAddressesList().get(0), resources.get(0)); List actualRequests = mockVmwareEngine.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListNodeTypesRequest actualRequest = ((ListNodeTypesRequest) actualRequests.get(0)); + ListExternalAddressesRequest actualRequest = + ((ListExternalAddressesRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(parent, actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1410,13 +1425,13 @@ public void listNodeTypesTest() throws Exception { } @Test - public void listNodeTypesExceptionTest() throws Exception { + public void listExternalAddressesExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVmwareEngine.addException(exception); try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listNodeTypes(parent); + String parent = "parent-995424086"; + client.listExternalAddresses(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1424,29 +1439,32 @@ public void listNodeTypesExceptionTest() throws Exception { } @Test - public void listNodeTypesTest2() throws Exception { - NodeType responsesElement = NodeType.newBuilder().build(); - ListNodeTypesResponse expectedResponse = - ListNodeTypesResponse.newBuilder() + public void fetchNetworkPolicyExternalAddressesTest() throws Exception { + ExternalAddress responsesElement = ExternalAddress.newBuilder().build(); + FetchNetworkPolicyExternalAddressesResponse expectedResponse = + FetchNetworkPolicyExternalAddressesResponse.newBuilder() .setNextPageToken("") - .addAllNodeTypes(Arrays.asList(responsesElement)) + .addAllExternalAddresses(Arrays.asList(responsesElement)) .build(); mockVmwareEngine.addResponse(expectedResponse); - String parent = "parent-995424086"; + NetworkPolicyName networkPolicy = + NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); - ListNodeTypesPagedResponse pagedListResponse = client.listNodeTypes(parent); + FetchNetworkPolicyExternalAddressesPagedResponse pagedListResponse = + client.fetchNetworkPolicyExternalAddresses(networkPolicy); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getNodeTypesList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getExternalAddressesList().get(0), resources.get(0)); List actualRequests = mockVmwareEngine.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListNodeTypesRequest actualRequest = ((ListNodeTypesRequest) actualRequests.get(0)); + FetchNetworkPolicyExternalAddressesRequest actualRequest = + ((FetchNetworkPolicyExternalAddressesRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(networkPolicy.toString(), actualRequest.getNetworkPolicy()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1454,13 +1472,14 @@ public void listNodeTypesTest2() throws Exception { } @Test - public void listNodeTypesExceptionTest2() throws Exception { + public void fetchNetworkPolicyExternalAddressesExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVmwareEngine.addException(exception); try { - String parent = "parent-995424086"; - client.listNodeTypes(parent); + NetworkPolicyName networkPolicy = + NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); + client.fetchNetworkPolicyExternalAddresses(networkPolicy); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1468,30 +1487,31 @@ public void listNodeTypesExceptionTest2() throws Exception { } @Test - public void getNodeTypeTest() throws Exception { - NodeType expectedResponse = - NodeType.newBuilder() - .setName(NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]").toString()) - .setNodeTypeId("nodeTypeId1245332119") - .setDisplayName("displayName1714148973") - .setVirtualCpuCount(289038212) - .setTotalCoreCount(-282953654) - .setMemoryGb(1726613721) - .setDiskSizeGb(-757478089) - .addAllAvailableCustomCoreCounts(new ArrayList()) + public void fetchNetworkPolicyExternalAddressesTest2() throws Exception { + ExternalAddress responsesElement = ExternalAddress.newBuilder().build(); + FetchNetworkPolicyExternalAddressesResponse expectedResponse = + FetchNetworkPolicyExternalAddressesResponse.newBuilder() + .setNextPageToken("") + .addAllExternalAddresses(Arrays.asList(responsesElement)) .build(); mockVmwareEngine.addResponse(expectedResponse); - NodeTypeName name = NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]"); + String networkPolicy = "networkPolicy-1037627136"; - NodeType actualResponse = client.getNodeType(name); - Assert.assertEquals(expectedResponse, actualResponse); + FetchNetworkPolicyExternalAddressesPagedResponse pagedListResponse = + client.fetchNetworkPolicyExternalAddresses(networkPolicy); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExternalAddressesList().get(0), resources.get(0)); List actualRequests = mockVmwareEngine.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetNodeTypeRequest actualRequest = ((GetNodeTypeRequest) actualRequests.get(0)); + FetchNetworkPolicyExternalAddressesRequest actualRequest = + ((FetchNetworkPolicyExternalAddressesRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(networkPolicy, actualRequest.getNetworkPolicy()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1499,13 +1519,13 @@ public void getNodeTypeTest() throws Exception { } @Test - public void getNodeTypeExceptionTest() throws Exception { + public void fetchNetworkPolicyExternalAddressesExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVmwareEngine.addException(exception); try { - NodeTypeName name = NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]"); - client.getNodeType(name); + String networkPolicy = "networkPolicy-1037627136"; + client.fetchNetworkPolicyExternalAddresses(networkPolicy); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1513,30 +1533,33 @@ public void getNodeTypeExceptionTest() throws Exception { } @Test - public void getNodeTypeTest2() throws Exception { - NodeType expectedResponse = - NodeType.newBuilder() - .setName(NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]").toString()) - .setNodeTypeId("nodeTypeId1245332119") - .setDisplayName("displayName1714148973") - .setVirtualCpuCount(289038212) - .setTotalCoreCount(-282953654) - .setMemoryGb(1726613721) - .setDiskSizeGb(-757478089) - .addAllAvailableCustomCoreCounts(new ArrayList()) + public void getExternalAddressTest() throws Exception { + ExternalAddress expectedResponse = + ExternalAddress.newBuilder() + .setName( + ExternalAddressName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalIp("internalIp-1591143228") + .setExternalIp("externalIp-1699764654") + .setUid("uid115792") + .setDescription("description-1724546052") .build(); mockVmwareEngine.addResponse(expectedResponse); - String name = "name3373707"; + ExternalAddressName name = + ExternalAddressName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]"); - NodeType actualResponse = client.getNodeType(name); + ExternalAddress actualResponse = client.getExternalAddress(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockVmwareEngine.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetNodeTypeRequest actualRequest = ((GetNodeTypeRequest) actualRequests.get(0)); + GetExternalAddressRequest actualRequest = ((GetExternalAddressRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1544,13 +1567,15 @@ public void getNodeTypeTest2() throws Exception { } @Test - public void getNodeTypeExceptionTest2() throws Exception { + public void getExternalAddressExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVmwareEngine.addException(exception); try { - String name = "name3373707"; - client.getNodeType(name); + ExternalAddressName name = + ExternalAddressName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]"); + client.getExternalAddress(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1558,25 +1583,32 @@ public void getNodeTypeExceptionTest2() throws Exception { } @Test - public void showNsxCredentialsTest() throws Exception { - Credentials expectedResponse = - Credentials.newBuilder() - .setUsername("username-265713450") - .setPassword("password1216985755") + public void getExternalAddressTest2() throws Exception { + ExternalAddress expectedResponse = + ExternalAddress.newBuilder() + .setName( + ExternalAddressName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalIp("internalIp-1591143228") + .setExternalIp("externalIp-1699764654") + .setUid("uid115792") + .setDescription("description-1724546052") .build(); mockVmwareEngine.addResponse(expectedResponse); - PrivateCloudName privateCloud = - PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + String name = "name3373707"; - Credentials actualResponse = client.showNsxCredentials(privateCloud); + ExternalAddress actualResponse = client.getExternalAddress(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockVmwareEngine.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ShowNsxCredentialsRequest actualRequest = ((ShowNsxCredentialsRequest) actualRequests.get(0)); + GetExternalAddressRequest actualRequest = ((GetExternalAddressRequest) actualRequests.get(0)); - Assert.assertEquals(privateCloud.toString(), actualRequest.getPrivateCloud()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1584,14 +1616,13 @@ public void showNsxCredentialsTest() throws Exception { } @Test - public void showNsxCredentialsExceptionTest() throws Exception { + public void getExternalAddressExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVmwareEngine.addException(exception); try { - PrivateCloudName privateCloud = - PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); - client.showNsxCredentials(privateCloud); + String name = "name3373707"; + client.getExternalAddress(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1599,24 +1630,44 @@ public void showNsxCredentialsExceptionTest() throws Exception { } @Test - public void showNsxCredentialsTest2() throws Exception { - Credentials expectedResponse = - Credentials.newBuilder() - .setUsername("username-265713450") - .setPassword("password1216985755") + public void createExternalAddressTest() throws Exception { + ExternalAddress expectedResponse = + ExternalAddress.newBuilder() + .setName( + ExternalAddressName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalIp("internalIp-1591143228") + .setExternalIp("externalIp-1699764654") + .setUid("uid115792") + .setDescription("description-1724546052") .build(); - mockVmwareEngine.addResponse(expectedResponse); + Operation resultOperation = + Operation.newBuilder() + .setName("createExternalAddressTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); - String privateCloud = "privateCloud974897778"; + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + ExternalAddress externalAddress = ExternalAddress.newBuilder().build(); + String externalAddressId = "externalAddressId221595812"; - Credentials actualResponse = client.showNsxCredentials(privateCloud); + ExternalAddress actualResponse = + client.createExternalAddressAsync(parent, externalAddress, externalAddressId).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockVmwareEngine.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ShowNsxCredentialsRequest actualRequest = ((ShowNsxCredentialsRequest) actualRequests.get(0)); + CreateExternalAddressRequest actualRequest = + ((CreateExternalAddressRequest) actualRequests.get(0)); - Assert.assertEquals(privateCloud, actualRequest.getPrivateCloud()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(externalAddress, actualRequest.getExternalAddress()); + Assert.assertEquals(externalAddressId, actualRequest.getExternalAddressId()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1624,40 +1675,62 @@ public void showNsxCredentialsTest2() throws Exception { } @Test - public void showNsxCredentialsExceptionTest2() throws Exception { + public void createExternalAddressExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVmwareEngine.addException(exception); try { - String privateCloud = "privateCloud974897778"; - client.showNsxCredentials(privateCloud); + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + ExternalAddress externalAddress = ExternalAddress.newBuilder().build(); + String externalAddressId = "externalAddressId221595812"; + client.createExternalAddressAsync(parent, externalAddress, externalAddressId).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } 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 showVcenterCredentialsTest() throws Exception { - Credentials expectedResponse = - Credentials.newBuilder() - .setUsername("username-265713450") - .setPassword("password1216985755") + public void createExternalAddressTest2() throws Exception { + ExternalAddress expectedResponse = + ExternalAddress.newBuilder() + .setName( + ExternalAddressName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalIp("internalIp-1591143228") + .setExternalIp("externalIp-1699764654") + .setUid("uid115792") + .setDescription("description-1724546052") .build(); - mockVmwareEngine.addResponse(expectedResponse); + Operation resultOperation = + Operation.newBuilder() + .setName("createExternalAddressTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); - PrivateCloudName privateCloud = - PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + String parent = "parent-995424086"; + ExternalAddress externalAddress = ExternalAddress.newBuilder().build(); + String externalAddressId = "externalAddressId221595812"; - Credentials actualResponse = client.showVcenterCredentials(privateCloud); + ExternalAddress actualResponse = + client.createExternalAddressAsync(parent, externalAddress, externalAddressId).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockVmwareEngine.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ShowVcenterCredentialsRequest actualRequest = - ((ShowVcenterCredentialsRequest) actualRequests.get(0)); + CreateExternalAddressRequest actualRequest = + ((CreateExternalAddressRequest) actualRequests.get(0)); - Assert.assertEquals(privateCloud.toString(), actualRequest.getPrivateCloud()); + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(externalAddress, actualRequest.getExternalAddress()); + Assert.assertEquals(externalAddressId, actualRequest.getExternalAddressId()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1665,40 +1738,60 @@ public void showVcenterCredentialsTest() throws Exception { } @Test - public void showVcenterCredentialsExceptionTest() throws Exception { + public void createExternalAddressExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVmwareEngine.addException(exception); try { - PrivateCloudName privateCloud = - PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); - client.showVcenterCredentials(privateCloud); + String parent = "parent-995424086"; + ExternalAddress externalAddress = ExternalAddress.newBuilder().build(); + String externalAddressId = "externalAddressId221595812"; + client.createExternalAddressAsync(parent, externalAddress, externalAddressId).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } 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 showVcenterCredentialsTest2() throws Exception { - Credentials expectedResponse = - Credentials.newBuilder() - .setUsername("username-265713450") - .setPassword("password1216985755") + public void updateExternalAddressTest() throws Exception { + ExternalAddress expectedResponse = + ExternalAddress.newBuilder() + .setName( + ExternalAddressName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalIp("internalIp-1591143228") + .setExternalIp("externalIp-1699764654") + .setUid("uid115792") + .setDescription("description-1724546052") .build(); - mockVmwareEngine.addResponse(expectedResponse); + Operation resultOperation = + Operation.newBuilder() + .setName("updateExternalAddressTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); - String privateCloud = "privateCloud974897778"; + ExternalAddress externalAddress = ExternalAddress.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - Credentials actualResponse = client.showVcenterCredentials(privateCloud); + ExternalAddress actualResponse = + client.updateExternalAddressAsync(externalAddress, updateMask).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockVmwareEngine.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ShowVcenterCredentialsRequest actualRequest = - ((ShowVcenterCredentialsRequest) actualRequests.get(0)); + UpdateExternalAddressRequest actualRequest = + ((UpdateExternalAddressRequest) actualRequests.get(0)); - Assert.assertEquals(privateCloud, actualRequest.getPrivateCloud()); + Assert.assertEquals(externalAddress, actualRequest.getExternalAddress()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1706,55 +1799,44 @@ public void showVcenterCredentialsTest2() throws Exception { } @Test - public void showVcenterCredentialsExceptionTest2() throws Exception { + public void updateExternalAddressExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVmwareEngine.addException(exception); try { - String privateCloud = "privateCloud974897778"; - client.showVcenterCredentials(privateCloud); + ExternalAddress externalAddress = ExternalAddress.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateExternalAddressAsync(externalAddress, updateMask).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } 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 resetNsxCredentialsTest() throws Exception { - PrivateCloud expectedResponse = - PrivateCloud.newBuilder() - .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setNetworkConfig(NetworkConfig.newBuilder().build()) - .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) - .setDescription("description-1724546052") - .setHcx(Hcx.newBuilder().build()) - .setNsx(Nsx.newBuilder().build()) - .setVcenter(Vcenter.newBuilder().build()) - .setUid("uid115792") - .build(); + public void deleteExternalAddressTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); Operation resultOperation = Operation.newBuilder() - .setName("resetNsxCredentialsTest") + .setName("deleteExternalAddressTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockVmwareEngine.addResponse(resultOperation); - PrivateCloudName privateCloud = - PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + ExternalAddressName name = + ExternalAddressName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]"); - PrivateCloud actualResponse = client.resetNsxCredentialsAsync(privateCloud).get(); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteExternalAddressAsync(name).get(); List actualRequests = mockVmwareEngine.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ResetNsxCredentialsRequest actualRequest = ((ResetNsxCredentialsRequest) actualRequests.get(0)); + DeleteExternalAddressRequest actualRequest = + ((DeleteExternalAddressRequest) actualRequests.get(0)); - Assert.assertEquals(privateCloud.toString(), actualRequest.getPrivateCloud()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1762,14 +1844,15 @@ public void resetNsxCredentialsTest() throws Exception { } @Test - public void resetNsxCredentialsExceptionTest() throws Exception { + public void deleteExternalAddressExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVmwareEngine.addException(exception); try { - PrivateCloudName privateCloud = - PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); - client.resetNsxCredentialsAsync(privateCloud).get(); + ExternalAddressName name = + ExternalAddressName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]"); + client.deleteExternalAddressAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -1779,40 +1862,26 @@ public void resetNsxCredentialsExceptionTest() throws Exception { } @Test - public void resetNsxCredentialsTest2() throws Exception { - PrivateCloud expectedResponse = - PrivateCloud.newBuilder() - .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setNetworkConfig(NetworkConfig.newBuilder().build()) - .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) - .setDescription("description-1724546052") - .setHcx(Hcx.newBuilder().build()) - .setNsx(Nsx.newBuilder().build()) - .setVcenter(Vcenter.newBuilder().build()) - .setUid("uid115792") - .build(); + public void deleteExternalAddressTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); Operation resultOperation = Operation.newBuilder() - .setName("resetNsxCredentialsTest") + .setName("deleteExternalAddressTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockVmwareEngine.addResponse(resultOperation); - String privateCloud = "privateCloud974897778"; + String name = "name3373707"; - PrivateCloud actualResponse = client.resetNsxCredentialsAsync(privateCloud).get(); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteExternalAddressAsync(name).get(); List actualRequests = mockVmwareEngine.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ResetNsxCredentialsRequest actualRequest = ((ResetNsxCredentialsRequest) actualRequests.get(0)); + DeleteExternalAddressRequest actualRequest = + ((DeleteExternalAddressRequest) actualRequests.get(0)); - Assert.assertEquals(privateCloud, actualRequest.getPrivateCloud()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1820,13 +1889,13 @@ public void resetNsxCredentialsTest2() throws Exception { } @Test - public void resetNsxCredentialsExceptionTest2() throws Exception { + public void deleteExternalAddressExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVmwareEngine.addException(exception); try { - String privateCloud = "privateCloud974897778"; - client.resetNsxCredentialsAsync(privateCloud).get(); + String name = "name3373707"; + client.deleteExternalAddressAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -1836,42 +1905,116 @@ public void resetNsxCredentialsExceptionTest2() throws Exception { } @Test - public void resetVcenterCredentialsTest() throws Exception { - PrivateCloud expectedResponse = - PrivateCloud.newBuilder() - .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setNetworkConfig(NetworkConfig.newBuilder().build()) - .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) - .setDescription("description-1724546052") - .setHcx(Hcx.newBuilder().build()) - .setNsx(Nsx.newBuilder().build()) - .setVcenter(Vcenter.newBuilder().build()) - .setUid("uid115792") + public void listSubnetsTest() throws Exception { + Subnet responsesElement = Subnet.newBuilder().build(); + ListSubnetsResponse expectedResponse = + ListSubnetsResponse.newBuilder() + .setNextPageToken("") + .addAllSubnets(Arrays.asList(responsesElement)) .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("resetVcenterCredentialsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) + mockVmwareEngine.addResponse(expectedResponse); + + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + ListSubnetsPagedResponse pagedListResponse = client.listSubnets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSubnetsList().get(0), resources.get(0)); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSubnetsRequest actualRequest = ((ListSubnetsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSubnetsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.listSubnets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSubnetsTest2() throws Exception { + Subnet responsesElement = Subnet.newBuilder().build(); + ListSubnetsResponse expectedResponse = + ListSubnetsResponse.newBuilder() + .setNextPageToken("") + .addAllSubnets(Arrays.asList(responsesElement)) .build(); - mockVmwareEngine.addResponse(resultOperation); + mockVmwareEngine.addResponse(expectedResponse); - PrivateCloudName privateCloud = - PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + String parent = "parent-995424086"; - PrivateCloud actualResponse = client.resetVcenterCredentialsAsync(privateCloud).get(); + ListSubnetsPagedResponse pagedListResponse = client.listSubnets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSubnetsList().get(0), resources.get(0)); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSubnetsRequest actualRequest = ((ListSubnetsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSubnetsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String parent = "parent-995424086"; + client.listSubnets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected 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") + .setVlanId(536153463) + .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()); - ResetVcenterCredentialsRequest actualRequest = - ((ResetVcenterCredentialsRequest) actualRequests.get(0)); + GetSubnetRequest actualRequest = ((GetSubnetRequest) actualRequests.get(0)); - Assert.assertEquals(privateCloud.toString(), actualRequest.getPrivateCloud()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1879,58 +2022,2882 @@ public void resetVcenterCredentialsTest() throws Exception { } @Test - public void resetVcenterCredentialsExceptionTest() throws Exception { + public void getSubnetExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVmwareEngine.addException(exception); try { - PrivateCloudName privateCloud = - PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); - client.resetVcenterCredentialsAsync(privateCloud).get(); + SubnetName name = SubnetName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[SUBNET]"); + client.getSubnet(name); 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()); + } 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") + .setVlanId(536153463) + .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") + .setVlanId(536153463) + .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 listExternalAccessRulesTest() throws Exception { + ExternalAccessRule responsesElement = ExternalAccessRule.newBuilder().build(); + ListExternalAccessRulesResponse expectedResponse = + ListExternalAccessRulesResponse.newBuilder() + .setNextPageToken("") + .addAllExternalAccessRules(Arrays.asList(responsesElement)) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + NetworkPolicyName parent = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); + + ListExternalAccessRulesPagedResponse pagedListResponse = client.listExternalAccessRules(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExternalAccessRulesList().get(0), resources.get(0)); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListExternalAccessRulesRequest actualRequest = + ((ListExternalAccessRulesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listExternalAccessRulesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + NetworkPolicyName parent = + NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); + client.listExternalAccessRules(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listExternalAccessRulesTest2() throws Exception { + ExternalAccessRule responsesElement = ExternalAccessRule.newBuilder().build(); + ListExternalAccessRulesResponse expectedResponse = + ListExternalAccessRulesResponse.newBuilder() + .setNextPageToken("") + .addAllExternalAccessRules(Arrays.asList(responsesElement)) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListExternalAccessRulesPagedResponse pagedListResponse = client.listExternalAccessRules(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExternalAccessRulesList().get(0), resources.get(0)); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListExternalAccessRulesRequest actualRequest = + ((ListExternalAccessRulesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listExternalAccessRulesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String parent = "parent-995424086"; + client.listExternalAccessRules(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getExternalAccessRuleTest() throws Exception { + ExternalAccessRule expectedResponse = + ExternalAccessRule.newBuilder() + .setName( + ExternalAccessRuleName.of( + "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .setPriority(-1165461084) + .setIpProtocol("ipProtocol-655038241") + .addAllSourceIpRanges(new ArrayList()) + .addAllSourcePorts(new ArrayList()) + .addAllDestinationIpRanges(new ArrayList()) + .addAllDestinationPorts(new ArrayList()) + .setUid("uid115792") + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + ExternalAccessRuleName name = + ExternalAccessRuleName.of( + "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]"); + + ExternalAccessRule actualResponse = client.getExternalAccessRule(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetExternalAccessRuleRequest actualRequest = + ((GetExternalAccessRuleRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getExternalAccessRuleExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + ExternalAccessRuleName name = + ExternalAccessRuleName.of( + "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]"); + client.getExternalAccessRule(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getExternalAccessRuleTest2() throws Exception { + ExternalAccessRule expectedResponse = + ExternalAccessRule.newBuilder() + .setName( + ExternalAccessRuleName.of( + "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .setPriority(-1165461084) + .setIpProtocol("ipProtocol-655038241") + .addAllSourceIpRanges(new ArrayList()) + .addAllSourcePorts(new ArrayList()) + .addAllDestinationIpRanges(new ArrayList()) + .addAllDestinationPorts(new ArrayList()) + .setUid("uid115792") + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + String name = "name3373707"; + + ExternalAccessRule actualResponse = client.getExternalAccessRule(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetExternalAccessRuleRequest actualRequest = + ((GetExternalAccessRuleRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getExternalAccessRuleExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String name = "name3373707"; + client.getExternalAccessRule(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createExternalAccessRuleTest() throws Exception { + ExternalAccessRule expectedResponse = + ExternalAccessRule.newBuilder() + .setName( + ExternalAccessRuleName.of( + "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .setPriority(-1165461084) + .setIpProtocol("ipProtocol-655038241") + .addAllSourceIpRanges(new ArrayList()) + .addAllSourcePorts(new ArrayList()) + .addAllDestinationIpRanges(new ArrayList()) + .addAllDestinationPorts(new ArrayList()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createExternalAccessRuleTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + NetworkPolicyName parent = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); + ExternalAccessRule externalAccessRule = ExternalAccessRule.newBuilder().build(); + String externalAccessRuleId = "externalAccessRuleId1937389350"; + + ExternalAccessRule actualResponse = + client + .createExternalAccessRuleAsync(parent, externalAccessRule, externalAccessRuleId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateExternalAccessRuleRequest actualRequest = + ((CreateExternalAccessRuleRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(externalAccessRule, actualRequest.getExternalAccessRule()); + Assert.assertEquals(externalAccessRuleId, actualRequest.getExternalAccessRuleId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createExternalAccessRuleExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + NetworkPolicyName parent = + NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); + ExternalAccessRule externalAccessRule = ExternalAccessRule.newBuilder().build(); + String externalAccessRuleId = "externalAccessRuleId1937389350"; + client.createExternalAccessRuleAsync(parent, externalAccessRule, externalAccessRuleId).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 createExternalAccessRuleTest2() throws Exception { + ExternalAccessRule expectedResponse = + ExternalAccessRule.newBuilder() + .setName( + ExternalAccessRuleName.of( + "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .setPriority(-1165461084) + .setIpProtocol("ipProtocol-655038241") + .addAllSourceIpRanges(new ArrayList()) + .addAllSourcePorts(new ArrayList()) + .addAllDestinationIpRanges(new ArrayList()) + .addAllDestinationPorts(new ArrayList()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createExternalAccessRuleTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + String parent = "parent-995424086"; + ExternalAccessRule externalAccessRule = ExternalAccessRule.newBuilder().build(); + String externalAccessRuleId = "externalAccessRuleId1937389350"; + + ExternalAccessRule actualResponse = + client + .createExternalAccessRuleAsync(parent, externalAccessRule, externalAccessRuleId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateExternalAccessRuleRequest actualRequest = + ((CreateExternalAccessRuleRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(externalAccessRule, actualRequest.getExternalAccessRule()); + Assert.assertEquals(externalAccessRuleId, actualRequest.getExternalAccessRuleId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createExternalAccessRuleExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String parent = "parent-995424086"; + ExternalAccessRule externalAccessRule = ExternalAccessRule.newBuilder().build(); + String externalAccessRuleId = "externalAccessRuleId1937389350"; + client.createExternalAccessRuleAsync(parent, externalAccessRule, externalAccessRuleId).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 updateExternalAccessRuleTest() throws Exception { + ExternalAccessRule expectedResponse = + ExternalAccessRule.newBuilder() + .setName( + ExternalAccessRuleName.of( + "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .setPriority(-1165461084) + .setIpProtocol("ipProtocol-655038241") + .addAllSourceIpRanges(new ArrayList()) + .addAllSourcePorts(new ArrayList()) + .addAllDestinationIpRanges(new ArrayList()) + .addAllDestinationPorts(new ArrayList()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateExternalAccessRuleTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + ExternalAccessRule externalAccessRule = ExternalAccessRule.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ExternalAccessRule actualResponse = + client.updateExternalAccessRuleAsync(externalAccessRule, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateExternalAccessRuleRequest actualRequest = + ((UpdateExternalAccessRuleRequest) actualRequests.get(0)); + + Assert.assertEquals(externalAccessRule, actualRequest.getExternalAccessRule()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateExternalAccessRuleExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + ExternalAccessRule externalAccessRule = ExternalAccessRule.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateExternalAccessRuleAsync(externalAccessRule, 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 deleteExternalAccessRuleTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteExternalAccessRuleTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + ExternalAccessRuleName name = + ExternalAccessRuleName.of( + "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]"); + + client.deleteExternalAccessRuleAsync(name).get(); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteExternalAccessRuleRequest actualRequest = + ((DeleteExternalAccessRuleRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteExternalAccessRuleExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + ExternalAccessRuleName name = + ExternalAccessRuleName.of( + "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]"); + client.deleteExternalAccessRuleAsync(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 deleteExternalAccessRuleTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteExternalAccessRuleTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteExternalAccessRuleAsync(name).get(); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteExternalAccessRuleRequest actualRequest = + ((DeleteExternalAccessRuleRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteExternalAccessRuleExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String name = "name3373707"; + client.deleteExternalAccessRuleAsync(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 listLoggingServersTest() throws Exception { + LoggingServer responsesElement = LoggingServer.newBuilder().build(); + ListLoggingServersResponse expectedResponse = + ListLoggingServersResponse.newBuilder() + .setNextPageToken("") + .addAllLoggingServers(Arrays.asList(responsesElement)) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + ListLoggingServersPagedResponse pagedListResponse = client.listLoggingServers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLoggingServersList().get(0), resources.get(0)); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLoggingServersRequest actualRequest = ((ListLoggingServersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLoggingServersExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.listLoggingServers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLoggingServersTest2() throws Exception { + LoggingServer responsesElement = LoggingServer.newBuilder().build(); + ListLoggingServersResponse expectedResponse = + ListLoggingServersResponse.newBuilder() + .setNextPageToken("") + .addAllLoggingServers(Arrays.asList(responsesElement)) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListLoggingServersPagedResponse pagedListResponse = client.listLoggingServers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLoggingServersList().get(0), resources.get(0)); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLoggingServersRequest actualRequest = ((ListLoggingServersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLoggingServersExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String parent = "parent-995424086"; + client.listLoggingServers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLoggingServerTest() throws Exception { + LoggingServer expectedResponse = + LoggingServer.newBuilder() + .setName( + LoggingServerName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setHostname("hostname-299803597") + .setPort(3446913) + .setUid("uid115792") + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + LoggingServerName name = + LoggingServerName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]"); + + LoggingServer actualResponse = client.getLoggingServer(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLoggingServerRequest actualRequest = ((GetLoggingServerRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLoggingServerExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + LoggingServerName name = + LoggingServerName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]"); + client.getLoggingServer(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLoggingServerTest2() throws Exception { + LoggingServer expectedResponse = + LoggingServer.newBuilder() + .setName( + LoggingServerName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setHostname("hostname-299803597") + .setPort(3446913) + .setUid("uid115792") + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + String name = "name3373707"; + + LoggingServer actualResponse = client.getLoggingServer(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLoggingServerRequest actualRequest = ((GetLoggingServerRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLoggingServerExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String name = "name3373707"; + client.getLoggingServer(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createLoggingServerTest() throws Exception { + LoggingServer expectedResponse = + LoggingServer.newBuilder() + .setName( + LoggingServerName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setHostname("hostname-299803597") + .setPort(3446913) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createLoggingServerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + LoggingServer loggingServer = LoggingServer.newBuilder().build(); + String loggingServerId = "loggingServerId-304163779"; + + LoggingServer actualResponse = + client.createLoggingServerAsync(parent, loggingServer, loggingServerId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateLoggingServerRequest actualRequest = ((CreateLoggingServerRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(loggingServer, actualRequest.getLoggingServer()); + Assert.assertEquals(loggingServerId, actualRequest.getLoggingServerId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createLoggingServerExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + LoggingServer loggingServer = LoggingServer.newBuilder().build(); + String loggingServerId = "loggingServerId-304163779"; + client.createLoggingServerAsync(parent, loggingServer, loggingServerId).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 createLoggingServerTest2() throws Exception { + LoggingServer expectedResponse = + LoggingServer.newBuilder() + .setName( + LoggingServerName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setHostname("hostname-299803597") + .setPort(3446913) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createLoggingServerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + String parent = "parent-995424086"; + LoggingServer loggingServer = LoggingServer.newBuilder().build(); + String loggingServerId = "loggingServerId-304163779"; + + LoggingServer actualResponse = + client.createLoggingServerAsync(parent, loggingServer, loggingServerId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateLoggingServerRequest actualRequest = ((CreateLoggingServerRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(loggingServer, actualRequest.getLoggingServer()); + Assert.assertEquals(loggingServerId, actualRequest.getLoggingServerId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createLoggingServerExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String parent = "parent-995424086"; + LoggingServer loggingServer = LoggingServer.newBuilder().build(); + String loggingServerId = "loggingServerId-304163779"; + client.createLoggingServerAsync(parent, loggingServer, loggingServerId).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 updateLoggingServerTest() throws Exception { + LoggingServer expectedResponse = + LoggingServer.newBuilder() + .setName( + LoggingServerName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setHostname("hostname-299803597") + .setPort(3446913) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateLoggingServerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + LoggingServer loggingServer = LoggingServer.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + LoggingServer actualResponse = client.updateLoggingServerAsync(loggingServer, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateLoggingServerRequest actualRequest = ((UpdateLoggingServerRequest) actualRequests.get(0)); + + Assert.assertEquals(loggingServer, actualRequest.getLoggingServer()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateLoggingServerExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + LoggingServer loggingServer = LoggingServer.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateLoggingServerAsync(loggingServer, 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 deleteLoggingServerTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteLoggingServerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + LoggingServerName name = + LoggingServerName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]"); + + client.deleteLoggingServerAsync(name).get(); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteLoggingServerRequest actualRequest = ((DeleteLoggingServerRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteLoggingServerExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + LoggingServerName name = + LoggingServerName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]"); + client.deleteLoggingServerAsync(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 deleteLoggingServerTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteLoggingServerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteLoggingServerAsync(name).get(); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteLoggingServerRequest actualRequest = ((DeleteLoggingServerRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteLoggingServerExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String name = "name3373707"; + client.deleteLoggingServerAsync(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 listNodeTypesTest() throws Exception { + NodeType responsesElement = NodeType.newBuilder().build(); + ListNodeTypesResponse expectedResponse = + ListNodeTypesResponse.newBuilder() + .setNextPageToken("") + .addAllNodeTypes(Arrays.asList(responsesElement)) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListNodeTypesPagedResponse pagedListResponse = client.listNodeTypes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getNodeTypesList().get(0), resources.get(0)); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListNodeTypesRequest actualRequest = ((ListNodeTypesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listNodeTypesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listNodeTypes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listNodeTypesTest2() throws Exception { + NodeType responsesElement = NodeType.newBuilder().build(); + ListNodeTypesResponse expectedResponse = + ListNodeTypesResponse.newBuilder() + .setNextPageToken("") + .addAllNodeTypes(Arrays.asList(responsesElement)) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListNodeTypesPagedResponse pagedListResponse = client.listNodeTypes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getNodeTypesList().get(0), resources.get(0)); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListNodeTypesRequest actualRequest = ((ListNodeTypesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listNodeTypesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String parent = "parent-995424086"; + client.listNodeTypes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getNodeTypeTest() throws Exception { + NodeType expectedResponse = + NodeType.newBuilder() + .setName(NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]").toString()) + .setNodeTypeId("nodeTypeId1245332119") + .setDisplayName("displayName1714148973") + .setVirtualCpuCount(289038212) + .setTotalCoreCount(-282953654) + .setMemoryGb(1726613721) + .setDiskSizeGb(-757478089) + .addAllAvailableCustomCoreCounts(new ArrayList()) + .addAllFamilies(new ArrayList()) + .addAllCapabilities(new ArrayList()) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + NodeTypeName name = NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]"); + + NodeType actualResponse = client.getNodeType(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetNodeTypeRequest actualRequest = ((GetNodeTypeRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getNodeTypeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + NodeTypeName name = NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]"); + client.getNodeType(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getNodeTypeTest2() throws Exception { + NodeType expectedResponse = + NodeType.newBuilder() + .setName(NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]").toString()) + .setNodeTypeId("nodeTypeId1245332119") + .setDisplayName("displayName1714148973") + .setVirtualCpuCount(289038212) + .setTotalCoreCount(-282953654) + .setMemoryGb(1726613721) + .setDiskSizeGb(-757478089) + .addAllAvailableCustomCoreCounts(new ArrayList()) + .addAllFamilies(new ArrayList()) + .addAllCapabilities(new ArrayList()) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + String name = "name3373707"; + + NodeType actualResponse = client.getNodeType(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetNodeTypeRequest actualRequest = ((GetNodeTypeRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getNodeTypeExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String name = "name3373707"; + client.getNodeType(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void showNsxCredentialsTest() throws Exception { + Credentials expectedResponse = + Credentials.newBuilder() + .setUsername("username-265713450") + .setPassword("password1216985755") + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + PrivateCloudName privateCloud = + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + Credentials actualResponse = client.showNsxCredentials(privateCloud); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ShowNsxCredentialsRequest actualRequest = ((ShowNsxCredentialsRequest) actualRequests.get(0)); + + Assert.assertEquals(privateCloud.toString(), actualRequest.getPrivateCloud()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void showNsxCredentialsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + PrivateCloudName privateCloud = + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.showNsxCredentials(privateCloud); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void showNsxCredentialsTest2() throws Exception { + Credentials expectedResponse = + Credentials.newBuilder() + .setUsername("username-265713450") + .setPassword("password1216985755") + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + String privateCloud = "privateCloud974897778"; + + Credentials actualResponse = client.showNsxCredentials(privateCloud); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ShowNsxCredentialsRequest actualRequest = ((ShowNsxCredentialsRequest) actualRequests.get(0)); + + Assert.assertEquals(privateCloud, actualRequest.getPrivateCloud()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void showNsxCredentialsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String privateCloud = "privateCloud974897778"; + client.showNsxCredentials(privateCloud); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void showVcenterCredentialsTest() throws Exception { + Credentials expectedResponse = + Credentials.newBuilder() + .setUsername("username-265713450") + .setPassword("password1216985755") + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + PrivateCloudName privateCloud = + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + Credentials actualResponse = client.showVcenterCredentials(privateCloud); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ShowVcenterCredentialsRequest actualRequest = + ((ShowVcenterCredentialsRequest) actualRequests.get(0)); + + Assert.assertEquals(privateCloud.toString(), actualRequest.getPrivateCloud()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void showVcenterCredentialsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + PrivateCloudName privateCloud = + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.showVcenterCredentials(privateCloud); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void showVcenterCredentialsTest2() throws Exception { + Credentials expectedResponse = + Credentials.newBuilder() + .setUsername("username-265713450") + .setPassword("password1216985755") + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + String privateCloud = "privateCloud974897778"; + + Credentials actualResponse = client.showVcenterCredentials(privateCloud); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ShowVcenterCredentialsRequest actualRequest = + ((ShowVcenterCredentialsRequest) actualRequests.get(0)); + + Assert.assertEquals(privateCloud, actualRequest.getPrivateCloud()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void showVcenterCredentialsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String privateCloud = "privateCloud974897778"; + client.showVcenterCredentials(privateCloud); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void resetNsxCredentialsTest() throws Exception { + PrivateCloud expectedResponse = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("resetNsxCredentialsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + PrivateCloudName privateCloud = + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + PrivateCloud actualResponse = client.resetNsxCredentialsAsync(privateCloud).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ResetNsxCredentialsRequest actualRequest = ((ResetNsxCredentialsRequest) actualRequests.get(0)); + + Assert.assertEquals(privateCloud.toString(), actualRequest.getPrivateCloud()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void resetNsxCredentialsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + PrivateCloudName privateCloud = + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.resetNsxCredentialsAsync(privateCloud).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 resetNsxCredentialsTest2() throws Exception { + PrivateCloud expectedResponse = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("resetNsxCredentialsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + String privateCloud = "privateCloud974897778"; + + PrivateCloud actualResponse = client.resetNsxCredentialsAsync(privateCloud).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ResetNsxCredentialsRequest actualRequest = ((ResetNsxCredentialsRequest) actualRequests.get(0)); + + Assert.assertEquals(privateCloud, actualRequest.getPrivateCloud()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void resetNsxCredentialsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String privateCloud = "privateCloud974897778"; + client.resetNsxCredentialsAsync(privateCloud).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 resetVcenterCredentialsTest() throws Exception { + PrivateCloud expectedResponse = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("resetVcenterCredentialsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + PrivateCloudName privateCloud = + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + PrivateCloud actualResponse = client.resetVcenterCredentialsAsync(privateCloud).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ResetVcenterCredentialsRequest actualRequest = + ((ResetVcenterCredentialsRequest) actualRequests.get(0)); + + Assert.assertEquals(privateCloud.toString(), actualRequest.getPrivateCloud()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void resetVcenterCredentialsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + PrivateCloudName privateCloud = + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.resetVcenterCredentialsAsync(privateCloud).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 resetVcenterCredentialsTest2() throws Exception { + PrivateCloud expectedResponse = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("resetVcenterCredentialsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + String privateCloud = "privateCloud974897778"; + + PrivateCloud actualResponse = client.resetVcenterCredentialsAsync(privateCloud).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ResetVcenterCredentialsRequest actualRequest = + ((ResetVcenterCredentialsRequest) actualRequests.get(0)); + + Assert.assertEquals(privateCloud, actualRequest.getPrivateCloud()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void resetVcenterCredentialsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String privateCloud = "privateCloud974897778"; + client.resetVcenterCredentialsAsync(privateCloud).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 getDnsForwardingTest() throws Exception { + DnsForwarding expectedResponse = + DnsForwarding.newBuilder() + .setName(DnsForwardingName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllForwardingRules(new ArrayList()) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + DnsForwardingName name = DnsForwardingName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + DnsForwarding actualResponse = client.getDnsForwarding(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDnsForwardingRequest actualRequest = ((GetDnsForwardingRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDnsForwardingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + DnsForwardingName name = DnsForwardingName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.getDnsForwarding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDnsForwardingTest2() throws Exception { + DnsForwarding expectedResponse = + DnsForwarding.newBuilder() + .setName(DnsForwardingName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllForwardingRules(new ArrayList()) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + String name = "name3373707"; + + DnsForwarding actualResponse = client.getDnsForwarding(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDnsForwardingRequest actualRequest = ((GetDnsForwardingRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDnsForwardingExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String name = "name3373707"; + client.getDnsForwarding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateDnsForwardingTest() throws Exception { + DnsForwarding expectedResponse = + DnsForwarding.newBuilder() + .setName(DnsForwardingName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllForwardingRules(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateDnsForwardingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + DnsForwarding dnsForwarding = DnsForwarding.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + DnsForwarding actualResponse = client.updateDnsForwardingAsync(dnsForwarding, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateDnsForwardingRequest actualRequest = ((UpdateDnsForwardingRequest) actualRequests.get(0)); + + Assert.assertEquals(dnsForwarding, actualRequest.getDnsForwarding()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateDnsForwardingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + DnsForwarding dnsForwarding = DnsForwarding.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDnsForwardingAsync(dnsForwarding, 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 getNetworkPeeringTest() throws Exception { + NetworkPeering expectedResponse = + NetworkPeering.newBuilder() + .setName( + NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setPeerNetwork("peerNetwork392662636") + .setExportCustomRoutes(true) + .setImportCustomRoutes(true) + .setExchangeSubnetRoutes(true) + .setExportCustomRoutesWithPublicIp(true) + .setImportCustomRoutesWithPublicIp(true) + .setStateDetails("stateDetails1730982001") + .setPeerMtu(69584721) + .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + NetworkPeeringName name = NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]"); + + NetworkPeering actualResponse = client.getNetworkPeering(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetNetworkPeeringRequest actualRequest = ((GetNetworkPeeringRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getNetworkPeeringExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + NetworkPeeringName name = + NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]"); + client.getNetworkPeering(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getNetworkPeeringTest2() throws Exception { + NetworkPeering expectedResponse = + NetworkPeering.newBuilder() + .setName( + NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setPeerNetwork("peerNetwork392662636") + .setExportCustomRoutes(true) + .setImportCustomRoutes(true) + .setExchangeSubnetRoutes(true) + .setExportCustomRoutesWithPublicIp(true) + .setImportCustomRoutesWithPublicIp(true) + .setStateDetails("stateDetails1730982001") + .setPeerMtu(69584721) + .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + String name = "name3373707"; + + NetworkPeering actualResponse = client.getNetworkPeering(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetNetworkPeeringRequest actualRequest = ((GetNetworkPeeringRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getNetworkPeeringExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String name = "name3373707"; + client.getNetworkPeering(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listNetworkPeeringsTest() throws Exception { + NetworkPeering responsesElement = NetworkPeering.newBuilder().build(); + ListNetworkPeeringsResponse expectedResponse = + ListNetworkPeeringsResponse.newBuilder() + .setNextPageToken("") + .addAllNetworkPeerings(Arrays.asList(responsesElement)) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListNetworkPeeringsPagedResponse pagedListResponse = client.listNetworkPeerings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getNetworkPeeringsList().get(0), resources.get(0)); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListNetworkPeeringsRequest actualRequest = ((ListNetworkPeeringsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listNetworkPeeringsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listNetworkPeerings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listNetworkPeeringsTest2() throws Exception { + NetworkPeering responsesElement = NetworkPeering.newBuilder().build(); + ListNetworkPeeringsResponse expectedResponse = + ListNetworkPeeringsResponse.newBuilder() + .setNextPageToken("") + .addAllNetworkPeerings(Arrays.asList(responsesElement)) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListNetworkPeeringsPagedResponse pagedListResponse = client.listNetworkPeerings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getNetworkPeeringsList().get(0), resources.get(0)); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListNetworkPeeringsRequest actualRequest = ((ListNetworkPeeringsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listNetworkPeeringsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String parent = "parent-995424086"; + client.listNetworkPeerings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createNetworkPeeringTest() throws Exception { + NetworkPeering expectedResponse = + NetworkPeering.newBuilder() + .setName( + NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setPeerNetwork("peerNetwork392662636") + .setExportCustomRoutes(true) + .setImportCustomRoutes(true) + .setExchangeSubnetRoutes(true) + .setExportCustomRoutesWithPublicIp(true) + .setImportCustomRoutesWithPublicIp(true) + .setStateDetails("stateDetails1730982001") + .setPeerMtu(69584721) + .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createNetworkPeeringTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + NetworkPeering networkPeering = NetworkPeering.newBuilder().build(); + String networkPeeringId = "networkPeeringId1321772525"; + + NetworkPeering actualResponse = + client.createNetworkPeeringAsync(parent, networkPeering, networkPeeringId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateNetworkPeeringRequest actualRequest = + ((CreateNetworkPeeringRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(networkPeering, actualRequest.getNetworkPeering()); + Assert.assertEquals(networkPeeringId, actualRequest.getNetworkPeeringId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createNetworkPeeringExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + NetworkPeering networkPeering = NetworkPeering.newBuilder().build(); + String networkPeeringId = "networkPeeringId1321772525"; + client.createNetworkPeeringAsync(parent, networkPeering, networkPeeringId).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 createNetworkPeeringTest2() throws Exception { + NetworkPeering expectedResponse = + NetworkPeering.newBuilder() + .setName( + NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setPeerNetwork("peerNetwork392662636") + .setExportCustomRoutes(true) + .setImportCustomRoutes(true) + .setExchangeSubnetRoutes(true) + .setExportCustomRoutesWithPublicIp(true) + .setImportCustomRoutesWithPublicIp(true) + .setStateDetails("stateDetails1730982001") + .setPeerMtu(69584721) + .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createNetworkPeeringTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + String parent = "parent-995424086"; + NetworkPeering networkPeering = NetworkPeering.newBuilder().build(); + String networkPeeringId = "networkPeeringId1321772525"; + + NetworkPeering actualResponse = + client.createNetworkPeeringAsync(parent, networkPeering, networkPeeringId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateNetworkPeeringRequest actualRequest = + ((CreateNetworkPeeringRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(networkPeering, actualRequest.getNetworkPeering()); + Assert.assertEquals(networkPeeringId, actualRequest.getNetworkPeeringId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createNetworkPeeringExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String parent = "parent-995424086"; + NetworkPeering networkPeering = NetworkPeering.newBuilder().build(); + String networkPeeringId = "networkPeeringId1321772525"; + client.createNetworkPeeringAsync(parent, networkPeering, networkPeeringId).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 deleteNetworkPeeringTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteNetworkPeeringTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + NetworkPeeringName name = NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]"); + + client.deleteNetworkPeeringAsync(name).get(); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteNetworkPeeringRequest actualRequest = + ((DeleteNetworkPeeringRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteNetworkPeeringExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + NetworkPeeringName name = + NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]"); + client.deleteNetworkPeeringAsync(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 deleteNetworkPeeringTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteNetworkPeeringTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteNetworkPeeringAsync(name).get(); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteNetworkPeeringRequest actualRequest = + ((DeleteNetworkPeeringRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteNetworkPeeringExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String name = "name3373707"; + client.deleteNetworkPeeringAsync(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 updateNetworkPeeringTest() throws Exception { + NetworkPeering expectedResponse = + NetworkPeering.newBuilder() + .setName( + NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setPeerNetwork("peerNetwork392662636") + .setExportCustomRoutes(true) + .setImportCustomRoutes(true) + .setExchangeSubnetRoutes(true) + .setExportCustomRoutesWithPublicIp(true) + .setImportCustomRoutesWithPublicIp(true) + .setStateDetails("stateDetails1730982001") + .setPeerMtu(69584721) + .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateNetworkPeeringTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + NetworkPeering networkPeering = NetworkPeering.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + NetworkPeering actualResponse = + client.updateNetworkPeeringAsync(networkPeering, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateNetworkPeeringRequest actualRequest = + ((UpdateNetworkPeeringRequest) actualRequests.get(0)); + + Assert.assertEquals(networkPeering, actualRequest.getNetworkPeering()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateNetworkPeeringExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + NetworkPeering networkPeering = NetworkPeering.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateNetworkPeeringAsync(networkPeering, 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 listPeeringRoutesTest() throws Exception { + PeeringRoute responsesElement = PeeringRoute.newBuilder().build(); + ListPeeringRoutesResponse expectedResponse = + ListPeeringRoutesResponse.newBuilder() + .setNextPageToken("") + .addAllPeeringRoutes(Arrays.asList(responsesElement)) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + NetworkPeeringName parent = + NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]"); + + ListPeeringRoutesPagedResponse pagedListResponse = client.listPeeringRoutes(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()); + ListPeeringRoutesRequest actualRequest = ((ListPeeringRoutesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listPeeringRoutesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + NetworkPeeringName parent = + NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]"); + client.listPeeringRoutes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPeeringRoutesTest2() throws Exception { + PeeringRoute responsesElement = PeeringRoute.newBuilder().build(); + ListPeeringRoutesResponse expectedResponse = + ListPeeringRoutesResponse.newBuilder() + .setNextPageToken("") + .addAllPeeringRoutes(Arrays.asList(responsesElement)) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListPeeringRoutesPagedResponse pagedListResponse = client.listPeeringRoutes(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()); + ListPeeringRoutesRequest actualRequest = ((ListPeeringRoutesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listPeeringRoutesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String parent = "parent-995424086"; + client.listPeeringRoutes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createHcxActivationKeyTest() throws Exception { + HcxActivationKey expectedResponse = + HcxActivationKey.newBuilder() + .setName( + HcxActivationKeyName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setActivationKey("activationKey1757742441") + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createHcxActivationKeyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + HcxActivationKey hcxActivationKey = HcxActivationKey.newBuilder().build(); + String hcxActivationKeyId = "hcxActivationKeyId-645871673"; + + HcxActivationKey actualResponse = + client.createHcxActivationKeyAsync(parent, hcxActivationKey, hcxActivationKeyId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateHcxActivationKeyRequest actualRequest = + ((CreateHcxActivationKeyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(hcxActivationKey, actualRequest.getHcxActivationKey()); + Assert.assertEquals(hcxActivationKeyId, actualRequest.getHcxActivationKeyId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createHcxActivationKeyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + HcxActivationKey hcxActivationKey = HcxActivationKey.newBuilder().build(); + String hcxActivationKeyId = "hcxActivationKeyId-645871673"; + client.createHcxActivationKeyAsync(parent, hcxActivationKey, hcxActivationKeyId).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 createHcxActivationKeyTest2() throws Exception { + HcxActivationKey expectedResponse = + HcxActivationKey.newBuilder() + .setName( + HcxActivationKeyName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setActivationKey("activationKey1757742441") + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createHcxActivationKeyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + String parent = "parent-995424086"; + HcxActivationKey hcxActivationKey = HcxActivationKey.newBuilder().build(); + String hcxActivationKeyId = "hcxActivationKeyId-645871673"; + + HcxActivationKey actualResponse = + client.createHcxActivationKeyAsync(parent, hcxActivationKey, hcxActivationKeyId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateHcxActivationKeyRequest actualRequest = + ((CreateHcxActivationKeyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(hcxActivationKey, actualRequest.getHcxActivationKey()); + Assert.assertEquals(hcxActivationKeyId, actualRequest.getHcxActivationKeyId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createHcxActivationKeyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String parent = "parent-995424086"; + HcxActivationKey hcxActivationKey = HcxActivationKey.newBuilder().build(); + String hcxActivationKeyId = "hcxActivationKeyId-645871673"; + client.createHcxActivationKeyAsync(parent, hcxActivationKey, hcxActivationKeyId).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 listHcxActivationKeysTest() throws Exception { + HcxActivationKey responsesElement = HcxActivationKey.newBuilder().build(); + ListHcxActivationKeysResponse expectedResponse = + ListHcxActivationKeysResponse.newBuilder() + .setNextPageToken("") + .addAllHcxActivationKeys(Arrays.asList(responsesElement)) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + ListHcxActivationKeysPagedResponse pagedListResponse = client.listHcxActivationKeys(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getHcxActivationKeysList().get(0), resources.get(0)); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListHcxActivationKeysRequest actualRequest = + ((ListHcxActivationKeysRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listHcxActivationKeysExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.listHcxActivationKeys(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listHcxActivationKeysTest2() throws Exception { + HcxActivationKey responsesElement = HcxActivationKey.newBuilder().build(); + ListHcxActivationKeysResponse expectedResponse = + ListHcxActivationKeysResponse.newBuilder() + .setNextPageToken("") + .addAllHcxActivationKeys(Arrays.asList(responsesElement)) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListHcxActivationKeysPagedResponse pagedListResponse = client.listHcxActivationKeys(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getHcxActivationKeysList().get(0), resources.get(0)); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListHcxActivationKeysRequest actualRequest = + ((ListHcxActivationKeysRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listHcxActivationKeysExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String parent = "parent-995424086"; + client.listHcxActivationKeys(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getHcxActivationKeyTest() throws Exception { + HcxActivationKey expectedResponse = + HcxActivationKey.newBuilder() + .setName( + HcxActivationKeyName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setActivationKey("activationKey1757742441") + .setUid("uid115792") + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + HcxActivationKeyName name = + HcxActivationKeyName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]"); + + HcxActivationKey actualResponse = client.getHcxActivationKey(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetHcxActivationKeyRequest actualRequest = ((GetHcxActivationKeyRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getHcxActivationKeyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + HcxActivationKeyName name = + HcxActivationKeyName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]"); + client.getHcxActivationKey(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getHcxActivationKeyTest2() throws Exception { + HcxActivationKey expectedResponse = + HcxActivationKey.newBuilder() + .setName( + HcxActivationKeyName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setActivationKey("activationKey1757742441") + .setUid("uid115792") + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + String name = "name3373707"; + + HcxActivationKey actualResponse = client.getHcxActivationKey(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetHcxActivationKeyRequest actualRequest = ((GetHcxActivationKeyRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getHcxActivationKeyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String name = "name3373707"; + client.getHcxActivationKey(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getNetworkPolicyTest() throws Exception { + NetworkPolicy expectedResponse = + NetworkPolicy.newBuilder() + .setName(NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) + .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) + .setEdgeServicesCidr("edgeServicesCidr846515023") + .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .setVmwareEngineNetworkCanonical( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + NetworkPolicyName name = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); + + NetworkPolicy actualResponse = client.getNetworkPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetNetworkPolicyRequest actualRequest = ((GetNetworkPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getNetworkPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + NetworkPolicyName name = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); + client.getNetworkPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getNetworkPolicyTest2() throws Exception { + NetworkPolicy expectedResponse = + NetworkPolicy.newBuilder() + .setName(NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) + .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) + .setEdgeServicesCidr("edgeServicesCidr846515023") + .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .setVmwareEngineNetworkCanonical( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + String name = "name3373707"; + + NetworkPolicy actualResponse = client.getNetworkPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetNetworkPolicyRequest actualRequest = ((GetNetworkPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getNetworkPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String name = "name3373707"; + client.getNetworkPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listNetworkPoliciesTest() throws Exception { + NetworkPolicy responsesElement = NetworkPolicy.newBuilder().build(); + ListNetworkPoliciesResponse expectedResponse = + ListNetworkPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllNetworkPolicies(Arrays.asList(responsesElement)) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListNetworkPoliciesPagedResponse pagedListResponse = client.listNetworkPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getNetworkPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListNetworkPoliciesRequest actualRequest = ((ListNetworkPoliciesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listNetworkPoliciesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listNetworkPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listNetworkPoliciesTest2() throws Exception { + NetworkPolicy responsesElement = NetworkPolicy.newBuilder().build(); + ListNetworkPoliciesResponse expectedResponse = + ListNetworkPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllNetworkPolicies(Arrays.asList(responsesElement)) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListNetworkPoliciesPagedResponse pagedListResponse = client.listNetworkPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getNetworkPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListNetworkPoliciesRequest actualRequest = ((ListNetworkPoliciesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listNetworkPoliciesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String parent = "parent-995424086"; + client.listNetworkPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. } } @Test - public void resetVcenterCredentialsTest2() throws Exception { - PrivateCloud expectedResponse = - PrivateCloud.newBuilder() - .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + public void createNetworkPolicyTest() throws Exception { + NetworkPolicy expectedResponse = + NetworkPolicy.newBuilder() + .setName(NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setNetworkConfig(NetworkConfig.newBuilder().build()) - .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) - .setDescription("description-1724546052") - .setHcx(Hcx.newBuilder().build()) - .setNsx(Nsx.newBuilder().build()) - .setVcenter(Vcenter.newBuilder().build()) + .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) + .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) + .setEdgeServicesCidr("edgeServicesCidr846515023") .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .setVmwareEngineNetworkCanonical( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) .build(); Operation resultOperation = Operation.newBuilder() - .setName("resetVcenterCredentialsTest") + .setName("createNetworkPolicyTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockVmwareEngine.addResponse(resultOperation); - String privateCloud = "privateCloud974897778"; + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); + String networkPolicyId = "networkPolicyId-727262661"; - PrivateCloud actualResponse = client.resetVcenterCredentialsAsync(privateCloud).get(); + NetworkPolicy actualResponse = + client.createNetworkPolicyAsync(parent, networkPolicy, networkPolicyId).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockVmwareEngine.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ResetVcenterCredentialsRequest actualRequest = - ((ResetVcenterCredentialsRequest) actualRequests.get(0)); + CreateNetworkPolicyRequest actualRequest = ((CreateNetworkPolicyRequest) actualRequests.get(0)); - Assert.assertEquals(privateCloud, actualRequest.getPrivateCloud()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(networkPolicy, actualRequest.getNetworkPolicy()); + Assert.assertEquals(networkPolicyId, actualRequest.getNetworkPolicyId()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1938,13 +4905,15 @@ public void resetVcenterCredentialsTest2() throws Exception { } @Test - public void resetVcenterCredentialsExceptionTest2() throws Exception { + public void createNetworkPolicyExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVmwareEngine.addException(exception); try { - String privateCloud = "privateCloud974897778"; - client.resetVcenterCredentialsAsync(privateCloud).get(); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); + String networkPolicyId = "networkPolicyId-727262661"; + client.createNetworkPolicyAsync(parent, networkPolicy, networkPolicyId).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -1954,41 +4923,47 @@ public void resetVcenterCredentialsExceptionTest2() throws Exception { } @Test - public void createHcxActivationKeyTest() throws Exception { - HcxActivationKey expectedResponse = - HcxActivationKey.newBuilder() - .setName( - HcxActivationKeyName.of( - "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]") - .toString()) + public void createNetworkPolicyTest2() throws Exception { + NetworkPolicy expectedResponse = + NetworkPolicy.newBuilder() + .setName(NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) .setCreateTime(Timestamp.newBuilder().build()) - .setActivationKey("activationKey1757742441") + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) + .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) + .setEdgeServicesCidr("edgeServicesCidr846515023") .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .setVmwareEngineNetworkCanonical( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) .build(); Operation resultOperation = Operation.newBuilder() - .setName("createHcxActivationKeyTest") + .setName("createNetworkPolicyTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockVmwareEngine.addResponse(resultOperation); - PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); - HcxActivationKey hcxActivationKey = HcxActivationKey.newBuilder().build(); - String hcxActivationKeyId = "hcxActivationKeyId-645871673"; + String parent = "parent-995424086"; + NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); + String networkPolicyId = "networkPolicyId-727262661"; - HcxActivationKey actualResponse = - client.createHcxActivationKeyAsync(parent, hcxActivationKey, hcxActivationKeyId).get(); + NetworkPolicy actualResponse = + client.createNetworkPolicyAsync(parent, networkPolicy, networkPolicyId).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockVmwareEngine.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateHcxActivationKeyRequest actualRequest = - ((CreateHcxActivationKeyRequest) actualRequests.get(0)); + CreateNetworkPolicyRequest actualRequest = ((CreateNetworkPolicyRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(hcxActivationKey, actualRequest.getHcxActivationKey()); - Assert.assertEquals(hcxActivationKeyId, actualRequest.getHcxActivationKeyId()); + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(networkPolicy, actualRequest.getNetworkPolicy()); + Assert.assertEquals(networkPolicyId, actualRequest.getNetworkPolicyId()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1996,15 +4971,15 @@ public void createHcxActivationKeyTest() throws Exception { } @Test - public void createHcxActivationKeyExceptionTest() throws Exception { + public void createNetworkPolicyExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVmwareEngine.addException(exception); try { - PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); - HcxActivationKey hcxActivationKey = HcxActivationKey.newBuilder().build(); - String hcxActivationKeyId = "hcxActivationKeyId-645871673"; - client.createHcxActivationKeyAsync(parent, hcxActivationKey, hcxActivationKeyId).get(); + String parent = "parent-995424086"; + NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); + String networkPolicyId = "networkPolicyId-727262661"; + client.createNetworkPolicyAsync(parent, networkPolicy, networkPolicyId).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -2014,41 +4989,44 @@ public void createHcxActivationKeyExceptionTest() throws Exception { } @Test - public void createHcxActivationKeyTest2() throws Exception { - HcxActivationKey expectedResponse = - HcxActivationKey.newBuilder() - .setName( - HcxActivationKeyName.of( - "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]") - .toString()) + public void updateNetworkPolicyTest() throws Exception { + NetworkPolicy expectedResponse = + NetworkPolicy.newBuilder() + .setName(NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) .setCreateTime(Timestamp.newBuilder().build()) - .setActivationKey("activationKey1757742441") + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) + .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) + .setEdgeServicesCidr("edgeServicesCidr846515023") .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .setVmwareEngineNetworkCanonical( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) .build(); Operation resultOperation = Operation.newBuilder() - .setName("createHcxActivationKeyTest") + .setName("updateNetworkPolicyTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockVmwareEngine.addResponse(resultOperation); - String parent = "parent-995424086"; - HcxActivationKey hcxActivationKey = HcxActivationKey.newBuilder().build(); - String hcxActivationKeyId = "hcxActivationKeyId-645871673"; + NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - HcxActivationKey actualResponse = - client.createHcxActivationKeyAsync(parent, hcxActivationKey, hcxActivationKeyId).get(); + NetworkPolicy actualResponse = client.updateNetworkPolicyAsync(networkPolicy, updateMask).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockVmwareEngine.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateHcxActivationKeyRequest actualRequest = - ((CreateHcxActivationKeyRequest) actualRequests.get(0)); + UpdateNetworkPolicyRequest actualRequest = ((UpdateNetworkPolicyRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(hcxActivationKey, actualRequest.getHcxActivationKey()); - Assert.assertEquals(hcxActivationKeyId, actualRequest.getHcxActivationKeyId()); + Assert.assertEquals(networkPolicy, actualRequest.getNetworkPolicy()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -2056,15 +5034,14 @@ public void createHcxActivationKeyTest2() throws Exception { } @Test - public void createHcxActivationKeyExceptionTest2() throws Exception { + public void updateNetworkPolicyExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVmwareEngine.addException(exception); try { - String parent = "parent-995424086"; - HcxActivationKey hcxActivationKey = HcxActivationKey.newBuilder().build(); - String hcxActivationKeyId = "hcxActivationKeyId-645871673"; - client.createHcxActivationKeyAsync(parent, hcxActivationKey, hcxActivationKeyId).get(); + NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateNetworkPolicyAsync(networkPolicy, updateMask).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -2074,30 +5051,25 @@ public void createHcxActivationKeyExceptionTest2() throws Exception { } @Test - public void listHcxActivationKeysTest() throws Exception { - HcxActivationKey responsesElement = HcxActivationKey.newBuilder().build(); - ListHcxActivationKeysResponse expectedResponse = - ListHcxActivationKeysResponse.newBuilder() - .setNextPageToken("") - .addAllHcxActivationKeys(Arrays.asList(responsesElement)) + public void deleteNetworkPolicyTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteNetworkPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockVmwareEngine.addResponse(expectedResponse); - - PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); - - ListHcxActivationKeysPagedResponse pagedListResponse = client.listHcxActivationKeys(parent); + mockVmwareEngine.addResponse(resultOperation); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + NetworkPolicyName name = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getHcxActivationKeysList().get(0), resources.get(0)); + client.deleteNetworkPolicyAsync(name).get(); List actualRequests = mockVmwareEngine.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListHcxActivationKeysRequest actualRequest = - ((ListHcxActivationKeysRequest) actualRequests.get(0)); + DeleteNetworkPolicyRequest actualRequest = ((DeleteNetworkPolicyRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -2105,44 +5077,41 @@ public void listHcxActivationKeysTest() throws Exception { } @Test - public void listHcxActivationKeysExceptionTest() throws Exception { + public void deleteNetworkPolicyExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVmwareEngine.addException(exception); try { - PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); - client.listHcxActivationKeys(parent); + NetworkPolicyName name = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); + client.deleteNetworkPolicyAsync(name).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } 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 listHcxActivationKeysTest2() throws Exception { - HcxActivationKey responsesElement = HcxActivationKey.newBuilder().build(); - ListHcxActivationKeysResponse expectedResponse = - ListHcxActivationKeysResponse.newBuilder() - .setNextPageToken("") - .addAllHcxActivationKeys(Arrays.asList(responsesElement)) + public void deleteNetworkPolicyTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteNetworkPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockVmwareEngine.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListHcxActivationKeysPagedResponse pagedListResponse = client.listHcxActivationKeys(parent); + mockVmwareEngine.addResponse(resultOperation); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + String name = "name3373707"; - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getHcxActivationKeysList().get(0), resources.get(0)); + client.deleteNetworkPolicyAsync(name).get(); List actualRequests = mockVmwareEngine.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListHcxActivationKeysRequest actualRequest = - ((ListHcxActivationKeysRequest) actualRequests.get(0)); + DeleteNetworkPolicyRequest actualRequest = ((DeleteNetworkPolicyRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -2150,45 +5119,48 @@ public void listHcxActivationKeysTest2() throws Exception { } @Test - public void listHcxActivationKeysExceptionTest2() throws Exception { + public void deleteNetworkPolicyExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVmwareEngine.addException(exception); try { - String parent = "parent-995424086"; - client.listHcxActivationKeys(parent); + String name = "name3373707"; + client.deleteNetworkPolicyAsync(name).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } 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 getHcxActivationKeyTest() throws Exception { - HcxActivationKey expectedResponse = - HcxActivationKey.newBuilder() - .setName( - HcxActivationKeyName.of( - "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]") - .toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setActivationKey("activationKey1757742441") - .setUid("uid115792") + public void listManagementDnsZoneBindingsTest() throws Exception { + ManagementDnsZoneBinding responsesElement = ManagementDnsZoneBinding.newBuilder().build(); + ListManagementDnsZoneBindingsResponse expectedResponse = + ListManagementDnsZoneBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllManagementDnsZoneBindings(Arrays.asList(responsesElement)) .build(); mockVmwareEngine.addResponse(expectedResponse); - HcxActivationKeyName name = - HcxActivationKeyName.of( - "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]"); + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); - HcxActivationKey actualResponse = client.getHcxActivationKey(name); - Assert.assertEquals(expectedResponse, actualResponse); + ListManagementDnsZoneBindingsPagedResponse pagedListResponse = + client.listManagementDnsZoneBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getManagementDnsZoneBindingsList().get(0), resources.get(0)); List actualRequests = mockVmwareEngine.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetHcxActivationKeyRequest actualRequest = ((GetHcxActivationKeyRequest) actualRequests.get(0)); + ListManagementDnsZoneBindingsRequest actualRequest = + ((ListManagementDnsZoneBindingsRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -2196,15 +5168,13 @@ public void getHcxActivationKeyTest() throws Exception { } @Test - public void getHcxActivationKeyExceptionTest() throws Exception { + public void listManagementDnsZoneBindingsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVmwareEngine.addException(exception); try { - HcxActivationKeyName name = - HcxActivationKeyName.of( - "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]"); - client.getHcxActivationKey(name); + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.listManagementDnsZoneBindings(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2212,29 +5182,32 @@ public void getHcxActivationKeyExceptionTest() throws Exception { } @Test - public void getHcxActivationKeyTest2() throws Exception { - HcxActivationKey expectedResponse = - HcxActivationKey.newBuilder() - .setName( - HcxActivationKeyName.of( - "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]") - .toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setActivationKey("activationKey1757742441") - .setUid("uid115792") + public void listManagementDnsZoneBindingsTest2() throws Exception { + ManagementDnsZoneBinding responsesElement = ManagementDnsZoneBinding.newBuilder().build(); + ListManagementDnsZoneBindingsResponse expectedResponse = + ListManagementDnsZoneBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllManagementDnsZoneBindings(Arrays.asList(responsesElement)) .build(); mockVmwareEngine.addResponse(expectedResponse); - String name = "name3373707"; + String parent = "parent-995424086"; - HcxActivationKey actualResponse = client.getHcxActivationKey(name); - Assert.assertEquals(expectedResponse, actualResponse); + ListManagementDnsZoneBindingsPagedResponse pagedListResponse = + client.listManagementDnsZoneBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getManagementDnsZoneBindingsList().get(0), resources.get(0)); List actualRequests = mockVmwareEngine.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetHcxActivationKeyRequest actualRequest = ((GetHcxActivationKeyRequest) actualRequests.get(0)); + ListManagementDnsZoneBindingsRequest actualRequest = + ((ListManagementDnsZoneBindingsRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(parent, actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -2242,13 +5215,13 @@ public void getHcxActivationKeyTest2() throws Exception { } @Test - public void getHcxActivationKeyExceptionTest2() throws Exception { + public void listManagementDnsZoneBindingsExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVmwareEngine.addException(exception); try { - String name = "name3373707"; - client.getHcxActivationKey(name); + String parent = "parent-995424086"; + client.listManagementDnsZoneBindings(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2256,34 +5229,34 @@ public void getHcxActivationKeyExceptionTest2() throws Exception { } @Test - public void getNetworkPolicyTest() throws Exception { - NetworkPolicy expectedResponse = - NetworkPolicy.newBuilder() - .setName(NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) + public void getManagementDnsZoneBindingTest() throws Exception { + ManagementDnsZoneBinding expectedResponse = + ManagementDnsZoneBinding.newBuilder() + .setName( + ManagementDnsZoneBindingName.of( + "[PROJECT]", + "[LOCATION]", + "[PRIVATE_CLOUD]", + "[MANAGEMENT_DNS_ZONE_BINDING]") + .toString()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) - .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) - .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) - .setEdgeServicesCidr("edgeServicesCidr846515023") - .setUid("uid115792") - .setVmwareEngineNetwork( - VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") - .toString()) .setDescription("description-1724546052") - .setVmwareEngineNetworkCanonical( - VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") - .toString()) + .setUid("uid115792") .build(); mockVmwareEngine.addResponse(expectedResponse); - NetworkPolicyName name = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); + ManagementDnsZoneBindingName name = + ManagementDnsZoneBindingName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[MANAGEMENT_DNS_ZONE_BINDING]"); - NetworkPolicy actualResponse = client.getNetworkPolicy(name); + ManagementDnsZoneBinding actualResponse = client.getManagementDnsZoneBinding(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockVmwareEngine.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetNetworkPolicyRequest actualRequest = ((GetNetworkPolicyRequest) actualRequests.get(0)); + GetManagementDnsZoneBindingRequest actualRequest = + ((GetManagementDnsZoneBindingRequest) actualRequests.get(0)); Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( @@ -2293,13 +5266,15 @@ public void getNetworkPolicyTest() throws Exception { } @Test - public void getNetworkPolicyExceptionTest() throws Exception { + public void getManagementDnsZoneBindingExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVmwareEngine.addException(exception); try { - NetworkPolicyName name = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); - client.getNetworkPolicy(name); + ManagementDnsZoneBindingName name = + ManagementDnsZoneBindingName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[MANAGEMENT_DNS_ZONE_BINDING]"); + client.getManagementDnsZoneBinding(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2307,34 +5282,32 @@ public void getNetworkPolicyExceptionTest() throws Exception { } @Test - public void getNetworkPolicyTest2() throws Exception { - NetworkPolicy expectedResponse = - NetworkPolicy.newBuilder() - .setName(NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) + public void getManagementDnsZoneBindingTest2() throws Exception { + ManagementDnsZoneBinding expectedResponse = + ManagementDnsZoneBinding.newBuilder() + .setName( + ManagementDnsZoneBindingName.of( + "[PROJECT]", + "[LOCATION]", + "[PRIVATE_CLOUD]", + "[MANAGEMENT_DNS_ZONE_BINDING]") + .toString()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) - .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) - .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) - .setEdgeServicesCidr("edgeServicesCidr846515023") - .setUid("uid115792") - .setVmwareEngineNetwork( - VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") - .toString()) .setDescription("description-1724546052") - .setVmwareEngineNetworkCanonical( - VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") - .toString()) + .setUid("uid115792") .build(); mockVmwareEngine.addResponse(expectedResponse); String name = "name3373707"; - NetworkPolicy actualResponse = client.getNetworkPolicy(name); + ManagementDnsZoneBinding actualResponse = client.getManagementDnsZoneBinding(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockVmwareEngine.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetNetworkPolicyRequest actualRequest = ((GetNetworkPolicyRequest) actualRequests.get(0)); + GetManagementDnsZoneBindingRequest actualRequest = + ((GetManagementDnsZoneBindingRequest) actualRequests.get(0)); Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( @@ -2344,13 +5317,13 @@ public void getNetworkPolicyTest2() throws Exception { } @Test - public void getNetworkPolicyExceptionTest2() throws Exception { + public void getManagementDnsZoneBindingExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVmwareEngine.addException(exception); try { String name = "name3373707"; - client.getNetworkPolicy(name); + client.getManagementDnsZoneBinding(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2358,29 +5331,49 @@ public void getNetworkPolicyExceptionTest2() throws Exception { } @Test - public void listNetworkPoliciesTest() throws Exception { - NetworkPolicy responsesElement = NetworkPolicy.newBuilder().build(); - ListNetworkPoliciesResponse expectedResponse = - ListNetworkPoliciesResponse.newBuilder() - .setNextPageToken("") - .addAllNetworkPolicies(Arrays.asList(responsesElement)) + public void createManagementDnsZoneBindingTest() throws Exception { + ManagementDnsZoneBinding expectedResponse = + ManagementDnsZoneBinding.newBuilder() + .setName( + ManagementDnsZoneBindingName.of( + "[PROJECT]", + "[LOCATION]", + "[PRIVATE_CLOUD]", + "[MANAGEMENT_DNS_ZONE_BINDING]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .setUid("uid115792") .build(); - mockVmwareEngine.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListNetworkPoliciesPagedResponse pagedListResponse = client.listNetworkPolicies(parent); + Operation resultOperation = + Operation.newBuilder() + .setName("createManagementDnsZoneBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + ManagementDnsZoneBinding managementDnsZoneBinding = + ManagementDnsZoneBinding.newBuilder().build(); + String managementDnsZoneBindingId = "managementDnsZoneBindingId-288984082"; - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getNetworkPoliciesList().get(0), resources.get(0)); + ManagementDnsZoneBinding actualResponse = + client + .createManagementDnsZoneBindingAsync( + parent, managementDnsZoneBinding, managementDnsZoneBindingId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockVmwareEngine.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListNetworkPoliciesRequest actualRequest = ((ListNetworkPoliciesRequest) actualRequests.get(0)); + CreateManagementDnsZoneBindingRequest actualRequest = + ((CreateManagementDnsZoneBindingRequest) actualRequests.get(0)); Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(managementDnsZoneBinding, actualRequest.getManagementDnsZoneBinding()); + Assert.assertEquals(managementDnsZoneBindingId, actualRequest.getManagementDnsZoneBindingId()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -2388,43 +5381,71 @@ public void listNetworkPoliciesTest() throws Exception { } @Test - public void listNetworkPoliciesExceptionTest() throws Exception { + public void createManagementDnsZoneBindingExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVmwareEngine.addException(exception); try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listNetworkPolicies(parent); + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + ManagementDnsZoneBinding managementDnsZoneBinding = + ManagementDnsZoneBinding.newBuilder().build(); + String managementDnsZoneBindingId = "managementDnsZoneBindingId-288984082"; + client + .createManagementDnsZoneBindingAsync( + parent, managementDnsZoneBinding, managementDnsZoneBindingId) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } 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 listNetworkPoliciesTest2() throws Exception { - NetworkPolicy responsesElement = NetworkPolicy.newBuilder().build(); - ListNetworkPoliciesResponse expectedResponse = - ListNetworkPoliciesResponse.newBuilder() - .setNextPageToken("") - .addAllNetworkPolicies(Arrays.asList(responsesElement)) + public void createManagementDnsZoneBindingTest2() throws Exception { + ManagementDnsZoneBinding expectedResponse = + ManagementDnsZoneBinding.newBuilder() + .setName( + ManagementDnsZoneBindingName.of( + "[PROJECT]", + "[LOCATION]", + "[PRIVATE_CLOUD]", + "[MANAGEMENT_DNS_ZONE_BINDING]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .setUid("uid115792") .build(); - mockVmwareEngine.addResponse(expectedResponse); + Operation resultOperation = + Operation.newBuilder() + .setName("createManagementDnsZoneBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); String parent = "parent-995424086"; + ManagementDnsZoneBinding managementDnsZoneBinding = + ManagementDnsZoneBinding.newBuilder().build(); + String managementDnsZoneBindingId = "managementDnsZoneBindingId-288984082"; - ListNetworkPoliciesPagedResponse pagedListResponse = client.listNetworkPolicies(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getNetworkPoliciesList().get(0), resources.get(0)); + ManagementDnsZoneBinding actualResponse = + client + .createManagementDnsZoneBindingAsync( + parent, managementDnsZoneBinding, managementDnsZoneBindingId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockVmwareEngine.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListNetworkPoliciesRequest actualRequest = ((ListNetworkPoliciesRequest) actualRequests.get(0)); + CreateManagementDnsZoneBindingRequest actualRequest = + ((CreateManagementDnsZoneBindingRequest) actualRequests.get(0)); Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(managementDnsZoneBinding, actualRequest.getManagementDnsZoneBinding()); + Assert.assertEquals(managementDnsZoneBindingId, actualRequest.getManagementDnsZoneBindingId()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -2432,61 +5453,66 @@ public void listNetworkPoliciesTest2() throws Exception { } @Test - public void listNetworkPoliciesExceptionTest2() throws Exception { + public void createManagementDnsZoneBindingExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVmwareEngine.addException(exception); try { String parent = "parent-995424086"; - client.listNetworkPolicies(parent); + ManagementDnsZoneBinding managementDnsZoneBinding = + ManagementDnsZoneBinding.newBuilder().build(); + String managementDnsZoneBindingId = "managementDnsZoneBindingId-288984082"; + client + .createManagementDnsZoneBindingAsync( + parent, managementDnsZoneBinding, managementDnsZoneBindingId) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } 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 createNetworkPolicyTest() throws Exception { - NetworkPolicy expectedResponse = - NetworkPolicy.newBuilder() - .setName(NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) + public void updateManagementDnsZoneBindingTest() throws Exception { + ManagementDnsZoneBinding expectedResponse = + ManagementDnsZoneBinding.newBuilder() + .setName( + ManagementDnsZoneBindingName.of( + "[PROJECT]", + "[LOCATION]", + "[PRIVATE_CLOUD]", + "[MANAGEMENT_DNS_ZONE_BINDING]") + .toString()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) - .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) - .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) - .setEdgeServicesCidr("edgeServicesCidr846515023") - .setUid("uid115792") - .setVmwareEngineNetwork( - VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") - .toString()) .setDescription("description-1724546052") - .setVmwareEngineNetworkCanonical( - VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") - .toString()) + .setUid("uid115792") .build(); Operation resultOperation = Operation.newBuilder() - .setName("createNetworkPolicyTest") + .setName("updateManagementDnsZoneBindingTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockVmwareEngine.addResponse(resultOperation); - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); - String networkPolicyId = "networkPolicyId-727262661"; + ManagementDnsZoneBinding managementDnsZoneBinding = + ManagementDnsZoneBinding.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - NetworkPolicy actualResponse = - client.createNetworkPolicyAsync(parent, networkPolicy, networkPolicyId).get(); + ManagementDnsZoneBinding actualResponse = + client.updateManagementDnsZoneBindingAsync(managementDnsZoneBinding, updateMask).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockVmwareEngine.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateNetworkPolicyRequest actualRequest = ((CreateNetworkPolicyRequest) actualRequests.get(0)); + UpdateManagementDnsZoneBindingRequest actualRequest = + ((UpdateManagementDnsZoneBindingRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(networkPolicy, actualRequest.getNetworkPolicy()); - Assert.assertEquals(networkPolicyId, actualRequest.getNetworkPolicyId()); + Assert.assertEquals(managementDnsZoneBinding, actualRequest.getManagementDnsZoneBinding()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -2494,15 +5520,15 @@ public void createNetworkPolicyTest() throws Exception { } @Test - public void createNetworkPolicyExceptionTest() throws Exception { + public void updateManagementDnsZoneBindingExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVmwareEngine.addException(exception); try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); - String networkPolicyId = "networkPolicyId-727262661"; - client.createNetworkPolicyAsync(parent, networkPolicy, networkPolicyId).get(); + ManagementDnsZoneBinding managementDnsZoneBinding = + ManagementDnsZoneBinding.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateManagementDnsZoneBindingAsync(managementDnsZoneBinding, updateMask).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -2512,47 +5538,28 @@ public void createNetworkPolicyExceptionTest() throws Exception { } @Test - public void createNetworkPolicyTest2() throws Exception { - NetworkPolicy expectedResponse = - NetworkPolicy.newBuilder() - .setName(NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) - .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) - .setEdgeServicesCidr("edgeServicesCidr846515023") - .setUid("uid115792") - .setVmwareEngineNetwork( - VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") - .toString()) - .setDescription("description-1724546052") - .setVmwareEngineNetworkCanonical( - VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") - .toString()) - .build(); + public void deleteManagementDnsZoneBindingTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); Operation resultOperation = Operation.newBuilder() - .setName("createNetworkPolicyTest") + .setName("deleteManagementDnsZoneBindingTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockVmwareEngine.addResponse(resultOperation); - String parent = "parent-995424086"; - NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); - String networkPolicyId = "networkPolicyId-727262661"; + ManagementDnsZoneBindingName name = + ManagementDnsZoneBindingName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[MANAGEMENT_DNS_ZONE_BINDING]"); - NetworkPolicy actualResponse = - client.createNetworkPolicyAsync(parent, networkPolicy, networkPolicyId).get(); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteManagementDnsZoneBindingAsync(name).get(); List actualRequests = mockVmwareEngine.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateNetworkPolicyRequest actualRequest = ((CreateNetworkPolicyRequest) actualRequests.get(0)); + DeleteManagementDnsZoneBindingRequest actualRequest = + ((DeleteManagementDnsZoneBindingRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(networkPolicy, actualRequest.getNetworkPolicy()); - Assert.assertEquals(networkPolicyId, actualRequest.getNetworkPolicyId()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -2560,62 +5567,44 @@ public void createNetworkPolicyTest2() throws Exception { } @Test - public void createNetworkPolicyExceptionTest2() throws Exception { + public void deleteManagementDnsZoneBindingExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVmwareEngine.addException(exception); try { - String parent = "parent-995424086"; - NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); - String networkPolicyId = "networkPolicyId-727262661"; - client.createNetworkPolicyAsync(parent, networkPolicy, networkPolicyId).get(); + ManagementDnsZoneBindingName name = + ManagementDnsZoneBindingName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[MANAGEMENT_DNS_ZONE_BINDING]"); + client.deleteManagementDnsZoneBindingAsync(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 updateNetworkPolicyTest() throws Exception { - NetworkPolicy expectedResponse = - NetworkPolicy.newBuilder() - .setName(NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) - .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) - .setEdgeServicesCidr("edgeServicesCidr846515023") - .setUid("uid115792") - .setVmwareEngineNetwork( - VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") - .toString()) - .setDescription("description-1724546052") - .setVmwareEngineNetworkCanonical( - VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") - .toString()) - .build(); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteManagementDnsZoneBindingTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); Operation resultOperation = Operation.newBuilder() - .setName("updateNetworkPolicyTest") + .setName("deleteManagementDnsZoneBindingTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockVmwareEngine.addResponse(resultOperation); - NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + String name = "name3373707"; - NetworkPolicy actualResponse = client.updateNetworkPolicyAsync(networkPolicy, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteManagementDnsZoneBindingAsync(name).get(); List actualRequests = mockVmwareEngine.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateNetworkPolicyRequest actualRequest = ((UpdateNetworkPolicyRequest) actualRequests.get(0)); + DeleteManagementDnsZoneBindingRequest actualRequest = + ((DeleteManagementDnsZoneBindingRequest) actualRequests.get(0)); - Assert.assertEquals(networkPolicy, actualRequest.getNetworkPolicy()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -2623,14 +5612,13 @@ public void updateNetworkPolicyTest() throws Exception { } @Test - public void updateNetworkPolicyExceptionTest() throws Exception { + public void deleteManagementDnsZoneBindingExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVmwareEngine.addException(exception); try { - NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateNetworkPolicyAsync(networkPolicy, updateMask).get(); + String name = "name3373707"; + client.deleteManagementDnsZoneBindingAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -2640,23 +5628,41 @@ public void updateNetworkPolicyExceptionTest() throws Exception { } @Test - public void deleteNetworkPolicyTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void repairManagementDnsZoneBindingTest() throws Exception { + ManagementDnsZoneBinding expectedResponse = + ManagementDnsZoneBinding.newBuilder() + .setName( + ManagementDnsZoneBindingName.of( + "[PROJECT]", + "[LOCATION]", + "[PRIVATE_CLOUD]", + "[MANAGEMENT_DNS_ZONE_BINDING]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .setUid("uid115792") + .build(); Operation resultOperation = Operation.newBuilder() - .setName("deleteNetworkPolicyTest") + .setName("repairManagementDnsZoneBindingTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockVmwareEngine.addResponse(resultOperation); - NetworkPolicyName name = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); + ManagementDnsZoneBindingName name = + ManagementDnsZoneBindingName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[MANAGEMENT_DNS_ZONE_BINDING]"); - client.deleteNetworkPolicyAsync(name).get(); + ManagementDnsZoneBinding actualResponse = + client.repairManagementDnsZoneBindingAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockVmwareEngine.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteNetworkPolicyRequest actualRequest = ((DeleteNetworkPolicyRequest) actualRequests.get(0)); + RepairManagementDnsZoneBindingRequest actualRequest = + ((RepairManagementDnsZoneBindingRequest) actualRequests.get(0)); Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( @@ -2666,13 +5672,15 @@ public void deleteNetworkPolicyTest() throws Exception { } @Test - public void deleteNetworkPolicyExceptionTest() throws Exception { + public void repairManagementDnsZoneBindingExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVmwareEngine.addException(exception); try { - NetworkPolicyName name = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); - client.deleteNetworkPolicyAsync(name).get(); + ManagementDnsZoneBindingName name = + ManagementDnsZoneBindingName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[MANAGEMENT_DNS_ZONE_BINDING]"); + client.repairManagementDnsZoneBindingAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -2682,11 +5690,24 @@ public void deleteNetworkPolicyExceptionTest() throws Exception { } @Test - public void deleteNetworkPolicyTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void repairManagementDnsZoneBindingTest2() throws Exception { + ManagementDnsZoneBinding expectedResponse = + ManagementDnsZoneBinding.newBuilder() + .setName( + ManagementDnsZoneBindingName.of( + "[PROJECT]", + "[LOCATION]", + "[PRIVATE_CLOUD]", + "[MANAGEMENT_DNS_ZONE_BINDING]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .setUid("uid115792") + .build(); Operation resultOperation = Operation.newBuilder() - .setName("deleteNetworkPolicyTest") + .setName("repairManagementDnsZoneBindingTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); @@ -2694,11 +5715,14 @@ public void deleteNetworkPolicyTest2() throws Exception { String name = "name3373707"; - client.deleteNetworkPolicyAsync(name).get(); + ManagementDnsZoneBinding actualResponse = + client.repairManagementDnsZoneBindingAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockVmwareEngine.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteNetworkPolicyRequest actualRequest = ((DeleteNetworkPolicyRequest) actualRequests.get(0)); + RepairManagementDnsZoneBindingRequest actualRequest = + ((RepairManagementDnsZoneBindingRequest) actualRequests.get(0)); Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( @@ -2708,13 +5732,13 @@ public void deleteNetworkPolicyTest2() throws Exception { } @Test - public void deleteNetworkPolicyExceptionTest2() throws Exception { + public void repairManagementDnsZoneBindingExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVmwareEngine.addException(exception); try { String name = "name3373707"; - client.deleteNetworkPolicyAsync(name).get(); + client.repairManagementDnsZoneBindingAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -3771,6 +6795,290 @@ public void listPrivateConnectionPeeringRoutesExceptionTest2() throws Exception } } + @Test + public void grantDnsBindPermissionTest() throws Exception { + DnsBindPermission expectedResponse = + DnsBindPermission.newBuilder() + .setName(DnsBindPermissionName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllPrincipals(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("grantDnsBindPermissionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + DnsBindPermissionName name = DnsBindPermissionName.of("[PROJECT]", "[LOCATION]"); + Principal principal = Principal.newBuilder().build(); + + DnsBindPermission actualResponse = client.grantDnsBindPermissionAsync(name, principal).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GrantDnsBindPermissionRequest actualRequest = + ((GrantDnsBindPermissionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(principal, actualRequest.getPrincipal()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void grantDnsBindPermissionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + DnsBindPermissionName name = DnsBindPermissionName.of("[PROJECT]", "[LOCATION]"); + Principal principal = Principal.newBuilder().build(); + client.grantDnsBindPermissionAsync(name, principal).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 grantDnsBindPermissionTest2() throws Exception { + DnsBindPermission expectedResponse = + DnsBindPermission.newBuilder() + .setName(DnsBindPermissionName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllPrincipals(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("grantDnsBindPermissionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + String name = "name3373707"; + Principal principal = Principal.newBuilder().build(); + + DnsBindPermission actualResponse = client.grantDnsBindPermissionAsync(name, principal).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GrantDnsBindPermissionRequest actualRequest = + ((GrantDnsBindPermissionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(principal, actualRequest.getPrincipal()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void grantDnsBindPermissionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String name = "name3373707"; + Principal principal = Principal.newBuilder().build(); + client.grantDnsBindPermissionAsync(name, principal).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 getDnsBindPermissionTest() throws Exception { + DnsBindPermission expectedResponse = + DnsBindPermission.newBuilder() + .setName(DnsBindPermissionName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllPrincipals(new ArrayList()) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + DnsBindPermissionName name = DnsBindPermissionName.of("[PROJECT]", "[LOCATION]"); + + DnsBindPermission actualResponse = client.getDnsBindPermission(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDnsBindPermissionRequest actualRequest = + ((GetDnsBindPermissionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDnsBindPermissionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + DnsBindPermissionName name = DnsBindPermissionName.of("[PROJECT]", "[LOCATION]"); + client.getDnsBindPermission(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDnsBindPermissionTest2() throws Exception { + DnsBindPermission expectedResponse = + DnsBindPermission.newBuilder() + .setName(DnsBindPermissionName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllPrincipals(new ArrayList()) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + String name = "name3373707"; + + DnsBindPermission actualResponse = client.getDnsBindPermission(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDnsBindPermissionRequest actualRequest = + ((GetDnsBindPermissionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDnsBindPermissionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String name = "name3373707"; + client.getDnsBindPermission(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void revokeDnsBindPermissionTest() throws Exception { + DnsBindPermission expectedResponse = + DnsBindPermission.newBuilder() + .setName(DnsBindPermissionName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllPrincipals(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("revokeDnsBindPermissionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + DnsBindPermissionName name = DnsBindPermissionName.of("[PROJECT]", "[LOCATION]"); + Principal principal = Principal.newBuilder().build(); + + DnsBindPermission actualResponse = client.revokeDnsBindPermissionAsync(name, principal).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RevokeDnsBindPermissionRequest actualRequest = + ((RevokeDnsBindPermissionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(principal, actualRequest.getPrincipal()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void revokeDnsBindPermissionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + DnsBindPermissionName name = DnsBindPermissionName.of("[PROJECT]", "[LOCATION]"); + Principal principal = Principal.newBuilder().build(); + client.revokeDnsBindPermissionAsync(name, principal).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 revokeDnsBindPermissionTest2() throws Exception { + DnsBindPermission expectedResponse = + DnsBindPermission.newBuilder() + .setName(DnsBindPermissionName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllPrincipals(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("revokeDnsBindPermissionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + String name = "name3373707"; + Principal principal = Principal.newBuilder().build(); + + DnsBindPermission actualResponse = client.revokeDnsBindPermissionAsync(name, principal).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RevokeDnsBindPermissionRequest actualRequest = + ((RevokeDnsBindPermissionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(principal, actualRequest.getPrincipal()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void revokeDnsBindPermissionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String name = "name3373707"; + Principal principal = Principal.newBuilder().build(); + client.revokeDnsBindPermissionAsync(name, principal).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 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 5db5d1991d18..ae977f0027fc 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 @@ -535,3725 +535,7494 @@ private VmwareEngineGrpc() {} } private static volatile io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.ListSubnetsRequest, - com.google.cloud.vmwareengine.v1.ListSubnetsResponse> - getListSubnetsMethod; + com.google.cloud.vmwareengine.v1.ListNodesRequest, + com.google.cloud.vmwareengine.v1.ListNodesResponse> + getListNodesMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSubnets", - requestType = com.google.cloud.vmwareengine.v1.ListSubnetsRequest.class, - responseType = com.google.cloud.vmwareengine.v1.ListSubnetsResponse.class, + fullMethodName = SERVICE_NAME + '/' + "ListNodes", + requestType = com.google.cloud.vmwareengine.v1.ListNodesRequest.class, + responseType = com.google.cloud.vmwareengine.v1.ListNodesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.ListSubnetsRequest, - com.google.cloud.vmwareengine.v1.ListSubnetsResponse> - getListSubnetsMethod() { + com.google.cloud.vmwareengine.v1.ListNodesRequest, + com.google.cloud.vmwareengine.v1.ListNodesResponse> + getListNodesMethod() { io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.ListSubnetsRequest, - com.google.cloud.vmwareengine.v1.ListSubnetsResponse> - getListSubnetsMethod; - if ((getListSubnetsMethod = VmwareEngineGrpc.getListSubnetsMethod) == null) { + com.google.cloud.vmwareengine.v1.ListNodesRequest, + com.google.cloud.vmwareengine.v1.ListNodesResponse> + getListNodesMethod; + if ((getListNodesMethod = VmwareEngineGrpc.getListNodesMethod) == null) { synchronized (VmwareEngineGrpc.class) { - if ((getListSubnetsMethod = VmwareEngineGrpc.getListSubnetsMethod) == null) { - VmwareEngineGrpc.getListSubnetsMethod = - getListSubnetsMethod = + if ((getListNodesMethod = VmwareEngineGrpc.getListNodesMethod) == null) { + VmwareEngineGrpc.getListNodesMethod = + getListNodesMethod = io.grpc.MethodDescriptor - . + . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSubnets")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNodes")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.ListSubnetsRequest + com.google.cloud.vmwareengine.v1.ListNodesRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.ListSubnetsResponse + com.google.cloud.vmwareengine.v1.ListNodesResponse .getDefaultInstance())) - .setSchemaDescriptor(new VmwareEngineMethodDescriptorSupplier("ListSubnets")) + .setSchemaDescriptor(new VmwareEngineMethodDescriptorSupplier("ListNodes")) .build(); } } } - return getListSubnetsMethod; + return getListNodesMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.GetSubnetRequest, - com.google.cloud.vmwareengine.v1.Subnet> - getGetSubnetMethod; + com.google.cloud.vmwareengine.v1.GetNodeRequest, com.google.cloud.vmwareengine.v1.Node> + getGetNodeMethod; @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, + fullMethodName = SERVICE_NAME + '/' + "GetNode", + requestType = com.google.cloud.vmwareengine.v1.GetNodeRequest.class, + responseType = com.google.cloud.vmwareengine.v1.Node.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() { + com.google.cloud.vmwareengine.v1.GetNodeRequest, com.google.cloud.vmwareengine.v1.Node> + getGetNodeMethod() { io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.GetSubnetRequest, - com.google.cloud.vmwareengine.v1.Subnet> - getGetSubnetMethod; - if ((getGetSubnetMethod = VmwareEngineGrpc.getGetSubnetMethod) == null) { + com.google.cloud.vmwareengine.v1.GetNodeRequest, com.google.cloud.vmwareengine.v1.Node> + getGetNodeMethod; + if ((getGetNodeMethod = VmwareEngineGrpc.getGetNodeMethod) == null) { synchronized (VmwareEngineGrpc.class) { - if ((getGetSubnetMethod = VmwareEngineGrpc.getGetSubnetMethod) == null) { - VmwareEngineGrpc.getGetSubnetMethod = - getGetSubnetMethod = + if ((getGetNodeMethod = VmwareEngineGrpc.getGetNodeMethod) == null) { + VmwareEngineGrpc.getGetNodeMethod = + getGetNodeMethod = io.grpc.MethodDescriptor - . + . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSubnet")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNode")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.GetSubnetRequest - .getDefaultInstance())) + com.google.cloud.vmwareengine.v1.GetNodeRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.Subnet.getDefaultInstance())) - .setSchemaDescriptor(new VmwareEngineMethodDescriptorSupplier("GetSubnet")) + com.google.cloud.vmwareengine.v1.Node.getDefaultInstance())) + .setSchemaDescriptor(new VmwareEngineMethodDescriptorSupplier("GetNode")) .build(); } } } - return getGetSubnetMethod; + return getGetNodeMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.UpdateSubnetRequest, com.google.longrunning.Operation> - getUpdateSubnetMethod; + com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest, + com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse> + getListExternalAddressesMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSubnet", - requestType = com.google.cloud.vmwareengine.v1.UpdateSubnetRequest.class, - responseType = com.google.longrunning.Operation.class, + fullMethodName = SERVICE_NAME + '/' + "ListExternalAddresses", + requestType = com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest.class, + responseType = com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.UpdateSubnetRequest, com.google.longrunning.Operation> - getUpdateSubnetMethod() { + com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest, + com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse> + getListExternalAddressesMethod() { io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.UpdateSubnetRequest, com.google.longrunning.Operation> - getUpdateSubnetMethod; - if ((getUpdateSubnetMethod = VmwareEngineGrpc.getUpdateSubnetMethod) == null) { + com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest, + com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse> + getListExternalAddressesMethod; + if ((getListExternalAddressesMethod = VmwareEngineGrpc.getListExternalAddressesMethod) + == null) { synchronized (VmwareEngineGrpc.class) { - if ((getUpdateSubnetMethod = VmwareEngineGrpc.getUpdateSubnetMethod) == null) { - VmwareEngineGrpc.getUpdateSubnetMethod = - getUpdateSubnetMethod = + if ((getListExternalAddressesMethod = VmwareEngineGrpc.getListExternalAddressesMethod) + == null) { + VmwareEngineGrpc.getListExternalAddressesMethod = + getListExternalAddressesMethod = io.grpc.MethodDescriptor - . + . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSubnet")) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListExternalAddresses")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.UpdateSubnetRequest + com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new VmwareEngineMethodDescriptorSupplier("UpdateSubnet")) + com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("ListExternalAddresses")) .build(); } } } - return getUpdateSubnetMethod; + return getListExternalAddressesMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.ListNodeTypesRequest, - com.google.cloud.vmwareengine.v1.ListNodeTypesResponse> - getListNodeTypesMethod; + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest, + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse> + getFetchNetworkPolicyExternalAddressesMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListNodeTypes", - requestType = com.google.cloud.vmwareengine.v1.ListNodeTypesRequest.class, - responseType = com.google.cloud.vmwareengine.v1.ListNodeTypesResponse.class, + fullMethodName = SERVICE_NAME + '/' + "FetchNetworkPolicyExternalAddresses", + requestType = + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest.class, + responseType = + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.ListNodeTypesRequest, - com.google.cloud.vmwareengine.v1.ListNodeTypesResponse> - getListNodeTypesMethod() { + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest, + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse> + getFetchNetworkPolicyExternalAddressesMethod() { io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.ListNodeTypesRequest, - com.google.cloud.vmwareengine.v1.ListNodeTypesResponse> - getListNodeTypesMethod; - if ((getListNodeTypesMethod = VmwareEngineGrpc.getListNodeTypesMethod) == null) { + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest, + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse> + getFetchNetworkPolicyExternalAddressesMethod; + if ((getFetchNetworkPolicyExternalAddressesMethod = + VmwareEngineGrpc.getFetchNetworkPolicyExternalAddressesMethod) + == null) { synchronized (VmwareEngineGrpc.class) { - if ((getListNodeTypesMethod = VmwareEngineGrpc.getListNodeTypesMethod) == null) { - VmwareEngineGrpc.getListNodeTypesMethod = - getListNodeTypesMethod = + if ((getFetchNetworkPolicyExternalAddressesMethod = + VmwareEngineGrpc.getFetchNetworkPolicyExternalAddressesMethod) + == null) { + VmwareEngineGrpc.getFetchNetworkPolicyExternalAddressesMethod = + getFetchNetworkPolicyExternalAddressesMethod = io.grpc.MethodDescriptor - . + . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNodeTypes")) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "FetchNetworkPolicyExternalAddresses")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.ListNodeTypesRequest - .getDefaultInstance())) + com.google.cloud.vmwareengine.v1 + .FetchNetworkPolicyExternalAddressesRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.ListNodeTypesResponse + com.google.cloud.vmwareengine.v1 + .FetchNetworkPolicyExternalAddressesResponse .getDefaultInstance())) .setSchemaDescriptor( - new VmwareEngineMethodDescriptorSupplier("ListNodeTypes")) + new VmwareEngineMethodDescriptorSupplier( + "FetchNetworkPolicyExternalAddresses")) .build(); } } } - return getListNodeTypesMethod; + return getFetchNetworkPolicyExternalAddressesMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.GetNodeTypeRequest, - com.google.cloud.vmwareengine.v1.NodeType> - getGetNodeTypeMethod; + com.google.cloud.vmwareengine.v1.GetExternalAddressRequest, + com.google.cloud.vmwareengine.v1.ExternalAddress> + getGetExternalAddressMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNodeType", - requestType = com.google.cloud.vmwareengine.v1.GetNodeTypeRequest.class, - responseType = com.google.cloud.vmwareengine.v1.NodeType.class, + fullMethodName = SERVICE_NAME + '/' + "GetExternalAddress", + requestType = com.google.cloud.vmwareengine.v1.GetExternalAddressRequest.class, + responseType = com.google.cloud.vmwareengine.v1.ExternalAddress.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.GetNodeTypeRequest, - com.google.cloud.vmwareengine.v1.NodeType> - getGetNodeTypeMethod() { + com.google.cloud.vmwareengine.v1.GetExternalAddressRequest, + com.google.cloud.vmwareengine.v1.ExternalAddress> + getGetExternalAddressMethod() { io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.GetNodeTypeRequest, - com.google.cloud.vmwareengine.v1.NodeType> - getGetNodeTypeMethod; - if ((getGetNodeTypeMethod = VmwareEngineGrpc.getGetNodeTypeMethod) == null) { + com.google.cloud.vmwareengine.v1.GetExternalAddressRequest, + com.google.cloud.vmwareengine.v1.ExternalAddress> + getGetExternalAddressMethod; + if ((getGetExternalAddressMethod = VmwareEngineGrpc.getGetExternalAddressMethod) == null) { synchronized (VmwareEngineGrpc.class) { - if ((getGetNodeTypeMethod = VmwareEngineGrpc.getGetNodeTypeMethod) == null) { - VmwareEngineGrpc.getGetNodeTypeMethod = - getGetNodeTypeMethod = + if ((getGetExternalAddressMethod = VmwareEngineGrpc.getGetExternalAddressMethod) == null) { + VmwareEngineGrpc.getGetExternalAddressMethod = + getGetExternalAddressMethod = io.grpc.MethodDescriptor - . + . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNodeType")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetExternalAddress")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.GetNodeTypeRequest + com.google.cloud.vmwareengine.v1.GetExternalAddressRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.NodeType.getDefaultInstance())) - .setSchemaDescriptor(new VmwareEngineMethodDescriptorSupplier("GetNodeType")) - .build(); - } - } - } - return getGetNodeTypeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest, - com.google.cloud.vmwareengine.v1.Credentials> - getShowNsxCredentialsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ShowNsxCredentials", - requestType = com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest.class, - responseType = com.google.cloud.vmwareengine.v1.Credentials.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest, - com.google.cloud.vmwareengine.v1.Credentials> - getShowNsxCredentialsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest, - com.google.cloud.vmwareengine.v1.Credentials> - getShowNsxCredentialsMethod; - if ((getShowNsxCredentialsMethod = VmwareEngineGrpc.getShowNsxCredentialsMethod) == null) { - synchronized (VmwareEngineGrpc.class) { - if ((getShowNsxCredentialsMethod = VmwareEngineGrpc.getShowNsxCredentialsMethod) == null) { - VmwareEngineGrpc.getShowNsxCredentialsMethod = - getShowNsxCredentialsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ShowNsxCredentials")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest + com.google.cloud.vmwareengine.v1.ExternalAddress .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.Credentials.getDefaultInstance())) .setSchemaDescriptor( - new VmwareEngineMethodDescriptorSupplier("ShowNsxCredentials")) + new VmwareEngineMethodDescriptorSupplier("GetExternalAddress")) .build(); } } } - return getShowNsxCredentialsMethod; + return getGetExternalAddressMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest, - com.google.cloud.vmwareengine.v1.Credentials> - getShowVcenterCredentialsMethod; + com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest, + com.google.longrunning.Operation> + getCreateExternalAddressMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ShowVcenterCredentials", - requestType = com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest.class, - responseType = com.google.cloud.vmwareengine.v1.Credentials.class, + fullMethodName = SERVICE_NAME + '/' + "CreateExternalAddress", + requestType = com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest.class, + responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest, - com.google.cloud.vmwareengine.v1.Credentials> - getShowVcenterCredentialsMethod() { + com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest, + com.google.longrunning.Operation> + getCreateExternalAddressMethod() { io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest, - com.google.cloud.vmwareengine.v1.Credentials> - getShowVcenterCredentialsMethod; - if ((getShowVcenterCredentialsMethod = VmwareEngineGrpc.getShowVcenterCredentialsMethod) + com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest, + com.google.longrunning.Operation> + getCreateExternalAddressMethod; + if ((getCreateExternalAddressMethod = VmwareEngineGrpc.getCreateExternalAddressMethod) == null) { synchronized (VmwareEngineGrpc.class) { - if ((getShowVcenterCredentialsMethod = VmwareEngineGrpc.getShowVcenterCredentialsMethod) + if ((getCreateExternalAddressMethod = VmwareEngineGrpc.getCreateExternalAddressMethod) == null) { - VmwareEngineGrpc.getShowVcenterCredentialsMethod = - getShowVcenterCredentialsMethod = + VmwareEngineGrpc.getCreateExternalAddressMethod = + getCreateExternalAddressMethod = io.grpc.MethodDescriptor - . + . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ShowVcenterCredentials")) + generateFullMethodName(SERVICE_NAME, "CreateExternalAddress")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest + com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.Credentials.getDefaultInstance())) + com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( - new VmwareEngineMethodDescriptorSupplier("ShowVcenterCredentials")) + new VmwareEngineMethodDescriptorSupplier("CreateExternalAddress")) .build(); } } } - return getShowVcenterCredentialsMethod; + return getCreateExternalAddressMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest, + com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest, com.google.longrunning.Operation> - getResetNsxCredentialsMethod; + getUpdateExternalAddressMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ResetNsxCredentials", - requestType = com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest.class, + fullMethodName = SERVICE_NAME + '/' + "UpdateExternalAddress", + requestType = com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest, + com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest, com.google.longrunning.Operation> - getResetNsxCredentialsMethod() { + getUpdateExternalAddressMethod() { io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest, + com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest, com.google.longrunning.Operation> - getResetNsxCredentialsMethod; - if ((getResetNsxCredentialsMethod = VmwareEngineGrpc.getResetNsxCredentialsMethod) == null) { + getUpdateExternalAddressMethod; + if ((getUpdateExternalAddressMethod = VmwareEngineGrpc.getUpdateExternalAddressMethod) + == null) { synchronized (VmwareEngineGrpc.class) { - if ((getResetNsxCredentialsMethod = VmwareEngineGrpc.getResetNsxCredentialsMethod) + if ((getUpdateExternalAddressMethod = VmwareEngineGrpc.getUpdateExternalAddressMethod) == null) { - VmwareEngineGrpc.getResetNsxCredentialsMethod = - getResetNsxCredentialsMethod = + VmwareEngineGrpc.getUpdateExternalAddressMethod = + getUpdateExternalAddressMethod = io.grpc.MethodDescriptor - . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ResetNsxCredentials")) + generateFullMethodName(SERVICE_NAME, "UpdateExternalAddress")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest + com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( - new VmwareEngineMethodDescriptorSupplier("ResetNsxCredentials")) + new VmwareEngineMethodDescriptorSupplier("UpdateExternalAddress")) .build(); } } } - return getResetNsxCredentialsMethod; + return getUpdateExternalAddressMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest, + com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest, com.google.longrunning.Operation> - getResetVcenterCredentialsMethod; + getDeleteExternalAddressMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ResetVcenterCredentials", - requestType = com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest.class, + fullMethodName = SERVICE_NAME + '/' + "DeleteExternalAddress", + requestType = com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest, + com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest, com.google.longrunning.Operation> - getResetVcenterCredentialsMethod() { + getDeleteExternalAddressMethod() { io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest, + com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest, com.google.longrunning.Operation> - getResetVcenterCredentialsMethod; - if ((getResetVcenterCredentialsMethod = VmwareEngineGrpc.getResetVcenterCredentialsMethod) + getDeleteExternalAddressMethod; + if ((getDeleteExternalAddressMethod = VmwareEngineGrpc.getDeleteExternalAddressMethod) == null) { synchronized (VmwareEngineGrpc.class) { - if ((getResetVcenterCredentialsMethod = VmwareEngineGrpc.getResetVcenterCredentialsMethod) + if ((getDeleteExternalAddressMethod = VmwareEngineGrpc.getDeleteExternalAddressMethod) == null) { - VmwareEngineGrpc.getResetVcenterCredentialsMethod = - getResetVcenterCredentialsMethod = + VmwareEngineGrpc.getDeleteExternalAddressMethod = + getDeleteExternalAddressMethod = io.grpc.MethodDescriptor - . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ResetVcenterCredentials")) + generateFullMethodName(SERVICE_NAME, "DeleteExternalAddress")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest + com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( - new VmwareEngineMethodDescriptorSupplier("ResetVcenterCredentials")) + new VmwareEngineMethodDescriptorSupplier("DeleteExternalAddress")) .build(); } } } - return getResetVcenterCredentialsMethod; + return getDeleteExternalAddressMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest, - com.google.longrunning.Operation> - getCreateHcxActivationKeyMethod; + com.google.cloud.vmwareengine.v1.ListSubnetsRequest, + com.google.cloud.vmwareengine.v1.ListSubnetsResponse> + getListSubnetsMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateHcxActivationKey", - requestType = com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest.class, - responseType = com.google.longrunning.Operation.class, + fullMethodName = SERVICE_NAME + '/' + "ListSubnets", + requestType = com.google.cloud.vmwareengine.v1.ListSubnetsRequest.class, + responseType = com.google.cloud.vmwareengine.v1.ListSubnetsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest, - com.google.longrunning.Operation> - getCreateHcxActivationKeyMethod() { + com.google.cloud.vmwareengine.v1.ListSubnetsRequest, + com.google.cloud.vmwareengine.v1.ListSubnetsResponse> + getListSubnetsMethod() { io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest, - com.google.longrunning.Operation> - getCreateHcxActivationKeyMethod; - if ((getCreateHcxActivationKeyMethod = VmwareEngineGrpc.getCreateHcxActivationKeyMethod) - == null) { + com.google.cloud.vmwareengine.v1.ListSubnetsRequest, + com.google.cloud.vmwareengine.v1.ListSubnetsResponse> + getListSubnetsMethod; + if ((getListSubnetsMethod = VmwareEngineGrpc.getListSubnetsMethod) == null) { synchronized (VmwareEngineGrpc.class) { - if ((getCreateHcxActivationKeyMethod = VmwareEngineGrpc.getCreateHcxActivationKeyMethod) - == null) { - VmwareEngineGrpc.getCreateHcxActivationKeyMethod = - getCreateHcxActivationKeyMethod = + if ((getListSubnetsMethod = VmwareEngineGrpc.getListSubnetsMethod) == null) { + VmwareEngineGrpc.getListSubnetsMethod = + getListSubnetsMethod = io.grpc.MethodDescriptor - . + . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateHcxActivationKey")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSubnets")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest + com.google.cloud.vmwareengine.v1.ListSubnetsRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new VmwareEngineMethodDescriptorSupplier("CreateHcxActivationKey")) + com.google.cloud.vmwareengine.v1.ListSubnetsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new VmwareEngineMethodDescriptorSupplier("ListSubnets")) .build(); } } } - return getCreateHcxActivationKeyMethod; + return getListSubnetsMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest, - com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse> - getListHcxActivationKeysMethod; + com.google.cloud.vmwareengine.v1.GetSubnetRequest, + com.google.cloud.vmwareengine.v1.Subnet> + getGetSubnetMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListHcxActivationKeys", - requestType = com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest.class, - responseType = com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.class, + 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.ListHcxActivationKeysRequest, - com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse> - getListHcxActivationKeysMethod() { + com.google.cloud.vmwareengine.v1.GetSubnetRequest, + com.google.cloud.vmwareengine.v1.Subnet> + getGetSubnetMethod() { io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest, - com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse> - getListHcxActivationKeysMethod; - if ((getListHcxActivationKeysMethod = VmwareEngineGrpc.getListHcxActivationKeysMethod) - == null) { + com.google.cloud.vmwareengine.v1.GetSubnetRequest, + com.google.cloud.vmwareengine.v1.Subnet> + getGetSubnetMethod; + if ((getGetSubnetMethod = VmwareEngineGrpc.getGetSubnetMethod) == null) { synchronized (VmwareEngineGrpc.class) { - if ((getListHcxActivationKeysMethod = VmwareEngineGrpc.getListHcxActivationKeysMethod) - == null) { - VmwareEngineGrpc.getListHcxActivationKeysMethod = - getListHcxActivationKeysMethod = + if ((getGetSubnetMethod = VmwareEngineGrpc.getGetSubnetMethod) == null) { + VmwareEngineGrpc.getGetSubnetMethod = + getGetSubnetMethod = io.grpc.MethodDescriptor - . + . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListHcxActivationKeys")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSubnet")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest + com.google.cloud.vmwareengine.v1.GetSubnetRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new VmwareEngineMethodDescriptorSupplier("ListHcxActivationKeys")) + com.google.cloud.vmwareengine.v1.Subnet.getDefaultInstance())) + .setSchemaDescriptor(new VmwareEngineMethodDescriptorSupplier("GetSubnet")) .build(); } } } - return getListHcxActivationKeysMethod; + return getGetSubnetMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest, - com.google.cloud.vmwareengine.v1.HcxActivationKey> - getGetHcxActivationKeyMethod; + com.google.cloud.vmwareengine.v1.UpdateSubnetRequest, com.google.longrunning.Operation> + getUpdateSubnetMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetHcxActivationKey", - requestType = com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest.class, - responseType = com.google.cloud.vmwareengine.v1.HcxActivationKey.class, + 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.GetHcxActivationKeyRequest, - com.google.cloud.vmwareengine.v1.HcxActivationKey> - getGetHcxActivationKeyMethod() { + com.google.cloud.vmwareengine.v1.UpdateSubnetRequest, com.google.longrunning.Operation> + getUpdateSubnetMethod() { io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest, - com.google.cloud.vmwareengine.v1.HcxActivationKey> - getGetHcxActivationKeyMethod; - if ((getGetHcxActivationKeyMethod = VmwareEngineGrpc.getGetHcxActivationKeyMethod) == null) { + com.google.cloud.vmwareengine.v1.UpdateSubnetRequest, com.google.longrunning.Operation> + getUpdateSubnetMethod; + if ((getUpdateSubnetMethod = VmwareEngineGrpc.getUpdateSubnetMethod) == null) { synchronized (VmwareEngineGrpc.class) { - if ((getGetHcxActivationKeyMethod = VmwareEngineGrpc.getGetHcxActivationKeyMethod) - == null) { - VmwareEngineGrpc.getGetHcxActivationKeyMethod = - getGetHcxActivationKeyMethod = + if ((getUpdateSubnetMethod = VmwareEngineGrpc.getUpdateSubnetMethod) == null) { + VmwareEngineGrpc.getUpdateSubnetMethod = + getUpdateSubnetMethod = io.grpc.MethodDescriptor - . + . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetHcxActivationKey")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSubnet")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest + com.google.cloud.vmwareengine.v1.UpdateSubnetRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.HcxActivationKey - .getDefaultInstance())) - .setSchemaDescriptor( - new VmwareEngineMethodDescriptorSupplier("GetHcxActivationKey")) + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new VmwareEngineMethodDescriptorSupplier("UpdateSubnet")) .build(); } } } - return getGetHcxActivationKeyMethod; + return getUpdateSubnetMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest, - com.google.cloud.vmwareengine.v1.NetworkPolicy> - getGetNetworkPolicyMethod; + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest, + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse> + getListExternalAccessRulesMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNetworkPolicy", - requestType = com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest.class, - responseType = com.google.cloud.vmwareengine.v1.NetworkPolicy.class, + fullMethodName = SERVICE_NAME + '/' + "ListExternalAccessRules", + requestType = com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest.class, + responseType = com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest, - com.google.cloud.vmwareengine.v1.NetworkPolicy> - getGetNetworkPolicyMethod() { + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest, + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse> + getListExternalAccessRulesMethod() { io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest, - com.google.cloud.vmwareengine.v1.NetworkPolicy> - getGetNetworkPolicyMethod; - if ((getGetNetworkPolicyMethod = VmwareEngineGrpc.getGetNetworkPolicyMethod) == null) { + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest, + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse> + getListExternalAccessRulesMethod; + if ((getListExternalAccessRulesMethod = VmwareEngineGrpc.getListExternalAccessRulesMethod) + == null) { synchronized (VmwareEngineGrpc.class) { - if ((getGetNetworkPolicyMethod = VmwareEngineGrpc.getGetNetworkPolicyMethod) == null) { - VmwareEngineGrpc.getGetNetworkPolicyMethod = - getGetNetworkPolicyMethod = + if ((getListExternalAccessRulesMethod = VmwareEngineGrpc.getListExternalAccessRulesMethod) + == null) { + VmwareEngineGrpc.getListExternalAccessRulesMethod = + getListExternalAccessRulesMethod = io.grpc.MethodDescriptor - . + . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNetworkPolicy")) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListExternalAccessRules")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.NetworkPolicy.getDefaultInstance())) + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse + .getDefaultInstance())) .setSchemaDescriptor( - new VmwareEngineMethodDescriptorSupplier("GetNetworkPolicy")) + new VmwareEngineMethodDescriptorSupplier("ListExternalAccessRules")) .build(); } } } - return getGetNetworkPolicyMethod; + return getListExternalAccessRulesMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest, - com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse> - getListNetworkPoliciesMethod; + com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest, + com.google.cloud.vmwareengine.v1.ExternalAccessRule> + getGetExternalAccessRuleMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListNetworkPolicies", - requestType = com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest.class, - responseType = com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.class, + fullMethodName = SERVICE_NAME + '/' + "GetExternalAccessRule", + requestType = com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest.class, + responseType = com.google.cloud.vmwareengine.v1.ExternalAccessRule.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest, - com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse> - getListNetworkPoliciesMethod() { + com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest, + com.google.cloud.vmwareengine.v1.ExternalAccessRule> + getGetExternalAccessRuleMethod() { io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest, - com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse> - getListNetworkPoliciesMethod; - if ((getListNetworkPoliciesMethod = VmwareEngineGrpc.getListNetworkPoliciesMethod) == null) { + com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest, + com.google.cloud.vmwareengine.v1.ExternalAccessRule> + getGetExternalAccessRuleMethod; + if ((getGetExternalAccessRuleMethod = VmwareEngineGrpc.getGetExternalAccessRuleMethod) + == null) { synchronized (VmwareEngineGrpc.class) { - if ((getListNetworkPoliciesMethod = VmwareEngineGrpc.getListNetworkPoliciesMethod) + if ((getGetExternalAccessRuleMethod = VmwareEngineGrpc.getGetExternalAccessRuleMethod) == null) { - VmwareEngineGrpc.getListNetworkPoliciesMethod = - getListNetworkPoliciesMethod = + VmwareEngineGrpc.getGetExternalAccessRuleMethod = + getGetExternalAccessRuleMethod = io.grpc.MethodDescriptor - . + . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListNetworkPolicies")) + generateFullMethodName(SERVICE_NAME, "GetExternalAccessRule")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest + com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + com.google.cloud.vmwareengine.v1.ExternalAccessRule .getDefaultInstance())) .setSchemaDescriptor( - new VmwareEngineMethodDescriptorSupplier("ListNetworkPolicies")) + new VmwareEngineMethodDescriptorSupplier("GetExternalAccessRule")) .build(); } } } - return getListNetworkPoliciesMethod; + return getGetExternalAccessRuleMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest, + com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest, com.google.longrunning.Operation> - getCreateNetworkPolicyMethod; + getCreateExternalAccessRuleMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateNetworkPolicy", - requestType = com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest.class, + fullMethodName = SERVICE_NAME + '/' + "CreateExternalAccessRule", + requestType = com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest, + com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest, com.google.longrunning.Operation> - getCreateNetworkPolicyMethod() { + getCreateExternalAccessRuleMethod() { io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest, + com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest, com.google.longrunning.Operation> - getCreateNetworkPolicyMethod; - if ((getCreateNetworkPolicyMethod = VmwareEngineGrpc.getCreateNetworkPolicyMethod) == null) { + getCreateExternalAccessRuleMethod; + if ((getCreateExternalAccessRuleMethod = VmwareEngineGrpc.getCreateExternalAccessRuleMethod) + == null) { synchronized (VmwareEngineGrpc.class) { - if ((getCreateNetworkPolicyMethod = VmwareEngineGrpc.getCreateNetworkPolicyMethod) + if ((getCreateExternalAccessRuleMethod = VmwareEngineGrpc.getCreateExternalAccessRuleMethod) == null) { - VmwareEngineGrpc.getCreateNetworkPolicyMethod = - getCreateNetworkPolicyMethod = + VmwareEngineGrpc.getCreateExternalAccessRuleMethod = + getCreateExternalAccessRuleMethod = io.grpc.MethodDescriptor - . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateNetworkPolicy")) + generateFullMethodName(SERVICE_NAME, "CreateExternalAccessRule")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( - new VmwareEngineMethodDescriptorSupplier("CreateNetworkPolicy")) + new VmwareEngineMethodDescriptorSupplier("CreateExternalAccessRule")) .build(); } } } - return getCreateNetworkPolicyMethod; + return getCreateExternalAccessRuleMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest, + com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest, com.google.longrunning.Operation> - getUpdateNetworkPolicyMethod; + getUpdateExternalAccessRuleMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateNetworkPolicy", - requestType = com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.class, + fullMethodName = SERVICE_NAME + '/' + "UpdateExternalAccessRule", + requestType = com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest, + com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest, com.google.longrunning.Operation> - getUpdateNetworkPolicyMethod() { + getUpdateExternalAccessRuleMethod() { io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest, + com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest, com.google.longrunning.Operation> - getUpdateNetworkPolicyMethod; - if ((getUpdateNetworkPolicyMethod = VmwareEngineGrpc.getUpdateNetworkPolicyMethod) == null) { + getUpdateExternalAccessRuleMethod; + if ((getUpdateExternalAccessRuleMethod = VmwareEngineGrpc.getUpdateExternalAccessRuleMethod) + == null) { synchronized (VmwareEngineGrpc.class) { - if ((getUpdateNetworkPolicyMethod = VmwareEngineGrpc.getUpdateNetworkPolicyMethod) + if ((getUpdateExternalAccessRuleMethod = VmwareEngineGrpc.getUpdateExternalAccessRuleMethod) == null) { - VmwareEngineGrpc.getUpdateNetworkPolicyMethod = - getUpdateNetworkPolicyMethod = + VmwareEngineGrpc.getUpdateExternalAccessRuleMethod = + getUpdateExternalAccessRuleMethod = io.grpc.MethodDescriptor - . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateNetworkPolicy")) + generateFullMethodName(SERVICE_NAME, "UpdateExternalAccessRule")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( - new VmwareEngineMethodDescriptorSupplier("UpdateNetworkPolicy")) + new VmwareEngineMethodDescriptorSupplier("UpdateExternalAccessRule")) .build(); } } } - return getUpdateNetworkPolicyMethod; + return getUpdateExternalAccessRuleMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest, + com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest, com.google.longrunning.Operation> - getDeleteNetworkPolicyMethod; + getDeleteExternalAccessRuleMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteNetworkPolicy", - requestType = com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest.class, + fullMethodName = SERVICE_NAME + '/' + "DeleteExternalAccessRule", + requestType = com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest, + com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest, com.google.longrunning.Operation> - getDeleteNetworkPolicyMethod() { + getDeleteExternalAccessRuleMethod() { io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest, + com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest, com.google.longrunning.Operation> - getDeleteNetworkPolicyMethod; - if ((getDeleteNetworkPolicyMethod = VmwareEngineGrpc.getDeleteNetworkPolicyMethod) == null) { + getDeleteExternalAccessRuleMethod; + if ((getDeleteExternalAccessRuleMethod = VmwareEngineGrpc.getDeleteExternalAccessRuleMethod) + == null) { synchronized (VmwareEngineGrpc.class) { - if ((getDeleteNetworkPolicyMethod = VmwareEngineGrpc.getDeleteNetworkPolicyMethod) + if ((getDeleteExternalAccessRuleMethod = VmwareEngineGrpc.getDeleteExternalAccessRuleMethod) == null) { - VmwareEngineGrpc.getDeleteNetworkPolicyMethod = - getDeleteNetworkPolicyMethod = + VmwareEngineGrpc.getDeleteExternalAccessRuleMethod = + getDeleteExternalAccessRuleMethod = io.grpc.MethodDescriptor - . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteNetworkPolicy")) + generateFullMethodName(SERVICE_NAME, "DeleteExternalAccessRule")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( - new VmwareEngineMethodDescriptorSupplier("DeleteNetworkPolicy")) + new VmwareEngineMethodDescriptorSupplier("DeleteExternalAccessRule")) .build(); } } } - return getDeleteNetworkPolicyMethod; + return getDeleteExternalAccessRuleMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest, - com.google.longrunning.Operation> - getCreateVmwareEngineNetworkMethod; + com.google.cloud.vmwareengine.v1.ListLoggingServersRequest, + com.google.cloud.vmwareengine.v1.ListLoggingServersResponse> + getListLoggingServersMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateVmwareEngineNetwork", - requestType = com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest.class, - responseType = com.google.longrunning.Operation.class, + fullMethodName = SERVICE_NAME + '/' + "ListLoggingServers", + requestType = com.google.cloud.vmwareengine.v1.ListLoggingServersRequest.class, + responseType = com.google.cloud.vmwareengine.v1.ListLoggingServersResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest, - com.google.longrunning.Operation> - getCreateVmwareEngineNetworkMethod() { + com.google.cloud.vmwareengine.v1.ListLoggingServersRequest, + com.google.cloud.vmwareengine.v1.ListLoggingServersResponse> + getListLoggingServersMethod() { io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest, - com.google.longrunning.Operation> - getCreateVmwareEngineNetworkMethod; - if ((getCreateVmwareEngineNetworkMethod = VmwareEngineGrpc.getCreateVmwareEngineNetworkMethod) - == null) { + com.google.cloud.vmwareengine.v1.ListLoggingServersRequest, + com.google.cloud.vmwareengine.v1.ListLoggingServersResponse> + getListLoggingServersMethod; + if ((getListLoggingServersMethod = VmwareEngineGrpc.getListLoggingServersMethod) == null) { synchronized (VmwareEngineGrpc.class) { - if ((getCreateVmwareEngineNetworkMethod = - VmwareEngineGrpc.getCreateVmwareEngineNetworkMethod) - == null) { - VmwareEngineGrpc.getCreateVmwareEngineNetworkMethod = - getCreateVmwareEngineNetworkMethod = + if ((getListLoggingServersMethod = VmwareEngineGrpc.getListLoggingServersMethod) == null) { + VmwareEngineGrpc.getListLoggingServersMethod = + getListLoggingServersMethod = io.grpc.MethodDescriptor - . + . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateVmwareEngineNetwork")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLoggingServers")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + com.google.cloud.vmwareengine.v1.ListLoggingServersRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) + com.google.cloud.vmwareengine.v1.ListLoggingServersResponse + .getDefaultInstance())) .setSchemaDescriptor( - new VmwareEngineMethodDescriptorSupplier("CreateVmwareEngineNetwork")) + new VmwareEngineMethodDescriptorSupplier("ListLoggingServers")) .build(); } } } - return getCreateVmwareEngineNetworkMethod; + return getListLoggingServersMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest, - com.google.longrunning.Operation> - getUpdateVmwareEngineNetworkMethod; + com.google.cloud.vmwareengine.v1.GetLoggingServerRequest, + com.google.cloud.vmwareengine.v1.LoggingServer> + getGetLoggingServerMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateVmwareEngineNetwork", - requestType = com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.class, - responseType = com.google.longrunning.Operation.class, + fullMethodName = SERVICE_NAME + '/' + "GetLoggingServer", + requestType = com.google.cloud.vmwareengine.v1.GetLoggingServerRequest.class, + responseType = com.google.cloud.vmwareengine.v1.LoggingServer.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest, - com.google.longrunning.Operation> - getUpdateVmwareEngineNetworkMethod() { + com.google.cloud.vmwareengine.v1.GetLoggingServerRequest, + com.google.cloud.vmwareengine.v1.LoggingServer> + getGetLoggingServerMethod() { io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest, - com.google.longrunning.Operation> - getUpdateVmwareEngineNetworkMethod; - if ((getUpdateVmwareEngineNetworkMethod = VmwareEngineGrpc.getUpdateVmwareEngineNetworkMethod) - == null) { + com.google.cloud.vmwareengine.v1.GetLoggingServerRequest, + com.google.cloud.vmwareengine.v1.LoggingServer> + getGetLoggingServerMethod; + if ((getGetLoggingServerMethod = VmwareEngineGrpc.getGetLoggingServerMethod) == null) { synchronized (VmwareEngineGrpc.class) { - if ((getUpdateVmwareEngineNetworkMethod = - VmwareEngineGrpc.getUpdateVmwareEngineNetworkMethod) - == null) { - VmwareEngineGrpc.getUpdateVmwareEngineNetworkMethod = - getUpdateVmwareEngineNetworkMethod = + if ((getGetLoggingServerMethod = VmwareEngineGrpc.getGetLoggingServerMethod) == null) { + VmwareEngineGrpc.getGetLoggingServerMethod = + getGetLoggingServerMethod = io.grpc.MethodDescriptor - . + . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateVmwareEngineNetwork")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLoggingServer")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + com.google.cloud.vmwareengine.v1.GetLoggingServerRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) + com.google.cloud.vmwareengine.v1.LoggingServer.getDefaultInstance())) .setSchemaDescriptor( - new VmwareEngineMethodDescriptorSupplier("UpdateVmwareEngineNetwork")) + new VmwareEngineMethodDescriptorSupplier("GetLoggingServer")) .build(); } } } - return getUpdateVmwareEngineNetworkMethod; + return getGetLoggingServerMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest, + com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest, com.google.longrunning.Operation> - getDeleteVmwareEngineNetworkMethod; + getCreateLoggingServerMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteVmwareEngineNetwork", - requestType = com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest.class, + fullMethodName = SERVICE_NAME + '/' + "CreateLoggingServer", + requestType = com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest, + com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest, com.google.longrunning.Operation> - getDeleteVmwareEngineNetworkMethod() { + getCreateLoggingServerMethod() { io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest, + com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest, com.google.longrunning.Operation> - getDeleteVmwareEngineNetworkMethod; - if ((getDeleteVmwareEngineNetworkMethod = VmwareEngineGrpc.getDeleteVmwareEngineNetworkMethod) - == null) { + getCreateLoggingServerMethod; + if ((getCreateLoggingServerMethod = VmwareEngineGrpc.getCreateLoggingServerMethod) == null) { synchronized (VmwareEngineGrpc.class) { - if ((getDeleteVmwareEngineNetworkMethod = - VmwareEngineGrpc.getDeleteVmwareEngineNetworkMethod) + if ((getCreateLoggingServerMethod = VmwareEngineGrpc.getCreateLoggingServerMethod) == null) { - VmwareEngineGrpc.getDeleteVmwareEngineNetworkMethod = - getDeleteVmwareEngineNetworkMethod = + VmwareEngineGrpc.getCreateLoggingServerMethod = + getCreateLoggingServerMethod = io.grpc.MethodDescriptor - . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteVmwareEngineNetwork")) + generateFullMethodName(SERVICE_NAME, "CreateLoggingServer")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest + com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( - new VmwareEngineMethodDescriptorSupplier("DeleteVmwareEngineNetwork")) + new VmwareEngineMethodDescriptorSupplier("CreateLoggingServer")) .build(); } } } - return getDeleteVmwareEngineNetworkMethod; + return getCreateLoggingServerMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest, - com.google.cloud.vmwareengine.v1.VmwareEngineNetwork> - getGetVmwareEngineNetworkMethod; + com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest, + com.google.longrunning.Operation> + getUpdateLoggingServerMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetVmwareEngineNetwork", - requestType = com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest.class, - responseType = com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.class, + fullMethodName = SERVICE_NAME + '/' + "UpdateLoggingServer", + requestType = com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest.class, + responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest, - com.google.cloud.vmwareengine.v1.VmwareEngineNetwork> - getGetVmwareEngineNetworkMethod() { + com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest, + com.google.longrunning.Operation> + getUpdateLoggingServerMethod() { io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest, - com.google.cloud.vmwareengine.v1.VmwareEngineNetwork> - getGetVmwareEngineNetworkMethod; - if ((getGetVmwareEngineNetworkMethod = VmwareEngineGrpc.getGetVmwareEngineNetworkMethod) - == null) { + com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest, + com.google.longrunning.Operation> + getUpdateLoggingServerMethod; + if ((getUpdateLoggingServerMethod = VmwareEngineGrpc.getUpdateLoggingServerMethod) == null) { synchronized (VmwareEngineGrpc.class) { - if ((getGetVmwareEngineNetworkMethod = VmwareEngineGrpc.getGetVmwareEngineNetworkMethod) + if ((getUpdateLoggingServerMethod = VmwareEngineGrpc.getUpdateLoggingServerMethod) == null) { - VmwareEngineGrpc.getGetVmwareEngineNetworkMethod = - getGetVmwareEngineNetworkMethod = + VmwareEngineGrpc.getUpdateLoggingServerMethod = + getUpdateLoggingServerMethod = io.grpc.MethodDescriptor - . + . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetVmwareEngineNetwork")) + generateFullMethodName(SERVICE_NAME, "UpdateLoggingServer")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest + com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.VmwareEngineNetwork - .getDefaultInstance())) + com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( - new VmwareEngineMethodDescriptorSupplier("GetVmwareEngineNetwork")) + new VmwareEngineMethodDescriptorSupplier("UpdateLoggingServer")) .build(); } } } - return getGetVmwareEngineNetworkMethod; + return getUpdateLoggingServerMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest, - com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse> - getListVmwareEngineNetworksMethod; + com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest, + com.google.longrunning.Operation> + getDeleteLoggingServerMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListVmwareEngineNetworks", - requestType = com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest.class, - responseType = com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.class, + fullMethodName = SERVICE_NAME + '/' + "DeleteLoggingServer", + requestType = com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest.class, + responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest, - com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse> - getListVmwareEngineNetworksMethod() { + com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest, + com.google.longrunning.Operation> + getDeleteLoggingServerMethod() { io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest, - com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse> - getListVmwareEngineNetworksMethod; - if ((getListVmwareEngineNetworksMethod = VmwareEngineGrpc.getListVmwareEngineNetworksMethod) - == null) { + com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest, + com.google.longrunning.Operation> + getDeleteLoggingServerMethod; + if ((getDeleteLoggingServerMethod = VmwareEngineGrpc.getDeleteLoggingServerMethod) == null) { synchronized (VmwareEngineGrpc.class) { - if ((getListVmwareEngineNetworksMethod = VmwareEngineGrpc.getListVmwareEngineNetworksMethod) + if ((getDeleteLoggingServerMethod = VmwareEngineGrpc.getDeleteLoggingServerMethod) == null) { - VmwareEngineGrpc.getListVmwareEngineNetworksMethod = - getListVmwareEngineNetworksMethod = + VmwareEngineGrpc.getDeleteLoggingServerMethod = + getDeleteLoggingServerMethod = io.grpc.MethodDescriptor - . + . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListVmwareEngineNetworks")) + generateFullMethodName(SERVICE_NAME, "DeleteLoggingServer")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse - .getDefaultInstance())) + com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( - new VmwareEngineMethodDescriptorSupplier("ListVmwareEngineNetworks")) + new VmwareEngineMethodDescriptorSupplier("DeleteLoggingServer")) .build(); } } } - return getListVmwareEngineNetworksMethod; + return getDeleteLoggingServerMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest, - com.google.longrunning.Operation> - getCreatePrivateConnectionMethod; + com.google.cloud.vmwareengine.v1.ListNodeTypesRequest, + com.google.cloud.vmwareengine.v1.ListNodeTypesResponse> + getListNodeTypesMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreatePrivateConnection", - requestType = com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest.class, - responseType = com.google.longrunning.Operation.class, + fullMethodName = SERVICE_NAME + '/' + "ListNodeTypes", + requestType = com.google.cloud.vmwareengine.v1.ListNodeTypesRequest.class, + responseType = com.google.cloud.vmwareengine.v1.ListNodeTypesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest, - com.google.longrunning.Operation> - getCreatePrivateConnectionMethod() { + com.google.cloud.vmwareengine.v1.ListNodeTypesRequest, + com.google.cloud.vmwareengine.v1.ListNodeTypesResponse> + getListNodeTypesMethod() { io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest, - com.google.longrunning.Operation> - getCreatePrivateConnectionMethod; - if ((getCreatePrivateConnectionMethod = VmwareEngineGrpc.getCreatePrivateConnectionMethod) - == null) { + com.google.cloud.vmwareengine.v1.ListNodeTypesRequest, + com.google.cloud.vmwareengine.v1.ListNodeTypesResponse> + getListNodeTypesMethod; + if ((getListNodeTypesMethod = VmwareEngineGrpc.getListNodeTypesMethod) == null) { synchronized (VmwareEngineGrpc.class) { - if ((getCreatePrivateConnectionMethod = VmwareEngineGrpc.getCreatePrivateConnectionMethod) - == null) { - VmwareEngineGrpc.getCreatePrivateConnectionMethod = - getCreatePrivateConnectionMethod = + if ((getListNodeTypesMethod = VmwareEngineGrpc.getListNodeTypesMethod) == null) { + VmwareEngineGrpc.getListNodeTypesMethod = + getListNodeTypesMethod = io.grpc.MethodDescriptor - . + . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreatePrivateConnection")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNodeTypes")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest + com.google.cloud.vmwareengine.v1.ListNodeTypesRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) + com.google.cloud.vmwareengine.v1.ListNodeTypesResponse + .getDefaultInstance())) .setSchemaDescriptor( - new VmwareEngineMethodDescriptorSupplier("CreatePrivateConnection")) + new VmwareEngineMethodDescriptorSupplier("ListNodeTypes")) .build(); } } } - return getCreatePrivateConnectionMethod; + return getListNodeTypesMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest, - com.google.cloud.vmwareengine.v1.PrivateConnection> - getGetPrivateConnectionMethod; + com.google.cloud.vmwareengine.v1.GetNodeTypeRequest, + com.google.cloud.vmwareengine.v1.NodeType> + getGetNodeTypeMethod; @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, + fullMethodName = SERVICE_NAME + '/' + "GetNodeType", + requestType = com.google.cloud.vmwareengine.v1.GetNodeTypeRequest.class, + responseType = com.google.cloud.vmwareengine.v1.NodeType.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() { + com.google.cloud.vmwareengine.v1.GetNodeTypeRequest, + com.google.cloud.vmwareengine.v1.NodeType> + getGetNodeTypeMethod() { io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest, - com.google.cloud.vmwareengine.v1.PrivateConnection> - getGetPrivateConnectionMethod; - if ((getGetPrivateConnectionMethod = VmwareEngineGrpc.getGetPrivateConnectionMethod) == null) { + com.google.cloud.vmwareengine.v1.GetNodeTypeRequest, + com.google.cloud.vmwareengine.v1.NodeType> + getGetNodeTypeMethod; + if ((getGetNodeTypeMethod = VmwareEngineGrpc.getGetNodeTypeMethod) == null) { synchronized (VmwareEngineGrpc.class) { - if ((getGetPrivateConnectionMethod = VmwareEngineGrpc.getGetPrivateConnectionMethod) - == null) { - VmwareEngineGrpc.getGetPrivateConnectionMethod = - getGetPrivateConnectionMethod = + if ((getGetNodeTypeMethod = VmwareEngineGrpc.getGetNodeTypeMethod) == null) { + VmwareEngineGrpc.getGetNodeTypeMethod = + getGetNodeTypeMethod = io.grpc.MethodDescriptor - . + . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetPrivateConnection")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNodeType")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest + com.google.cloud.vmwareengine.v1.GetNodeTypeRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.PrivateConnection - .getDefaultInstance())) - .setSchemaDescriptor( - new VmwareEngineMethodDescriptorSupplier("GetPrivateConnection")) + com.google.cloud.vmwareengine.v1.NodeType.getDefaultInstance())) + .setSchemaDescriptor(new VmwareEngineMethodDescriptorSupplier("GetNodeType")) .build(); } } } - return getGetPrivateConnectionMethod; + return getGetNodeTypeMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest, - com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse> - getListPrivateConnectionsMethod; + com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest, + com.google.cloud.vmwareengine.v1.Credentials> + getShowNsxCredentialsMethod; @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, + fullMethodName = SERVICE_NAME + '/' + "ShowNsxCredentials", + requestType = com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest.class, + responseType = com.google.cloud.vmwareengine.v1.Credentials.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() { + com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest, + com.google.cloud.vmwareengine.v1.Credentials> + getShowNsxCredentialsMethod() { io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest, - com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse> - getListPrivateConnectionsMethod; - if ((getListPrivateConnectionsMethod = VmwareEngineGrpc.getListPrivateConnectionsMethod) - == null) { + com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest, + com.google.cloud.vmwareengine.v1.Credentials> + getShowNsxCredentialsMethod; + if ((getShowNsxCredentialsMethod = VmwareEngineGrpc.getShowNsxCredentialsMethod) == null) { synchronized (VmwareEngineGrpc.class) { - if ((getListPrivateConnectionsMethod = VmwareEngineGrpc.getListPrivateConnectionsMethod) - == null) { - VmwareEngineGrpc.getListPrivateConnectionsMethod = - getListPrivateConnectionsMethod = + if ((getShowNsxCredentialsMethod = VmwareEngineGrpc.getShowNsxCredentialsMethod) == null) { + VmwareEngineGrpc.getShowNsxCredentialsMethod = + getShowNsxCredentialsMethod = io.grpc.MethodDescriptor - . + . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListPrivateConnections")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ShowNsxCredentials")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest + com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse + com.google.cloud.vmwareengine.v1.Credentials.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("ShowNsxCredentials")) + .build(); + } + } + } + return getShowNsxCredentialsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest, + com.google.cloud.vmwareengine.v1.Credentials> + getShowVcenterCredentialsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ShowVcenterCredentials", + requestType = com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest.class, + responseType = com.google.cloud.vmwareengine.v1.Credentials.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest, + com.google.cloud.vmwareengine.v1.Credentials> + getShowVcenterCredentialsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest, + com.google.cloud.vmwareengine.v1.Credentials> + getShowVcenterCredentialsMethod; + if ((getShowVcenterCredentialsMethod = VmwareEngineGrpc.getShowVcenterCredentialsMethod) + == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getShowVcenterCredentialsMethod = VmwareEngineGrpc.getShowVcenterCredentialsMethod) + == null) { + VmwareEngineGrpc.getShowVcenterCredentialsMethod = + getShowVcenterCredentialsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ShowVcenterCredentials")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.Credentials.getDefaultInstance())) .setSchemaDescriptor( - new VmwareEngineMethodDescriptorSupplier("ListPrivateConnections")) + new VmwareEngineMethodDescriptorSupplier("ShowVcenterCredentials")) .build(); } } } - return getListPrivateConnectionsMethod; + return getShowVcenterCredentialsMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest, + com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest, com.google.longrunning.Operation> - getUpdatePrivateConnectionMethod; + getResetNsxCredentialsMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdatePrivateConnection", - requestType = com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest.class, + fullMethodName = SERVICE_NAME + '/' + "ResetNsxCredentials", + requestType = com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest.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.cloud.vmwareengine.v1.ResetNsxCredentialsRequest, com.google.longrunning.Operation> - getUpdatePrivateConnectionMethod() { + getResetNsxCredentialsMethod() { io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest, + com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest, com.google.longrunning.Operation> - getUpdatePrivateConnectionMethod; - if ((getUpdatePrivateConnectionMethod = VmwareEngineGrpc.getUpdatePrivateConnectionMethod) - == null) { + getResetNsxCredentialsMethod; + if ((getResetNsxCredentialsMethod = VmwareEngineGrpc.getResetNsxCredentialsMethod) == null) { synchronized (VmwareEngineGrpc.class) { - if ((getUpdatePrivateConnectionMethod = VmwareEngineGrpc.getUpdatePrivateConnectionMethod) + if ((getResetNsxCredentialsMethod = VmwareEngineGrpc.getResetNsxCredentialsMethod) == null) { - VmwareEngineGrpc.getUpdatePrivateConnectionMethod = - getUpdatePrivateConnectionMethod = + VmwareEngineGrpc.getResetNsxCredentialsMethod = + getResetNsxCredentialsMethod = io.grpc.MethodDescriptor - . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdatePrivateConnection")) + generateFullMethodName(SERVICE_NAME, "ResetNsxCredentials")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest + com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( - new VmwareEngineMethodDescriptorSupplier("UpdatePrivateConnection")) + new VmwareEngineMethodDescriptorSupplier("ResetNsxCredentials")) .build(); } } } - return getUpdatePrivateConnectionMethod; + return getResetNsxCredentialsMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest, + com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest, com.google.longrunning.Operation> - getDeletePrivateConnectionMethod; + getResetVcenterCredentialsMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeletePrivateConnection", - requestType = com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest.class, + fullMethodName = SERVICE_NAME + '/' + "ResetVcenterCredentials", + requestType = com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest.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.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest, com.google.longrunning.Operation> - getDeletePrivateConnectionMethod() { + getResetVcenterCredentialsMethod() { io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest, + com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest, com.google.longrunning.Operation> - getDeletePrivateConnectionMethod; - if ((getDeletePrivateConnectionMethod = VmwareEngineGrpc.getDeletePrivateConnectionMethod) + getResetVcenterCredentialsMethod; + if ((getResetVcenterCredentialsMethod = VmwareEngineGrpc.getResetVcenterCredentialsMethod) == null) { synchronized (VmwareEngineGrpc.class) { - if ((getDeletePrivateConnectionMethod = VmwareEngineGrpc.getDeletePrivateConnectionMethod) + if ((getResetVcenterCredentialsMethod = VmwareEngineGrpc.getResetVcenterCredentialsMethod) == null) { - VmwareEngineGrpc.getDeletePrivateConnectionMethod = - getDeletePrivateConnectionMethod = + VmwareEngineGrpc.getResetVcenterCredentialsMethod = + getResetVcenterCredentialsMethod = io.grpc.MethodDescriptor - . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeletePrivateConnection")) + generateFullMethodName(SERVICE_NAME, "ResetVcenterCredentials")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest + com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( - new VmwareEngineMethodDescriptorSupplier("DeletePrivateConnection")) + new VmwareEngineMethodDescriptorSupplier("ResetVcenterCredentials")) .build(); } } } - return getDeletePrivateConnectionMethod; + return getResetVcenterCredentialsMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest, - com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse> - getListPrivateConnectionPeeringRoutesMethod; + com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest, + com.google.cloud.vmwareengine.v1.DnsForwarding> + getGetDnsForwardingMethod; @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, + fullMethodName = SERVICE_NAME + '/' + "GetDnsForwarding", + requestType = com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest.class, + responseType = com.google.cloud.vmwareengine.v1.DnsForwarding.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() { + com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest, + com.google.cloud.vmwareengine.v1.DnsForwarding> + getGetDnsForwardingMethod() { io.grpc.MethodDescriptor< - com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest, - com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse> - getListPrivateConnectionPeeringRoutesMethod; - if ((getListPrivateConnectionPeeringRoutesMethod = - VmwareEngineGrpc.getListPrivateConnectionPeeringRoutesMethod) - == null) { + com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest, + com.google.cloud.vmwareengine.v1.DnsForwarding> + getGetDnsForwardingMethod; + if ((getGetDnsForwardingMethod = VmwareEngineGrpc.getGetDnsForwardingMethod) == null) { synchronized (VmwareEngineGrpc.class) { - if ((getListPrivateConnectionPeeringRoutesMethod = - VmwareEngineGrpc.getListPrivateConnectionPeeringRoutesMethod) - == null) { - VmwareEngineGrpc.getListPrivateConnectionPeeringRoutesMethod = - getListPrivateConnectionPeeringRoutesMethod = + if ((getGetDnsForwardingMethod = VmwareEngineGrpc.getGetDnsForwardingMethod) == null) { + VmwareEngineGrpc.getGetDnsForwardingMethod = + getGetDnsForwardingMethod = io.grpc.MethodDescriptor - . + . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - SERVICE_NAME, "ListPrivateConnectionPeeringRoutes")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDnsForwarding")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1 - .ListPrivateConnectionPeeringRoutesRequest.getDefaultInstance())) + com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest + .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vmwareengine.v1 - .ListPrivateConnectionPeeringRoutesResponse.getDefaultInstance())) + com.google.cloud.vmwareengine.v1.DnsForwarding.getDefaultInstance())) .setSchemaDescriptor( - new VmwareEngineMethodDescriptorSupplier( - "ListPrivateConnectionPeeringRoutes")) + new VmwareEngineMethodDescriptorSupplier("GetDnsForwarding")) .build(); } } } - return getListPrivateConnectionPeeringRoutesMethod; + return getGetDnsForwardingMethod; } - /** 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 = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public VmwareEngineStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new VmwareEngineStub(channel, callOptions); - } - }; - return VmwareEngineStub.newStub(factory, channel); - } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest, + com.google.longrunning.Operation> + getUpdateDnsForwardingMethod; - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static VmwareEngineBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public VmwareEngineBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new VmwareEngineBlockingStub(channel, callOptions); - } - }; - return VmwareEngineBlockingStub.newStub(factory, channel); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDnsForwarding", + requestType = com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest, + com.google.longrunning.Operation> + getUpdateDnsForwardingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest, + com.google.longrunning.Operation> + getUpdateDnsForwardingMethod; + if ((getUpdateDnsForwardingMethod = VmwareEngineGrpc.getUpdateDnsForwardingMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getUpdateDnsForwardingMethod = VmwareEngineGrpc.getUpdateDnsForwardingMethod) + == null) { + VmwareEngineGrpc.getUpdateDnsForwardingMethod = + getUpdateDnsForwardingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateDnsForwarding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("UpdateDnsForwarding")) + .build(); + } + } + } + return getUpdateDnsForwardingMethod; } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static VmwareEngineFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public VmwareEngineFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new VmwareEngineFutureStub(channel, callOptions); - } - }; - return VmwareEngineFutureStub.newStub(factory, channel); + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest, + com.google.cloud.vmwareengine.v1.NetworkPeering> + getGetNetworkPeeringMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNetworkPeering", + requestType = com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest.class, + responseType = com.google.cloud.vmwareengine.v1.NetworkPeering.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest, + com.google.cloud.vmwareengine.v1.NetworkPeering> + getGetNetworkPeeringMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest, + com.google.cloud.vmwareengine.v1.NetworkPeering> + getGetNetworkPeeringMethod; + if ((getGetNetworkPeeringMethod = VmwareEngineGrpc.getGetNetworkPeeringMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getGetNetworkPeeringMethod = VmwareEngineGrpc.getGetNetworkPeeringMethod) == null) { + VmwareEngineGrpc.getGetNetworkPeeringMethod = + getGetNetworkPeeringMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNetworkPeering")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.NetworkPeering.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("GetNetworkPeering")) + .build(); + } + } + } + return getGetNetworkPeeringMethod; } - /** - * - * - *

    -   * VMwareEngine manages VMware's private clusters in the Cloud.
    -   * 
    - */ - public interface AsyncService { + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest, + com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse> + getListNetworkPeeringsMethod; - /** + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNetworkPeerings", + requestType = com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest.class, + responseType = com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest, + com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse> + getListNetworkPeeringsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest, + com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse> + getListNetworkPeeringsMethod; + if ((getListNetworkPeeringsMethod = VmwareEngineGrpc.getListNetworkPeeringsMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getListNetworkPeeringsMethod = VmwareEngineGrpc.getListNetworkPeeringsMethod) + == null) { + VmwareEngineGrpc.getListNetworkPeeringsMethod = + getListNetworkPeeringsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListNetworkPeerings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("ListNetworkPeerings")) + .build(); + } + } + } + return getListNetworkPeeringsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest, + com.google.longrunning.Operation> + getCreateNetworkPeeringMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateNetworkPeering", + requestType = com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest, + com.google.longrunning.Operation> + getCreateNetworkPeeringMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest, + com.google.longrunning.Operation> + getCreateNetworkPeeringMethod; + if ((getCreateNetworkPeeringMethod = VmwareEngineGrpc.getCreateNetworkPeeringMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getCreateNetworkPeeringMethod = VmwareEngineGrpc.getCreateNetworkPeeringMethod) + == null) { + VmwareEngineGrpc.getCreateNetworkPeeringMethod = + getCreateNetworkPeeringMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateNetworkPeering")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("CreateNetworkPeering")) + .build(); + } + } + } + return getCreateNetworkPeeringMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest, + com.google.longrunning.Operation> + getDeleteNetworkPeeringMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteNetworkPeering", + requestType = com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest, + com.google.longrunning.Operation> + getDeleteNetworkPeeringMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest, + com.google.longrunning.Operation> + getDeleteNetworkPeeringMethod; + if ((getDeleteNetworkPeeringMethod = VmwareEngineGrpc.getDeleteNetworkPeeringMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getDeleteNetworkPeeringMethod = VmwareEngineGrpc.getDeleteNetworkPeeringMethod) + == null) { + VmwareEngineGrpc.getDeleteNetworkPeeringMethod = + getDeleteNetworkPeeringMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteNetworkPeering")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("DeleteNetworkPeering")) + .build(); + } + } + } + return getDeleteNetworkPeeringMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest, + com.google.longrunning.Operation> + getUpdateNetworkPeeringMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateNetworkPeering", + requestType = com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest, + com.google.longrunning.Operation> + getUpdateNetworkPeeringMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest, + com.google.longrunning.Operation> + getUpdateNetworkPeeringMethod; + if ((getUpdateNetworkPeeringMethod = VmwareEngineGrpc.getUpdateNetworkPeeringMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getUpdateNetworkPeeringMethod = VmwareEngineGrpc.getUpdateNetworkPeeringMethod) + == null) { + VmwareEngineGrpc.getUpdateNetworkPeeringMethod = + getUpdateNetworkPeeringMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateNetworkPeering")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("UpdateNetworkPeering")) + .build(); + } + } + } + return getUpdateNetworkPeeringMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest, + com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse> + getListPeeringRoutesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPeeringRoutes", + requestType = com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest.class, + responseType = com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest, + com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse> + getListPeeringRoutesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest, + com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse> + getListPeeringRoutesMethod; + if ((getListPeeringRoutesMethod = VmwareEngineGrpc.getListPeeringRoutesMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getListPeeringRoutesMethod = VmwareEngineGrpc.getListPeeringRoutesMethod) == null) { + VmwareEngineGrpc.getListPeeringRoutesMethod = + getListPeeringRoutesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPeeringRoutes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("ListPeeringRoutes")) + .build(); + } + } + } + return getListPeeringRoutesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest, + com.google.longrunning.Operation> + getCreateHcxActivationKeyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateHcxActivationKey", + requestType = com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest, + com.google.longrunning.Operation> + getCreateHcxActivationKeyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest, + com.google.longrunning.Operation> + getCreateHcxActivationKeyMethod; + if ((getCreateHcxActivationKeyMethod = VmwareEngineGrpc.getCreateHcxActivationKeyMethod) + == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getCreateHcxActivationKeyMethod = VmwareEngineGrpc.getCreateHcxActivationKeyMethod) + == null) { + VmwareEngineGrpc.getCreateHcxActivationKeyMethod = + getCreateHcxActivationKeyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateHcxActivationKey")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("CreateHcxActivationKey")) + .build(); + } + } + } + return getCreateHcxActivationKeyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest, + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse> + getListHcxActivationKeysMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListHcxActivationKeys", + requestType = com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest.class, + responseType = com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest, + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse> + getListHcxActivationKeysMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest, + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse> + getListHcxActivationKeysMethod; + if ((getListHcxActivationKeysMethod = VmwareEngineGrpc.getListHcxActivationKeysMethod) + == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getListHcxActivationKeysMethod = VmwareEngineGrpc.getListHcxActivationKeysMethod) + == null) { + VmwareEngineGrpc.getListHcxActivationKeysMethod = + getListHcxActivationKeysMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListHcxActivationKeys")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("ListHcxActivationKeys")) + .build(); + } + } + } + return getListHcxActivationKeysMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest, + com.google.cloud.vmwareengine.v1.HcxActivationKey> + getGetHcxActivationKeyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetHcxActivationKey", + requestType = com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest.class, + responseType = com.google.cloud.vmwareengine.v1.HcxActivationKey.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest, + com.google.cloud.vmwareengine.v1.HcxActivationKey> + getGetHcxActivationKeyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest, + com.google.cloud.vmwareengine.v1.HcxActivationKey> + getGetHcxActivationKeyMethod; + if ((getGetHcxActivationKeyMethod = VmwareEngineGrpc.getGetHcxActivationKeyMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getGetHcxActivationKeyMethod = VmwareEngineGrpc.getGetHcxActivationKeyMethod) + == null) { + VmwareEngineGrpc.getGetHcxActivationKeyMethod = + getGetHcxActivationKeyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetHcxActivationKey")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.HcxActivationKey + .getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("GetHcxActivationKey")) + .build(); + } + } + } + return getGetHcxActivationKeyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest, + com.google.cloud.vmwareengine.v1.NetworkPolicy> + getGetNetworkPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNetworkPolicy", + requestType = com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest.class, + responseType = com.google.cloud.vmwareengine.v1.NetworkPolicy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest, + com.google.cloud.vmwareengine.v1.NetworkPolicy> + getGetNetworkPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest, + com.google.cloud.vmwareengine.v1.NetworkPolicy> + getGetNetworkPolicyMethod; + if ((getGetNetworkPolicyMethod = VmwareEngineGrpc.getGetNetworkPolicyMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getGetNetworkPolicyMethod = VmwareEngineGrpc.getGetNetworkPolicyMethod) == null) { + VmwareEngineGrpc.getGetNetworkPolicyMethod = + getGetNetworkPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNetworkPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.NetworkPolicy.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("GetNetworkPolicy")) + .build(); + } + } + } + return getGetNetworkPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest, + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse> + getListNetworkPoliciesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNetworkPolicies", + requestType = com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest.class, + responseType = com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest, + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse> + getListNetworkPoliciesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest, + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse> + getListNetworkPoliciesMethod; + if ((getListNetworkPoliciesMethod = VmwareEngineGrpc.getListNetworkPoliciesMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getListNetworkPoliciesMethod = VmwareEngineGrpc.getListNetworkPoliciesMethod) + == null) { + VmwareEngineGrpc.getListNetworkPoliciesMethod = + getListNetworkPoliciesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListNetworkPolicies")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("ListNetworkPolicies")) + .build(); + } + } + } + return getListNetworkPoliciesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest, + com.google.longrunning.Operation> + getCreateNetworkPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateNetworkPolicy", + requestType = com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest, + com.google.longrunning.Operation> + getCreateNetworkPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest, + com.google.longrunning.Operation> + getCreateNetworkPolicyMethod; + if ((getCreateNetworkPolicyMethod = VmwareEngineGrpc.getCreateNetworkPolicyMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getCreateNetworkPolicyMethod = VmwareEngineGrpc.getCreateNetworkPolicyMethod) + == null) { + VmwareEngineGrpc.getCreateNetworkPolicyMethod = + getCreateNetworkPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateNetworkPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("CreateNetworkPolicy")) + .build(); + } + } + } + return getCreateNetworkPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest, + com.google.longrunning.Operation> + getUpdateNetworkPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateNetworkPolicy", + requestType = com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest, + com.google.longrunning.Operation> + getUpdateNetworkPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest, + com.google.longrunning.Operation> + getUpdateNetworkPolicyMethod; + if ((getUpdateNetworkPolicyMethod = VmwareEngineGrpc.getUpdateNetworkPolicyMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getUpdateNetworkPolicyMethod = VmwareEngineGrpc.getUpdateNetworkPolicyMethod) + == null) { + VmwareEngineGrpc.getUpdateNetworkPolicyMethod = + getUpdateNetworkPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateNetworkPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("UpdateNetworkPolicy")) + .build(); + } + } + } + return getUpdateNetworkPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest, + com.google.longrunning.Operation> + getDeleteNetworkPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteNetworkPolicy", + requestType = com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest, + com.google.longrunning.Operation> + getDeleteNetworkPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest, + com.google.longrunning.Operation> + getDeleteNetworkPolicyMethod; + if ((getDeleteNetworkPolicyMethod = VmwareEngineGrpc.getDeleteNetworkPolicyMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getDeleteNetworkPolicyMethod = VmwareEngineGrpc.getDeleteNetworkPolicyMethod) + == null) { + VmwareEngineGrpc.getDeleteNetworkPolicyMethod = + getDeleteNetworkPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteNetworkPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("DeleteNetworkPolicy")) + .build(); + } + } + } + return getDeleteNetworkPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest, + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse> + getListManagementDnsZoneBindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListManagementDnsZoneBindings", + requestType = com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest.class, + responseType = com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest, + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse> + getListManagementDnsZoneBindingsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest, + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse> + getListManagementDnsZoneBindingsMethod; + if ((getListManagementDnsZoneBindingsMethod = + VmwareEngineGrpc.getListManagementDnsZoneBindingsMethod) + == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getListManagementDnsZoneBindingsMethod = + VmwareEngineGrpc.getListManagementDnsZoneBindingsMethod) + == null) { + VmwareEngineGrpc.getListManagementDnsZoneBindingsMethod = + getListManagementDnsZoneBindingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListManagementDnsZoneBindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("ListManagementDnsZoneBindings")) + .build(); + } + } + } + return getListManagementDnsZoneBindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest, + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding> + getGetManagementDnsZoneBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetManagementDnsZoneBinding", + requestType = com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest.class, + responseType = com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest, + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding> + getGetManagementDnsZoneBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest, + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding> + getGetManagementDnsZoneBindingMethod; + if ((getGetManagementDnsZoneBindingMethod = + VmwareEngineGrpc.getGetManagementDnsZoneBindingMethod) + == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getGetManagementDnsZoneBindingMethod = + VmwareEngineGrpc.getGetManagementDnsZoneBindingMethod) + == null) { + VmwareEngineGrpc.getGetManagementDnsZoneBindingMethod = + getGetManagementDnsZoneBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetManagementDnsZoneBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding + .getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("GetManagementDnsZoneBinding")) + .build(); + } + } + } + return getGetManagementDnsZoneBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest, + com.google.longrunning.Operation> + getCreateManagementDnsZoneBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateManagementDnsZoneBinding", + requestType = com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest, + com.google.longrunning.Operation> + getCreateManagementDnsZoneBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest, + com.google.longrunning.Operation> + getCreateManagementDnsZoneBindingMethod; + if ((getCreateManagementDnsZoneBindingMethod = + VmwareEngineGrpc.getCreateManagementDnsZoneBindingMethod) + == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getCreateManagementDnsZoneBindingMethod = + VmwareEngineGrpc.getCreateManagementDnsZoneBindingMethod) + == null) { + VmwareEngineGrpc.getCreateManagementDnsZoneBindingMethod = + getCreateManagementDnsZoneBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateManagementDnsZoneBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier( + "CreateManagementDnsZoneBinding")) + .build(); + } + } + } + return getCreateManagementDnsZoneBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest, + com.google.longrunning.Operation> + getUpdateManagementDnsZoneBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateManagementDnsZoneBinding", + requestType = com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest, + com.google.longrunning.Operation> + getUpdateManagementDnsZoneBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest, + com.google.longrunning.Operation> + getUpdateManagementDnsZoneBindingMethod; + if ((getUpdateManagementDnsZoneBindingMethod = + VmwareEngineGrpc.getUpdateManagementDnsZoneBindingMethod) + == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getUpdateManagementDnsZoneBindingMethod = + VmwareEngineGrpc.getUpdateManagementDnsZoneBindingMethod) + == null) { + VmwareEngineGrpc.getUpdateManagementDnsZoneBindingMethod = + getUpdateManagementDnsZoneBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateManagementDnsZoneBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier( + "UpdateManagementDnsZoneBinding")) + .build(); + } + } + } + return getUpdateManagementDnsZoneBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest, + com.google.longrunning.Operation> + getDeleteManagementDnsZoneBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteManagementDnsZoneBinding", + requestType = com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest, + com.google.longrunning.Operation> + getDeleteManagementDnsZoneBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest, + com.google.longrunning.Operation> + getDeleteManagementDnsZoneBindingMethod; + if ((getDeleteManagementDnsZoneBindingMethod = + VmwareEngineGrpc.getDeleteManagementDnsZoneBindingMethod) + == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getDeleteManagementDnsZoneBindingMethod = + VmwareEngineGrpc.getDeleteManagementDnsZoneBindingMethod) + == null) { + VmwareEngineGrpc.getDeleteManagementDnsZoneBindingMethod = + getDeleteManagementDnsZoneBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteManagementDnsZoneBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier( + "DeleteManagementDnsZoneBinding")) + .build(); + } + } + } + return getDeleteManagementDnsZoneBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest, + com.google.longrunning.Operation> + getRepairManagementDnsZoneBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RepairManagementDnsZoneBinding", + requestType = com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest, + com.google.longrunning.Operation> + getRepairManagementDnsZoneBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest, + com.google.longrunning.Operation> + getRepairManagementDnsZoneBindingMethod; + if ((getRepairManagementDnsZoneBindingMethod = + VmwareEngineGrpc.getRepairManagementDnsZoneBindingMethod) + == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getRepairManagementDnsZoneBindingMethod = + VmwareEngineGrpc.getRepairManagementDnsZoneBindingMethod) + == null) { + VmwareEngineGrpc.getRepairManagementDnsZoneBindingMethod = + getRepairManagementDnsZoneBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "RepairManagementDnsZoneBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier( + "RepairManagementDnsZoneBinding")) + .build(); + } + } + } + return getRepairManagementDnsZoneBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest, + com.google.longrunning.Operation> + getCreateVmwareEngineNetworkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateVmwareEngineNetwork", + requestType = com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest, + com.google.longrunning.Operation> + getCreateVmwareEngineNetworkMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest, + com.google.longrunning.Operation> + getCreateVmwareEngineNetworkMethod; + if ((getCreateVmwareEngineNetworkMethod = VmwareEngineGrpc.getCreateVmwareEngineNetworkMethod) + == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getCreateVmwareEngineNetworkMethod = + VmwareEngineGrpc.getCreateVmwareEngineNetworkMethod) + == null) { + VmwareEngineGrpc.getCreateVmwareEngineNetworkMethod = + getCreateVmwareEngineNetworkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateVmwareEngineNetwork")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("CreateVmwareEngineNetwork")) + .build(); + } + } + } + return getCreateVmwareEngineNetworkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest, + com.google.longrunning.Operation> + getUpdateVmwareEngineNetworkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateVmwareEngineNetwork", + requestType = com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest, + com.google.longrunning.Operation> + getUpdateVmwareEngineNetworkMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest, + com.google.longrunning.Operation> + getUpdateVmwareEngineNetworkMethod; + if ((getUpdateVmwareEngineNetworkMethod = VmwareEngineGrpc.getUpdateVmwareEngineNetworkMethod) + == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getUpdateVmwareEngineNetworkMethod = + VmwareEngineGrpc.getUpdateVmwareEngineNetworkMethod) + == null) { + VmwareEngineGrpc.getUpdateVmwareEngineNetworkMethod = + getUpdateVmwareEngineNetworkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateVmwareEngineNetwork")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("UpdateVmwareEngineNetwork")) + .build(); + } + } + } + return getUpdateVmwareEngineNetworkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest, + com.google.longrunning.Operation> + getDeleteVmwareEngineNetworkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteVmwareEngineNetwork", + requestType = com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest, + com.google.longrunning.Operation> + getDeleteVmwareEngineNetworkMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest, + com.google.longrunning.Operation> + getDeleteVmwareEngineNetworkMethod; + if ((getDeleteVmwareEngineNetworkMethod = VmwareEngineGrpc.getDeleteVmwareEngineNetworkMethod) + == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getDeleteVmwareEngineNetworkMethod = + VmwareEngineGrpc.getDeleteVmwareEngineNetworkMethod) + == null) { + VmwareEngineGrpc.getDeleteVmwareEngineNetworkMethod = + getDeleteVmwareEngineNetworkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteVmwareEngineNetwork")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("DeleteVmwareEngineNetwork")) + .build(); + } + } + } + return getDeleteVmwareEngineNetworkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest, + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork> + getGetVmwareEngineNetworkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetVmwareEngineNetwork", + requestType = com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest.class, + responseType = com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest, + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork> + getGetVmwareEngineNetworkMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest, + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork> + getGetVmwareEngineNetworkMethod; + if ((getGetVmwareEngineNetworkMethod = VmwareEngineGrpc.getGetVmwareEngineNetworkMethod) + == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getGetVmwareEngineNetworkMethod = VmwareEngineGrpc.getGetVmwareEngineNetworkMethod) + == null) { + VmwareEngineGrpc.getGetVmwareEngineNetworkMethod = + getGetVmwareEngineNetworkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetVmwareEngineNetwork")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork + .getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("GetVmwareEngineNetwork")) + .build(); + } + } + } + return getGetVmwareEngineNetworkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest, + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse> + getListVmwareEngineNetworksMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListVmwareEngineNetworks", + requestType = com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest.class, + responseType = com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest, + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse> + getListVmwareEngineNetworksMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest, + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse> + getListVmwareEngineNetworksMethod; + if ((getListVmwareEngineNetworksMethod = VmwareEngineGrpc.getListVmwareEngineNetworksMethod) + == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getListVmwareEngineNetworksMethod = VmwareEngineGrpc.getListVmwareEngineNetworksMethod) + == null) { + VmwareEngineGrpc.getListVmwareEngineNetworksMethod = + getListVmwareEngineNetworksMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListVmwareEngineNetworks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("ListVmwareEngineNetworks")) + .build(); + } + } + } + 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; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest, + com.google.longrunning.Operation> + getGrantDnsBindPermissionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GrantDnsBindPermission", + requestType = com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest, + com.google.longrunning.Operation> + getGrantDnsBindPermissionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest, + com.google.longrunning.Operation> + getGrantDnsBindPermissionMethod; + if ((getGrantDnsBindPermissionMethod = VmwareEngineGrpc.getGrantDnsBindPermissionMethod) + == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getGrantDnsBindPermissionMethod = VmwareEngineGrpc.getGrantDnsBindPermissionMethod) + == null) { + VmwareEngineGrpc.getGrantDnsBindPermissionMethod = + getGrantDnsBindPermissionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GrantDnsBindPermission")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("GrantDnsBindPermission")) + .build(); + } + } + } + return getGrantDnsBindPermissionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest, + com.google.cloud.vmwareengine.v1.DnsBindPermission> + getGetDnsBindPermissionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDnsBindPermission", + requestType = com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest.class, + responseType = com.google.cloud.vmwareengine.v1.DnsBindPermission.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest, + com.google.cloud.vmwareengine.v1.DnsBindPermission> + getGetDnsBindPermissionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest, + com.google.cloud.vmwareengine.v1.DnsBindPermission> + getGetDnsBindPermissionMethod; + if ((getGetDnsBindPermissionMethod = VmwareEngineGrpc.getGetDnsBindPermissionMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getGetDnsBindPermissionMethod = VmwareEngineGrpc.getGetDnsBindPermissionMethod) + == null) { + VmwareEngineGrpc.getGetDnsBindPermissionMethod = + getGetDnsBindPermissionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetDnsBindPermission")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.DnsBindPermission + .getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("GetDnsBindPermission")) + .build(); + } + } + } + return getGetDnsBindPermissionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest, + com.google.longrunning.Operation> + getRevokeDnsBindPermissionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RevokeDnsBindPermission", + requestType = com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest, + com.google.longrunning.Operation> + getRevokeDnsBindPermissionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest, + com.google.longrunning.Operation> + getRevokeDnsBindPermissionMethod; + if ((getRevokeDnsBindPermissionMethod = VmwareEngineGrpc.getRevokeDnsBindPermissionMethod) + == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getRevokeDnsBindPermissionMethod = VmwareEngineGrpc.getRevokeDnsBindPermissionMethod) + == null) { + VmwareEngineGrpc.getRevokeDnsBindPermissionMethod = + getRevokeDnsBindPermissionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "RevokeDnsBindPermission")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("RevokeDnsBindPermission")) + .build(); + } + } + } + return getRevokeDnsBindPermissionMethod; + } + + /** 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 = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public VmwareEngineStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VmwareEngineStub(channel, callOptions); + } + }; + return VmwareEngineStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static VmwareEngineBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public VmwareEngineBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VmwareEngineBlockingStub(channel, callOptions); + } + }; + return VmwareEngineBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static VmwareEngineFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public VmwareEngineFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VmwareEngineFutureStub(channel, callOptions); + } + }; + return VmwareEngineFutureStub.newStub(factory, channel); + } + + /** + * + * + *
    +   * VMwareEngine manages VMware's private clusters in the Cloud.
    +   * 
    + */ + public interface AsyncService { + + /** + * + * + *
    +     * Lists `PrivateCloud` resources in a given project and location.
    +     * 
    + */ + default void listPrivateClouds( + com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListPrivateCloudsMethod(), responseObserver); + } + + /** + * + * + *
    +     * Retrieves a `PrivateCloud` resource by its resource name.
    +     * 
    + */ + default void getPrivateCloud( + com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetPrivateCloudMethod(), responseObserver); + } + + /** + * + * + *
    +     * Creates a new `PrivateCloud` resource in a given project and location.
    +     * Private clouds of type `STANDARD` and
    +     * `TIME_LIMITED` are zonal resources, `STRETCHED` private clouds are
    +     * regional.
    +     * Creating a private cloud also creates a [management
    +     * cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components)
    +     * for that private cloud.
    +     * 
    + */ + default void createPrivateCloud( + com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreatePrivateCloudMethod(), responseObserver); + } + + /** + * + * + *
    +     * Modifies a `PrivateCloud` resource. Only the following fields can be
    +     * updated: `description`.
    +     * Only fields specified in `updateMask` are applied.
    +     * During operation processing, the resource is temporarily in the `ACTIVE`
    +     * state before the operation fully completes. For that period of time, you
    +     * can't update the resource. Use the operation status to determine when the
    +     * processing fully completes.
    +     * 
    + */ + default void updatePrivateCloud( + com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdatePrivateCloudMethod(), responseObserver); + } + + /** + * + * + *
    +     * Schedules a `PrivateCloud` resource for deletion.
    +     * A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state`
    +     * set to `DELETED` and `expireTime` set to the time when deletion is final
    +     * and can no longer be reversed. The delete operation is marked as done
    +     * as soon as the `PrivateCloud` is successfully scheduled for deletion
    +     * (this also applies when `delayHours` is set to zero), and the operation is
    +     * not kept in pending state until `PrivateCloud` is purged.
    +     * `PrivateCloud` can be restored using `UndeletePrivateCloud` method before
    +     * the `expireTime` elapses. When `expireTime` is reached, deletion is final
    +     * and all private cloud resources are irreversibly removed and billing stops.
    +     * During the final removal process, `PrivateCloud.state` is set to `PURGING`.
    +     * `PrivateCloud` can be polled using standard `GET` method for the whole
    +     * period of deletion and purging. It will not be returned only
    +     * when it is completely purged.
    +     * 
    + */ + default void deletePrivateCloud( + com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeletePrivateCloudMethod(), responseObserver); + } + + /** + * + * + *
    +     * Restores a private cloud that was previously scheduled for deletion by
    +     * `DeletePrivateCloud`. A `PrivateCloud` resource scheduled for deletion has
    +     * `PrivateCloud.state` set to `DELETED` and `PrivateCloud.expireTime` set to
    +     * the time when deletion can no longer be reversed.
    +     * 
    + */ + default void undeletePrivateCloud( + com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUndeletePrivateCloudMethod(), responseObserver); + } + + /** + * + * + *
    +     * Lists `Cluster` resources in a given private cloud.
    +     * 
    + */ + default void listClusters( + com.google.cloud.vmwareengine.v1.ListClustersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListClustersMethod(), responseObserver); + } + + /** + * + * + *
    +     * Retrieves a `Cluster` resource by its resource name.
    +     * 
    + */ + default void getCluster( + com.google.cloud.vmwareengine.v1.GetClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetClusterMethod(), responseObserver); + } + + /** + * + * + *
    +     * Creates a new cluster in a given private cloud.
    +     * Creating a new cluster provides additional nodes for
    +     * use in the parent private cloud and requires sufficient [node
    +     * quota](https://cloud.google.com/vmware-engine/quotas).
    +     * 
    + */ + default void createCluster( + com.google.cloud.vmwareengine.v1.CreateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateClusterMethod(), responseObserver); + } + + /** + * + * + *
    +     * Modifies a `Cluster` resource. Only fields specified in `updateMask` are
    +     * applied.
    +     * During operation processing, the resource is temporarily in the `ACTIVE`
    +     * state before the operation fully completes. For that period of time, you
    +     * can't update the resource. Use the operation status to determine when the
    +     * processing fully completes.
    +     * 
    + */ + default void updateCluster( + com.google.cloud.vmwareengine.v1.UpdateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateClusterMethod(), responseObserver); + } + + /** + * + * + *
    +     * Deletes a `Cluster` resource. To avoid unintended data loss, migrate or
    +     * gracefully shut down any workloads running on the cluster before deletion.
    +     * You cannot delete the management cluster of a private cloud using this
    +     * method.
    +     * 
    + */ + default void deleteCluster( + com.google.cloud.vmwareengine.v1.DeleteClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteClusterMethod(), responseObserver); + } + + /** + * + * + *
    +     * Lists nodes in a given cluster.
    +     * 
    + */ + default void listNodes( + com.google.cloud.vmwareengine.v1.ListNodesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNodesMethod(), responseObserver); + } + + /** + * + * + *
    +     * Gets details of a single node.
    +     * 
    + */ + default void getNode( + com.google.cloud.vmwareengine.v1.GetNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNodeMethod(), responseObserver); + } + + /** + * + * + *
    +     * Lists external IP addresses assigned to VMware workload VMs in a given
    +     * private cloud.
    +     * 
    + */ + default void listExternalAddresses( + com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListExternalAddressesMethod(), responseObserver); + } + + /** + * + * + *
    +     * Lists external IP addresses assigned to VMware workload VMs within the
    +     * scope of the given network policy.
    +     * 
    + */ + default void fetchNetworkPolicyExternalAddresses( + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFetchNetworkPolicyExternalAddressesMethod(), responseObserver); + } + + /** + * + * + *
    +     * Gets details of a single external IP address.
    +     * 
    + */ + default void getExternalAddress( + com.google.cloud.vmwareengine.v1.GetExternalAddressRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetExternalAddressMethod(), responseObserver); + } + + /** + * + * + *
    +     * Creates a new `ExternalAddress` resource in a given private cloud. The
    +     * network policy that corresponds to the private cloud must have the external
    +     * IP address network service enabled (`NetworkPolicy.external_ip`).
    +     * 
    + */ + default void createExternalAddress( + com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateExternalAddressMethod(), responseObserver); + } + + /** + * + * + *
    +     * Updates the parameters of a single external IP address.
    +     * Only fields specified in `update_mask` are applied.
    +     * During operation processing, the resource is temporarily in the `ACTIVE`
    +     * state before the operation fully completes. For that period of time, you
    +     * can't update the resource. Use the operation status to determine when the
    +     * processing fully completes.
    +     * 
    + */ + default void updateExternalAddress( + com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateExternalAddressMethod(), responseObserver); + } + + /** + * + * + *
    +     * Deletes a single external IP address. When you delete an external IP
    +     * address, connectivity between the external IP address and the corresponding
    +     * internal IP address is lost.
    +     * 
    + */ + default void deleteExternalAddress( + com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteExternalAddressMethod(), responseObserver); + } + + /** + * + * + *
    +     * Lists subnets in a given private cloud.
    +     * 
    + */ + default void listSubnets( + com.google.cloud.vmwareengine.v1.ListSubnetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + 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); + } + + /** + * + * + *
    +     * Lists `ExternalAccessRule` resources in the specified network policy.
    +     * 
    + */ + default void listExternalAccessRules( + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListExternalAccessRulesMethod(), responseObserver); + } + + /** + * + * + *
    +     * Gets details of a single external access rule.
    +     * 
    + */ + default void getExternalAccessRule( + com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetExternalAccessRuleMethod(), responseObserver); + } + + /** + * + * + *
    +     * Creates a new external access rule in a given network policy.
    +     * 
    + */ + default void createExternalAccessRule( + com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateExternalAccessRuleMethod(), responseObserver); + } + + /** + * + * + *
    +     * Updates the parameters of a single external access rule.
    +     * Only fields specified in `update_mask` are applied.
    +     * 
    + */ + default void updateExternalAccessRule( + com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateExternalAccessRuleMethod(), responseObserver); + } + + /** + * + * + *
    +     * Deletes a single external access rule.
    +     * 
    + */ + default void deleteExternalAccessRule( + com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteExternalAccessRuleMethod(), responseObserver); + } + + /** + * + * + *
    +     * Lists logging servers configured for a given private
    +     * cloud.
    +     * 
    + */ + default void listLoggingServers( + com.google.cloud.vmwareengine.v1.ListLoggingServersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListLoggingServersMethod(), responseObserver); + } + + /** + * + * + *
    +     * Gets details of a logging server.
    +     * 
    + */ + default void getLoggingServer( + com.google.cloud.vmwareengine.v1.GetLoggingServerRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetLoggingServerMethod(), responseObserver); + } + + /** + * + * + *
    +     * Create a new logging server for a given private cloud.
    +     * 
    + */ + default void createLoggingServer( + com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateLoggingServerMethod(), responseObserver); + } + + /** + * + * + *
    +     * Updates the parameters of a single logging server.
    +     * Only fields specified in `update_mask` are applied.
    +     * 
    + */ + default void updateLoggingServer( + com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateLoggingServerMethod(), responseObserver); + } + + /** + * + * + *
    +     * Deletes a single logging server.
    +     * 
    + */ + default void deleteLoggingServer( + com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteLoggingServerMethod(), responseObserver); + } + + /** + * + * + *
    +     * Lists node types
    +     * 
    + */ + default void listNodeTypes( + com.google.cloud.vmwareengine.v1.ListNodeTypesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListNodeTypesMethod(), responseObserver); + } + + /** + * + * + *
    +     * Gets details of a single `NodeType`.
    +     * 
    + */ + default void getNodeType( + com.google.cloud.vmwareengine.v1.GetNodeTypeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetNodeTypeMethod(), responseObserver); + } + + /** + * + * + *
    +     * Gets details of credentials for NSX appliance.
    +     * 
    + */ + default void showNsxCredentials( + com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getShowNsxCredentialsMethod(), responseObserver); + } + + /** + * + * + *
    +     * Gets details of credentials for Vcenter appliance.
    +     * 
    + */ + default void showVcenterCredentials( + com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getShowVcenterCredentialsMethod(), responseObserver); + } + + /** + * + * + *
    +     * Resets credentials of the NSX appliance.
    +     * 
    + */ + default void resetNsxCredentials( + com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getResetNsxCredentialsMethod(), responseObserver); + } + + /** + * + * + *
    +     * Resets credentials of the Vcenter appliance.
    +     * 
    + */ + default void resetVcenterCredentials( + com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getResetVcenterCredentialsMethod(), responseObserver); + } + + /** + * + * + *
    +     * Gets details of the `DnsForwarding` config.
    +     * 
    + */ + default void getDnsForwarding( + com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDnsForwardingMethod(), responseObserver); + } + + /** + * + * + *
    +     * Updates the parameters of the `DnsForwarding` config, like associated
    +     * domains. Only fields specified in `update_mask` are applied.
    +     * 
    + */ + default void updateDnsForwarding( + com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDnsForwardingMethod(), responseObserver); + } + + /** + * + * + *
    +     * Retrieves a `NetworkPeering` resource by its resource name. The resource
    +     * contains details of the network peering, such as peered
    +     * networks, import and export custom route configurations, and peering state.
    +     * NetworkPeering is a global resource and location can only be global.
    +     * 
    + */ + default void getNetworkPeering( + com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetNetworkPeeringMethod(), responseObserver); + } + + /** + * + * + *
    +     * Lists `NetworkPeering` resources in a given project. NetworkPeering is a
    +     * global resource and location can only be global.
    +     * 
    + */ + default void listNetworkPeerings( + com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListNetworkPeeringsMethod(), responseObserver); + } + + /** + * + * + *
    +     * Creates a new network peering between the peer network and VMware Engine
    +     * network provided in a `NetworkPeering` resource. NetworkPeering is a
    +     * global resource and location can only be global.
    +     * 
    + */ + default void createNetworkPeering( + com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateNetworkPeeringMethod(), responseObserver); + } + + /** + * + * + *
    +     * Deletes a `NetworkPeering` resource. When a network peering is deleted for
    +     * a VMware Engine network, the peer network becomes inaccessible to that
    +     * VMware Engine network. NetworkPeering is a global resource and location can
    +     * only be global.
    +     * 
    + */ + default void deleteNetworkPeering( + com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteNetworkPeeringMethod(), responseObserver); + } + + /** + * + * + *
    +     * Modifies a `NetworkPeering` resource. Only the `description` field can be
    +     * updated. Only fields specified in `updateMask` are applied. NetworkPeering
    +     * is a global resource and location can only be global.
    +     * 
    + */ + default void updateNetworkPeering( + com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateNetworkPeeringMethod(), responseObserver); + } + + /** + * + * + *
    +     * Lists the network peering routes exchanged over a peering connection.
    +     * NetworkPeering is a global resource and location can only be global.
    +     * 
    + */ + default void listPeeringRoutes( + com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListPeeringRoutesMethod(), responseObserver); + } + + /** + * + * + *
    +     * Creates a new HCX activation key in a given private cloud.
    +     * 
    + */ + default void createHcxActivationKey( + com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateHcxActivationKeyMethod(), responseObserver); + } + + /** + * + * + *
    +     * Lists `HcxActivationKey` resources in a given private cloud.
    +     * 
    + */ + default void listHcxActivationKeys( + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListHcxActivationKeysMethod(), responseObserver); + } + + /** + * + * + *
    +     * Retrieves a `HcxActivationKey` resource by its resource name.
    +     * 
    + */ + default void getHcxActivationKey( + com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetHcxActivationKeyMethod(), responseObserver); + } + + /** + * + * + *
    +     * Retrieves a `NetworkPolicy` resource by its resource name.
    +     * 
    + */ + default void getNetworkPolicy( + com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetNetworkPolicyMethod(), responseObserver); + } + + /** + * + * + *
    +     * Lists `NetworkPolicy` resources in a specified project and location.
    +     * 
    + */ + default void listNetworkPolicies( + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListNetworkPoliciesMethod(), responseObserver); + } + + /** + * + * + *
    +     * Creates a new network policy in a given VMware Engine network of a
    +     * project and location (region). A new network policy cannot be created if
    +     * another network policy already exists in the same scope.
    +     * 
    + */ + default void createNetworkPolicy( + com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateNetworkPolicyMethod(), responseObserver); + } + + /** + * + * + *
    +     * Modifies a `NetworkPolicy` resource. Only the following fields can be
    +     * updated: `internet_access`, `external_ip`, `edge_services_cidr`.
    +     * Only fields specified in `updateMask` are applied. When updating a network
    +     * policy, the external IP network service can only be disabled if there are
    +     * no external IP addresses present in the scope of the policy. Also, a
    +     * `NetworkService` cannot be updated when `NetworkService.state` is set
    +     * to `RECONCILING`.
    +     * During operation processing, the resource is temporarily in the `ACTIVE`
    +     * state before the operation fully completes. For that period of time, you
    +     * can't update the resource. Use the operation status to determine when the
    +     * processing fully completes.
    +     * 
    + */ + default void updateNetworkPolicy( + com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateNetworkPolicyMethod(), 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.
    +     * 
    + */ + default void deleteNetworkPolicy( + com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteNetworkPolicyMethod(), responseObserver); + } + + /** + * + * + *
    +     * Lists Consumer VPCs bound to Management DNS Zone of a given private cloud.
    +     * 
    + */ + default void listManagementDnsZoneBindings( + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListManagementDnsZoneBindingsMethod(), responseObserver); + } + + /** + * + * + *
    +     * Retrieves a 'ManagementDnsZoneBinding' resource by its resource name.
    +     * 
    + */ + default void getManagementDnsZoneBinding( + com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetManagementDnsZoneBindingMethod(), responseObserver); + } + + /** + * + * + *
    +     * Creates a new `ManagementDnsZoneBinding` resource in a private cloud.
    +     * This RPC creates the DNS binding and the resource that represents the
    +     * DNS binding of the consumer VPC network to the management DNS zone. A
    +     * management DNS zone is the Cloud DNS cross-project binding zone that
    +     * VMware Engine creates for each private cloud. It contains FQDNs and
    +     * corresponding IP addresses for the private cloud's ESXi hosts and
    +     * management VM appliances like vCenter and NSX Manager.
    +     * 
    + */ + default void createManagementDnsZoneBinding( + com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateManagementDnsZoneBindingMethod(), responseObserver); + } + + /** + * + * + *
    +     * Updates a `ManagementDnsZoneBinding` resource.
    +     * Only fields specified in `update_mask` are applied.
    +     * 
    + */ + default void updateManagementDnsZoneBinding( + com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateManagementDnsZoneBindingMethod(), responseObserver); + } + + /** + * + * + *
    +     * Deletes a `ManagementDnsZoneBinding` resource. When a management DNS zone
    +     * binding is deleted, the corresponding consumer VPC network is no longer
    +     * bound to the management DNS zone.
    +     * 
    + */ + default void deleteManagementDnsZoneBinding( + com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteManagementDnsZoneBindingMethod(), responseObserver); + } + + /** + * + * + *
    +     * Retries to create a `ManagementDnsZoneBinding` resource that is
    +     * in failed state.
    +     * 
    + */ + default void repairManagementDnsZoneBinding( + com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRepairManagementDnsZoneBindingMethod(), responseObserver); + } + + /** + * + * + *
    +     * Creates a new VMware Engine network that can be used by a private cloud.
    +     * 
    + */ + default void createVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateVmwareEngineNetworkMethod(), responseObserver); + } + + /** + * + * + *
    +     * Modifies a VMware Engine network resource. Only the following fields can be
    +     * updated: `description`. Only fields specified in `updateMask` are
    +     * applied.
    +     * 
    + */ + default void updateVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateVmwareEngineNetworkMethod(), 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.
    +     * 
    + */ + default void deleteVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteVmwareEngineNetworkMethod(), 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`).
    +     * 
    + */ + default void getVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetVmwareEngineNetworkMethod(), responseObserver); + } + + /** + * + * + *
    +     * Lists `VmwareEngineNetwork` resources in a given project and location.
    +     * 
    + */ + default void listVmwareEngineNetworks( + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse> + responseObserver) { + 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); + } + + /** + * + * + *
    +     * Grants the bind permission to the customer provided principal(user /
    +     * service account) to bind their DNS zone with the intranet VPC associated
    +     * with the project. DnsBindPermission is a global resource and location can
    +     * only be global.
    +     * 
    + */ + default void grantDnsBindPermission( + com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGrantDnsBindPermissionMethod(), responseObserver); + } + + /** + * + * + *
    +     * Gets all the principals having bind permission on the intranet VPC
    +     * associated with the consumer project granted by the Grant API.
    +     * DnsBindPermission is a global resource and location can only be global.
    +     * 
    + */ + default void getDnsBindPermission( + com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDnsBindPermissionMethod(), responseObserver); + } + + /** + * + * + *
    +     * Revokes the bind permission from the customer provided principal(user /
    +     * service account) on the intranet VPC associated with the consumer project.
    +     * DnsBindPermission is a global resource and location can only be global.
    +     * 
    + */ + default void revokeDnsBindPermission( + com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRevokeDnsBindPermissionMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service VmwareEngine. + * + *
    +   * VMwareEngine manages VMware's private clusters in the Cloud.
    +   * 
    + */ + public abstract static class VmwareEngineImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return VmwareEngineGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service VmwareEngine. + * + *
    +   * VMwareEngine manages VMware's private clusters in the Cloud.
    +   * 
    + */ + public static final class VmwareEngineStub + extends io.grpc.stub.AbstractAsyncStub { + private VmwareEngineStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VmwareEngineStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VmwareEngineStub(channel, callOptions); + } + + /** + * + * + *
    +     * Lists `PrivateCloud` resources in a given project and location.
    +     * 
    + */ + public void listPrivateClouds( + com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPrivateCloudsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Retrieves a `PrivateCloud` resource by its resource name.
    +     * 
    + */ + public void getPrivateCloud( + com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPrivateCloudMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Creates a new `PrivateCloud` resource in a given project and location.
    +     * Private clouds of type `STANDARD` and
    +     * `TIME_LIMITED` are zonal resources, `STRETCHED` private clouds are
    +     * regional.
    +     * Creating a private cloud also creates a [management
    +     * cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components)
    +     * for that private cloud.
    +     * 
    + */ + public void createPrivateCloud( + com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreatePrivateCloudMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Modifies a `PrivateCloud` resource. Only the following fields can be
    +     * updated: `description`.
    +     * Only fields specified in `updateMask` are applied.
    +     * During operation processing, the resource is temporarily in the `ACTIVE`
    +     * state before the operation fully completes. For that period of time, you
    +     * can't update the resource. Use the operation status to determine when the
    +     * processing fully completes.
    +     * 
    + */ + public void updatePrivateCloud( + com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdatePrivateCloudMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Schedules a `PrivateCloud` resource for deletion.
    +     * A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state`
    +     * set to `DELETED` and `expireTime` set to the time when deletion is final
    +     * and can no longer be reversed. The delete operation is marked as done
    +     * as soon as the `PrivateCloud` is successfully scheduled for deletion
    +     * (this also applies when `delayHours` is set to zero), and the operation is
    +     * not kept in pending state until `PrivateCloud` is purged.
    +     * `PrivateCloud` can be restored using `UndeletePrivateCloud` method before
    +     * the `expireTime` elapses. When `expireTime` is reached, deletion is final
    +     * and all private cloud resources are irreversibly removed and billing stops.
    +     * During the final removal process, `PrivateCloud.state` is set to `PURGING`.
    +     * `PrivateCloud` can be polled using standard `GET` method for the whole
    +     * period of deletion and purging. It will not be returned only
    +     * when it is completely purged.
    +     * 
    + */ + public void deletePrivateCloud( + com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeletePrivateCloudMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Restores a private cloud that was previously scheduled for deletion by
    +     * `DeletePrivateCloud`. A `PrivateCloud` resource scheduled for deletion has
    +     * `PrivateCloud.state` set to `DELETED` and `PrivateCloud.expireTime` set to
    +     * the time when deletion can no longer be reversed.
    +     * 
    + */ + public void undeletePrivateCloud( + com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUndeletePrivateCloudMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Lists `Cluster` resources in a given private cloud.
    +     * 
    + */ + public void listClusters( + com.google.cloud.vmwareengine.v1.ListClustersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListClustersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Retrieves a `Cluster` resource by its resource name.
    +     * 
    + */ + public void getCluster( + com.google.cloud.vmwareengine.v1.GetClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetClusterMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
    +     * Creates a new cluster in a given private cloud.
    +     * Creating a new cluster provides additional nodes for
    +     * use in the parent private cloud and requires sufficient [node
    +     * quota](https://cloud.google.com/vmware-engine/quotas).
    +     * 
    + */ + public void createCluster( + com.google.cloud.vmwareengine.v1.CreateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Modifies a `Cluster` resource. Only fields specified in `updateMask` are
    +     * applied.
    +     * During operation processing, the resource is temporarily in the `ACTIVE`
    +     * state before the operation fully completes. For that period of time, you
    +     * can't update the resource. Use the operation status to determine when the
    +     * processing fully completes.
    +     * 
    + */ + public void updateCluster( + com.google.cloud.vmwareengine.v1.UpdateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Deletes a `Cluster` resource. To avoid unintended data loss, migrate or
    +     * gracefully shut down any workloads running on the cluster before deletion.
    +     * You cannot delete the management cluster of a private cloud using this
    +     * method.
    +     * 
    + */ + public void deleteCluster( + com.google.cloud.vmwareengine.v1.DeleteClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Lists nodes in a given cluster.
    +     * 
    + */ + public void listNodes( + com.google.cloud.vmwareengine.v1.ListNodesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNodesMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
    +     * Gets details of a single node.
    +     * 
    + */ + public void getNode( + com.google.cloud.vmwareengine.v1.GetNodeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNodeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
    +     * Lists external IP addresses assigned to VMware workload VMs in a given
    +     * private cloud.
    +     * 
    + */ + public void listExternalAddresses( + com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListExternalAddressesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Lists external IP addresses assigned to VMware workload VMs within the
    +     * scope of the given network policy.
    +     * 
    + */ + public void fetchNetworkPolicyExternalAddresses( + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFetchNetworkPolicyExternalAddressesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Gets details of a single external IP address.
    +     * 
    + */ + public void getExternalAddress( + com.google.cloud.vmwareengine.v1.GetExternalAddressRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetExternalAddressMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Creates a new `ExternalAddress` resource in a given private cloud. The
    +     * network policy that corresponds to the private cloud must have the external
    +     * IP address network service enabled (`NetworkPolicy.external_ip`).
    +     * 
    + */ + public void createExternalAddress( + com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateExternalAddressMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Updates the parameters of a single external IP address.
    +     * Only fields specified in `update_mask` are applied.
    +     * During operation processing, the resource is temporarily in the `ACTIVE`
    +     * state before the operation fully completes. For that period of time, you
    +     * can't update the resource. Use the operation status to determine when the
    +     * processing fully completes.
    +     * 
    + */ + public void updateExternalAddress( + com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateExternalAddressMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Deletes a single external IP address. When you delete an external IP
    +     * address, connectivity between the external IP address and the corresponding
    +     * internal IP address is lost.
    +     * 
    + */ + public void deleteExternalAddress( + com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteExternalAddressMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Lists subnets in a given private cloud.
    +     * 
    + */ + public void listSubnets( + com.google.cloud.vmwareengine.v1.ListSubnetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSubnetsMethod(), getCallOptions()), + request, + 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); + } + + /** + * + * + *
    +     * Lists `ExternalAccessRule` resources in the specified network policy.
    +     * 
    + */ + public void listExternalAccessRules( + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListExternalAccessRulesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Gets details of a single external access rule.
    +     * 
    + */ + public void getExternalAccessRule( + com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetExternalAccessRuleMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Creates a new external access rule in a given network policy.
    +     * 
    + */ + public void createExternalAccessRule( + com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateExternalAccessRuleMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Updates the parameters of a single external access rule.
    +     * Only fields specified in `update_mask` are applied.
    +     * 
    + */ + public void updateExternalAccessRule( + com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateExternalAccessRuleMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Deletes a single external access rule.
    +     * 
    + */ + public void deleteExternalAccessRule( + com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteExternalAccessRuleMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Lists logging servers configured for a given private
    +     * cloud.
    +     * 
    + */ + public void listLoggingServers( + com.google.cloud.vmwareengine.v1.ListLoggingServersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListLoggingServersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Gets details of a logging server.
    +     * 
    + */ + public void getLoggingServer( + com.google.cloud.vmwareengine.v1.GetLoggingServerRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetLoggingServerMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Create a new logging server for a given private cloud.
    +     * 
    + */ + public void createLoggingServer( + com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateLoggingServerMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Updates the parameters of a single logging server.
    +     * Only fields specified in `update_mask` are applied.
    +     * 
    + */ + public void updateLoggingServer( + com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateLoggingServerMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Deletes a single logging server.
    +     * 
    + */ + public void deleteLoggingServer( + com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteLoggingServerMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Lists node types
    +     * 
    + */ + public void listNodeTypes( + com.google.cloud.vmwareengine.v1.ListNodeTypesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNodeTypesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Gets details of a single `NodeType`.
    +     * 
    + */ + public void getNodeType( + com.google.cloud.vmwareengine.v1.GetNodeTypeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNodeTypeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Gets details of credentials for NSX appliance.
    +     * 
    + */ + public void showNsxCredentials( + com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getShowNsxCredentialsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Gets details of credentials for Vcenter appliance.
    +     * 
    + */ + public void showVcenterCredentials( + com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getShowVcenterCredentialsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Resets credentials of the NSX appliance.
    +     * 
    + */ + public void resetNsxCredentials( + com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getResetNsxCredentialsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Resets credentials of the Vcenter appliance.
    +     * 
    + */ + public void resetVcenterCredentials( + com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getResetVcenterCredentialsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Gets details of the `DnsForwarding` config.
    +     * 
    + */ + public void getDnsForwarding( + com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDnsForwardingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Updates the parameters of the `DnsForwarding` config, like associated
    +     * domains. Only fields specified in `update_mask` are applied.
    +     * 
    + */ + public void updateDnsForwarding( + com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDnsForwardingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Retrieves a `NetworkPeering` resource by its resource name. The resource
    +     * contains details of the network peering, such as peered
    +     * networks, import and export custom route configurations, and peering state.
    +     * NetworkPeering is a global resource and location can only be global.
    +     * 
    + */ + public void getNetworkPeering( + com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNetworkPeeringMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Lists `NetworkPeering` resources in a given project. NetworkPeering is a
    +     * global resource and location can only be global.
    +     * 
    + */ + public void listNetworkPeerings( + com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNetworkPeeringsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Creates a new network peering between the peer network and VMware Engine
    +     * network provided in a `NetworkPeering` resource. NetworkPeering is a
    +     * global resource and location can only be global.
    +     * 
    + */ + public void createNetworkPeering( + com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateNetworkPeeringMethod(), getCallOptions()), + request, + responseObserver); + } + + /** * * *
    -     * Lists `PrivateCloud` resources in a given project and location.
    +     * Deletes a `NetworkPeering` resource. When a network peering is deleted for
    +     * a VMware Engine network, the peer network becomes inaccessible to that
    +     * VMware Engine network. NetworkPeering is a global resource and location can
    +     * only be global.
          * 
    */ - default void listPrivateClouds( - com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest request, - io.grpc.stub.StreamObserver + public void deleteNetworkPeering( + com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteNetworkPeeringMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Modifies a `NetworkPeering` resource. Only the `description` field can be
    +     * updated. Only fields specified in `updateMask` are applied. NetworkPeering
    +     * is a global resource and location can only be global.
    +     * 
    + */ + public void updateNetworkPeering( + com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateNetworkPeeringMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Lists the network peering routes exchanged over a peering connection.
    +     * NetworkPeering is a global resource and location can only be global.
    +     * 
    + */ + public void listPeeringRoutes( + com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest request, + io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListPrivateCloudsMethod(), responseObserver); + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPeeringRoutesMethod(), getCallOptions()), + request, + responseObserver); } /** * * *
    -     * Retrieves a `PrivateCloud` resource by its resource name.
    +     * Creates a new HCX activation key in a given private cloud.
          * 
    */ - default void getPrivateCloud( - com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest request, - io.grpc.stub.StreamObserver + public void createHcxActivationKey( + com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateHcxActivationKeyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Lists `HcxActivationKey` resources in a given private cloud.
    +     * 
    + */ + public void listHcxActivationKeys( + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest request, + io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetPrivateCloudMethod(), responseObserver); + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListHcxActivationKeysMethod(), getCallOptions()), + request, + responseObserver); } /** * * *
    -     * Creates a new `PrivateCloud` resource in a given project and location.
    -     * Private clouds can only be created in zones, regional private clouds are
    -     * not supported.
    -     * Creating a private cloud also creates a [management
    -     * cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components)
    -     * for that private cloud.
    +     * Retrieves a `HcxActivationKey` resource by its resource name.
          * 
    */ - default void createPrivateCloud( - com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest request, + public void getHcxActivationKey( + com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetHcxActivationKeyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Retrieves a `NetworkPolicy` resource by its resource name.
    +     * 
    + */ + public void getNetworkPolicy( + com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNetworkPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Lists `NetworkPolicy` resources in a specified project and location.
    +     * 
    + */ + public void listNetworkPolicies( + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNetworkPoliciesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Creates a new network policy in a given VMware Engine network of a
    +     * project and location (region). A new network policy cannot be created if
    +     * another network policy already exists in the same scope.
    +     * 
    + */ + public void createNetworkPolicy( + com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreatePrivateCloudMethod(), responseObserver); + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateNetworkPolicyMethod(), getCallOptions()), + request, + responseObserver); } /** * * *
    -     * Modifies a `PrivateCloud` resource. Only the following fields can be
    -     * updated: `description`.
    -     * Only fields specified in `updateMask` are applied.
    +     * Modifies a `NetworkPolicy` resource. Only the following fields can be
    +     * updated: `internet_access`, `external_ip`, `edge_services_cidr`.
    +     * Only fields specified in `updateMask` are applied. When updating a network
    +     * policy, the external IP network service can only be disabled if there are
    +     * no external IP addresses present in the scope of the policy. Also, a
    +     * `NetworkService` cannot be updated when `NetworkService.state` is set
    +     * to `RECONCILING`.
          * During operation processing, the resource is temporarily in the `ACTIVE`
          * state before the operation fully completes. For that period of time, you
          * can't update the resource. Use the operation status to determine when the
          * processing fully completes.
          * 
    */ - default void updatePrivateCloud( - com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest request, + public void updateNetworkPolicy( + com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdatePrivateCloudMethod(), responseObserver); + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateNetworkPolicyMethod(), getCallOptions()), + request, + responseObserver); } /** * * *
    -     * Schedules a `PrivateCloud` resource for deletion.
    -     * A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state`
    -     * set to `DELETED` and `expireTime` set to the time when deletion is final
    -     * and can no longer be reversed. The delete operation is marked as done
    -     * as soon as the `PrivateCloud` is successfully scheduled for deletion
    -     * (this also applies when `delayHours` is set to zero), and the operation is
    -     * not kept in pending state until `PrivateCloud` is purged.
    -     * `PrivateCloud` can be restored using `UndeletePrivateCloud` method before
    -     * the `expireTime` elapses. When `expireTime` is reached, deletion is final
    -     * and all private cloud resources are irreversibly removed and billing stops.
    -     * During the final removal process, `PrivateCloud.state` is set to `PURGING`.
    -     * `PrivateCloud` can be polled using standard `GET` method for the whole
    -     * period of deletion and purging. It will not be returned only
    -     * when it is completely purged.
    +     * 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.
          * 
    */ - default void deletePrivateCloud( - com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest request, + public void deleteNetworkPolicy( + com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeletePrivateCloudMethod(), responseObserver); + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteNetworkPolicyMethod(), getCallOptions()), + request, + responseObserver); } /** * * *
    -     * Restores a private cloud that was previously scheduled for deletion by
    -     * `DeletePrivateCloud`. A `PrivateCloud` resource scheduled for deletion has
    -     * `PrivateCloud.state` set to `DELETED` and `PrivateCloud.expireTime` set to
    -     * the time when deletion can no longer be reversed.
    +     * Lists Consumer VPCs bound to Management DNS Zone of a given private cloud.
          * 
    */ - default void undeletePrivateCloud( - com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUndeletePrivateCloudMethod(), responseObserver); + public void listManagementDnsZoneBindings( + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListManagementDnsZoneBindingsMethod(), getCallOptions()), + request, + responseObserver); } /** * * *
    -     * Lists `Cluster` resources in a given private cloud.
    +     * Retrieves a 'ManagementDnsZoneBinding' resource by its resource name.
          * 
    */ - default void listClusters( - com.google.cloud.vmwareengine.v1.ListClustersRequest request, - io.grpc.stub.StreamObserver + public void getManagementDnsZoneBinding( + com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListClustersMethod(), responseObserver); + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetManagementDnsZoneBindingMethod(), getCallOptions()), + request, + responseObserver); } /** * * *
    -     * Retrieves a `Cluster` resource by its resource name.
    +     * Creates a new `ManagementDnsZoneBinding` resource in a private cloud.
    +     * This RPC creates the DNS binding and the resource that represents the
    +     * DNS binding of the consumer VPC network to the management DNS zone. A
    +     * management DNS zone is the Cloud DNS cross-project binding zone that
    +     * VMware Engine creates for each private cloud. It contains FQDNs and
    +     * corresponding IP addresses for the private cloud's ESXi hosts and
    +     * management VM appliances like vCenter and NSX Manager.
          * 
    */ - default void getCluster( - com.google.cloud.vmwareengine.v1.GetClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetClusterMethod(), responseObserver); + public void createManagementDnsZoneBinding( + com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateManagementDnsZoneBindingMethod(), getCallOptions()), + request, + responseObserver); } /** * * *
    -     * Creates a new cluster in a given private cloud.
    -     * Creating a new cluster provides additional nodes for
    -     * use in the parent private cloud and requires sufficient [node
    -     * quota](https://cloud.google.com/vmware-engine/quotas).
    +     * Updates a `ManagementDnsZoneBinding` resource.
    +     * Only fields specified in `update_mask` are applied.
          * 
    */ - default void createCluster( - com.google.cloud.vmwareengine.v1.CreateClusterRequest request, + public void updateManagementDnsZoneBinding( + com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateManagementDnsZoneBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Deletes a `ManagementDnsZoneBinding` resource. When a management DNS zone
    +     * binding is deleted, the corresponding consumer VPC network is no longer
    +     * bound to the management DNS zone.
    +     * 
    + */ + public void deleteManagementDnsZoneBinding( + com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteManagementDnsZoneBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Retries to create a `ManagementDnsZoneBinding` resource that is
    +     * in failed state.
    +     * 
    + */ + public void repairManagementDnsZoneBinding( + com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRepairManagementDnsZoneBindingMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( - getCreateClusterMethod(), responseObserver); + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateVmwareEngineNetworkMethod(), getCallOptions()), + request, + responseObserver); } /** * * *
    -     * Modifies a `Cluster` resource. Only the following fields can be updated:
    -     * `node_type_configs.*.node_count`. Only fields specified in `updateMask` are
    +     * Modifies a VMware Engine network resource. Only the following fields can be
    +     * updated: `description`. Only fields specified in `updateMask` are
          * applied.
    -     * During operation processing, the resource is temporarily in the `ACTIVE`
    -     * state before the operation fully completes. For that period of time, you
    -     * can't update the resource. Use the operation status to determine when the
    -     * processing fully completes.
          * 
    */ - default void updateCluster( - com.google.cloud.vmwareengine.v1.UpdateClusterRequest request, + public void updateVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateClusterMethod(), responseObserver); + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateVmwareEngineNetworkMethod(), getCallOptions()), + request, + responseObserver); } /** * * *
    -     * Deletes a `Cluster` resource. To avoid unintended data loss, migrate or
    -     * gracefully shut down any workloads running on the cluster before deletion.
    -     * You cannot delete the management cluster of a private cloud using this
    -     * method.
    +     * 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.
          * 
    */ - default void deleteCluster( - com.google.cloud.vmwareengine.v1.DeleteClusterRequest request, + public void deleteVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteClusterMethod(), responseObserver); + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteVmwareEngineNetworkMethod(), getCallOptions()), + request, + responseObserver); } /** * * *
    -     * Lists subnets in a given private cloud.
    +     * 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`).
          * 
    */ - default void listSubnets( - com.google.cloud.vmwareengine.v1.ListSubnetsRequest request, - io.grpc.stub.StreamObserver + public void getVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest request, + io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListSubnetsMethod(), responseObserver); + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetVmwareEngineNetworkMethod(), getCallOptions()), + request, + responseObserver); } /** * * *
    -     * Gets details of a single subnet.
    +     * Lists `VmwareEngineNetwork` resources in a given project and location.
          * 
    */ - default void getSubnet( - com.google.cloud.vmwareengine.v1.GetSubnetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSubnetMethod(), responseObserver); + 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(getListVmwareEngineNetworksMethod(), 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.
    +     * Creates a new private connection that can be used for accessing private
    +     * Clouds.
          * 
    */ - default void updateSubnet( - com.google.cloud.vmwareengine.v1.UpdateSubnetRequest request, + public void createPrivateConnection( + com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateSubnetMethod(), responseObserver); + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreatePrivateConnectionMethod(), getCallOptions()), + request, + responseObserver); } /** * * *
    -     * Lists node types
    +     * 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 listNodeTypes( - com.google.cloud.vmwareengine.v1.ListNodeTypesRequest request, - io.grpc.stub.StreamObserver + public void getPrivateConnection( + com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListNodeTypesMethod(), responseObserver); - } - - /** - * - * - *
    -     * Gets details of a single `NodeType`.
    -     * 
    - */ - default void getNodeType( - com.google.cloud.vmwareengine.v1.GetNodeTypeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetNodeTypeMethod(), responseObserver); + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPrivateConnectionMethod(), getCallOptions()), + request, + responseObserver); } /** * * *
    -     * Gets details of credentials for NSX appliance.
    +     * Lists `PrivateConnection` resources in a given project and location.
          * 
    */ - default void showNsxCredentials( - com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest request, - io.grpc.stub.StreamObserver + public void listPrivateConnections( + com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getShowNsxCredentialsMethod(), responseObserver); + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPrivateConnectionsMethod(), getCallOptions()), + request, + responseObserver); } /** * * *
    -     * Gets details of credentials for Vcenter appliance.
    +     * Modifies a `PrivateConnection` resource. Only `description` and
    +     * `routing_mode` fields can be updated. Only fields specified in `updateMask`
    +     * are applied.
          * 
    */ - default void showVcenterCredentials( - com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getShowVcenterCredentialsMethod(), responseObserver); + public void updatePrivateConnection( + com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdatePrivateConnectionMethod(), getCallOptions()), + request, + responseObserver); } /** * * *
    -     * Resets credentials of the NSX appliance.
    +     * 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 resetNsxCredentials( - com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest request, + public void deletePrivateConnection( + com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getResetNsxCredentialsMethod(), responseObserver); + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeletePrivateConnectionMethod(), getCallOptions()), + request, + responseObserver); } /** * * *
    -     * Resets credentials of the Vcenter appliance.
    +     * Lists the private connection routes exchanged over a peering connection.
          * 
    */ - default void resetVcenterCredentials( - com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getResetVcenterCredentialsMethod(), responseObserver); + public void listPrivateConnectionPeeringRoutes( + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPrivateConnectionPeeringRoutesMethod(), getCallOptions()), + request, + responseObserver); } /** * * *
    -     * Creates a new HCX activation key in a given private cloud.
    +     * Grants the bind permission to the customer provided principal(user /
    +     * service account) to bind their DNS zone with the intranet VPC associated
    +     * with the project. DnsBindPermission is a global resource and location can
    +     * only be global.
          * 
    */ - default void createHcxActivationKey( - com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest request, + public void grantDnsBindPermission( + com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateHcxActivationKeyMethod(), responseObserver); + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGrantDnsBindPermissionMethod(), getCallOptions()), + request, + responseObserver); } /** * * *
    -     * Lists `HcxActivationKey` resources in a given private cloud.
    +     * Gets all the principals having bind permission on the intranet VPC
    +     * associated with the consumer project granted by the Grant API.
    +     * DnsBindPermission is a global resource and location can only be global.
          * 
    */ - default void listHcxActivationKeys( - com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest request, - io.grpc.stub.StreamObserver + public void getDnsBindPermission( + com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest request, + io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListHcxActivationKeysMethod(), responseObserver); + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDnsBindPermissionMethod(), getCallOptions()), + request, + responseObserver); } /** * * *
    -     * Retrieves a `HcxActivationKey` resource by its resource name.
    +     * Revokes the bind permission from the customer provided principal(user /
    +     * service account) on the intranet VPC associated with the consumer project.
    +     * DnsBindPermission is a global resource and location can only be global.
          * 
    */ - default void getHcxActivationKey( - com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetHcxActivationKeyMethod(), responseObserver); + public void revokeDnsBindPermission( + com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRevokeDnsBindPermissionMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service VmwareEngine. + * + *
    +   * VMwareEngine manages VMware's private clusters in the Cloud.
    +   * 
    + */ + public static final class VmwareEngineBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private VmwareEngineBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VmwareEngineBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VmwareEngineBlockingStub(channel, callOptions); } /** * * *
    -     * Retrieves a `NetworkPolicy` resource by its resource name.
    +     * Lists `PrivateCloud` resources in a given project and location.
          * 
    */ - default void getNetworkPolicy( - com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetNetworkPolicyMethod(), responseObserver); + public com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse listPrivateClouds( + com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPrivateCloudsMethod(), getCallOptions(), request); } /** * * *
    -     * Lists `NetworkPolicy` resources in a specified project and location.
    +     * Retrieves a `PrivateCloud` resource by its resource name.
          * 
    */ - default void listNetworkPolicies( - com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListNetworkPoliciesMethod(), responseObserver); + public com.google.cloud.vmwareengine.v1.PrivateCloud getPrivateCloud( + com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPrivateCloudMethod(), getCallOptions(), request); } /** * * *
    -     * Creates a new network policy in a given VMware Engine network of a
    -     * project and location (region). A new network policy cannot be created if
    -     * another network policy already exists in the same scope.
    +     * Creates a new `PrivateCloud` resource in a given project and location.
    +     * Private clouds of type `STANDARD` and
    +     * `TIME_LIMITED` are zonal resources, `STRETCHED` private clouds are
    +     * regional.
    +     * Creating a private cloud also creates a [management
    +     * cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components)
    +     * for that private cloud.
          * 
    */ - default void createNetworkPolicy( - com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateNetworkPolicyMethod(), responseObserver); + public com.google.longrunning.Operation createPrivateCloud( + com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreatePrivateCloudMethod(), getCallOptions(), request); } /** * * *
    -     * Modifies a `NetworkPolicy` resource. Only the following fields can be
    -     * updated: `internet_access`, `external_ip`, `edge_services_cidr`.
    -     * Only fields specified in `updateMask` are applied. When updating a network
    -     * policy, the external IP network service can only be disabled if there are
    -     * no external IP addresses present in the scope of the policy. Also, a
    -     * `NetworkService` cannot be updated when `NetworkService.state` is set
    -     * to `RECONCILING`.
    +     * Modifies a `PrivateCloud` resource. Only the following fields can be
    +     * updated: `description`.
    +     * Only fields specified in `updateMask` are applied.
          * During operation processing, the resource is temporarily in the `ACTIVE`
          * state before the operation fully completes. For that period of time, you
          * can't update the resource. Use the operation status to determine when the
          * processing fully completes.
          * 
    */ - default void updateNetworkPolicy( - com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateNetworkPolicyMethod(), responseObserver); + public com.google.longrunning.Operation updatePrivateCloud( + com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdatePrivateCloudMethod(), getCallOptions(), request); } /** * * *
    -     * 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.
    +     * Schedules a `PrivateCloud` resource for deletion.
    +     * A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state`
    +     * set to `DELETED` and `expireTime` set to the time when deletion is final
    +     * and can no longer be reversed. The delete operation is marked as done
    +     * as soon as the `PrivateCloud` is successfully scheduled for deletion
    +     * (this also applies when `delayHours` is set to zero), and the operation is
    +     * not kept in pending state until `PrivateCloud` is purged.
    +     * `PrivateCloud` can be restored using `UndeletePrivateCloud` method before
    +     * the `expireTime` elapses. When `expireTime` is reached, deletion is final
    +     * and all private cloud resources are irreversibly removed and billing stops.
    +     * During the final removal process, `PrivateCloud.state` is set to `PURGING`.
    +     * `PrivateCloud` can be polled using standard `GET` method for the whole
    +     * period of deletion and purging. It will not be returned only
    +     * when it is completely purged.
          * 
    */ - default void deleteNetworkPolicy( - com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteNetworkPolicyMethod(), responseObserver); + public com.google.longrunning.Operation deletePrivateCloud( + com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeletePrivateCloudMethod(), getCallOptions(), request); } /** * * *
    -     * Creates a new VMware Engine network that can be used by a private cloud.
    +     * Restores a private cloud that was previously scheduled for deletion by
    +     * `DeletePrivateCloud`. A `PrivateCloud` resource scheduled for deletion has
    +     * `PrivateCloud.state` set to `DELETED` and `PrivateCloud.expireTime` set to
    +     * the time when deletion can no longer be reversed.
          * 
    */ - default void createVmwareEngineNetwork( - com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateVmwareEngineNetworkMethod(), responseObserver); + public com.google.longrunning.Operation undeletePrivateCloud( + com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUndeletePrivateCloudMethod(), getCallOptions(), request); } /** * * *
    -     * Modifies a VMware Engine network resource. Only the following fields can be
    -     * updated: `description`. Only fields specified in `updateMask` are
    -     * applied.
    +     * Lists `Cluster` resources in a given private cloud.
          * 
    */ - default void updateVmwareEngineNetwork( - com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateVmwareEngineNetworkMethod(), responseObserver); + public com.google.cloud.vmwareengine.v1.ListClustersResponse listClusters( + com.google.cloud.vmwareengine.v1.ListClustersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListClustersMethod(), getCallOptions(), request); } /** * * *
    -     * 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.
    +     * Retrieves a `Cluster` resource by its resource name.
          * 
    */ - default void deleteVmwareEngineNetwork( - com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteVmwareEngineNetworkMethod(), responseObserver); + public com.google.cloud.vmwareengine.v1.Cluster getCluster( + com.google.cloud.vmwareengine.v1.GetClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetClusterMethod(), getCallOptions(), request); } /** * * *
    -     * 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`).
    +     * Creates a new cluster in a given private cloud.
    +     * Creating a new cluster provides additional nodes for
    +     * use in the parent private cloud and requires sufficient [node
    +     * quota](https://cloud.google.com/vmware-engine/quotas).
          * 
    */ - default void getVmwareEngineNetwork( - com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetVmwareEngineNetworkMethod(), responseObserver); + public com.google.longrunning.Operation createCluster( + com.google.cloud.vmwareengine.v1.CreateClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateClusterMethod(), getCallOptions(), request); } /** * * *
    -     * Lists `VmwareEngineNetwork` resources in a given project and location.
    +     * Modifies a `Cluster` resource. Only fields specified in `updateMask` are
    +     * applied.
    +     * During operation processing, the resource is temporarily in the `ACTIVE`
    +     * state before the operation fully completes. For that period of time, you
    +     * can't update the resource. Use the operation status to determine when the
    +     * processing fully completes.
          * 
    */ - default void listVmwareEngineNetworks( - com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListVmwareEngineNetworksMethod(), responseObserver); + public com.google.longrunning.Operation updateCluster( + com.google.cloud.vmwareengine.v1.UpdateClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateClusterMethod(), getCallOptions(), request); } /** * * *
    -     * Creates a new private connection that can be used for accessing private
    -     * Clouds.
    +     * Deletes a `Cluster` resource. To avoid unintended data loss, migrate or
    +     * gracefully shut down any workloads running on the cluster before deletion.
    +     * You cannot delete the management cluster of a private cloud using this
    +     * method.
          * 
    */ - default void createPrivateConnection( - com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreatePrivateConnectionMethod(), responseObserver); + public com.google.longrunning.Operation deleteCluster( + com.google.cloud.vmwareengine.v1.DeleteClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteClusterMethod(), 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.
    +     * Lists nodes in a given cluster.
          * 
    */ - default void getPrivateConnection( - com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetPrivateConnectionMethod(), responseObserver); + public com.google.cloud.vmwareengine.v1.ListNodesResponse listNodes( + com.google.cloud.vmwareengine.v1.ListNodesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNodesMethod(), getCallOptions(), request); } /** * * *
    -     * Lists `PrivateConnection` resources in a given project and location.
    +     * Gets details of a single node.
          * 
    */ - default void listPrivateConnections( - com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListPrivateConnectionsMethod(), responseObserver); + public com.google.cloud.vmwareengine.v1.Node getNode( + com.google.cloud.vmwareengine.v1.GetNodeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNodeMethod(), getCallOptions(), request); } /** * * *
    -     * Modifies a `PrivateConnection` resource. Only `description` and
    -     * `routing_mode` fields can be updated. Only fields specified in `updateMask`
    -     * are applied.
    +     * Lists external IP addresses assigned to VMware workload VMs in a given
    +     * private cloud.
          * 
    */ - default void updatePrivateConnection( - com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdatePrivateConnectionMethod(), responseObserver); + public com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse listExternalAddresses( + com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListExternalAddressesMethod(), 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.
    +     * Lists external IP addresses assigned to VMware workload VMs within the
    +     * scope of the given network policy.
          * 
    */ - default void deletePrivateConnection( - com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeletePrivateConnectionMethod(), responseObserver); + public com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse + fetchNetworkPolicyExternalAddresses( + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFetchNetworkPolicyExternalAddressesMethod(), getCallOptions(), request); } /** * * *
    -     * Lists the private connection routes exchanged over a peering connection.
    +     * Gets details of a single external IP address.
          * 
    */ - 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); - } - } - - /** - * Base class for the server implementation of the service VmwareEngine. - * - *
    -   * VMwareEngine manages VMware's private clusters in the Cloud.
    -   * 
    - */ - public abstract static class VmwareEngineImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return VmwareEngineGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service VmwareEngine. - * - *
    -   * VMwareEngine manages VMware's private clusters in the Cloud.
    -   * 
    - */ - public static final class VmwareEngineStub - extends io.grpc.stub.AbstractAsyncStub { - private VmwareEngineStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected VmwareEngineStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new VmwareEngineStub(channel, callOptions); + public com.google.cloud.vmwareengine.v1.ExternalAddress getExternalAddress( + com.google.cloud.vmwareengine.v1.GetExternalAddressRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetExternalAddressMethod(), getCallOptions(), request); } /** * * *
    -     * Lists `PrivateCloud` resources in a given project and location.
    +     * Creates a new `ExternalAddress` resource in a given private cloud. The
    +     * network policy that corresponds to the private cloud must have the external
    +     * IP address network service enabled (`NetworkPolicy.external_ip`).
          * 
    */ - public void listPrivateClouds( - com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPrivateCloudsMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation createExternalAddress( + com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateExternalAddressMethod(), getCallOptions(), request); } /** * * *
    -     * Retrieves a `PrivateCloud` resource by its resource name.
    +     * Updates the parameters of a single external IP address.
    +     * Only fields specified in `update_mask` are applied.
    +     * During operation processing, the resource is temporarily in the `ACTIVE`
    +     * state before the operation fully completes. For that period of time, you
    +     * can't update the resource. Use the operation status to determine when the
    +     * processing fully completes.
          * 
    */ - public void getPrivateCloud( - com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetPrivateCloudMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation updateExternalAddress( + com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateExternalAddressMethod(), getCallOptions(), request); } /** * * *
    -     * Creates a new `PrivateCloud` resource in a given project and location.
    -     * Private clouds can only be created in zones, regional private clouds are
    -     * not supported.
    -     * Creating a private cloud also creates a [management
    -     * cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components)
    -     * for that private cloud.
    +     * Deletes a single external IP address. When you delete an external IP
    +     * address, connectivity between the external IP address and the corresponding
    +     * internal IP address is lost.
          * 
    */ - public void createPrivateCloud( - com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreatePrivateCloudMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation deleteExternalAddress( + com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteExternalAddressMethod(), getCallOptions(), request); } /** * * *
    -     * Modifies a `PrivateCloud` resource. Only the following fields can be
    -     * updated: `description`.
    -     * Only fields specified in `updateMask` are applied.
    -     * During operation processing, the resource is temporarily in the `ACTIVE`
    -     * state before the operation fully completes. For that period of time, you
    -     * can't update the resource. Use the operation status to determine when the
    -     * processing fully completes.
    +     * Lists subnets in a given private cloud.
          * 
    */ - public void updatePrivateCloud( - com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdatePrivateCloudMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.vmwareengine.v1.ListSubnetsResponse listSubnets( + com.google.cloud.vmwareengine.v1.ListSubnetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSubnetsMethod(), getCallOptions(), request); } /** * * *
    -     * Schedules a `PrivateCloud` resource for deletion.
    -     * A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state`
    -     * set to `DELETED` and `expireTime` set to the time when deletion is final
    -     * and can no longer be reversed. The delete operation is marked as done
    -     * as soon as the `PrivateCloud` is successfully scheduled for deletion
    -     * (this also applies when `delayHours` is set to zero), and the operation is
    -     * not kept in pending state until `PrivateCloud` is purged.
    -     * `PrivateCloud` can be restored using `UndeletePrivateCloud` method before
    -     * the `expireTime` elapses. When `expireTime` is reached, deletion is final
    -     * and all private cloud resources are irreversibly removed and billing stops.
    -     * During the final removal process, `PrivateCloud.state` is set to `PURGING`.
    -     * `PrivateCloud` can be polled using standard `GET` method for the whole
    -     * period of deletion and purging. It will not be returned only
    -     * when it is completely purged.
    +     * Gets details of a single subnet.
          * 
    */ - public void deletePrivateCloud( - com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeletePrivateCloudMethod(), getCallOptions()), - request, - responseObserver); + 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); } /** * * *
    -     * Restores a private cloud that was previously scheduled for deletion by
    -     * `DeletePrivateCloud`. A `PrivateCloud` resource scheduled for deletion has
    -     * `PrivateCloud.state` set to `DELETED` and `PrivateCloud.expireTime` set to
    -     * the time when deletion can no longer be reversed.
    +     * 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 undeletePrivateCloud( - com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUndeletePrivateCloudMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation updateSubnet( + com.google.cloud.vmwareengine.v1.UpdateSubnetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSubnetMethod(), getCallOptions(), request); } /** * * *
    -     * Lists `Cluster` resources in a given private cloud.
    +     * Lists `ExternalAccessRule` resources in the specified network policy.
          * 
    */ - public void listClusters( - com.google.cloud.vmwareengine.v1.ListClustersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListClustersMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse listExternalAccessRules( + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListExternalAccessRulesMethod(), getCallOptions(), request); } /** * * *
    -     * Retrieves a `Cluster` resource by its resource name.
    +     * Gets details of a single external access rule.
          * 
    */ - public void getCluster( - com.google.cloud.vmwareengine.v1.GetClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetClusterMethod(), getCallOptions()), request, responseObserver); + public com.google.cloud.vmwareengine.v1.ExternalAccessRule getExternalAccessRule( + com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetExternalAccessRuleMethod(), getCallOptions(), request); } /** * * *
    -     * Creates a new cluster in a given private cloud.
    -     * Creating a new cluster provides additional nodes for
    -     * use in the parent private cloud and requires sufficient [node
    -     * quota](https://cloud.google.com/vmware-engine/quotas).
    +     * Creates a new external access rule in a given network policy.
          * 
    */ - public void createCluster( - com.google.cloud.vmwareengine.v1.CreateClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateClusterMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation createExternalAccessRule( + com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateExternalAccessRuleMethod(), getCallOptions(), request); } /** * * *
    -     * Modifies a `Cluster` resource. Only the following fields can be updated:
    -     * `node_type_configs.*.node_count`. Only fields specified in `updateMask` are
    -     * applied.
    -     * During operation processing, the resource is temporarily in the `ACTIVE`
    -     * state before the operation fully completes. For that period of time, you
    -     * can't update the resource. Use the operation status to determine when the
    -     * processing fully completes.
    +     * Updates the parameters of a single external access rule.
    +     * Only fields specified in `update_mask` are applied.
          * 
    */ - public void updateCluster( - com.google.cloud.vmwareengine.v1.UpdateClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation updateExternalAccessRule( + com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateExternalAccessRuleMethod(), getCallOptions(), request); } /** * * *
    -     * Deletes a `Cluster` resource. To avoid unintended data loss, migrate or
    -     * gracefully shut down any workloads running on the cluster before deletion.
    -     * You cannot delete the management cluster of a private cloud using this
    -     * method.
    +     * Deletes a single external access rule.
          * 
    */ - public void deleteCluster( - com.google.cloud.vmwareengine.v1.DeleteClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation deleteExternalAccessRule( + com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteExternalAccessRuleMethod(), getCallOptions(), request); } /** * * *
    -     * Lists subnets in a given private cloud.
    +     * Lists logging servers configured for a given private
    +     * cloud.
          * 
    */ - public void listSubnets( - com.google.cloud.vmwareengine.v1.ListSubnetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSubnetsMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.vmwareengine.v1.ListLoggingServersResponse listLoggingServers( + com.google.cloud.vmwareengine.v1.ListLoggingServersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListLoggingServersMethod(), getCallOptions(), request); } /** * * *
    -     * Gets details of a single subnet.
    +     * Gets details of a logging server.
          * 
    */ - 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); + public com.google.cloud.vmwareengine.v1.LoggingServer getLoggingServer( + com.google.cloud.vmwareengine.v1.GetLoggingServerRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetLoggingServerMethod(), 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.
    +     * Create a new logging server for a given private cloud.
          * 
    */ - 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); + public com.google.longrunning.Operation createLoggingServer( + com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateLoggingServerMethod(), getCallOptions(), request); } /** * * *
    -     * Lists node types
    +     * Updates the parameters of a single logging server.
    +     * Only fields specified in `update_mask` are applied.
          * 
    */ - public void listNodeTypes( - com.google.cloud.vmwareengine.v1.ListNodeTypesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNodeTypesMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation updateLoggingServer( + com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateLoggingServerMethod(), getCallOptions(), request); } /** * * *
    -     * Gets details of a single `NodeType`.
    +     * Deletes a single logging server.
          * 
    */ - public void getNodeType( - com.google.cloud.vmwareengine.v1.GetNodeTypeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNodeTypeMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation deleteLoggingServer( + com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteLoggingServerMethod(), getCallOptions(), request); } /** * * *
    -     * Gets details of credentials for NSX appliance.
    +     * Lists node types
          * 
    */ - public void showNsxCredentials( - com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getShowNsxCredentialsMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.vmwareengine.v1.ListNodeTypesResponse listNodeTypes( + com.google.cloud.vmwareengine.v1.ListNodeTypesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNodeTypesMethod(), getCallOptions(), request); } /** * * *
    -     * Gets details of credentials for Vcenter appliance.
    +     * Gets details of a single `NodeType`.
          * 
    */ - public void showVcenterCredentials( - com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getShowVcenterCredentialsMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.vmwareengine.v1.NodeType getNodeType( + com.google.cloud.vmwareengine.v1.GetNodeTypeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNodeTypeMethod(), getCallOptions(), request); } /** * * *
    -     * Resets credentials of the NSX appliance.
    +     * Gets details of credentials for NSX appliance.
          * 
    */ - public void resetNsxCredentials( - com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getResetNsxCredentialsMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.vmwareengine.v1.Credentials showNsxCredentials( + com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getShowNsxCredentialsMethod(), getCallOptions(), request); } /** * * *
    -     * Resets credentials of the Vcenter appliance.
    +     * Gets details of credentials for Vcenter appliance.
          * 
    */ - public void resetVcenterCredentials( - com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getResetVcenterCredentialsMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.vmwareengine.v1.Credentials showVcenterCredentials( + com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getShowVcenterCredentialsMethod(), getCallOptions(), request); } /** * * *
    -     * Creates a new HCX activation key in a given private cloud.
    +     * Resets credentials of the NSX appliance.
          * 
    */ - public void createHcxActivationKey( - com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateHcxActivationKeyMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation resetNsxCredentials( + com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getResetNsxCredentialsMethod(), getCallOptions(), request); } /** * * *
    -     * Lists `HcxActivationKey` resources in a given private cloud.
    +     * Resets credentials of the Vcenter appliance.
          * 
    */ - public void listHcxActivationKeys( - com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListHcxActivationKeysMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation resetVcenterCredentials( + com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getResetVcenterCredentialsMethod(), getCallOptions(), request); } /** * * *
    -     * Retrieves a `HcxActivationKey` resource by its resource name.
    +     * Gets details of the `DnsForwarding` config.
          * 
    */ - public void getHcxActivationKey( - com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetHcxActivationKeyMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.vmwareengine.v1.DnsForwarding getDnsForwarding( + com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDnsForwardingMethod(), getCallOptions(), request); } /** * * *
    -     * Retrieves a `NetworkPolicy` resource by its resource name.
    +     * Updates the parameters of the `DnsForwarding` config, like associated
    +     * domains. Only fields specified in `update_mask` are applied.
          * 
    */ - public void getNetworkPolicy( - com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNetworkPolicyMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation updateDnsForwarding( + com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDnsForwardingMethod(), getCallOptions(), request); } /** * * *
    -     * Lists `NetworkPolicy` resources in a specified project and location.
    +     * Retrieves a `NetworkPeering` resource by its resource name. The resource
    +     * contains details of the network peering, such as peered
    +     * networks, import and export custom route configurations, and peering state.
    +     * NetworkPeering is a global resource and location can only be global.
          * 
    */ - public void listNetworkPolicies( - com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNetworkPoliciesMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.vmwareengine.v1.NetworkPeering getNetworkPeering( + com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNetworkPeeringMethod(), getCallOptions(), request); } /** * * *
    -     * Creates a new network policy in a given VMware Engine network of a
    -     * project and location (region). A new network policy cannot be created if
    -     * another network policy already exists in the same scope.
    +     * Lists `NetworkPeering` resources in a given project. NetworkPeering is a
    +     * global resource and location can only be global.
          * 
    */ - public void createNetworkPolicy( - com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateNetworkPolicyMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse listNetworkPeerings( + com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNetworkPeeringsMethod(), getCallOptions(), request); } /** * * *
    -     * Modifies a `NetworkPolicy` resource. Only the following fields can be
    -     * updated: `internet_access`, `external_ip`, `edge_services_cidr`.
    -     * Only fields specified in `updateMask` are applied. When updating a network
    -     * policy, the external IP network service can only be disabled if there are
    -     * no external IP addresses present in the scope of the policy. Also, a
    -     * `NetworkService` cannot be updated when `NetworkService.state` is set
    -     * to `RECONCILING`.
    -     * During operation processing, the resource is temporarily in the `ACTIVE`
    -     * state before the operation fully completes. For that period of time, you
    -     * can't update the resource. Use the operation status to determine when the
    -     * processing fully completes.
    +     * Creates a new network peering between the peer network and VMware Engine
    +     * network provided in a `NetworkPeering` resource. NetworkPeering is a
    +     * global resource and location can only be global.
          * 
    */ - 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); + public com.google.longrunning.Operation createNetworkPeering( + com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateNetworkPeeringMethod(), getCallOptions(), request); } /** * * *
    -     * 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.
    +     * Deletes a `NetworkPeering` resource. When a network peering is deleted for
    +     * a VMware Engine network, the peer network becomes inaccessible to that
    +     * VMware Engine network. NetworkPeering is a global resource and location can
    +     * only be global.
          * 
    */ - 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); + public com.google.longrunning.Operation deleteNetworkPeering( + com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteNetworkPeeringMethod(), getCallOptions(), request); } /** * * *
    -     * Creates a new VMware Engine network that can be used by a private cloud.
    +     * Modifies a `NetworkPeering` resource. Only the `description` field can be
    +     * updated. Only fields specified in `updateMask` are applied. NetworkPeering
    +     * is a global resource and location can only be global.
          * 
    */ - 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); + public com.google.longrunning.Operation updateNetworkPeering( + com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateNetworkPeeringMethod(), getCallOptions(), request); } /** * * *
    -     * Modifies a VMware Engine network resource. Only the following fields can be
    -     * updated: `description`. Only fields specified in `updateMask` are
    -     * applied.
    +     * Lists the network peering routes exchanged over a peering connection.
    +     * NetworkPeering is a global resource and location can only be global.
          * 
    */ - 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); + public com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse listPeeringRoutes( + com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPeeringRoutesMethod(), getCallOptions(), request); } /** * * *
    -     * 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.
    +     * Creates a new HCX activation key in a given private cloud.
          * 
    */ - 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); + public com.google.longrunning.Operation createHcxActivationKey( + com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateHcxActivationKeyMethod(), getCallOptions(), request); } /** * * *
    -     * 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`).
    +     * Lists `HcxActivationKey` resources in a given private cloud.
          * 
    */ - 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); + public com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse listHcxActivationKeys( + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListHcxActivationKeysMethod(), getCallOptions(), request); } /** * * *
    -     * Lists `VmwareEngineNetwork` resources in a given project and location.
    +     * Retrieves a `HcxActivationKey` resource by its resource name.
          * 
    */ - 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(getListVmwareEngineNetworksMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.vmwareengine.v1.HcxActivationKey getHcxActivationKey( + com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetHcxActivationKeyMethod(), getCallOptions(), request); } /** * * *
    -     * Creates a new private connection that can be used for accessing private
    -     * Clouds.
    +     * Retrieves a `NetworkPolicy` resource by its resource name.
          * 
    */ - public void createPrivateConnection( - com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreatePrivateConnectionMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.vmwareengine.v1.NetworkPolicy getNetworkPolicy( + com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNetworkPolicyMethod(), 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.
    +     * Lists `NetworkPolicy` resources in a specified project and location.
          * 
    */ - public void getPrivateConnection( - com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetPrivateConnectionMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse listNetworkPolicies( + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNetworkPoliciesMethod(), getCallOptions(), request); } /** * * *
    -     * Lists `PrivateConnection` resources in a given project and location.
    +     * Creates a new network policy in a given VMware Engine network of a
    +     * project and location (region). A new network policy cannot be created if
    +     * another network policy already exists in the same scope.
          * 
    */ - public void listPrivateConnections( - com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPrivateConnectionsMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation createNetworkPolicy( + com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateNetworkPolicyMethod(), getCallOptions(), request); } /** * * *
    -     * Modifies a `PrivateConnection` resource. Only `description` and
    -     * `routing_mode` fields can be updated. Only fields specified in `updateMask`
    -     * are applied.
    +     * Modifies a `NetworkPolicy` resource. Only the following fields can be
    +     * updated: `internet_access`, `external_ip`, `edge_services_cidr`.
    +     * Only fields specified in `updateMask` are applied. When updating a network
    +     * policy, the external IP network service can only be disabled if there are
    +     * no external IP addresses present in the scope of the policy. Also, a
    +     * `NetworkService` cannot be updated when `NetworkService.state` is set
    +     * to `RECONCILING`.
    +     * During operation processing, the resource is temporarily in the `ACTIVE`
    +     * state before the operation fully completes. For that period of time, you
    +     * can't update the resource. Use the operation status to determine when the
    +     * processing fully completes.
          * 
    */ - public void updatePrivateConnection( - com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdatePrivateConnectionMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation updateNetworkPolicy( + com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateNetworkPolicyMethod(), 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.
    +     * 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 deletePrivateConnection( - com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeletePrivateConnectionMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation deleteNetworkPolicy( + com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteNetworkPolicyMethod(), getCallOptions(), request); } /** * * *
    -     * Lists the private connection routes exchanged over a peering connection.
    +     * Lists Consumer VPCs bound to Management DNS Zone of a given private cloud.
          * 
    */ - public void listPrivateConnectionPeeringRoutes( - com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPrivateConnectionPeeringRoutesMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse + listManagementDnsZoneBindings( + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListManagementDnsZoneBindingsMethod(), getCallOptions(), request); } - } - /** - * A stub to allow clients to do synchronous rpc calls to service VmwareEngine. - * - *
    -   * VMwareEngine manages VMware's private clusters in the Cloud.
    -   * 
    - */ - public static final class VmwareEngineBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private VmwareEngineBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); + /** + * + * + *
    +     * Retrieves a 'ManagementDnsZoneBinding' resource by its resource name.
    +     * 
    + */ + public com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding getManagementDnsZoneBinding( + com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetManagementDnsZoneBindingMethod(), getCallOptions(), request); } - @java.lang.Override - protected VmwareEngineBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new VmwareEngineBlockingStub(channel, callOptions); + /** + * + * + *
    +     * Creates a new `ManagementDnsZoneBinding` resource in a private cloud.
    +     * This RPC creates the DNS binding and the resource that represents the
    +     * DNS binding of the consumer VPC network to the management DNS zone. A
    +     * management DNS zone is the Cloud DNS cross-project binding zone that
    +     * VMware Engine creates for each private cloud. It contains FQDNs and
    +     * corresponding IP addresses for the private cloud's ESXi hosts and
    +     * management VM appliances like vCenter and NSX Manager.
    +     * 
    + */ + public com.google.longrunning.Operation createManagementDnsZoneBinding( + com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateManagementDnsZoneBindingMethod(), getCallOptions(), request); } /** * * *
    -     * Lists `PrivateCloud` resources in a given project and location.
    +     * Updates a `ManagementDnsZoneBinding` resource.
    +     * Only fields specified in `update_mask` are applied.
          * 
    */ - public com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse listPrivateClouds( - com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest request) { + public com.google.longrunning.Operation updateManagementDnsZoneBinding( + com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListPrivateCloudsMethod(), getCallOptions(), request); + getChannel(), getUpdateManagementDnsZoneBindingMethod(), getCallOptions(), request); } /** * * *
    -     * Retrieves a `PrivateCloud` resource by its resource name.
    +     * Deletes a `ManagementDnsZoneBinding` resource. When a management DNS zone
    +     * binding is deleted, the corresponding consumer VPC network is no longer
    +     * bound to the management DNS zone.
          * 
    */ - public com.google.cloud.vmwareengine.v1.PrivateCloud getPrivateCloud( - com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest request) { + public com.google.longrunning.Operation deleteManagementDnsZoneBinding( + com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetPrivateCloudMethod(), getCallOptions(), request); + getChannel(), getDeleteManagementDnsZoneBindingMethod(), getCallOptions(), request); } /** * * *
    -     * Creates a new `PrivateCloud` resource in a given project and location.
    -     * Private clouds can only be created in zones, regional private clouds are
    -     * not supported.
    -     * Creating a private cloud also creates a [management
    -     * cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components)
    -     * for that private cloud.
    +     * Retries to create a `ManagementDnsZoneBinding` resource that is
    +     * in failed state.
          * 
    */ - public com.google.longrunning.Operation createPrivateCloud( - com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest request) { + public com.google.longrunning.Operation repairManagementDnsZoneBinding( + com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreatePrivateCloudMethod(), getCallOptions(), request); + getChannel(), getRepairManagementDnsZoneBindingMethod(), getCallOptions(), request); } /** * * *
    -     * Modifies a `PrivateCloud` resource. Only the following fields can be
    -     * updated: `description`.
    -     * Only fields specified in `updateMask` are applied.
    -     * During operation processing, the resource is temporarily in the `ACTIVE`
    -     * state before the operation fully completes. For that period of time, you
    -     * can't update the resource. Use the operation status to determine when the
    -     * processing fully completes.
    +     * Creates a new VMware Engine network that can be used by a private cloud.
          * 
    */ - public com.google.longrunning.Operation updatePrivateCloud( - com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest request) { + public com.google.longrunning.Operation createVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdatePrivateCloudMethod(), getCallOptions(), request); + getChannel(), getCreateVmwareEngineNetworkMethod(), getCallOptions(), request); } /** * * *
    -     * Schedules a `PrivateCloud` resource for deletion.
    -     * A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state`
    -     * set to `DELETED` and `expireTime` set to the time when deletion is final
    -     * and can no longer be reversed. The delete operation is marked as done
    -     * as soon as the `PrivateCloud` is successfully scheduled for deletion
    -     * (this also applies when `delayHours` is set to zero), and the operation is
    -     * not kept in pending state until `PrivateCloud` is purged.
    -     * `PrivateCloud` can be restored using `UndeletePrivateCloud` method before
    -     * the `expireTime` elapses. When `expireTime` is reached, deletion is final
    -     * and all private cloud resources are irreversibly removed and billing stops.
    -     * During the final removal process, `PrivateCloud.state` is set to `PURGING`.
    -     * `PrivateCloud` can be polled using standard `GET` method for the whole
    -     * period of deletion and purging. It will not be returned only
    -     * when it is completely purged.
    +     * Modifies a VMware Engine network resource. Only the following fields can be
    +     * updated: `description`. Only fields specified in `updateMask` are
    +     * applied.
          * 
    */ - public com.google.longrunning.Operation deletePrivateCloud( - com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest request) { + public com.google.longrunning.Operation updateVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeletePrivateCloudMethod(), getCallOptions(), request); + getChannel(), getUpdateVmwareEngineNetworkMethod(), getCallOptions(), request); } /** * * *
    -     * Restores a private cloud that was previously scheduled for deletion by
    -     * `DeletePrivateCloud`. A `PrivateCloud` resource scheduled for deletion has
    -     * `PrivateCloud.state` set to `DELETED` and `PrivateCloud.expireTime` set to
    -     * the time when deletion can no longer be reversed.
    +     * 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 com.google.longrunning.Operation undeletePrivateCloud( - com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest request) { + public com.google.longrunning.Operation deleteVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUndeletePrivateCloudMethod(), getCallOptions(), request); + getChannel(), getDeleteVmwareEngineNetworkMethod(), getCallOptions(), request); } /** * * *
    -     * Lists `Cluster` resources in a given private cloud.
    +     * 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 com.google.cloud.vmwareengine.v1.ListClustersResponse listClusters( - com.google.cloud.vmwareengine.v1.ListClustersRequest request) { + public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork getVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListClustersMethod(), getCallOptions(), request); + getChannel(), getGetVmwareEngineNetworkMethod(), getCallOptions(), request); } /** * * *
    -     * Retrieves a `Cluster` resource by its resource name.
    +     * Lists `VmwareEngineNetwork` resources in a given project and location.
          * 
    */ - public com.google.cloud.vmwareengine.v1.Cluster getCluster( - com.google.cloud.vmwareengine.v1.GetClusterRequest request) { + public com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + listVmwareEngineNetworks( + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetClusterMethod(), getCallOptions(), request); + getChannel(), getListVmwareEngineNetworksMethod(), getCallOptions(), request); } /** * * *
    -     * Creates a new cluster in a given private cloud.
    -     * Creating a new cluster provides additional nodes for
    -     * use in the parent private cloud and requires sufficient [node
    -     * quota](https://cloud.google.com/vmware-engine/quotas).
    +     * Creates a new private connection that can be used for accessing private
    +     * Clouds.
          * 
    */ - public com.google.longrunning.Operation createCluster( - com.google.cloud.vmwareengine.v1.CreateClusterRequest request) { + public com.google.longrunning.Operation createPrivateConnection( + com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateClusterMethod(), getCallOptions(), request); + getChannel(), getCreatePrivateConnectionMethod(), getCallOptions(), request); } /** * * *
    -     * Modifies a `Cluster` resource. Only the following fields can be updated:
    -     * `node_type_configs.*.node_count`. Only fields specified in `updateMask` are
    -     * applied.
    -     * During operation processing, the resource is temporarily in the `ACTIVE`
    -     * state before the operation fully completes. For that period of time, you
    -     * can't update the resource. Use the operation status to determine when the
    -     * processing fully completes.
    +     * 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.longrunning.Operation updateCluster( - com.google.cloud.vmwareengine.v1.UpdateClusterRequest request) { + public com.google.cloud.vmwareengine.v1.PrivateConnection getPrivateConnection( + com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateClusterMethod(), getCallOptions(), request); + getChannel(), getGetPrivateConnectionMethod(), getCallOptions(), request); } /** * * *
    -     * Deletes a `Cluster` resource. To avoid unintended data loss, migrate or
    -     * gracefully shut down any workloads running on the cluster before deletion.
    -     * You cannot delete the management cluster of a private cloud using this
    -     * method.
    +     * Lists `PrivateConnection` resources in a given project and location.
          * 
    */ - public com.google.longrunning.Operation deleteCluster( - com.google.cloud.vmwareengine.v1.DeleteClusterRequest request) { + public com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse listPrivateConnections( + com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteClusterMethod(), getCallOptions(), request); + getChannel(), getListPrivateConnectionsMethod(), getCallOptions(), request); } /** * * *
    -     * Lists subnets in a given private cloud.
    +     * Modifies a `PrivateConnection` resource. Only `description` and
    +     * `routing_mode` fields can be updated. Only fields specified in `updateMask`
    +     * are applied.
          * 
    */ - public com.google.cloud.vmwareengine.v1.ListSubnetsResponse listSubnets( - com.google.cloud.vmwareengine.v1.ListSubnetsRequest request) { + public com.google.longrunning.Operation updatePrivateConnection( + com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSubnetsMethod(), getCallOptions(), request); + getChannel(), getUpdatePrivateConnectionMethod(), getCallOptions(), request); } /** * * *
    -     * Gets details of a single subnet.
    +     * 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.cloud.vmwareengine.v1.Subnet getSubnet( - com.google.cloud.vmwareengine.v1.GetSubnetRequest request) { + public com.google.longrunning.Operation deletePrivateConnection( + com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSubnetMethod(), getCallOptions(), request); + getChannel(), getDeletePrivateConnectionMethod(), 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.
    +     * Lists the private connection routes exchanged over a peering connection.
          * 
    */ - public com.google.longrunning.Operation updateSubnet( - com.google.cloud.vmwareengine.v1.UpdateSubnetRequest request) { + public com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse + listPrivateConnectionPeeringRoutes( + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSubnetMethod(), getCallOptions(), request); + getChannel(), getListPrivateConnectionPeeringRoutesMethod(), getCallOptions(), request); } /** * * *
    -     * Lists node types
    +     * Grants the bind permission to the customer provided principal(user /
    +     * service account) to bind their DNS zone with the intranet VPC associated
    +     * with the project. DnsBindPermission is a global resource and location can
    +     * only be global.
          * 
    */ - public com.google.cloud.vmwareengine.v1.ListNodeTypesResponse listNodeTypes( - com.google.cloud.vmwareengine.v1.ListNodeTypesRequest request) { + public com.google.longrunning.Operation grantDnsBindPermission( + com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNodeTypesMethod(), getCallOptions(), request); + getChannel(), getGrantDnsBindPermissionMethod(), getCallOptions(), request); } /** * * *
    -     * Gets details of a single `NodeType`.
    +     * Gets all the principals having bind permission on the intranet VPC
    +     * associated with the consumer project granted by the Grant API.
    +     * DnsBindPermission is a global resource and location can only be global.
          * 
    */ - public com.google.cloud.vmwareengine.v1.NodeType getNodeType( - com.google.cloud.vmwareengine.v1.GetNodeTypeRequest request) { + public com.google.cloud.vmwareengine.v1.DnsBindPermission getDnsBindPermission( + com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNodeTypeMethod(), getCallOptions(), request); + getChannel(), getGetDnsBindPermissionMethod(), getCallOptions(), request); } /** * * *
    -     * Gets details of credentials for NSX appliance.
    +     * Revokes the bind permission from the customer provided principal(user /
    +     * service account) on the intranet VPC associated with the consumer project.
    +     * DnsBindPermission is a global resource and location can only be global.
          * 
    */ - public com.google.cloud.vmwareengine.v1.Credentials showNsxCredentials( - com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest request) { + public com.google.longrunning.Operation revokeDnsBindPermission( + com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getShowNsxCredentialsMethod(), getCallOptions(), request); + getChannel(), getRevokeDnsBindPermissionMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service VmwareEngine. + * + *
    +   * VMwareEngine manages VMware's private clusters in the Cloud.
    +   * 
    + */ + public static final class VmwareEngineFutureStub + extends io.grpc.stub.AbstractFutureStub { + private VmwareEngineFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VmwareEngineFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VmwareEngineFutureStub(channel, callOptions); } /** * * *
    -     * Gets details of credentials for Vcenter appliance.
    +     * Lists `PrivateCloud` resources in a given project and location.
          * 
    */ - public com.google.cloud.vmwareengine.v1.Credentials showVcenterCredentials( - com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getShowVcenterCredentialsMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse> + listPrivateClouds(com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPrivateCloudsMethod(), getCallOptions()), request); } /** * * *
    -     * Resets credentials of the NSX appliance.
    +     * Retrieves a `PrivateCloud` resource by its resource name.
          * 
    */ - public com.google.longrunning.Operation resetNsxCredentials( - com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getResetNsxCredentialsMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.PrivateCloud> + getPrivateCloud(com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPrivateCloudMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Creates a new `PrivateCloud` resource in a given project and location.
    +     * Private clouds of type `STANDARD` and
    +     * `TIME_LIMITED` are zonal resources, `STRETCHED` private clouds are
    +     * regional.
    +     * Creating a private cloud also creates a [management
    +     * cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components)
    +     * for that private cloud.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + createPrivateCloud(com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreatePrivateCloudMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Modifies a `PrivateCloud` resource. Only the following fields can be
    +     * updated: `description`.
    +     * Only fields specified in `updateMask` are applied.
    +     * During operation processing, the resource is temporarily in the `ACTIVE`
    +     * state before the operation fully completes. For that period of time, you
    +     * can't update the resource. Use the operation status to determine when the
    +     * processing fully completes.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + updatePrivateCloud(com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdatePrivateCloudMethod(), getCallOptions()), request); } /** * * *
    -     * Resets credentials of the Vcenter appliance.
    +     * Schedules a `PrivateCloud` resource for deletion.
    +     * A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state`
    +     * set to `DELETED` and `expireTime` set to the time when deletion is final
    +     * and can no longer be reversed. The delete operation is marked as done
    +     * as soon as the `PrivateCloud` is successfully scheduled for deletion
    +     * (this also applies when `delayHours` is set to zero), and the operation is
    +     * not kept in pending state until `PrivateCloud` is purged.
    +     * `PrivateCloud` can be restored using `UndeletePrivateCloud` method before
    +     * the `expireTime` elapses. When `expireTime` is reached, deletion is final
    +     * and all private cloud resources are irreversibly removed and billing stops.
    +     * During the final removal process, `PrivateCloud.state` is set to `PURGING`.
    +     * `PrivateCloud` can be polled using standard `GET` method for the whole
    +     * period of deletion and purging. It will not be returned only
    +     * when it is completely purged.
          * 
    */ - public com.google.longrunning.Operation resetVcenterCredentials( - com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getResetVcenterCredentialsMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deletePrivateCloud(com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeletePrivateCloudMethod(), getCallOptions()), request); } /** * * *
    -     * Creates a new HCX activation key in a given private cloud.
    +     * Restores a private cloud that was previously scheduled for deletion by
    +     * `DeletePrivateCloud`. A `PrivateCloud` resource scheduled for deletion has
    +     * `PrivateCloud.state` set to `DELETED` and `PrivateCloud.expireTime` set to
    +     * the time when deletion can no longer be reversed.
          * 
    */ - public com.google.longrunning.Operation createHcxActivationKey( - com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateHcxActivationKeyMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + undeletePrivateCloud(com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUndeletePrivateCloudMethod(), getCallOptions()), request); } /** * * *
    -     * Lists `HcxActivationKey` resources in a given private cloud.
    +     * Lists `Cluster` resources in a given private cloud.
          * 
    */ - public com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse listHcxActivationKeys( - com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListHcxActivationKeysMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.ListClustersResponse> + listClusters(com.google.cloud.vmwareengine.v1.ListClustersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListClustersMethod(), getCallOptions()), request); } /** * * *
    -     * Retrieves a `HcxActivationKey` resource by its resource name.
    +     * Retrieves a `Cluster` resource by its resource name.
          * 
    */ - public com.google.cloud.vmwareengine.v1.HcxActivationKey getHcxActivationKey( - com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetHcxActivationKeyMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.Cluster> + getCluster(com.google.cloud.vmwareengine.v1.GetClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetClusterMethod(), getCallOptions()), request); } /** * * *
    -     * Retrieves a `NetworkPolicy` resource by its resource name.
    +     * Creates a new cluster in a given private cloud.
    +     * Creating a new cluster provides additional nodes for
    +     * use in the parent private cloud and requires sufficient [node
    +     * quota](https://cloud.google.com/vmware-engine/quotas).
          * 
    */ - public com.google.cloud.vmwareengine.v1.NetworkPolicy getNetworkPolicy( - com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNetworkPolicyMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + createCluster(com.google.cloud.vmwareengine.v1.CreateClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateClusterMethod(), getCallOptions()), request); } /** * * *
    -     * Lists `NetworkPolicy` resources in a specified project and location.
    +     * Modifies a `Cluster` resource. Only fields specified in `updateMask` are
    +     * applied.
    +     * During operation processing, the resource is temporarily in the `ACTIVE`
    +     * state before the operation fully completes. For that period of time, you
    +     * can't update the resource. Use the operation status to determine when the
    +     * processing fully completes.
          * 
    */ - public com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse listNetworkPolicies( - com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNetworkPoliciesMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + updateCluster(com.google.cloud.vmwareengine.v1.UpdateClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), request); } /** * * *
    -     * Creates a new network policy in a given VMware Engine network of a
    -     * project and location (region). A new network policy cannot be created if
    -     * another network policy already exists in the same scope.
    +     * Deletes a `Cluster` resource. To avoid unintended data loss, migrate or
    +     * gracefully shut down any workloads running on the cluster before deletion.
    +     * You cannot delete the management cluster of a private cloud using this
    +     * method.
          * 
    */ - public com.google.longrunning.Operation createNetworkPolicy( - com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateNetworkPolicyMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteCluster(com.google.cloud.vmwareengine.v1.DeleteClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), request); } /** * * *
    -     * Modifies a `NetworkPolicy` resource. Only the following fields can be
    -     * updated: `internet_access`, `external_ip`, `edge_services_cidr`.
    -     * Only fields specified in `updateMask` are applied. When updating a network
    -     * policy, the external IP network service can only be disabled if there are
    -     * no external IP addresses present in the scope of the policy. Also, a
    -     * `NetworkService` cannot be updated when `NetworkService.state` is set
    -     * to `RECONCILING`.
    -     * During operation processing, the resource is temporarily in the `ACTIVE`
    -     * state before the operation fully completes. For that period of time, you
    -     * can't update the resource. Use the operation status to determine when the
    -     * processing fully completes.
    +     * Lists nodes in a given cluster.
          * 
    */ - public com.google.longrunning.Operation updateNetworkPolicy( - com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateNetworkPolicyMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.ListNodesResponse> + listNodes(com.google.cloud.vmwareengine.v1.ListNodesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNodesMethod(), getCallOptions()), request); } /** * * *
    -     * 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.
    +     * Gets details of a single node.
          * 
    */ - public com.google.longrunning.Operation deleteNetworkPolicy( - com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteNetworkPolicyMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + getNode(com.google.cloud.vmwareengine.v1.GetNodeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetNodeMethod(), getCallOptions()), request); } /** * * *
    -     * Creates a new VMware Engine network that can be used by a private cloud.
    +     * Lists external IP addresses assigned to VMware workload VMs in a given
    +     * private cloud.
          * 
    */ - public com.google.longrunning.Operation createVmwareEngineNetwork( - com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateVmwareEngineNetworkMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse> + listExternalAddresses( + com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListExternalAddressesMethod(), getCallOptions()), request); } /** * * *
    -     * Modifies a VMware Engine network resource. Only the following fields can be
    -     * updated: `description`. Only fields specified in `updateMask` are
    -     * applied.
    +     * Lists external IP addresses assigned to VMware workload VMs within the
    +     * scope of the given network policy.
          * 
    */ - public com.google.longrunning.Operation updateVmwareEngineNetwork( - com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateVmwareEngineNetworkMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse> + fetchNetworkPolicyExternalAddresses( + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFetchNetworkPolicyExternalAddressesMethod(), getCallOptions()), + request); } /** * * *
    -     * 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.
    +     * Gets details of a single external IP address.
          * 
    */ - public com.google.longrunning.Operation deleteVmwareEngineNetwork( - com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteVmwareEngineNetworkMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.ExternalAddress> + getExternalAddress(com.google.cloud.vmwareengine.v1.GetExternalAddressRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetExternalAddressMethod(), getCallOptions()), request); } /** * * *
    -     * 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`).
    +     * Creates a new `ExternalAddress` resource in a given private cloud. The
    +     * network policy that corresponds to the private cloud must have the external
    +     * IP address network service enabled (`NetworkPolicy.external_ip`).
          * 
    */ - public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork getVmwareEngineNetwork( - com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetVmwareEngineNetworkMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + createExternalAddress( + com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateExternalAddressMethod(), getCallOptions()), request); } /** * * *
    -     * Lists `VmwareEngineNetwork` resources in a given project and location.
    +     * Updates the parameters of a single external IP address.
    +     * Only fields specified in `update_mask` are applied.
    +     * During operation processing, the resource is temporarily in the `ACTIVE`
    +     * state before the operation fully completes. For that period of time, you
    +     * can't update the resource. Use the operation status to determine when the
    +     * processing fully completes.
          * 
    */ - public com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse - listVmwareEngineNetworks( - com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListVmwareEngineNetworksMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + updateExternalAddress( + com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateExternalAddressMethod(), getCallOptions()), request); } /** * * *
    -     * Creates a new private connection that can be used for accessing private
    -     * Clouds.
    +     * Deletes a single external IP address. When you delete an external IP
    +     * address, connectivity between the external IP address and the corresponding
    +     * internal IP address is lost.
          * 
    */ - public com.google.longrunning.Operation createPrivateConnection( - com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreatePrivateConnectionMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteExternalAddress( + com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteExternalAddressMethod(), 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.
    +     * Lists subnets in a given private cloud.
          * 
    */ - 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); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.ListSubnetsResponse> + listSubnets(com.google.cloud.vmwareengine.v1.ListSubnetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSubnetsMethod(), getCallOptions()), request); } /** * * *
    -     * Lists `PrivateConnection` resources in a given project and location.
    +     * Gets details of a single subnet.
          * 
    */ - 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); + 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); } /** * * *
    -     * Modifies a `PrivateConnection` resource. Only `description` and
    -     * `routing_mode` fields can be updated. Only fields specified in `updateMask`
    -     * are applied.
    +     * 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 updatePrivateConnection( - com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdatePrivateConnectionMethod(), getCallOptions(), request); + 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); } /** * * *
    -     * 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.
    +     * Lists `ExternalAccessRule` resources in the specified network policy.
          * 
    */ - public com.google.longrunning.Operation deletePrivateConnection( - com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeletePrivateConnectionMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse> + listExternalAccessRules( + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListExternalAccessRulesMethod(), getCallOptions()), request); } /** * * *
    -     * Lists the private connection routes exchanged over a peering connection.
    +     * Gets details of a single external access rule.
          * 
    */ - 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); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.ExternalAccessRule> + getExternalAccessRule( + com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetExternalAccessRuleMethod(), getCallOptions()), request); } - } - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service VmwareEngine. - * - *
    -   * VMwareEngine manages VMware's private clusters in the Cloud.
    -   * 
    - */ - public static final class VmwareEngineFutureStub - extends io.grpc.stub.AbstractFutureStub { - private VmwareEngineFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); + /** + * + * + *
    +     * Creates a new external access rule in a given network policy.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + createExternalAccessRule( + com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateExternalAccessRuleMethod(), getCallOptions()), request); } - @java.lang.Override - protected VmwareEngineFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new VmwareEngineFutureStub(channel, callOptions); + /** + * + * + *
    +     * Updates the parameters of a single external access rule.
    +     * Only fields specified in `update_mask` are applied.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + updateExternalAccessRule( + com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateExternalAccessRuleMethod(), getCallOptions()), request); } /** * * *
    -     * Lists `PrivateCloud` resources in a given project and location.
    +     * Deletes a single external access rule.
          * 
    */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse> - listPrivateClouds(com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteExternalAccessRule( + com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListPrivateCloudsMethod(), getCallOptions()), request); + getChannel().newCall(getDeleteExternalAccessRuleMethod(), getCallOptions()), request); } /** * * *
    -     * Retrieves a `PrivateCloud` resource by its resource name.
    +     * Lists logging servers configured for a given private
    +     * cloud.
          * 
    */ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vmwareengine.v1.PrivateCloud> - getPrivateCloud(com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest request) { + com.google.cloud.vmwareengine.v1.ListLoggingServersResponse> + listLoggingServers(com.google.cloud.vmwareengine.v1.ListLoggingServersRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetPrivateCloudMethod(), getCallOptions()), request); + getChannel().newCall(getListLoggingServersMethod(), getCallOptions()), request); } /** * * *
    -     * Creates a new `PrivateCloud` resource in a given project and location.
    -     * Private clouds can only be created in zones, regional private clouds are
    -     * not supported.
    -     * Creating a private cloud also creates a [management
    -     * cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components)
    -     * for that private cloud.
    +     * Gets details of a logging server.
          * 
    */ - public com.google.common.util.concurrent.ListenableFuture - createPrivateCloud(com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.LoggingServer> + getLoggingServer(com.google.cloud.vmwareengine.v1.GetLoggingServerRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreatePrivateCloudMethod(), getCallOptions()), request); + getChannel().newCall(getGetLoggingServerMethod(), getCallOptions()), request); } /** * * *
    -     * Modifies a `PrivateCloud` resource. Only the following fields can be
    -     * updated: `description`.
    -     * Only fields specified in `updateMask` are applied.
    -     * During operation processing, the resource is temporarily in the `ACTIVE`
    -     * state before the operation fully completes. For that period of time, you
    -     * can't update the resource. Use the operation status to determine when the
    -     * processing fully completes.
    +     * Create a new logging server for a given private cloud.
          * 
    */ public com.google.common.util.concurrent.ListenableFuture - updatePrivateCloud(com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest request) { + createLoggingServer(com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdatePrivateCloudMethod(), getCallOptions()), request); + getChannel().newCall(getCreateLoggingServerMethod(), getCallOptions()), request); } /** * * *
    -     * Schedules a `PrivateCloud` resource for deletion.
    -     * A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state`
    -     * set to `DELETED` and `expireTime` set to the time when deletion is final
    -     * and can no longer be reversed. The delete operation is marked as done
    -     * as soon as the `PrivateCloud` is successfully scheduled for deletion
    -     * (this also applies when `delayHours` is set to zero), and the operation is
    -     * not kept in pending state until `PrivateCloud` is purged.
    -     * `PrivateCloud` can be restored using `UndeletePrivateCloud` method before
    -     * the `expireTime` elapses. When `expireTime` is reached, deletion is final
    -     * and all private cloud resources are irreversibly removed and billing stops.
    -     * During the final removal process, `PrivateCloud.state` is set to `PURGING`.
    -     * `PrivateCloud` can be polled using standard `GET` method for the whole
    -     * period of deletion and purging. It will not be returned only
    -     * when it is completely purged.
    +     * Updates the parameters of a single logging server.
    +     * Only fields specified in `update_mask` are applied.
          * 
    */ public com.google.common.util.concurrent.ListenableFuture - deletePrivateCloud(com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest request) { + updateLoggingServer(com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeletePrivateCloudMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateLoggingServerMethod(), getCallOptions()), request); } /** * * *
    -     * Restores a private cloud that was previously scheduled for deletion by
    -     * `DeletePrivateCloud`. A `PrivateCloud` resource scheduled for deletion has
    -     * `PrivateCloud.state` set to `DELETED` and `PrivateCloud.expireTime` set to
    -     * the time when deletion can no longer be reversed.
    +     * Deletes a single logging server.
          * 
    */ public com.google.common.util.concurrent.ListenableFuture - undeletePrivateCloud(com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest request) { + deleteLoggingServer(com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUndeletePrivateCloudMethod(), getCallOptions()), request); + getChannel().newCall(getDeleteLoggingServerMethod(), getCallOptions()), request); } /** * * *
    -     * Lists `Cluster` resources in a given private cloud.
    +     * Lists node types
          * 
    */ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vmwareengine.v1.ListClustersResponse> - listClusters(com.google.cloud.vmwareengine.v1.ListClustersRequest request) { + com.google.cloud.vmwareengine.v1.ListNodeTypesResponse> + listNodeTypes(com.google.cloud.vmwareengine.v1.ListNodeTypesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListClustersMethod(), getCallOptions()), request); + getChannel().newCall(getListNodeTypesMethod(), getCallOptions()), request); } /** * * *
    -     * Retrieves a `Cluster` resource by its resource name.
    +     * Gets details of a single `NodeType`.
          * 
    */ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vmwareengine.v1.Cluster> - getCluster(com.google.cloud.vmwareengine.v1.GetClusterRequest request) { + com.google.cloud.vmwareengine.v1.NodeType> + getNodeType(com.google.cloud.vmwareengine.v1.GetNodeTypeRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetClusterMethod(), getCallOptions()), request); + getChannel().newCall(getGetNodeTypeMethod(), getCallOptions()), request); } /** * * *
    -     * Creates a new cluster in a given private cloud.
    -     * Creating a new cluster provides additional nodes for
    -     * use in the parent private cloud and requires sufficient [node
    -     * quota](https://cloud.google.com/vmware-engine/quotas).
    +     * Gets details of credentials for NSX appliance.
          * 
    */ - public com.google.common.util.concurrent.ListenableFuture - createCluster(com.google.cloud.vmwareengine.v1.CreateClusterRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.Credentials> + showNsxCredentials(com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateClusterMethod(), getCallOptions()), request); + getChannel().newCall(getShowNsxCredentialsMethod(), getCallOptions()), request); } /** * * *
    -     * Modifies a `Cluster` resource. Only the following fields can be updated:
    -     * `node_type_configs.*.node_count`. Only fields specified in `updateMask` are
    -     * applied.
    -     * During operation processing, the resource is temporarily in the `ACTIVE`
    -     * state before the operation fully completes. For that period of time, you
    -     * can't update the resource. Use the operation status to determine when the
    -     * processing fully completes.
    +     * Gets details of credentials for Vcenter appliance.
          * 
    */ - public com.google.common.util.concurrent.ListenableFuture - updateCluster(com.google.cloud.vmwareengine.v1.UpdateClusterRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.Credentials> + showVcenterCredentials( + com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), request); + getChannel().newCall(getShowVcenterCredentialsMethod(), getCallOptions()), request); } /** * * *
    -     * Deletes a `Cluster` resource. To avoid unintended data loss, migrate or
    -     * gracefully shut down any workloads running on the cluster before deletion.
    -     * You cannot delete the management cluster of a private cloud using this
    -     * method.
    +     * Resets credentials of the NSX appliance.
          * 
    */ public com.google.common.util.concurrent.ListenableFuture - deleteCluster(com.google.cloud.vmwareengine.v1.DeleteClusterRequest request) { + resetNsxCredentials(com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), request); + getChannel().newCall(getResetNsxCredentialsMethod(), getCallOptions()), request); } /** * * *
    -     * Lists subnets in a given private cloud.
    +     * Resets credentials of the Vcenter appliance.
          * 
    */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vmwareengine.v1.ListSubnetsResponse> - listSubnets(com.google.cloud.vmwareengine.v1.ListSubnetsRequest request) { + public com.google.common.util.concurrent.ListenableFuture + resetVcenterCredentials( + com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSubnetsMethod(), getCallOptions()), request); + getChannel().newCall(getResetVcenterCredentialsMethod(), getCallOptions()), request); } /** * * *
    -     * Gets details of a single subnet.
    +     * Gets details of the `DnsForwarding` config.
          * 
    */ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vmwareengine.v1.Subnet> - getSubnet(com.google.cloud.vmwareengine.v1.GetSubnetRequest request) { + com.google.cloud.vmwareengine.v1.DnsForwarding> + getDnsForwarding(com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSubnetMethod(), getCallOptions()), request); + getChannel().newCall(getGetDnsForwardingMethod(), 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.
    +     * Updates the parameters of the `DnsForwarding` config, like associated
    +     * domains. Only fields specified in `update_mask` are applied.
          * 
    */ public com.google.common.util.concurrent.ListenableFuture - updateSubnet(com.google.cloud.vmwareengine.v1.UpdateSubnetRequest request) { + updateDnsForwarding(com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSubnetMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateDnsForwardingMethod(), getCallOptions()), request); } /** * * *
    -     * Lists node types
    +     * Retrieves a `NetworkPeering` resource by its resource name. The resource
    +     * contains details of the network peering, such as peered
    +     * networks, import and export custom route configurations, and peering state.
    +     * NetworkPeering is a global resource and location can only be global.
          * 
    */ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vmwareengine.v1.ListNodeTypesResponse> - listNodeTypes(com.google.cloud.vmwareengine.v1.ListNodeTypesRequest request) { + com.google.cloud.vmwareengine.v1.NetworkPeering> + getNetworkPeering(com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListNodeTypesMethod(), getCallOptions()), request); + getChannel().newCall(getGetNetworkPeeringMethod(), getCallOptions()), request); } /** * * *
    -     * Gets details of a single `NodeType`.
    +     * Lists `NetworkPeering` resources in a given project. NetworkPeering is a
    +     * global resource and location can only be global.
          * 
    */ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vmwareengine.v1.NodeType> - getNodeType(com.google.cloud.vmwareengine.v1.GetNodeTypeRequest request) { + com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse> + listNetworkPeerings(com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNodeTypeMethod(), getCallOptions()), request); + getChannel().newCall(getListNetworkPeeringsMethod(), getCallOptions()), request); } /** * * *
    -     * Gets details of credentials for NSX appliance.
    +     * Creates a new network peering between the peer network and VMware Engine
    +     * network provided in a `NetworkPeering` resource. NetworkPeering is a
    +     * global resource and location can only be global.
          * 
    */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vmwareengine.v1.Credentials> - showNsxCredentials(com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest request) { + public com.google.common.util.concurrent.ListenableFuture + createNetworkPeering(com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getShowNsxCredentialsMethod(), getCallOptions()), request); + getChannel().newCall(getCreateNetworkPeeringMethod(), getCallOptions()), request); } /** * * *
    -     * Gets details of credentials for Vcenter appliance.
    +     * Deletes a `NetworkPeering` resource. When a network peering is deleted for
    +     * a VMware Engine network, the peer network becomes inaccessible to that
    +     * VMware Engine network. NetworkPeering is a global resource and location can
    +     * only be global.
          * 
    */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vmwareengine.v1.Credentials> - showVcenterCredentials( - com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteNetworkPeering(com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getShowVcenterCredentialsMethod(), getCallOptions()), request); + getChannel().newCall(getDeleteNetworkPeeringMethod(), getCallOptions()), request); } /** * * *
    -     * Resets credentials of the NSX appliance.
    +     * Modifies a `NetworkPeering` resource. Only the `description` field can be
    +     * updated. Only fields specified in `updateMask` are applied. NetworkPeering
    +     * is a global resource and location can only be global.
          * 
    */ public com.google.common.util.concurrent.ListenableFuture - resetNsxCredentials(com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest request) { + updateNetworkPeering(com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getResetNsxCredentialsMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateNetworkPeeringMethod(), getCallOptions()), request); } /** * * *
    -     * Resets credentials of the Vcenter appliance.
    +     * Lists the network peering routes exchanged over a peering connection.
    +     * NetworkPeering is a global resource and location can only be global.
          * 
    */ - public com.google.common.util.concurrent.ListenableFuture - resetVcenterCredentials( - com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse> + listPeeringRoutes(com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getResetVcenterCredentialsMethod(), getCallOptions()), request); + getChannel().newCall(getListPeeringRoutesMethod(), getCallOptions()), request); } /** @@ -4310,74 +8079,175 @@ protected VmwareEngineFutureStub build( com.google.cloud.vmwareengine.v1.NetworkPolicy> getNetworkPolicy(com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNetworkPolicyMethod(), getCallOptions()), request); + getChannel().newCall(getGetNetworkPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Lists `NetworkPolicy` resources in a specified project and location.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse> + listNetworkPolicies(com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNetworkPoliciesMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Creates a new network policy in a given VMware Engine network of a
    +     * project and location (region). A new network policy cannot be created if
    +     * another network policy already exists in the same scope.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + createNetworkPolicy(com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateNetworkPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Modifies a `NetworkPolicy` resource. Only the following fields can be
    +     * updated: `internet_access`, `external_ip`, `edge_services_cidr`.
    +     * Only fields specified in `updateMask` are applied. When updating a network
    +     * policy, the external IP network service can only be disabled if there are
    +     * no external IP addresses present in the scope of the policy. Also, a
    +     * `NetworkService` cannot be updated when `NetworkService.state` is set
    +     * to `RECONCILING`.
    +     * During operation processing, the resource is temporarily in the `ACTIVE`
    +     * state before the operation fully completes. For that period of time, you
    +     * can't update the resource. Use the operation status to determine when the
    +     * processing fully completes.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + updateNetworkPolicy(com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateNetworkPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * 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 com.google.common.util.concurrent.ListenableFuture + deleteNetworkPolicy(com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteNetworkPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Lists Consumer VPCs bound to Management DNS Zone of a given private cloud.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse> + listManagementDnsZoneBindings( + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListManagementDnsZoneBindingsMethod(), getCallOptions()), + request); + } + + /** + * + * + *
    +     * Retrieves a 'ManagementDnsZoneBinding' resource by its resource name.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding> + getManagementDnsZoneBinding( + com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetManagementDnsZoneBindingMethod(), getCallOptions()), request); } /** * * *
    -     * Lists `NetworkPolicy` resources in a specified project and location.
    +     * Creates a new `ManagementDnsZoneBinding` resource in a private cloud.
    +     * This RPC creates the DNS binding and the resource that represents the
    +     * DNS binding of the consumer VPC network to the management DNS zone. A
    +     * management DNS zone is the Cloud DNS cross-project binding zone that
    +     * VMware Engine creates for each private cloud. It contains FQDNs and
    +     * corresponding IP addresses for the private cloud's ESXi hosts and
    +     * management VM appliances like vCenter and NSX Manager.
          * 
    */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse> - listNetworkPolicies(com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest request) { + public com.google.common.util.concurrent.ListenableFuture + createManagementDnsZoneBinding( + com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListNetworkPoliciesMethod(), getCallOptions()), request); + getChannel().newCall(getCreateManagementDnsZoneBindingMethod(), getCallOptions()), + request); } /** * * *
    -     * Creates a new network policy in a given VMware Engine network of a
    -     * project and location (region). A new network policy cannot be created if
    -     * another network policy already exists in the same scope.
    +     * Updates a `ManagementDnsZoneBinding` resource.
    +     * Only fields specified in `update_mask` are applied.
          * 
    */ public com.google.common.util.concurrent.ListenableFuture - createNetworkPolicy(com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest request) { + updateManagementDnsZoneBinding( + com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateNetworkPolicyMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateManagementDnsZoneBindingMethod(), getCallOptions()), + request); } /** * * *
    -     * Modifies a `NetworkPolicy` resource. Only the following fields can be
    -     * updated: `internet_access`, `external_ip`, `edge_services_cidr`.
    -     * Only fields specified in `updateMask` are applied. When updating a network
    -     * policy, the external IP network service can only be disabled if there are
    -     * no external IP addresses present in the scope of the policy. Also, a
    -     * `NetworkService` cannot be updated when `NetworkService.state` is set
    -     * to `RECONCILING`.
    -     * During operation processing, the resource is temporarily in the `ACTIVE`
    -     * state before the operation fully completes. For that period of time, you
    -     * can't update the resource. Use the operation status to determine when the
    -     * processing fully completes.
    +     * Deletes a `ManagementDnsZoneBinding` resource. When a management DNS zone
    +     * binding is deleted, the corresponding consumer VPC network is no longer
    +     * bound to the management DNS zone.
          * 
    */ public com.google.common.util.concurrent.ListenableFuture - updateNetworkPolicy(com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest request) { + deleteManagementDnsZoneBinding( + com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateNetworkPolicyMethod(), getCallOptions()), request); + getChannel().newCall(getDeleteManagementDnsZoneBindingMethod(), getCallOptions()), + request); } /** * * *
    -     * 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.
    +     * Retries to create a `ManagementDnsZoneBinding` resource that is
    +     * in failed state.
          * 
    */ public com.google.common.util.concurrent.ListenableFuture - deleteNetworkPolicy(com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest request) { + repairManagementDnsZoneBinding( + com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteNetworkPolicyMethod(), getCallOptions()), request); + getChannel().newCall(getRepairManagementDnsZoneBindingMethod(), getCallOptions()), + request); } /** @@ -4553,6 +8423,55 @@ protected VmwareEngineFutureStub build( getChannel().newCall(getListPrivateConnectionPeeringRoutesMethod(), getCallOptions()), request); } + + /** + * + * + *
    +     * Grants the bind permission to the customer provided principal(user /
    +     * service account) to bind their DNS zone with the intranet VPC associated
    +     * with the project. DnsBindPermission is a global resource and location can
    +     * only be global.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + grantDnsBindPermission( + com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGrantDnsBindPermissionMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Gets all the principals having bind permission on the intranet VPC
    +     * associated with the consumer project granted by the Grant API.
    +     * DnsBindPermission is a global resource and location can only be global.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.DnsBindPermission> + getDnsBindPermission(com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDnsBindPermissionMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Revokes the bind permission from the customer provided principal(user /
    +     * service account) on the intranet VPC associated with the consumer project.
    +     * DnsBindPermission is a global resource and location can only be global.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + revokeDnsBindPermission( + com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRevokeDnsBindPermissionMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_PRIVATE_CLOUDS = 0; @@ -4566,34 +8485,69 @@ protected VmwareEngineFutureStub build( private static final int METHODID_CREATE_CLUSTER = 8; 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_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 int METHODID_LIST_NODES = 11; + private static final int METHODID_GET_NODE = 12; + private static final int METHODID_LIST_EXTERNAL_ADDRESSES = 13; + private static final int METHODID_FETCH_NETWORK_POLICY_EXTERNAL_ADDRESSES = 14; + private static final int METHODID_GET_EXTERNAL_ADDRESS = 15; + private static final int METHODID_CREATE_EXTERNAL_ADDRESS = 16; + private static final int METHODID_UPDATE_EXTERNAL_ADDRESS = 17; + private static final int METHODID_DELETE_EXTERNAL_ADDRESS = 18; + private static final int METHODID_LIST_SUBNETS = 19; + private static final int METHODID_GET_SUBNET = 20; + private static final int METHODID_UPDATE_SUBNET = 21; + private static final int METHODID_LIST_EXTERNAL_ACCESS_RULES = 22; + private static final int METHODID_GET_EXTERNAL_ACCESS_RULE = 23; + private static final int METHODID_CREATE_EXTERNAL_ACCESS_RULE = 24; + private static final int METHODID_UPDATE_EXTERNAL_ACCESS_RULE = 25; + private static final int METHODID_DELETE_EXTERNAL_ACCESS_RULE = 26; + private static final int METHODID_LIST_LOGGING_SERVERS = 27; + private static final int METHODID_GET_LOGGING_SERVER = 28; + private static final int METHODID_CREATE_LOGGING_SERVER = 29; + private static final int METHODID_UPDATE_LOGGING_SERVER = 30; + private static final int METHODID_DELETE_LOGGING_SERVER = 31; + private static final int METHODID_LIST_NODE_TYPES = 32; + private static final int METHODID_GET_NODE_TYPE = 33; + private static final int METHODID_SHOW_NSX_CREDENTIALS = 34; + private static final int METHODID_SHOW_VCENTER_CREDENTIALS = 35; + private static final int METHODID_RESET_NSX_CREDENTIALS = 36; + private static final int METHODID_RESET_VCENTER_CREDENTIALS = 37; + private static final int METHODID_GET_DNS_FORWARDING = 38; + private static final int METHODID_UPDATE_DNS_FORWARDING = 39; + private static final int METHODID_GET_NETWORK_PEERING = 40; + private static final int METHODID_LIST_NETWORK_PEERINGS = 41; + private static final int METHODID_CREATE_NETWORK_PEERING = 42; + private static final int METHODID_DELETE_NETWORK_PEERING = 43; + private static final int METHODID_UPDATE_NETWORK_PEERING = 44; + private static final int METHODID_LIST_PEERING_ROUTES = 45; + private static final int METHODID_CREATE_HCX_ACTIVATION_KEY = 46; + private static final int METHODID_LIST_HCX_ACTIVATION_KEYS = 47; + private static final int METHODID_GET_HCX_ACTIVATION_KEY = 48; + private static final int METHODID_GET_NETWORK_POLICY = 49; + private static final int METHODID_LIST_NETWORK_POLICIES = 50; + private static final int METHODID_CREATE_NETWORK_POLICY = 51; + private static final int METHODID_UPDATE_NETWORK_POLICY = 52; + private static final int METHODID_DELETE_NETWORK_POLICY = 53; + private static final int METHODID_LIST_MANAGEMENT_DNS_ZONE_BINDINGS = 54; + private static final int METHODID_GET_MANAGEMENT_DNS_ZONE_BINDING = 55; + private static final int METHODID_CREATE_MANAGEMENT_DNS_ZONE_BINDING = 56; + private static final int METHODID_UPDATE_MANAGEMENT_DNS_ZONE_BINDING = 57; + private static final int METHODID_DELETE_MANAGEMENT_DNS_ZONE_BINDING = 58; + private static final int METHODID_REPAIR_MANAGEMENT_DNS_ZONE_BINDING = 59; + private static final int METHODID_CREATE_VMWARE_ENGINE_NETWORK = 60; + private static final int METHODID_UPDATE_VMWARE_ENGINE_NETWORK = 61; + private static final int METHODID_DELETE_VMWARE_ENGINE_NETWORK = 62; + private static final int METHODID_GET_VMWARE_ENGINE_NETWORK = 63; + private static final int METHODID_LIST_VMWARE_ENGINE_NETWORKS = 64; + private static final int METHODID_CREATE_PRIVATE_CONNECTION = 65; + private static final int METHODID_GET_PRIVATE_CONNECTION = 66; + private static final int METHODID_LIST_PRIVATE_CONNECTIONS = 67; + private static final int METHODID_UPDATE_PRIVATE_CONNECTION = 68; + private static final int METHODID_DELETE_PRIVATE_CONNECTION = 69; + private static final int METHODID_LIST_PRIVATE_CONNECTION_PEERING_ROUTES = 70; + private static final int METHODID_GRANT_DNS_BIND_PERMISSION = 71; + private static final int METHODID_GET_DNS_BIND_PERMISSION = 72; + private static final int METHODID_REVOKE_DNS_BIND_PERMISSION = 73; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -4672,6 +8626,53 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.vmwareengine.v1.DeleteClusterRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_LIST_NODES: + serviceImpl.listNodes( + (com.google.cloud.vmwareengine.v1.ListNodesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_NODE: + serviceImpl.getNode( + (com.google.cloud.vmwareengine.v1.GetNodeRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_EXTERNAL_ADDRESSES: + serviceImpl.listExternalAddresses( + (com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse>) + responseObserver); + break; + case METHODID_FETCH_NETWORK_POLICY_EXTERNAL_ADDRESSES: + serviceImpl.fetchNetworkPolicyExternalAddresses( + (com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse>) + responseObserver); + break; + case METHODID_GET_EXTERNAL_ADDRESS: + serviceImpl.getExternalAddress( + (com.google.cloud.vmwareengine.v1.GetExternalAddressRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_EXTERNAL_ADDRESS: + serviceImpl.createExternalAddress( + (com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_EXTERNAL_ADDRESS: + serviceImpl.updateExternalAddress( + (com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_EXTERNAL_ADDRESS: + serviceImpl.deleteExternalAddress( + (com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_LIST_SUBNETS: serviceImpl.listSubnets( (com.google.cloud.vmwareengine.v1.ListSubnetsRequest) request, @@ -4689,6 +8690,62 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.vmwareengine.v1.UpdateSubnetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_LIST_EXTERNAL_ACCESS_RULES: + serviceImpl.listExternalAccessRules( + (com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse>) + responseObserver); + break; + case METHODID_GET_EXTERNAL_ACCESS_RULE: + serviceImpl.getExternalAccessRule( + (com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_EXTERNAL_ACCESS_RULE: + serviceImpl.createExternalAccessRule( + (com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_EXTERNAL_ACCESS_RULE: + serviceImpl.updateExternalAccessRule( + (com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_EXTERNAL_ACCESS_RULE: + serviceImpl.deleteExternalAccessRule( + (com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_LOGGING_SERVERS: + serviceImpl.listLoggingServers( + (com.google.cloud.vmwareengine.v1.ListLoggingServersRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.vmwareengine.v1.ListLoggingServersResponse>) + responseObserver); + break; + case METHODID_GET_LOGGING_SERVER: + serviceImpl.getLoggingServer( + (com.google.cloud.vmwareengine.v1.GetLoggingServerRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_LOGGING_SERVER: + serviceImpl.createLoggingServer( + (com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_LOGGING_SERVER: + serviceImpl.updateLoggingServer( + (com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_LOGGING_SERVER: + serviceImpl.deleteLoggingServer( + (com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_LIST_NODE_TYPES: serviceImpl.listNodeTypes( (com.google.cloud.vmwareengine.v1.ListNodeTypesRequest) request, @@ -4723,6 +8780,52 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_DNS_FORWARDING: + serviceImpl.getDnsForwarding( + (com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_DNS_FORWARDING: + serviceImpl.updateDnsForwarding( + (com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_NETWORK_PEERING: + serviceImpl.getNetworkPeering( + (com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_NETWORK_PEERINGS: + serviceImpl.listNetworkPeerings( + (com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse>) + responseObserver); + break; + case METHODID_CREATE_NETWORK_PEERING: + serviceImpl.createNetworkPeering( + (com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_NETWORK_PEERING: + serviceImpl.deleteNetworkPeering( + (com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_NETWORK_PEERING: + serviceImpl.updateNetworkPeering( + (com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_PEERING_ROUTES: + serviceImpl.listPeeringRoutes( + (com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse>) + responseObserver); + break; case METHODID_CREATE_HCX_ACTIVATION_KEY: serviceImpl.createHcxActivationKey( (com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest) request, @@ -4769,6 +8872,40 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_LIST_MANAGEMENT_DNS_ZONE_BINDINGS: + serviceImpl.listManagementDnsZoneBindings( + (com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse>) + responseObserver); + break; + case METHODID_GET_MANAGEMENT_DNS_ZONE_BINDING: + serviceImpl.getManagementDnsZoneBinding( + (com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding>) + responseObserver); + break; + case METHODID_CREATE_MANAGEMENT_DNS_ZONE_BINDING: + serviceImpl.createManagementDnsZoneBinding( + (com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_MANAGEMENT_DNS_ZONE_BINDING: + serviceImpl.updateManagementDnsZoneBinding( + (com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_MANAGEMENT_DNS_ZONE_BINDING: + serviceImpl.deleteManagementDnsZoneBinding( + (com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_REPAIR_MANAGEMENT_DNS_ZONE_BINDING: + serviceImpl.repairManagementDnsZoneBinding( + (com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_CREATE_VMWARE_ENGINE_NETWORK: serviceImpl.createVmwareEngineNetwork( (com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest) request, @@ -4832,6 +8969,22 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse>) responseObserver); break; + case METHODID_GRANT_DNS_BIND_PERMISSION: + serviceImpl.grantDnsBindPermission( + (com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_DNS_BIND_PERMISSION: + serviceImpl.getDnsBindPermission( + (com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_REVOKE_DNS_BIND_PERMISSION: + serviceImpl.revokeDnsBindPermission( + (com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -4919,6 +9072,58 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.vmwareengine.v1.DeleteClusterRequest, com.google.longrunning.Operation>(service, METHODID_DELETE_CLUSTER))) + .addMethod( + getListNodesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.ListNodesRequest, + com.google.cloud.vmwareengine.v1.ListNodesResponse>( + service, METHODID_LIST_NODES))) + .addMethod( + getGetNodeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.GetNodeRequest, + com.google.cloud.vmwareengine.v1.Node>(service, METHODID_GET_NODE))) + .addMethod( + getListExternalAddressesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest, + com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse>( + service, METHODID_LIST_EXTERNAL_ADDRESSES))) + .addMethod( + getFetchNetworkPolicyExternalAddressesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest, + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse>( + service, METHODID_FETCH_NETWORK_POLICY_EXTERNAL_ADDRESSES))) + .addMethod( + getGetExternalAddressMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.GetExternalAddressRequest, + com.google.cloud.vmwareengine.v1.ExternalAddress>( + service, METHODID_GET_EXTERNAL_ADDRESS))) + .addMethod( + getCreateExternalAddressMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_EXTERNAL_ADDRESS))) + .addMethod( + getUpdateExternalAddressMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_EXTERNAL_ADDRESS))) + .addMethod( + getDeleteExternalAddressMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_EXTERNAL_ADDRESS))) .addMethod( getListSubnetsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -4938,6 +9143,73 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.vmwareengine.v1.UpdateSubnetRequest, com.google.longrunning.Operation>(service, METHODID_UPDATE_SUBNET))) + .addMethod( + getListExternalAccessRulesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest, + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse>( + service, METHODID_LIST_EXTERNAL_ACCESS_RULES))) + .addMethod( + getGetExternalAccessRuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest, + com.google.cloud.vmwareengine.v1.ExternalAccessRule>( + service, METHODID_GET_EXTERNAL_ACCESS_RULE))) + .addMethod( + getCreateExternalAccessRuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_EXTERNAL_ACCESS_RULE))) + .addMethod( + getUpdateExternalAccessRuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_EXTERNAL_ACCESS_RULE))) + .addMethod( + getDeleteExternalAccessRuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_EXTERNAL_ACCESS_RULE))) + .addMethod( + getListLoggingServersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.ListLoggingServersRequest, + com.google.cloud.vmwareengine.v1.ListLoggingServersResponse>( + service, METHODID_LIST_LOGGING_SERVERS))) + .addMethod( + getGetLoggingServerMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.GetLoggingServerRequest, + com.google.cloud.vmwareengine.v1.LoggingServer>( + service, METHODID_GET_LOGGING_SERVER))) + .addMethod( + getCreateLoggingServerMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_LOGGING_SERVER))) + .addMethod( + getUpdateLoggingServerMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_LOGGING_SERVER))) + .addMethod( + getDeleteLoggingServerMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_LOGGING_SERVER))) .addMethod( getListNodeTypesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -4977,6 +9249,58 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest, com.google.longrunning.Operation>(service, METHODID_RESET_VCENTER_CREDENTIALS))) + .addMethod( + getGetDnsForwardingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest, + com.google.cloud.vmwareengine.v1.DnsForwarding>( + service, METHODID_GET_DNS_FORWARDING))) + .addMethod( + getUpdateDnsForwardingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_DNS_FORWARDING))) + .addMethod( + getGetNetworkPeeringMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest, + com.google.cloud.vmwareengine.v1.NetworkPeering>( + service, METHODID_GET_NETWORK_PEERING))) + .addMethod( + getListNetworkPeeringsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest, + com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse>( + service, METHODID_LIST_NETWORK_PEERINGS))) + .addMethod( + getCreateNetworkPeeringMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_NETWORK_PEERING))) + .addMethod( + getDeleteNetworkPeeringMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_NETWORK_PEERING))) + .addMethod( + getUpdateNetworkPeeringMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_NETWORK_PEERING))) + .addMethod( + getListPeeringRoutesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest, + com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse>( + service, METHODID_LIST_PEERING_ROUTES))) .addMethod( getCreateHcxActivationKeyMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -5029,6 +9353,48 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest, com.google.longrunning.Operation>(service, METHODID_DELETE_NETWORK_POLICY))) + .addMethod( + getListManagementDnsZoneBindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest, + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse>( + service, METHODID_LIST_MANAGEMENT_DNS_ZONE_BINDINGS))) + .addMethod( + getGetManagementDnsZoneBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest, + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding>( + service, METHODID_GET_MANAGEMENT_DNS_ZONE_BINDING))) + .addMethod( + getCreateManagementDnsZoneBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_MANAGEMENT_DNS_ZONE_BINDING))) + .addMethod( + getUpdateManagementDnsZoneBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_MANAGEMENT_DNS_ZONE_BINDING))) + .addMethod( + getDeleteManagementDnsZoneBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_MANAGEMENT_DNS_ZONE_BINDING))) + .addMethod( + getRepairManagementDnsZoneBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest, + com.google.longrunning.Operation>( + service, METHODID_REPAIR_MANAGEMENT_DNS_ZONE_BINDING))) .addMethod( getCreateVmwareEngineNetworkMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -5103,6 +9469,26 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest, com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse>( service, METHODID_LIST_PRIVATE_CONNECTION_PEERING_ROUTES))) + .addMethod( + getGrantDnsBindPermissionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest, + com.google.longrunning.Operation>(service, METHODID_GRANT_DNS_BIND_PERMISSION))) + .addMethod( + getGetDnsBindPermissionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest, + com.google.cloud.vmwareengine.v1.DnsBindPermission>( + service, METHODID_GET_DNS_BIND_PERMISSION))) + .addMethod( + getRevokeDnsBindPermissionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest, + com.google.longrunning.Operation>( + service, METHODID_REVOKE_DNS_BIND_PERMISSION))) .build(); } @@ -5165,15 +9551,41 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateClusterMethod()) .addMethod(getUpdateClusterMethod()) .addMethod(getDeleteClusterMethod()) + .addMethod(getListNodesMethod()) + .addMethod(getGetNodeMethod()) + .addMethod(getListExternalAddressesMethod()) + .addMethod(getFetchNetworkPolicyExternalAddressesMethod()) + .addMethod(getGetExternalAddressMethod()) + .addMethod(getCreateExternalAddressMethod()) + .addMethod(getUpdateExternalAddressMethod()) + .addMethod(getDeleteExternalAddressMethod()) .addMethod(getListSubnetsMethod()) .addMethod(getGetSubnetMethod()) .addMethod(getUpdateSubnetMethod()) + .addMethod(getListExternalAccessRulesMethod()) + .addMethod(getGetExternalAccessRuleMethod()) + .addMethod(getCreateExternalAccessRuleMethod()) + .addMethod(getUpdateExternalAccessRuleMethod()) + .addMethod(getDeleteExternalAccessRuleMethod()) + .addMethod(getListLoggingServersMethod()) + .addMethod(getGetLoggingServerMethod()) + .addMethod(getCreateLoggingServerMethod()) + .addMethod(getUpdateLoggingServerMethod()) + .addMethod(getDeleteLoggingServerMethod()) .addMethod(getListNodeTypesMethod()) .addMethod(getGetNodeTypeMethod()) .addMethod(getShowNsxCredentialsMethod()) .addMethod(getShowVcenterCredentialsMethod()) .addMethod(getResetNsxCredentialsMethod()) .addMethod(getResetVcenterCredentialsMethod()) + .addMethod(getGetDnsForwardingMethod()) + .addMethod(getUpdateDnsForwardingMethod()) + .addMethod(getGetNetworkPeeringMethod()) + .addMethod(getListNetworkPeeringsMethod()) + .addMethod(getCreateNetworkPeeringMethod()) + .addMethod(getDeleteNetworkPeeringMethod()) + .addMethod(getUpdateNetworkPeeringMethod()) + .addMethod(getListPeeringRoutesMethod()) .addMethod(getCreateHcxActivationKeyMethod()) .addMethod(getListHcxActivationKeysMethod()) .addMethod(getGetHcxActivationKeyMethod()) @@ -5182,6 +9594,12 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateNetworkPolicyMethod()) .addMethod(getUpdateNetworkPolicyMethod()) .addMethod(getDeleteNetworkPolicyMethod()) + .addMethod(getListManagementDnsZoneBindingsMethod()) + .addMethod(getGetManagementDnsZoneBindingMethod()) + .addMethod(getCreateManagementDnsZoneBindingMethod()) + .addMethod(getUpdateManagementDnsZoneBindingMethod()) + .addMethod(getDeleteManagementDnsZoneBindingMethod()) + .addMethod(getRepairManagementDnsZoneBindingMethod()) .addMethod(getCreateVmwareEngineNetworkMethod()) .addMethod(getUpdateVmwareEngineNetworkMethod()) .addMethod(getDeleteVmwareEngineNetworkMethod()) @@ -5193,6 +9611,9 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getUpdatePrivateConnectionMethod()) .addMethod(getDeletePrivateConnectionMethod()) .addMethod(getListPrivateConnectionPeeringRoutesMethod()) + .addMethod(getGrantDnsBindPermissionMethod()) + .addMethod(getGetDnsBindPermissionMethod()) + .addMethod(getRevokeDnsBindPermissionMethod()) .build(); } } diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Cluster.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Cluster.java index 671b7c643109..8091229a763b 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Cluster.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Cluster.java @@ -697,6 +697,66 @@ public com.google.cloud.vmwareengine.v1.NodeTypeConfig getNodeTypeConfigsOrThrow return map.get(key); } + public static final int STRETCHED_CLUSTER_CONFIG_FIELD_NUMBER = 17; + private com.google.cloud.vmwareengine.v1.StretchedClusterConfig stretchedClusterConfig_; + /** + * + * + *
    +   * Optional. Configuration of a stretched cluster. Required for clusters that
    +   * belong to a STRETCHED private cloud.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the stretchedClusterConfig field is set. + */ + @java.lang.Override + public boolean hasStretchedClusterConfig() { + return stretchedClusterConfig_ != null; + } + /** + * + * + *
    +   * Optional. Configuration of a stretched cluster. Required for clusters that
    +   * belong to a STRETCHED private cloud.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The stretchedClusterConfig. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.StretchedClusterConfig getStretchedClusterConfig() { + return stretchedClusterConfig_ == null + ? com.google.cloud.vmwareengine.v1.StretchedClusterConfig.getDefaultInstance() + : stretchedClusterConfig_; + } + /** + * + * + *
    +   * Optional. Configuration of a stretched cluster. Required for clusters that
    +   * belong to a STRETCHED private cloud.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.StretchedClusterConfigOrBuilder + getStretchedClusterConfigOrBuilder() { + return stretchedClusterConfig_ == null + ? com.google.cloud.vmwareengine.v1.StretchedClusterConfig.getDefaultInstance() + : stretchedClusterConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -731,6 +791,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetNodeTypeConfigs(), NodeTypeConfigsDefaultEntryHolder.defaultEntry, 16); + if (stretchedClusterConfig_ != null) { + output.writeMessage(17, getStretchedClusterConfig()); + } getUnknownFields().writeTo(output); } @@ -770,6 +833,10 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, nodeTypeConfigs__); } + if (stretchedClusterConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(17, getStretchedClusterConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -798,6 +865,10 @@ public boolean equals(final java.lang.Object obj) { if (getManagement() != other.getManagement()) return false; if (!getUid().equals(other.getUid())) return false; if (!internalGetNodeTypeConfigs().equals(other.internalGetNodeTypeConfigs())) return false; + if (hasStretchedClusterConfig() != other.hasStretchedClusterConfig()) return false; + if (hasStretchedClusterConfig()) { + if (!getStretchedClusterConfig().equals(other.getStretchedClusterConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -829,6 +900,10 @@ public int hashCode() { hash = (37 * hash) + NODE_TYPE_CONFIGS_FIELD_NUMBER; hash = (53 * hash) + internalGetNodeTypeConfigs().hashCode(); } + if (hasStretchedClusterConfig()) { + hash = (37 * hash) + STRETCHED_CLUSTER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getStretchedClusterConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1003,6 +1078,11 @@ public Builder clear() { management_ = false; uid_ = ""; internalGetMutableNodeTypeConfigs().clear(); + stretchedClusterConfig_ = null; + if (stretchedClusterConfigBuilder_ != null) { + stretchedClusterConfigBuilder_.dispose(); + stretchedClusterConfigBuilder_ = null; + } return this; } @@ -1061,6 +1141,12 @@ private void buildPartial0(com.google.cloud.vmwareengine.v1.Cluster result) { result.nodeTypeConfigs_ = internalGetNodeTypeConfigs(); result.nodeTypeConfigs_.makeImmutable(); } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.stretchedClusterConfig_ = + stretchedClusterConfigBuilder_ == null + ? stretchedClusterConfig_ + : stretchedClusterConfigBuilder_.build(); + } } @java.lang.Override @@ -1132,6 +1218,9 @@ public Builder mergeFrom(com.google.cloud.vmwareengine.v1.Cluster other) { } internalGetMutableNodeTypeConfigs().mergeFrom(other.internalGetNodeTypeConfigs()); bitField0_ |= 0x00000040; + if (other.hasStretchedClusterConfig()) { + mergeStretchedClusterConfig(other.getStretchedClusterConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1208,6 +1297,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 130 + case 138: + { + input.readMessage( + getStretchedClusterConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 138 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2221,6 +2317,222 @@ public Builder putAllNodeTypeConfigs( return this; } + private com.google.cloud.vmwareengine.v1.StretchedClusterConfig stretchedClusterConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.StretchedClusterConfig, + com.google.cloud.vmwareengine.v1.StretchedClusterConfig.Builder, + com.google.cloud.vmwareengine.v1.StretchedClusterConfigOrBuilder> + stretchedClusterConfigBuilder_; + /** + * + * + *
    +     * Optional. Configuration of a stretched cluster. Required for clusters that
    +     * belong to a STRETCHED private cloud.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the stretchedClusterConfig field is set. + */ + public boolean hasStretchedClusterConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
    +     * Optional. Configuration of a stretched cluster. Required for clusters that
    +     * belong to a STRETCHED private cloud.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The stretchedClusterConfig. + */ + public com.google.cloud.vmwareengine.v1.StretchedClusterConfig getStretchedClusterConfig() { + if (stretchedClusterConfigBuilder_ == null) { + return stretchedClusterConfig_ == null + ? com.google.cloud.vmwareengine.v1.StretchedClusterConfig.getDefaultInstance() + : stretchedClusterConfig_; + } else { + return stretchedClusterConfigBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Optional. Configuration of a stretched cluster. Required for clusters that
    +     * belong to a STRETCHED private cloud.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStretchedClusterConfig( + com.google.cloud.vmwareengine.v1.StretchedClusterConfig value) { + if (stretchedClusterConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stretchedClusterConfig_ = value; + } else { + stretchedClusterConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. Configuration of a stretched cluster. Required for clusters that
    +     * belong to a STRETCHED private cloud.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStretchedClusterConfig( + com.google.cloud.vmwareengine.v1.StretchedClusterConfig.Builder builderForValue) { + if (stretchedClusterConfigBuilder_ == null) { + stretchedClusterConfig_ = builderForValue.build(); + } else { + stretchedClusterConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. Configuration of a stretched cluster. Required for clusters that
    +     * belong to a STRETCHED private cloud.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeStretchedClusterConfig( + com.google.cloud.vmwareengine.v1.StretchedClusterConfig value) { + if (stretchedClusterConfigBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && stretchedClusterConfig_ != null + && stretchedClusterConfig_ + != com.google.cloud.vmwareengine.v1.StretchedClusterConfig.getDefaultInstance()) { + getStretchedClusterConfigBuilder().mergeFrom(value); + } else { + stretchedClusterConfig_ = value; + } + } else { + stretchedClusterConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. Configuration of a stretched cluster. Required for clusters that
    +     * belong to a STRETCHED private cloud.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearStretchedClusterConfig() { + bitField0_ = (bitField0_ & ~0x00000080); + stretchedClusterConfig_ = null; + if (stretchedClusterConfigBuilder_ != null) { + stretchedClusterConfigBuilder_.dispose(); + stretchedClusterConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. Configuration of a stretched cluster. Required for clusters that
    +     * belong to a STRETCHED private cloud.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmwareengine.v1.StretchedClusterConfig.Builder + getStretchedClusterConfigBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getStretchedClusterConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Optional. Configuration of a stretched cluster. Required for clusters that
    +     * belong to a STRETCHED private cloud.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmwareengine.v1.StretchedClusterConfigOrBuilder + getStretchedClusterConfigOrBuilder() { + if (stretchedClusterConfigBuilder_ != null) { + return stretchedClusterConfigBuilder_.getMessageOrBuilder(); + } else { + return stretchedClusterConfig_ == null + ? com.google.cloud.vmwareengine.v1.StretchedClusterConfig.getDefaultInstance() + : stretchedClusterConfig_; + } + } + /** + * + * + *
    +     * Optional. Configuration of a stretched cluster. Required for clusters that
    +     * belong to a STRETCHED private cloud.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.StretchedClusterConfig, + com.google.cloud.vmwareengine.v1.StretchedClusterConfig.Builder, + com.google.cloud.vmwareengine.v1.StretchedClusterConfigOrBuilder> + getStretchedClusterConfigFieldBuilder() { + if (stretchedClusterConfigBuilder_ == null) { + stretchedClusterConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.StretchedClusterConfig, + com.google.cloud.vmwareengine.v1.StretchedClusterConfig.Builder, + com.google.cloud.vmwareengine.v1.StretchedClusterConfigOrBuilder>( + getStretchedClusterConfig(), getParentForChildren(), isClean()); + stretchedClusterConfig_ = null; + } + return stretchedClusterConfigBuilder_; + } + @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/ClusterOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ClusterOrBuilder.java index 09ba70392c3f..5b1fdd8442d6 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ClusterOrBuilder.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ClusterOrBuilder.java @@ -275,4 +275,49 @@ com.google.cloud.vmwareengine.v1.NodeTypeConfig getNodeTypeConfigsOrDefault( * */ com.google.cloud.vmwareengine.v1.NodeTypeConfig getNodeTypeConfigsOrThrow(java.lang.String key); + + /** + * + * + *
    +   * Optional. Configuration of a stretched cluster. Required for clusters that
    +   * belong to a STRETCHED private cloud.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the stretchedClusterConfig field is set. + */ + boolean hasStretchedClusterConfig(); + /** + * + * + *
    +   * Optional. Configuration of a stretched cluster. Required for clusters that
    +   * belong to a STRETCHED private cloud.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The stretchedClusterConfig. + */ + com.google.cloud.vmwareengine.v1.StretchedClusterConfig getStretchedClusterConfig(); + /** + * + * + *
    +   * Optional. Configuration of a stretched cluster. Required for clusters that
    +   * belong to a STRETCHED private cloud.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vmwareengine.v1.StretchedClusterConfigOrBuilder + getStretchedClusterConfigOrBuilder(); } diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateExternalAccessRuleRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateExternalAccessRuleRequest.java new file mode 100644 index 000000000000..29447963906a --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateExternalAccessRuleRequest.java @@ -0,0 +1,1508 @@ +/* + * 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.CreateExternalAccessRule][google.cloud.vmwareengine.v1.VmwareEngine.CreateExternalAccessRule]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest} + */ +public final class CreateExternalAccessRuleRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest) + CreateExternalAccessRuleRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateExternalAccessRuleRequest.newBuilder() to construct. + private CreateExternalAccessRuleRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateExternalAccessRuleRequest() { + parent_ = ""; + externalAccessRuleId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateExternalAccessRuleRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateExternalAccessRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateExternalAccessRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest.class, + com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
    +   * Required. The resource name of the network policy
    +   * to create a new external access firewall rule in.
    +   * 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/networkPolicies/my-policy`
    +   * 
    + * + * + * 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 network policy
    +   * to create a new external access firewall rule in.
    +   * 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/networkPolicies/my-policy`
    +   * 
    + * + * + * 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 EXTERNAL_ACCESS_RULE_FIELD_NUMBER = 2; + private com.google.cloud.vmwareengine.v1.ExternalAccessRule externalAccessRule_; + /** + * + * + *
    +   * Required. The initial description of a new external access rule.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the externalAccessRule field is set. + */ + @java.lang.Override + public boolean hasExternalAccessRule() { + return externalAccessRule_ != null; + } + /** + * + * + *
    +   * Required. The initial description of a new external access rule.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The externalAccessRule. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ExternalAccessRule getExternalAccessRule() { + return externalAccessRule_ == null + ? com.google.cloud.vmwareengine.v1.ExternalAccessRule.getDefaultInstance() + : externalAccessRule_; + } + /** + * + * + *
    +   * Required. The initial description of a new external access rule.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ExternalAccessRuleOrBuilder + getExternalAccessRuleOrBuilder() { + return externalAccessRule_ == null + ? com.google.cloud.vmwareengine.v1.ExternalAccessRule.getDefaultInstance() + : externalAccessRule_; + } + + public static final int EXTERNAL_ACCESS_RULE_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object externalAccessRuleId_ = ""; + /** + * + * + *
    +   * Required. The user-provided identifier of the `ExternalAccessRule` to be
    +   * created. This identifier must be unique among `ExternalAccessRule`
    +   * 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 external_access_rule_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The externalAccessRuleId. + */ + @java.lang.Override + public java.lang.String getExternalAccessRuleId() { + java.lang.Object ref = externalAccessRuleId_; + 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(); + externalAccessRuleId_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The user-provided identifier of the `ExternalAccessRule` to be
    +   * created. This identifier must be unique among `ExternalAccessRule`
    +   * 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 external_access_rule_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for externalAccessRuleId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExternalAccessRuleIdBytes() { + java.lang.Object ref = externalAccessRuleId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + externalAccessRuleId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
    +   * 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 the 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; + * + * @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; + } + } + /** + * + * + *
    +   * 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 the 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; + * + * @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 (externalAccessRule_ != null) { + output.writeMessage(2, getExternalAccessRule()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalAccessRuleId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, externalAccessRuleId_); + } + 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 (externalAccessRule_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExternalAccessRule()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalAccessRuleId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, externalAccessRuleId_); + } + 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.CreateExternalAccessRuleRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest other = + (com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasExternalAccessRule() != other.hasExternalAccessRule()) return false; + if (hasExternalAccessRule()) { + if (!getExternalAccessRule().equals(other.getExternalAccessRule())) return false; + } + if (!getExternalAccessRuleId().equals(other.getExternalAccessRuleId())) 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(); + if (hasExternalAccessRule()) { + hash = (37 * hash) + EXTERNAL_ACCESS_RULE_FIELD_NUMBER; + hash = (53 * hash) + getExternalAccessRule().hashCode(); + } + hash = (37 * hash) + EXTERNAL_ACCESS_RULE_ID_FIELD_NUMBER; + hash = (53 * hash) + getExternalAccessRuleId().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.CreateExternalAccessRuleRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest 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.CreateExternalAccessRuleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest 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.CreateExternalAccessRuleRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest 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.CreateExternalAccessRuleRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest 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.CreateExternalAccessRuleRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest 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.CreateExternalAccessRuleRequest 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.CreateExternalAccessRuleRequest 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.CreateExternalAccessRuleRequest 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.CreateExternalAccessRule][google.cloud.vmwareengine.v1.VmwareEngine.CreateExternalAccessRule]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest) + com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateExternalAccessRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateExternalAccessRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest.class, + com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + externalAccessRule_ = null; + if (externalAccessRuleBuilder_ != null) { + externalAccessRuleBuilder_.dispose(); + externalAccessRuleBuilder_ = null; + } + externalAccessRuleId_ = ""; + 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_CreateExternalAccessRuleRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest build() { + com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest buildPartial() { + com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest result = + new com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.externalAccessRule_ = + externalAccessRuleBuilder_ == null + ? externalAccessRule_ + : externalAccessRuleBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.externalAccessRuleId_ = externalAccessRuleId_; + } + 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.CreateExternalAccessRuleRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasExternalAccessRule()) { + mergeExternalAccessRule(other.getExternalAccessRule()); + } + if (!other.getExternalAccessRuleId().isEmpty()) { + externalAccessRuleId_ = other.externalAccessRuleId_; + bitField0_ |= 0x00000004; + onChanged(); + } + 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: + { + input.readMessage( + getExternalAccessRuleFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + externalAccessRuleId_ = input.readStringRequireUtf8(); + 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 network policy
    +     * to create a new external access firewall rule in.
    +     * 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/networkPolicies/my-policy`
    +     * 
    + * + * + * 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 network policy
    +     * to create a new external access firewall rule in.
    +     * 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/networkPolicies/my-policy`
    +     * 
    + * + * + * 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 network policy
    +     * to create a new external access firewall rule in.
    +     * 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/networkPolicies/my-policy`
    +     * 
    + * + * + * 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 network policy
    +     * to create a new external access firewall rule in.
    +     * 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/networkPolicies/my-policy`
    +     * 
    + * + * + * 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 network policy
    +     * to create a new external access firewall rule in.
    +     * 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/networkPolicies/my-policy`
    +     * 
    + * + * + * 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 com.google.cloud.vmwareengine.v1.ExternalAccessRule externalAccessRule_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ExternalAccessRule, + com.google.cloud.vmwareengine.v1.ExternalAccessRule.Builder, + com.google.cloud.vmwareengine.v1.ExternalAccessRuleOrBuilder> + externalAccessRuleBuilder_; + /** + * + * + *
    +     * Required. The initial description of a new external access rule.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the externalAccessRule field is set. + */ + public boolean hasExternalAccessRule() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * Required. The initial description of a new external access rule.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The externalAccessRule. + */ + public com.google.cloud.vmwareengine.v1.ExternalAccessRule getExternalAccessRule() { + if (externalAccessRuleBuilder_ == null) { + return externalAccessRule_ == null + ? com.google.cloud.vmwareengine.v1.ExternalAccessRule.getDefaultInstance() + : externalAccessRule_; + } else { + return externalAccessRuleBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Required. The initial description of a new external access rule.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExternalAccessRule( + com.google.cloud.vmwareengine.v1.ExternalAccessRule value) { + if (externalAccessRuleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + externalAccessRule_ = value; + } else { + externalAccessRuleBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The initial description of a new external access rule.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExternalAccessRule( + com.google.cloud.vmwareengine.v1.ExternalAccessRule.Builder builderForValue) { + if (externalAccessRuleBuilder_ == null) { + externalAccessRule_ = builderForValue.build(); + } else { + externalAccessRuleBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The initial description of a new external access rule.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeExternalAccessRule( + com.google.cloud.vmwareengine.v1.ExternalAccessRule value) { + if (externalAccessRuleBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && externalAccessRule_ != null + && externalAccessRule_ + != com.google.cloud.vmwareengine.v1.ExternalAccessRule.getDefaultInstance()) { + getExternalAccessRuleBuilder().mergeFrom(value); + } else { + externalAccessRule_ = value; + } + } else { + externalAccessRuleBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The initial description of a new external access rule.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearExternalAccessRule() { + bitField0_ = (bitField0_ & ~0x00000002); + externalAccessRule_ = null; + if (externalAccessRuleBuilder_ != null) { + externalAccessRuleBuilder_.dispose(); + externalAccessRuleBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The initial description of a new external access rule.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.ExternalAccessRule.Builder + getExternalAccessRuleBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getExternalAccessRuleFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Required. The initial description of a new external access rule.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.ExternalAccessRuleOrBuilder + getExternalAccessRuleOrBuilder() { + if (externalAccessRuleBuilder_ != null) { + return externalAccessRuleBuilder_.getMessageOrBuilder(); + } else { + return externalAccessRule_ == null + ? com.google.cloud.vmwareengine.v1.ExternalAccessRule.getDefaultInstance() + : externalAccessRule_; + } + } + /** + * + * + *
    +     * Required. The initial description of a new external access rule.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ExternalAccessRule, + com.google.cloud.vmwareengine.v1.ExternalAccessRule.Builder, + com.google.cloud.vmwareengine.v1.ExternalAccessRuleOrBuilder> + getExternalAccessRuleFieldBuilder() { + if (externalAccessRuleBuilder_ == null) { + externalAccessRuleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ExternalAccessRule, + com.google.cloud.vmwareengine.v1.ExternalAccessRule.Builder, + com.google.cloud.vmwareengine.v1.ExternalAccessRuleOrBuilder>( + getExternalAccessRule(), getParentForChildren(), isClean()); + externalAccessRule_ = null; + } + return externalAccessRuleBuilder_; + } + + private java.lang.Object externalAccessRuleId_ = ""; + /** + * + * + *
    +     * Required. The user-provided identifier of the `ExternalAccessRule` to be
    +     * created. This identifier must be unique among `ExternalAccessRule`
    +     * 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 external_access_rule_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The externalAccessRuleId. + */ + public java.lang.String getExternalAccessRuleId() { + java.lang.Object ref = externalAccessRuleId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + externalAccessRuleId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The user-provided identifier of the `ExternalAccessRule` to be
    +     * created. This identifier must be unique among `ExternalAccessRule`
    +     * 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 external_access_rule_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for externalAccessRuleId. + */ + public com.google.protobuf.ByteString getExternalAccessRuleIdBytes() { + java.lang.Object ref = externalAccessRuleId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + externalAccessRuleId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The user-provided identifier of the `ExternalAccessRule` to be
    +     * created. This identifier must be unique among `ExternalAccessRule`
    +     * 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 external_access_rule_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The externalAccessRuleId to set. + * @return This builder for chaining. + */ + public Builder setExternalAccessRuleId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + externalAccessRuleId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The user-provided identifier of the `ExternalAccessRule` to be
    +     * created. This identifier must be unique among `ExternalAccessRule`
    +     * 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 external_access_rule_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearExternalAccessRuleId() { + externalAccessRuleId_ = getDefaultInstance().getExternalAccessRuleId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The user-provided identifier of the `ExternalAccessRule` to be
    +     * created. This identifier must be unique among `ExternalAccessRule`
    +     * 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 external_access_rule_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for externalAccessRuleId to set. + * @return This builder for chaining. + */ + public Builder setExternalAccessRuleIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + externalAccessRuleId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
    +     * 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 the 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; + * + * @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; + } + } + /** + * + * + *
    +     * 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 the 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; + * + * @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; + } + } + /** + * + * + *
    +     * 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 the 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; + * + * @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; + } + /** + * + * + *
    +     * 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 the 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; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
    +     * 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 the 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; + * + * @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.CreateExternalAccessRuleRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest) + private static final com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest(); + } + + public static com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateExternalAccessRuleRequest 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.CreateExternalAccessRuleRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateExternalAccessRuleRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateExternalAccessRuleRequestOrBuilder.java new file mode 100644 index 000000000000..6bdd6efa4a09 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateExternalAccessRuleRequestOrBuilder.java @@ -0,0 +1,201 @@ +/* + * 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 CreateExternalAccessRuleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the network policy
    +   * to create a new external access firewall rule in.
    +   * 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/networkPolicies/my-policy`
    +   * 
    + * + * + * 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 network policy
    +   * to create a new external access firewall rule in.
    +   * 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/networkPolicies/my-policy`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The initial description of a new external access rule.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the externalAccessRule field is set. + */ + boolean hasExternalAccessRule(); + /** + * + * + *
    +   * Required. The initial description of a new external access rule.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The externalAccessRule. + */ + com.google.cloud.vmwareengine.v1.ExternalAccessRule getExternalAccessRule(); + /** + * + * + *
    +   * Required. The initial description of a new external access rule.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmwareengine.v1.ExternalAccessRuleOrBuilder getExternalAccessRuleOrBuilder(); + + /** + * + * + *
    +   * Required. The user-provided identifier of the `ExternalAccessRule` to be
    +   * created. This identifier must be unique among `ExternalAccessRule`
    +   * 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 external_access_rule_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The externalAccessRuleId. + */ + java.lang.String getExternalAccessRuleId(); + /** + * + * + *
    +   * Required. The user-provided identifier of the `ExternalAccessRule` to be
    +   * created. This identifier must be unique among `ExternalAccessRule`
    +   * 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 external_access_rule_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for externalAccessRuleId. + */ + com.google.protobuf.ByteString getExternalAccessRuleIdBytes(); + + /** + * + * + *
    +   * 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 the 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; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
    +   * 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 the 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; + * + * @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/CreateExternalAddressRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateExternalAddressRequest.java new file mode 100644 index 000000000000..ed20ffe6896d --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateExternalAddressRequest.java @@ -0,0 +1,1496 @@ +/* + * 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.CreateExternalAddress][google.cloud.vmwareengine.v1.VmwareEngine.CreateExternalAddress]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.CreateExternalAddressRequest} + */ +public final class CreateExternalAddressRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.CreateExternalAddressRequest) + CreateExternalAddressRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateExternalAddressRequest.newBuilder() to construct. + private CreateExternalAddressRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateExternalAddressRequest() { + parent_ = ""; + externalAddressId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateExternalAddressRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateExternalAddressRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateExternalAddressRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest.class, + com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest.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 cloud
    +   * to create a new external IP address in.
    +   * 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`
    +   * 
    + * + * + * 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 cloud
    +   * to create a new external IP address in.
    +   * 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`
    +   * 
    + * + * + * 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 EXTERNAL_ADDRESS_FIELD_NUMBER = 2; + private com.google.cloud.vmwareengine.v1.ExternalAddress externalAddress_; + /** + * + * + *
    +   * Required. The initial description of a new external IP address.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress external_address = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the externalAddress field is set. + */ + @java.lang.Override + public boolean hasExternalAddress() { + return externalAddress_ != null; + } + /** + * + * + *
    +   * Required. The initial description of a new external IP address.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress external_address = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The externalAddress. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ExternalAddress getExternalAddress() { + return externalAddress_ == null + ? com.google.cloud.vmwareengine.v1.ExternalAddress.getDefaultInstance() + : externalAddress_; + } + /** + * + * + *
    +   * Required. The initial description of a new external IP address.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress external_address = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ExternalAddressOrBuilder getExternalAddressOrBuilder() { + return externalAddress_ == null + ? com.google.cloud.vmwareengine.v1.ExternalAddress.getDefaultInstance() + : externalAddress_; + } + + public static final int EXTERNAL_ADDRESS_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object externalAddressId_ = ""; + /** + * + * + *
    +   * Required. The user-provided identifier of the `ExternalAddress` to be
    +   * created. This identifier must be unique among `ExternalAddress` 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 external_address_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The externalAddressId. + */ + @java.lang.Override + public java.lang.String getExternalAddressId() { + java.lang.Object ref = externalAddressId_; + 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(); + externalAddressId_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The user-provided identifier of the `ExternalAddress` to be
    +   * created. This identifier must be unique among `ExternalAddress` 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 external_address_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for externalAddressId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExternalAddressIdBytes() { + java.lang.Object ref = externalAddressId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + externalAddressId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 the 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 the 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 (externalAddress_ != null) { + output.writeMessage(2, getExternalAddress()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalAddressId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, externalAddressId_); + } + 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 (externalAddress_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExternalAddress()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalAddressId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, externalAddressId_); + } + 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.CreateExternalAddressRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest other = + (com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasExternalAddress() != other.hasExternalAddress()) return false; + if (hasExternalAddress()) { + if (!getExternalAddress().equals(other.getExternalAddress())) return false; + } + if (!getExternalAddressId().equals(other.getExternalAddressId())) 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(); + if (hasExternalAddress()) { + hash = (37 * hash) + EXTERNAL_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getExternalAddress().hashCode(); + } + hash = (37 * hash) + EXTERNAL_ADDRESS_ID_FIELD_NUMBER; + hash = (53 * hash) + getExternalAddressId().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.CreateExternalAddressRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest 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.CreateExternalAddressRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest 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.CreateExternalAddressRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest 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.CreateExternalAddressRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest 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.CreateExternalAddressRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest 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.CreateExternalAddressRequest 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.CreateExternalAddressRequest 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.CreateExternalAddressRequest 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.CreateExternalAddress][google.cloud.vmwareengine.v1.VmwareEngine.CreateExternalAddress]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.CreateExternalAddressRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.CreateExternalAddressRequest) + com.google.cloud.vmwareengine.v1.CreateExternalAddressRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateExternalAddressRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateExternalAddressRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest.class, + com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + externalAddress_ = null; + if (externalAddressBuilder_ != null) { + externalAddressBuilder_.dispose(); + externalAddressBuilder_ = null; + } + externalAddressId_ = ""; + 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_CreateExternalAddressRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest build() { + com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest buildPartial() { + com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest result = + new com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.externalAddress_ = + externalAddressBuilder_ == null ? externalAddress_ : externalAddressBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.externalAddressId_ = externalAddressId_; + } + 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.CreateExternalAddressRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasExternalAddress()) { + mergeExternalAddress(other.getExternalAddress()); + } + if (!other.getExternalAddressId().isEmpty()) { + externalAddressId_ = other.externalAddressId_; + bitField0_ |= 0x00000004; + onChanged(); + } + 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: + { + input.readMessage(getExternalAddressFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + externalAddressId_ = input.readStringRequireUtf8(); + 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 private cloud
    +     * to create a new external IP address in.
    +     * 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`
    +     * 
    + * + * + * 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 cloud
    +     * to create a new external IP address in.
    +     * 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`
    +     * 
    + * + * + * 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 cloud
    +     * to create a new external IP address in.
    +     * 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`
    +     * 
    + * + * + * 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 cloud
    +     * to create a new external IP address in.
    +     * 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`
    +     * 
    + * + * + * 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 cloud
    +     * to create a new external IP address in.
    +     * 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`
    +     * 
    + * + * + * 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 com.google.cloud.vmwareengine.v1.ExternalAddress externalAddress_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ExternalAddress, + com.google.cloud.vmwareengine.v1.ExternalAddress.Builder, + com.google.cloud.vmwareengine.v1.ExternalAddressOrBuilder> + externalAddressBuilder_; + /** + * + * + *
    +     * Required. The initial description of a new external IP address.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress external_address = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the externalAddress field is set. + */ + public boolean hasExternalAddress() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * Required. The initial description of a new external IP address.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress external_address = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The externalAddress. + */ + public com.google.cloud.vmwareengine.v1.ExternalAddress getExternalAddress() { + if (externalAddressBuilder_ == null) { + return externalAddress_ == null + ? com.google.cloud.vmwareengine.v1.ExternalAddress.getDefaultInstance() + : externalAddress_; + } else { + return externalAddressBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Required. The initial description of a new external IP address.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress external_address = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExternalAddress(com.google.cloud.vmwareengine.v1.ExternalAddress value) { + if (externalAddressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + externalAddress_ = value; + } else { + externalAddressBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The initial description of a new external IP address.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress external_address = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExternalAddress( + com.google.cloud.vmwareengine.v1.ExternalAddress.Builder builderForValue) { + if (externalAddressBuilder_ == null) { + externalAddress_ = builderForValue.build(); + } else { + externalAddressBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The initial description of a new external IP address.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress external_address = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeExternalAddress(com.google.cloud.vmwareengine.v1.ExternalAddress value) { + if (externalAddressBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && externalAddress_ != null + && externalAddress_ + != com.google.cloud.vmwareengine.v1.ExternalAddress.getDefaultInstance()) { + getExternalAddressBuilder().mergeFrom(value); + } else { + externalAddress_ = value; + } + } else { + externalAddressBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The initial description of a new external IP address.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress external_address = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearExternalAddress() { + bitField0_ = (bitField0_ & ~0x00000002); + externalAddress_ = null; + if (externalAddressBuilder_ != null) { + externalAddressBuilder_.dispose(); + externalAddressBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The initial description of a new external IP address.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress external_address = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.ExternalAddress.Builder getExternalAddressBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getExternalAddressFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Required. The initial description of a new external IP address.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress external_address = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.ExternalAddressOrBuilder getExternalAddressOrBuilder() { + if (externalAddressBuilder_ != null) { + return externalAddressBuilder_.getMessageOrBuilder(); + } else { + return externalAddress_ == null + ? com.google.cloud.vmwareengine.v1.ExternalAddress.getDefaultInstance() + : externalAddress_; + } + } + /** + * + * + *
    +     * Required. The initial description of a new external IP address.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress external_address = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ExternalAddress, + com.google.cloud.vmwareengine.v1.ExternalAddress.Builder, + com.google.cloud.vmwareengine.v1.ExternalAddressOrBuilder> + getExternalAddressFieldBuilder() { + if (externalAddressBuilder_ == null) { + externalAddressBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ExternalAddress, + com.google.cloud.vmwareengine.v1.ExternalAddress.Builder, + com.google.cloud.vmwareengine.v1.ExternalAddressOrBuilder>( + getExternalAddress(), getParentForChildren(), isClean()); + externalAddress_ = null; + } + return externalAddressBuilder_; + } + + private java.lang.Object externalAddressId_ = ""; + /** + * + * + *
    +     * Required. The user-provided identifier of the `ExternalAddress` to be
    +     * created. This identifier must be unique among `ExternalAddress` 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 external_address_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The externalAddressId. + */ + public java.lang.String getExternalAddressId() { + java.lang.Object ref = externalAddressId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + externalAddressId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The user-provided identifier of the `ExternalAddress` to be
    +     * created. This identifier must be unique among `ExternalAddress` 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 external_address_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for externalAddressId. + */ + public com.google.protobuf.ByteString getExternalAddressIdBytes() { + java.lang.Object ref = externalAddressId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + externalAddressId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The user-provided identifier of the `ExternalAddress` to be
    +     * created. This identifier must be unique among `ExternalAddress` 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 external_address_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The externalAddressId to set. + * @return This builder for chaining. + */ + public Builder setExternalAddressId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + externalAddressId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The user-provided identifier of the `ExternalAddress` to be
    +     * created. This identifier must be unique among `ExternalAddress` 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 external_address_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearExternalAddressId() { + externalAddressId_ = getDefaultInstance().getExternalAddressId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The user-provided identifier of the `ExternalAddress` to be
    +     * created. This identifier must be unique among `ExternalAddress` 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 external_address_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for externalAddressId to set. + * @return This builder for chaining. + */ + public Builder setExternalAddressIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + externalAddressId_ = value; + bitField0_ |= 0x00000004; + 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 the 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 the 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 the 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 the 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 the 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.CreateExternalAddressRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.CreateExternalAddressRequest) + private static final com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest(); + } + + public static com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateExternalAddressRequest 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.CreateExternalAddressRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateExternalAddressRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateExternalAddressRequestOrBuilder.java new file mode 100644 index 000000000000..bda3eb7cfe3a --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateExternalAddressRequestOrBuilder.java @@ -0,0 +1,201 @@ +/* + * 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 CreateExternalAddressRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.CreateExternalAddressRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the private cloud
    +   * to create a new external IP address in.
    +   * 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`
    +   * 
    + * + * + * 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 cloud
    +   * to create a new external IP address in.
    +   * 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`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The initial description of a new external IP address.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress external_address = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the externalAddress field is set. + */ + boolean hasExternalAddress(); + /** + * + * + *
    +   * Required. The initial description of a new external IP address.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress external_address = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The externalAddress. + */ + com.google.cloud.vmwareengine.v1.ExternalAddress getExternalAddress(); + /** + * + * + *
    +   * Required. The initial description of a new external IP address.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress external_address = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmwareengine.v1.ExternalAddressOrBuilder getExternalAddressOrBuilder(); + + /** + * + * + *
    +   * Required. The user-provided identifier of the `ExternalAddress` to be
    +   * created. This identifier must be unique among `ExternalAddress` 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 external_address_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The externalAddressId. + */ + java.lang.String getExternalAddressId(); + /** + * + * + *
    +   * Required. The user-provided identifier of the `ExternalAddress` to be
    +   * created. This identifier must be unique among `ExternalAddress` 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 external_address_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for externalAddressId. + */ + com.google.protobuf.ByteString getExternalAddressIdBytes(); + + /** + * + * + *
    +   * 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 the 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 the 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/CreateLoggingServerRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateLoggingServerRequest.java new file mode 100644 index 000000000000..f7ce062a3526 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateLoggingServerRequest.java @@ -0,0 +1,1492 @@ +/* + * 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.CreateLoggingServer][google.cloud.vmwareengine.v1.VmwareEngine.CreateLoggingServer]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.CreateLoggingServerRequest} + */ +public final class CreateLoggingServerRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.CreateLoggingServerRequest) + CreateLoggingServerRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateLoggingServerRequest.newBuilder() to construct. + private CreateLoggingServerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateLoggingServerRequest() { + parent_ = ""; + loggingServerId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateLoggingServerRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateLoggingServerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateLoggingServerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest.class, + com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest.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 cloud
    +   * to create a new Logging Server in.
    +   * 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`
    +   * 
    + * + * + * 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 cloud
    +   * to create a new Logging Server in.
    +   * 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`
    +   * 
    + * + * + * 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 LOGGING_SERVER_FIELD_NUMBER = 2; + private com.google.cloud.vmwareengine.v1.LoggingServer loggingServer_; + /** + * + * + *
    +   * Required. The initial description of a new logging server.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer logging_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the loggingServer field is set. + */ + @java.lang.Override + public boolean hasLoggingServer() { + return loggingServer_ != null; + } + /** + * + * + *
    +   * Required. The initial description of a new logging server.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer logging_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The loggingServer. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.LoggingServer getLoggingServer() { + return loggingServer_ == null + ? com.google.cloud.vmwareengine.v1.LoggingServer.getDefaultInstance() + : loggingServer_; + } + /** + * + * + *
    +   * Required. The initial description of a new logging server.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer logging_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.LoggingServerOrBuilder getLoggingServerOrBuilder() { + return loggingServer_ == null + ? com.google.cloud.vmwareengine.v1.LoggingServer.getDefaultInstance() + : loggingServer_; + } + + public static final int LOGGING_SERVER_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object loggingServerId_ = ""; + /** + * + * + *
    +   * Required. The user-provided identifier of the `LoggingServer` to be
    +   * created. This identifier must be unique among `LoggingServer` 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 logging_server_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The loggingServerId. + */ + @java.lang.Override + public java.lang.String getLoggingServerId() { + java.lang.Object ref = loggingServerId_; + 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(); + loggingServerId_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The user-provided identifier of the `LoggingServer` to be
    +   * created. This identifier must be unique among `LoggingServer` 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 logging_server_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for loggingServerId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLoggingServerIdBytes() { + java.lang.Object ref = loggingServerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + loggingServerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 (loggingServer_ != null) { + output.writeMessage(2, getLoggingServer()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loggingServerId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, loggingServerId_); + } + 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 (loggingServer_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLoggingServer()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loggingServerId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, loggingServerId_); + } + 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.CreateLoggingServerRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest other = + (com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasLoggingServer() != other.hasLoggingServer()) return false; + if (hasLoggingServer()) { + if (!getLoggingServer().equals(other.getLoggingServer())) return false; + } + if (!getLoggingServerId().equals(other.getLoggingServerId())) 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(); + if (hasLoggingServer()) { + hash = (37 * hash) + LOGGING_SERVER_FIELD_NUMBER; + hash = (53 * hash) + getLoggingServer().hashCode(); + } + hash = (37 * hash) + LOGGING_SERVER_ID_FIELD_NUMBER; + hash = (53 * hash) + getLoggingServerId().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.CreateLoggingServerRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest 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.CreateLoggingServerRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest 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.CreateLoggingServerRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest 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.CreateLoggingServerRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest 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.CreateLoggingServerRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest 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.CreateLoggingServerRequest 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.CreateLoggingServerRequest 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.CreateLoggingServerRequest 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.CreateLoggingServer][google.cloud.vmwareengine.v1.VmwareEngine.CreateLoggingServer]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.CreateLoggingServerRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.CreateLoggingServerRequest) + com.google.cloud.vmwareengine.v1.CreateLoggingServerRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateLoggingServerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateLoggingServerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest.class, + com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + loggingServer_ = null; + if (loggingServerBuilder_ != null) { + loggingServerBuilder_.dispose(); + loggingServerBuilder_ = null; + } + loggingServerId_ = ""; + 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_CreateLoggingServerRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest build() { + com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest buildPartial() { + com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest result = + new com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.loggingServer_ = + loggingServerBuilder_ == null ? loggingServer_ : loggingServerBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.loggingServerId_ = loggingServerId_; + } + 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.CreateLoggingServerRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest other) { + if (other == com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasLoggingServer()) { + mergeLoggingServer(other.getLoggingServer()); + } + if (!other.getLoggingServerId().isEmpty()) { + loggingServerId_ = other.loggingServerId_; + bitField0_ |= 0x00000004; + onChanged(); + } + 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: + { + input.readMessage(getLoggingServerFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + loggingServerId_ = input.readStringRequireUtf8(); + 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 private cloud
    +     * to create a new Logging Server in.
    +     * 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`
    +     * 
    + * + * + * 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 cloud
    +     * to create a new Logging Server in.
    +     * 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`
    +     * 
    + * + * + * 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 cloud
    +     * to create a new Logging Server in.
    +     * 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`
    +     * 
    + * + * + * 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 cloud
    +     * to create a new Logging Server in.
    +     * 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`
    +     * 
    + * + * + * 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 cloud
    +     * to create a new Logging Server in.
    +     * 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`
    +     * 
    + * + * + * 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 com.google.cloud.vmwareengine.v1.LoggingServer loggingServer_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.LoggingServer, + com.google.cloud.vmwareengine.v1.LoggingServer.Builder, + com.google.cloud.vmwareengine.v1.LoggingServerOrBuilder> + loggingServerBuilder_; + /** + * + * + *
    +     * Required. The initial description of a new logging server.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer logging_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the loggingServer field is set. + */ + public boolean hasLoggingServer() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * Required. The initial description of a new logging server.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer logging_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The loggingServer. + */ + public com.google.cloud.vmwareengine.v1.LoggingServer getLoggingServer() { + if (loggingServerBuilder_ == null) { + return loggingServer_ == null + ? com.google.cloud.vmwareengine.v1.LoggingServer.getDefaultInstance() + : loggingServer_; + } else { + return loggingServerBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Required. The initial description of a new logging server.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer logging_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setLoggingServer(com.google.cloud.vmwareengine.v1.LoggingServer value) { + if (loggingServerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + loggingServer_ = value; + } else { + loggingServerBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The initial description of a new logging server.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer logging_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setLoggingServer( + com.google.cloud.vmwareengine.v1.LoggingServer.Builder builderForValue) { + if (loggingServerBuilder_ == null) { + loggingServer_ = builderForValue.build(); + } else { + loggingServerBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The initial description of a new logging server.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer logging_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeLoggingServer(com.google.cloud.vmwareengine.v1.LoggingServer value) { + if (loggingServerBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && loggingServer_ != null + && loggingServer_ + != com.google.cloud.vmwareengine.v1.LoggingServer.getDefaultInstance()) { + getLoggingServerBuilder().mergeFrom(value); + } else { + loggingServer_ = value; + } + } else { + loggingServerBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The initial description of a new logging server.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer logging_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearLoggingServer() { + bitField0_ = (bitField0_ & ~0x00000002); + loggingServer_ = null; + if (loggingServerBuilder_ != null) { + loggingServerBuilder_.dispose(); + loggingServerBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The initial description of a new logging server.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer logging_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.LoggingServer.Builder getLoggingServerBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getLoggingServerFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Required. The initial description of a new logging server.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer logging_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.LoggingServerOrBuilder getLoggingServerOrBuilder() { + if (loggingServerBuilder_ != null) { + return loggingServerBuilder_.getMessageOrBuilder(); + } else { + return loggingServer_ == null + ? com.google.cloud.vmwareengine.v1.LoggingServer.getDefaultInstance() + : loggingServer_; + } + } + /** + * + * + *
    +     * Required. The initial description of a new logging server.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer logging_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.LoggingServer, + com.google.cloud.vmwareengine.v1.LoggingServer.Builder, + com.google.cloud.vmwareengine.v1.LoggingServerOrBuilder> + getLoggingServerFieldBuilder() { + if (loggingServerBuilder_ == null) { + loggingServerBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.LoggingServer, + com.google.cloud.vmwareengine.v1.LoggingServer.Builder, + com.google.cloud.vmwareengine.v1.LoggingServerOrBuilder>( + getLoggingServer(), getParentForChildren(), isClean()); + loggingServer_ = null; + } + return loggingServerBuilder_; + } + + private java.lang.Object loggingServerId_ = ""; + /** + * + * + *
    +     * Required. The user-provided identifier of the `LoggingServer` to be
    +     * created. This identifier must be unique among `LoggingServer` 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 logging_server_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The loggingServerId. + */ + public java.lang.String getLoggingServerId() { + java.lang.Object ref = loggingServerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + loggingServerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The user-provided identifier of the `LoggingServer` to be
    +     * created. This identifier must be unique among `LoggingServer` 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 logging_server_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for loggingServerId. + */ + public com.google.protobuf.ByteString getLoggingServerIdBytes() { + java.lang.Object ref = loggingServerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + loggingServerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The user-provided identifier of the `LoggingServer` to be
    +     * created. This identifier must be unique among `LoggingServer` 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 logging_server_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The loggingServerId to set. + * @return This builder for chaining. + */ + public Builder setLoggingServerId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + loggingServerId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The user-provided identifier of the `LoggingServer` to be
    +     * created. This identifier must be unique among `LoggingServer` 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 logging_server_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearLoggingServerId() { + loggingServerId_ = getDefaultInstance().getLoggingServerId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The user-provided identifier of the `LoggingServer` to be
    +     * created. This identifier must be unique among `LoggingServer` 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 logging_server_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for loggingServerId to set. + * @return This builder for chaining. + */ + public Builder setLoggingServerIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + loggingServerId_ = value; + bitField0_ |= 0x00000004; + 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 = 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.CreateLoggingServerRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.CreateLoggingServerRequest) + private static final com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest(); + } + + public static com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateLoggingServerRequest 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.CreateLoggingServerRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateLoggingServerRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateLoggingServerRequestOrBuilder.java new file mode 100644 index 000000000000..61a88dedc531 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateLoggingServerRequestOrBuilder.java @@ -0,0 +1,201 @@ +/* + * 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 CreateLoggingServerRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.CreateLoggingServerRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the private cloud
    +   * to create a new Logging Server in.
    +   * 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`
    +   * 
    + * + * + * 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 cloud
    +   * to create a new Logging Server in.
    +   * 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`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The initial description of a new logging server.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer logging_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the loggingServer field is set. + */ + boolean hasLoggingServer(); + /** + * + * + *
    +   * Required. The initial description of a new logging server.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer logging_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The loggingServer. + */ + com.google.cloud.vmwareengine.v1.LoggingServer getLoggingServer(); + /** + * + * + *
    +   * Required. The initial description of a new logging server.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer logging_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmwareengine.v1.LoggingServerOrBuilder getLoggingServerOrBuilder(); + + /** + * + * + *
    +   * Required. The user-provided identifier of the `LoggingServer` to be
    +   * created. This identifier must be unique among `LoggingServer` 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 logging_server_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The loggingServerId. + */ + java.lang.String getLoggingServerId(); + /** + * + * + *
    +   * Required. The user-provided identifier of the `LoggingServer` to be
    +   * created. This identifier must be unique among `LoggingServer` 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 logging_server_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for loggingServerId. + */ + com.google.protobuf.ByteString getLoggingServerIdBytes(); + + /** + * + * + *
    +   * 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/CreateManagementDnsZoneBindingRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateManagementDnsZoneBindingRequest.java new file mode 100644 index 000000000000..193e7abc0d13 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateManagementDnsZoneBindingRequest.java @@ -0,0 +1,1530 @@ +/* + * 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.CreateManagementDnsZoneBindings][]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest} + */ +public final class CreateManagementDnsZoneBindingRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest) + CreateManagementDnsZoneBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateManagementDnsZoneBindingRequest.newBuilder() to construct. + private CreateManagementDnsZoneBindingRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateManagementDnsZoneBindingRequest() { + parent_ = ""; + managementDnsZoneBindingId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateManagementDnsZoneBindingRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateManagementDnsZoneBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateManagementDnsZoneBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest.class, + com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest.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 cloud
    +   * to create a new management DNS zone binding for.
    +   * 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`
    +   * 
    + * + * + * 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 cloud
    +   * to create a new management DNS zone binding for.
    +   * 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`
    +   * 
    + * + * + * 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 MANAGEMENT_DNS_ZONE_BINDING_FIELD_NUMBER = 2; + private com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding managementDnsZoneBinding_; + /** + * + * + *
    +   * Required. The initial values for a new management DNS zone binding.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the managementDnsZoneBinding field is set. + */ + @java.lang.Override + public boolean hasManagementDnsZoneBinding() { + return managementDnsZoneBinding_ != null; + } + /** + * + * + *
    +   * Required. The initial values for a new management DNS zone binding.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The managementDnsZoneBinding. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding getManagementDnsZoneBinding() { + return managementDnsZoneBinding_ == null + ? com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.getDefaultInstance() + : managementDnsZoneBinding_; + } + /** + * + * + *
    +   * Required. The initial values for a new management DNS zone binding.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ManagementDnsZoneBindingOrBuilder + getManagementDnsZoneBindingOrBuilder() { + return managementDnsZoneBinding_ == null + ? com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.getDefaultInstance() + : managementDnsZoneBinding_; + } + + public static final int MANAGEMENT_DNS_ZONE_BINDING_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object managementDnsZoneBindingId_ = ""; + /** + * + * + *
    +   * Required. The user-provided identifier of the `ManagementDnsZoneBinding`
    +   * resource to be created. This identifier must be unique among
    +   * `ManagementDnsZoneBinding` 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 management_dns_zone_binding_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The managementDnsZoneBindingId. + */ + @java.lang.Override + public java.lang.String getManagementDnsZoneBindingId() { + java.lang.Object ref = managementDnsZoneBindingId_; + 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(); + managementDnsZoneBindingId_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The user-provided identifier of the `ManagementDnsZoneBinding`
    +   * resource to be created. This identifier must be unique among
    +   * `ManagementDnsZoneBinding` 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 management_dns_zone_binding_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for managementDnsZoneBindingId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getManagementDnsZoneBindingIdBytes() { + java.lang.Object ref = managementDnsZoneBindingId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + managementDnsZoneBindingId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 the 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 the 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 (managementDnsZoneBinding_ != null) { + output.writeMessage(2, getManagementDnsZoneBinding()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(managementDnsZoneBindingId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, managementDnsZoneBindingId_); + } + 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 (managementDnsZoneBinding_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getManagementDnsZoneBinding()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(managementDnsZoneBindingId_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(3, managementDnsZoneBindingId_); + } + 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.CreateManagementDnsZoneBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest other = + (com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasManagementDnsZoneBinding() != other.hasManagementDnsZoneBinding()) return false; + if (hasManagementDnsZoneBinding()) { + if (!getManagementDnsZoneBinding().equals(other.getManagementDnsZoneBinding())) return false; + } + if (!getManagementDnsZoneBindingId().equals(other.getManagementDnsZoneBindingId())) + 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(); + if (hasManagementDnsZoneBinding()) { + hash = (37 * hash) + MANAGEMENT_DNS_ZONE_BINDING_FIELD_NUMBER; + hash = (53 * hash) + getManagementDnsZoneBinding().hashCode(); + } + hash = (37 * hash) + MANAGEMENT_DNS_ZONE_BINDING_ID_FIELD_NUMBER; + hash = (53 * hash) + getManagementDnsZoneBindingId().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.CreateManagementDnsZoneBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest 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.CreateManagementDnsZoneBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest 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.CreateManagementDnsZoneBindingRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest 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.CreateManagementDnsZoneBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest 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.CreateManagementDnsZoneBindingRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest + 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.CreateManagementDnsZoneBindingRequest 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.CreateManagementDnsZoneBindingRequest 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.CreateManagementDnsZoneBindingRequest 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.CreateManagementDnsZoneBindings][]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest) + com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateManagementDnsZoneBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateManagementDnsZoneBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest.class, + com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest.Builder.class); + } + + // Construct using + // com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + managementDnsZoneBinding_ = null; + if (managementDnsZoneBindingBuilder_ != null) { + managementDnsZoneBindingBuilder_.dispose(); + managementDnsZoneBindingBuilder_ = null; + } + managementDnsZoneBindingId_ = ""; + 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_CreateManagementDnsZoneBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest build() { + com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest buildPartial() { + com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest result = + new com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.managementDnsZoneBinding_ = + managementDnsZoneBindingBuilder_ == null + ? managementDnsZoneBinding_ + : managementDnsZoneBindingBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.managementDnsZoneBindingId_ = managementDnsZoneBindingId_; + } + 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.CreateManagementDnsZoneBindingRequest) { + return mergeFrom( + (com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasManagementDnsZoneBinding()) { + mergeManagementDnsZoneBinding(other.getManagementDnsZoneBinding()); + } + if (!other.getManagementDnsZoneBindingId().isEmpty()) { + managementDnsZoneBindingId_ = other.managementDnsZoneBindingId_; + bitField0_ |= 0x00000004; + onChanged(); + } + 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: + { + input.readMessage( + getManagementDnsZoneBindingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + managementDnsZoneBindingId_ = input.readStringRequireUtf8(); + 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 private cloud
    +     * to create a new management DNS zone binding for.
    +     * 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`
    +     * 
    + * + * + * 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 cloud
    +     * to create a new management DNS zone binding for.
    +     * 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`
    +     * 
    + * + * + * 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 cloud
    +     * to create a new management DNS zone binding for.
    +     * 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`
    +     * 
    + * + * + * 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 cloud
    +     * to create a new management DNS zone binding for.
    +     * 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`
    +     * 
    + * + * + * 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 cloud
    +     * to create a new management DNS zone binding for.
    +     * 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`
    +     * 
    + * + * + * 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 com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding managementDnsZoneBinding_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding, + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.Builder, + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBindingOrBuilder> + managementDnsZoneBindingBuilder_; + /** + * + * + *
    +     * Required. The initial values for a new management DNS zone binding.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the managementDnsZoneBinding field is set. + */ + public boolean hasManagementDnsZoneBinding() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * Required. The initial values for a new management DNS zone binding.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The managementDnsZoneBinding. + */ + public com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding getManagementDnsZoneBinding() { + if (managementDnsZoneBindingBuilder_ == null) { + return managementDnsZoneBinding_ == null + ? com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.getDefaultInstance() + : managementDnsZoneBinding_; + } else { + return managementDnsZoneBindingBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Required. The initial values for a new management DNS zone binding.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setManagementDnsZoneBinding( + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding value) { + if (managementDnsZoneBindingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + managementDnsZoneBinding_ = value; + } else { + managementDnsZoneBindingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The initial values for a new management DNS zone binding.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setManagementDnsZoneBinding( + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.Builder builderForValue) { + if (managementDnsZoneBindingBuilder_ == null) { + managementDnsZoneBinding_ = builderForValue.build(); + } else { + managementDnsZoneBindingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The initial values for a new management DNS zone binding.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeManagementDnsZoneBinding( + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding value) { + if (managementDnsZoneBindingBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && managementDnsZoneBinding_ != null + && managementDnsZoneBinding_ + != com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.getDefaultInstance()) { + getManagementDnsZoneBindingBuilder().mergeFrom(value); + } else { + managementDnsZoneBinding_ = value; + } + } else { + managementDnsZoneBindingBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The initial values for a new management DNS zone binding.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearManagementDnsZoneBinding() { + bitField0_ = (bitField0_ & ~0x00000002); + managementDnsZoneBinding_ = null; + if (managementDnsZoneBindingBuilder_ != null) { + managementDnsZoneBindingBuilder_.dispose(); + managementDnsZoneBindingBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The initial values for a new management DNS zone binding.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.Builder + getManagementDnsZoneBindingBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getManagementDnsZoneBindingFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Required. The initial values for a new management DNS zone binding.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.ManagementDnsZoneBindingOrBuilder + getManagementDnsZoneBindingOrBuilder() { + if (managementDnsZoneBindingBuilder_ != null) { + return managementDnsZoneBindingBuilder_.getMessageOrBuilder(); + } else { + return managementDnsZoneBinding_ == null + ? com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.getDefaultInstance() + : managementDnsZoneBinding_; + } + } + /** + * + * + *
    +     * Required. The initial values for a new management DNS zone binding.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding, + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.Builder, + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBindingOrBuilder> + getManagementDnsZoneBindingFieldBuilder() { + if (managementDnsZoneBindingBuilder_ == null) { + managementDnsZoneBindingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding, + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.Builder, + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBindingOrBuilder>( + getManagementDnsZoneBinding(), getParentForChildren(), isClean()); + managementDnsZoneBinding_ = null; + } + return managementDnsZoneBindingBuilder_; + } + + private java.lang.Object managementDnsZoneBindingId_ = ""; + /** + * + * + *
    +     * Required. The user-provided identifier of the `ManagementDnsZoneBinding`
    +     * resource to be created. This identifier must be unique among
    +     * `ManagementDnsZoneBinding` 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 management_dns_zone_binding_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The managementDnsZoneBindingId. + */ + public java.lang.String getManagementDnsZoneBindingId() { + java.lang.Object ref = managementDnsZoneBindingId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + managementDnsZoneBindingId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The user-provided identifier of the `ManagementDnsZoneBinding`
    +     * resource to be created. This identifier must be unique among
    +     * `ManagementDnsZoneBinding` 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 management_dns_zone_binding_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for managementDnsZoneBindingId. + */ + public com.google.protobuf.ByteString getManagementDnsZoneBindingIdBytes() { + java.lang.Object ref = managementDnsZoneBindingId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + managementDnsZoneBindingId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The user-provided identifier of the `ManagementDnsZoneBinding`
    +     * resource to be created. This identifier must be unique among
    +     * `ManagementDnsZoneBinding` 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 management_dns_zone_binding_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The managementDnsZoneBindingId to set. + * @return This builder for chaining. + */ + public Builder setManagementDnsZoneBindingId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + managementDnsZoneBindingId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The user-provided identifier of the `ManagementDnsZoneBinding`
    +     * resource to be created. This identifier must be unique among
    +     * `ManagementDnsZoneBinding` 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 management_dns_zone_binding_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearManagementDnsZoneBindingId() { + managementDnsZoneBindingId_ = getDefaultInstance().getManagementDnsZoneBindingId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The user-provided identifier of the `ManagementDnsZoneBinding`
    +     * resource to be created. This identifier must be unique among
    +     * `ManagementDnsZoneBinding` 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 management_dns_zone_binding_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for managementDnsZoneBindingId to set. + * @return This builder for chaining. + */ + public Builder setManagementDnsZoneBindingIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + managementDnsZoneBindingId_ = value; + bitField0_ |= 0x00000004; + 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 the 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 the 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 the 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 the 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 the 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.CreateManagementDnsZoneBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest) + private static final com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest(); + } + + public static com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateManagementDnsZoneBindingRequest 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.CreateManagementDnsZoneBindingRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateManagementDnsZoneBindingRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateManagementDnsZoneBindingRequestOrBuilder.java new file mode 100644 index 000000000000..d30d54ab6a25 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateManagementDnsZoneBindingRequestOrBuilder.java @@ -0,0 +1,206 @@ +/* + * 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 CreateManagementDnsZoneBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the private cloud
    +   * to create a new management DNS zone binding for.
    +   * 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`
    +   * 
    + * + * + * 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 cloud
    +   * to create a new management DNS zone binding for.
    +   * 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`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The initial values for a new management DNS zone binding.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the managementDnsZoneBinding field is set. + */ + boolean hasManagementDnsZoneBinding(); + /** + * + * + *
    +   * Required. The initial values for a new management DNS zone binding.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The managementDnsZoneBinding. + */ + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding getManagementDnsZoneBinding(); + /** + * + * + *
    +   * Required. The initial values for a new management DNS zone binding.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBindingOrBuilder + getManagementDnsZoneBindingOrBuilder(); + + /** + * + * + *
    +   * Required. The user-provided identifier of the `ManagementDnsZoneBinding`
    +   * resource to be created. This identifier must be unique among
    +   * `ManagementDnsZoneBinding` 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 management_dns_zone_binding_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The managementDnsZoneBindingId. + */ + java.lang.String getManagementDnsZoneBindingId(); + /** + * + * + *
    +   * Required. The user-provided identifier of the `ManagementDnsZoneBinding`
    +   * resource to be created. This identifier must be unique among
    +   * `ManagementDnsZoneBinding` 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 management_dns_zone_binding_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for managementDnsZoneBindingId. + */ + com.google.protobuf.ByteString getManagementDnsZoneBindingIdBytes(); + + /** + * + * + *
    +   * 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 the 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 the 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/CreateNetworkPeeringRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateNetworkPeeringRequest.java new file mode 100644 index 000000000000..7967ac41aba9 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateNetworkPeeringRequest.java @@ -0,0 +1,1489 @@ +/* + * 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.CreateNetworkPeering][google.cloud.vmwareengine.v1.VmwareEngine.CreateNetworkPeering]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest} + */ +public final class CreateNetworkPeeringRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest) + CreateNetworkPeeringRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateNetworkPeeringRequest.newBuilder() to construct. + private CreateNetworkPeeringRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateNetworkPeeringRequest() { + parent_ = ""; + networkPeeringId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateNetworkPeeringRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateNetworkPeeringRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateNetworkPeeringRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest.class, + com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest.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 network
    +   * peering in. This value is always `global`, because `NetworkPeering` is a
    +   * global 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/global`
    +   * 
    + * + * + * 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 network
    +   * peering in. This value is always `global`, because `NetworkPeering` is a
    +   * global 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/global`
    +   * 
    + * + * + * 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 NETWORK_PEERING_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object networkPeeringId_ = ""; + /** + * + * + *
    +   * Required. The user-provided identifier of the new `NetworkPeering`.
    +   * This identifier must be unique among `NetworkPeering` 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 network_peering_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The networkPeeringId. + */ + @java.lang.Override + public java.lang.String getNetworkPeeringId() { + java.lang.Object ref = networkPeeringId_; + 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(); + networkPeeringId_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The user-provided identifier of the new `NetworkPeering`.
    +   * This identifier must be unique among `NetworkPeering` 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 network_peering_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for networkPeeringId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkPeeringIdBytes() { + java.lang.Object ref = networkPeeringId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkPeeringId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_PEERING_FIELD_NUMBER = 3; + private com.google.cloud.vmwareengine.v1.NetworkPeering networkPeering_; + /** + * + * + *
    +   * Required. The initial description of the new network peering.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering network_peering = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the networkPeering field is set. + */ + @java.lang.Override + public boolean hasNetworkPeering() { + return networkPeering_ != null; + } + /** + * + * + *
    +   * Required. The initial description of the new network peering.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering network_peering = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The networkPeering. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkPeering getNetworkPeering() { + return networkPeering_ == null + ? com.google.cloud.vmwareengine.v1.NetworkPeering.getDefaultInstance() + : networkPeering_; + } + /** + * + * + *
    +   * Required. The initial description of the new network peering.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering network_peering = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkPeeringOrBuilder getNetworkPeeringOrBuilder() { + return networkPeering_ == null + ? com.google.cloud.vmwareengine.v1.NetworkPeering.getDefaultInstance() + : networkPeering_; + } + + 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(networkPeeringId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, networkPeeringId_); + } + if (networkPeering_ != null) { + output.writeMessage(3, getNetworkPeering()); + } + 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(networkPeeringId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, networkPeeringId_); + } + if (networkPeering_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getNetworkPeering()); + } + 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.CreateNetworkPeeringRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest other = + (com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getNetworkPeeringId().equals(other.getNetworkPeeringId())) return false; + if (hasNetworkPeering() != other.hasNetworkPeering()) return false; + if (hasNetworkPeering()) { + if (!getNetworkPeering().equals(other.getNetworkPeering())) 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) + NETWORK_PEERING_ID_FIELD_NUMBER; + hash = (53 * hash) + getNetworkPeeringId().hashCode(); + if (hasNetworkPeering()) { + hash = (37 * hash) + NETWORK_PEERING_FIELD_NUMBER; + hash = (53 * hash) + getNetworkPeering().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.CreateNetworkPeeringRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest 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.CreateNetworkPeeringRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest 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.CreateNetworkPeeringRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest 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.CreateNetworkPeeringRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest 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.CreateNetworkPeeringRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest 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.CreateNetworkPeeringRequest 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.CreateNetworkPeeringRequest 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.CreateNetworkPeeringRequest 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.CreateNetworkPeering][google.cloud.vmwareengine.v1.VmwareEngine.CreateNetworkPeering]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest) + com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateNetworkPeeringRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateNetworkPeeringRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest.class, + com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + networkPeeringId_ = ""; + networkPeering_ = null; + if (networkPeeringBuilder_ != null) { + networkPeeringBuilder_.dispose(); + networkPeeringBuilder_ = 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_CreateNetworkPeeringRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest build() { + com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest buildPartial() { + com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest result = + new com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.networkPeeringId_ = networkPeeringId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.networkPeering_ = + networkPeeringBuilder_ == null ? networkPeering_ : networkPeeringBuilder_.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.CreateNetworkPeeringRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getNetworkPeeringId().isEmpty()) { + networkPeeringId_ = other.networkPeeringId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasNetworkPeering()) { + mergeNetworkPeering(other.getNetworkPeering()); + } + 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: + { + networkPeeringId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getNetworkPeeringFieldBuilder().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 network
    +     * peering in. This value is always `global`, because `NetworkPeering` is a
    +     * global 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/global`
    +     * 
    + * + * + * 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 network
    +     * peering in. This value is always `global`, because `NetworkPeering` is a
    +     * global 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/global`
    +     * 
    + * + * + * 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 network
    +     * peering in. This value is always `global`, because `NetworkPeering` is a
    +     * global 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/global`
    +     * 
    + * + * + * 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 network
    +     * peering in. This value is always `global`, because `NetworkPeering` is a
    +     * global 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/global`
    +     * 
    + * + * + * 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 network
    +     * peering in. This value is always `global`, because `NetworkPeering` is a
    +     * global 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/global`
    +     * 
    + * + * + * 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 networkPeeringId_ = ""; + /** + * + * + *
    +     * Required. The user-provided identifier of the new `NetworkPeering`.
    +     * This identifier must be unique among `NetworkPeering` 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 network_peering_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The networkPeeringId. + */ + public java.lang.String getNetworkPeeringId() { + java.lang.Object ref = networkPeeringId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkPeeringId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The user-provided identifier of the new `NetworkPeering`.
    +     * This identifier must be unique among `NetworkPeering` 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 network_peering_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for networkPeeringId. + */ + public com.google.protobuf.ByteString getNetworkPeeringIdBytes() { + java.lang.Object ref = networkPeeringId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkPeeringId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The user-provided identifier of the new `NetworkPeering`.
    +     * This identifier must be unique among `NetworkPeering` 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 network_peering_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The networkPeeringId to set. + * @return This builder for chaining. + */ + public Builder setNetworkPeeringId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + networkPeeringId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The user-provided identifier of the new `NetworkPeering`.
    +     * This identifier must be unique among `NetworkPeering` 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 network_peering_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearNetworkPeeringId() { + networkPeeringId_ = getDefaultInstance().getNetworkPeeringId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The user-provided identifier of the new `NetworkPeering`.
    +     * This identifier must be unique among `NetworkPeering` 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 network_peering_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for networkPeeringId to set. + * @return This builder for chaining. + */ + public Builder setNetworkPeeringIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + networkPeeringId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.vmwareengine.v1.NetworkPeering networkPeering_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.NetworkPeering, + com.google.cloud.vmwareengine.v1.NetworkPeering.Builder, + com.google.cloud.vmwareengine.v1.NetworkPeeringOrBuilder> + networkPeeringBuilder_; + /** + * + * + *
    +     * Required. The initial description of the new network peering.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering network_peering = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the networkPeering field is set. + */ + public boolean hasNetworkPeering() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +     * Required. The initial description of the new network peering.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering network_peering = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The networkPeering. + */ + public com.google.cloud.vmwareengine.v1.NetworkPeering getNetworkPeering() { + if (networkPeeringBuilder_ == null) { + return networkPeering_ == null + ? com.google.cloud.vmwareengine.v1.NetworkPeering.getDefaultInstance() + : networkPeering_; + } else { + return networkPeeringBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Required. The initial description of the new network peering.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering network_peering = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setNetworkPeering(com.google.cloud.vmwareengine.v1.NetworkPeering value) { + if (networkPeeringBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkPeering_ = value; + } else { + networkPeeringBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The initial description of the new network peering.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering network_peering = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setNetworkPeering( + com.google.cloud.vmwareengine.v1.NetworkPeering.Builder builderForValue) { + if (networkPeeringBuilder_ == null) { + networkPeering_ = builderForValue.build(); + } else { + networkPeeringBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The initial description of the new network peering.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering network_peering = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeNetworkPeering(com.google.cloud.vmwareengine.v1.NetworkPeering value) { + if (networkPeeringBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && networkPeering_ != null + && networkPeering_ + != com.google.cloud.vmwareengine.v1.NetworkPeering.getDefaultInstance()) { + getNetworkPeeringBuilder().mergeFrom(value); + } else { + networkPeering_ = value; + } + } else { + networkPeeringBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The initial description of the new network peering.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering network_peering = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearNetworkPeering() { + bitField0_ = (bitField0_ & ~0x00000004); + networkPeering_ = null; + if (networkPeeringBuilder_ != null) { + networkPeeringBuilder_.dispose(); + networkPeeringBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The initial description of the new network peering.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering network_peering = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.NetworkPeering.Builder getNetworkPeeringBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getNetworkPeeringFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Required. The initial description of the new network peering.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering network_peering = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.NetworkPeeringOrBuilder getNetworkPeeringOrBuilder() { + if (networkPeeringBuilder_ != null) { + return networkPeeringBuilder_.getMessageOrBuilder(); + } else { + return networkPeering_ == null + ? com.google.cloud.vmwareengine.v1.NetworkPeering.getDefaultInstance() + : networkPeering_; + } + } + /** + * + * + *
    +     * Required. The initial description of the new network peering.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering network_peering = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.NetworkPeering, + com.google.cloud.vmwareengine.v1.NetworkPeering.Builder, + com.google.cloud.vmwareengine.v1.NetworkPeeringOrBuilder> + getNetworkPeeringFieldBuilder() { + if (networkPeeringBuilder_ == null) { + networkPeeringBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.NetworkPeering, + com.google.cloud.vmwareengine.v1.NetworkPeering.Builder, + com.google.cloud.vmwareengine.v1.NetworkPeeringOrBuilder>( + getNetworkPeering(), getParentForChildren(), isClean()); + networkPeering_ = null; + } + return networkPeeringBuilder_; + } + + 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.CreateNetworkPeeringRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest) + private static final com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest(); + } + + public static com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateNetworkPeeringRequest 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.CreateNetworkPeeringRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateNetworkPeeringRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateNetworkPeeringRequestOrBuilder.java new file mode 100644 index 000000000000..4a2e479f14da --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateNetworkPeeringRequestOrBuilder.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 CreateNetworkPeeringRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the location to create the new network
    +   * peering in. This value is always `global`, because `NetworkPeering` is a
    +   * global 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/global`
    +   * 
    + * + * + * 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 network
    +   * peering in. This value is always `global`, because `NetworkPeering` is a
    +   * global 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/global`
    +   * 
    + * + * + * 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 `NetworkPeering`.
    +   * This identifier must be unique among `NetworkPeering` 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 network_peering_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The networkPeeringId. + */ + java.lang.String getNetworkPeeringId(); + /** + * + * + *
    +   * Required. The user-provided identifier of the new `NetworkPeering`.
    +   * This identifier must be unique among `NetworkPeering` 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 network_peering_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for networkPeeringId. + */ + com.google.protobuf.ByteString getNetworkPeeringIdBytes(); + + /** + * + * + *
    +   * Required. The initial description of the new network peering.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering network_peering = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the networkPeering field is set. + */ + boolean hasNetworkPeering(); + /** + * + * + *
    +   * Required. The initial description of the new network peering.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering network_peering = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The networkPeering. + */ + com.google.cloud.vmwareengine.v1.NetworkPeering getNetworkPeering(); + /** + * + * + *
    +   * Required. The initial description of the new network peering.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering network_peering = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmwareengine.v1.NetworkPeeringOrBuilder getNetworkPeeringOrBuilder(); + + /** + * + * + *
    +   * 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/DeleteExternalAccessRuleRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteExternalAccessRuleRequest.java new file mode 100644 index 000000000000..4a0c4349b64f --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteExternalAccessRuleRequest.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.DeleteExternalAccessRule][google.cloud.vmwareengine.v1.VmwareEngine.DeleteExternalAccessRule]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest} + */ +public final class DeleteExternalAccessRuleRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest) + DeleteExternalAccessRuleRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteExternalAccessRuleRequest.newBuilder() to construct. + private DeleteExternalAccessRuleRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteExternalAccessRuleRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteExternalAccessRuleRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeleteExternalAccessRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeleteExternalAccessRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest.class, + com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. The resource name of the external access firewall rule to delete.
    +   * 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/networkPolicies/my-policy/externalAccessRules/my-rule`
    +   * 
    + * + * + * 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 external access firewall rule to delete.
    +   * 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/networkPolicies/my-policy/externalAccessRules/my-rule`
    +   * 
    + * + * + * 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 the 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 the 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.DeleteExternalAccessRuleRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest other = + (com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest) 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.DeleteExternalAccessRuleRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest 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.DeleteExternalAccessRuleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest 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.DeleteExternalAccessRuleRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest 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.DeleteExternalAccessRuleRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest 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.DeleteExternalAccessRuleRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest 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.DeleteExternalAccessRuleRequest 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.DeleteExternalAccessRuleRequest 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.DeleteExternalAccessRuleRequest 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.DeleteExternalAccessRule][google.cloud.vmwareengine.v1.VmwareEngine.DeleteExternalAccessRule]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest) + com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeleteExternalAccessRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeleteExternalAccessRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest.class, + com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest.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_DeleteExternalAccessRuleRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest build() { + com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest buildPartial() { + com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest result = + new com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest 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.DeleteExternalAccessRuleRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest.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 external access firewall rule to delete.
    +     * 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/networkPolicies/my-policy/externalAccessRules/my-rule`
    +     * 
    + * + * + * 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 external access firewall rule to delete.
    +     * 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/networkPolicies/my-policy/externalAccessRules/my-rule`
    +     * 
    + * + * + * 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 external access firewall rule to delete.
    +     * 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/networkPolicies/my-policy/externalAccessRules/my-rule`
    +     * 
    + * + * + * 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 external access firewall rule to delete.
    +     * 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/networkPolicies/my-policy/externalAccessRules/my-rule`
    +     * 
    + * + * + * 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 external access firewall rule to delete.
    +     * 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/networkPolicies/my-policy/externalAccessRules/my-rule`
    +     * 
    + * + * + * 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 the 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 the 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 the 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 the 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 the 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.DeleteExternalAccessRuleRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest) + private static final com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest(); + } + + public static com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteExternalAccessRuleRequest 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.DeleteExternalAccessRuleRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteExternalAccessRuleRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteExternalAccessRuleRequestOrBuilder.java new file mode 100644 index 000000000000..f3bc3012a55b --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteExternalAccessRuleRequestOrBuilder.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 DeleteExternalAccessRuleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the external access firewall rule to delete.
    +   * 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/networkPolicies/my-policy/externalAccessRules/my-rule`
    +   * 
    + * + * + * 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 external access firewall rule to delete.
    +   * 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/networkPolicies/my-policy/externalAccessRules/my-rule`
    +   * 
    + * + * + * 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 the 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 the 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/DeleteExternalAddressRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteExternalAddressRequest.java new file mode 100644 index 000000000000..b08f9f16be46 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteExternalAddressRequest.java @@ -0,0 +1,946 @@ +/* + * 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.DeleteExternalAddress][google.cloud.vmwareengine.v1.VmwareEngine.DeleteExternalAddress]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.DeleteExternalAddressRequest} + */ +public final class DeleteExternalAddressRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.DeleteExternalAddressRequest) + DeleteExternalAddressRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteExternalAddressRequest.newBuilder() to construct. + private DeleteExternalAddressRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteExternalAddressRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteExternalAddressRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeleteExternalAddressRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeleteExternalAddressRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest.class, + com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. The resource name of the external IP address to delete.
    +   * 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/externalAddresses/my-ip`
    +   * 
    + * + * + * 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 external IP address to delete.
    +   * 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/externalAddresses/my-ip`
    +   * 
    + * + * + * 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 the 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 the 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.DeleteExternalAddressRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest other = + (com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest) 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.DeleteExternalAddressRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest 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.DeleteExternalAddressRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest 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.DeleteExternalAddressRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest 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.DeleteExternalAddressRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest 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.DeleteExternalAddressRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest 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.DeleteExternalAddressRequest 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.DeleteExternalAddressRequest 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.DeleteExternalAddressRequest 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.DeleteExternalAddress][google.cloud.vmwareengine.v1.VmwareEngine.DeleteExternalAddress]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.DeleteExternalAddressRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.DeleteExternalAddressRequest) + com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeleteExternalAddressRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeleteExternalAddressRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest.class, + com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest.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_DeleteExternalAddressRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest build() { + com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest buildPartial() { + com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest result = + new com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest 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.DeleteExternalAddressRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest.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 external IP address to delete.
    +     * 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/externalAddresses/my-ip`
    +     * 
    + * + * + * 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 external IP address to delete.
    +     * 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/externalAddresses/my-ip`
    +     * 
    + * + * + * 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 external IP address to delete.
    +     * 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/externalAddresses/my-ip`
    +     * 
    + * + * + * 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 external IP address to delete.
    +     * 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/externalAddresses/my-ip`
    +     * 
    + * + * + * 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 external IP address to delete.
    +     * 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/externalAddresses/my-ip`
    +     * 
    + * + * + * 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 the 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 the 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 the 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 the 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 the 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.DeleteExternalAddressRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.DeleteExternalAddressRequest) + private static final com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest(); + } + + public static com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteExternalAddressRequest 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.DeleteExternalAddressRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteExternalAddressRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteExternalAddressRequestOrBuilder.java new file mode 100644 index 000000000000..8b9b6c89fca9 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteExternalAddressRequestOrBuilder.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 DeleteExternalAddressRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.DeleteExternalAddressRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the external IP address to delete.
    +   * 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/externalAddresses/my-ip`
    +   * 
    + * + * + * 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 external IP address to delete.
    +   * 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/externalAddresses/my-ip`
    +   * 
    + * + * + * 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 the 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 the 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/DeleteLoggingServerRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteLoggingServerRequest.java new file mode 100644 index 000000000000..f10b2c7797ce --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteLoggingServerRequest.java @@ -0,0 +1,942 @@ +/* + * 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.DeleteLoggingServer][google.cloud.vmwareengine.v1.VmwareEngine.DeleteLoggingServer]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.DeleteLoggingServerRequest} + */ +public final class DeleteLoggingServerRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.DeleteLoggingServerRequest) + DeleteLoggingServerRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteLoggingServerRequest.newBuilder() to construct. + private DeleteLoggingServerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteLoggingServerRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteLoggingServerRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeleteLoggingServerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeleteLoggingServerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest.class, + com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. The resource name of the logging server to delete.
    +   * 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/loggingServers/my-logging-server`
    +   * 
    + * + * + * 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 logging server to delete.
    +   * 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/loggingServers/my-logging-server`
    +   * 
    + * + * + * 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.DeleteLoggingServerRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest other = + (com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest) 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.DeleteLoggingServerRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest 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.DeleteLoggingServerRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest 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.DeleteLoggingServerRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest 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.DeleteLoggingServerRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest 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.DeleteLoggingServerRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest 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.DeleteLoggingServerRequest 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.DeleteLoggingServerRequest 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.DeleteLoggingServerRequest 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.DeleteLoggingServer][google.cloud.vmwareengine.v1.VmwareEngine.DeleteLoggingServer]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.DeleteLoggingServerRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.DeleteLoggingServerRequest) + com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeleteLoggingServerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeleteLoggingServerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest.class, + com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest.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_DeleteLoggingServerRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest build() { + com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest buildPartial() { + com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest result = + new com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest 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.DeleteLoggingServerRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest other) { + if (other == com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest.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 logging server to delete.
    +     * 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/loggingServers/my-logging-server`
    +     * 
    + * + * + * 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 logging server to delete.
    +     * 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/loggingServers/my-logging-server`
    +     * 
    + * + * + * 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 logging server to delete.
    +     * 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/loggingServers/my-logging-server`
    +     * 
    + * + * + * 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 logging server to delete.
    +     * 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/loggingServers/my-logging-server`
    +     * 
    + * + * + * 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 logging server to delete.
    +     * 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/loggingServers/my-logging-server`
    +     * 
    + * + * + * 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.DeleteLoggingServerRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.DeleteLoggingServerRequest) + private static final com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest(); + } + + public static com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteLoggingServerRequest 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.DeleteLoggingServerRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteLoggingServerRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteLoggingServerRequestOrBuilder.java new file mode 100644 index 000000000000..46d2231719ca --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteLoggingServerRequestOrBuilder.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 DeleteLoggingServerRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.DeleteLoggingServerRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the logging server to delete.
    +   * 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/loggingServers/my-logging-server`
    +   * 
    + * + * + * 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 logging server to delete.
    +   * 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/loggingServers/my-logging-server`
    +   * 
    + * + * + * 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/DeleteManagementDnsZoneBindingRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteManagementDnsZoneBindingRequest.java new file mode 100644 index 000000000000..1503822881e7 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteManagementDnsZoneBindingRequest.java @@ -0,0 +1,956 @@ +/* + * 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.DeleteManagementDnsZoneBinding][google.cloud.vmwareengine.v1.VmwareEngine.DeleteManagementDnsZoneBinding]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest} + */ +public final class DeleteManagementDnsZoneBindingRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest) + DeleteManagementDnsZoneBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteManagementDnsZoneBindingRequest.newBuilder() to construct. + private DeleteManagementDnsZoneBindingRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteManagementDnsZoneBindingRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteManagementDnsZoneBindingRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeleteManagementDnsZoneBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeleteManagementDnsZoneBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest.class, + com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. The resource name of the management DNS zone binding to delete.
    +   * 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +   * 
    + * + * + * 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 management DNS zone binding to delete.
    +   * 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +   * 
    + * + * + * 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 the 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 the 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.DeleteManagementDnsZoneBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest other = + (com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest) 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.DeleteManagementDnsZoneBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest 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.DeleteManagementDnsZoneBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest 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.DeleteManagementDnsZoneBindingRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest 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.DeleteManagementDnsZoneBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest 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.DeleteManagementDnsZoneBindingRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest + 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.DeleteManagementDnsZoneBindingRequest 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.DeleteManagementDnsZoneBindingRequest 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.DeleteManagementDnsZoneBindingRequest 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.DeleteManagementDnsZoneBinding][google.cloud.vmwareengine.v1.VmwareEngine.DeleteManagementDnsZoneBinding]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest) + com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeleteManagementDnsZoneBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeleteManagementDnsZoneBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest.class, + com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest.Builder.class); + } + + // Construct using + // com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest.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_DeleteManagementDnsZoneBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest build() { + com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest buildPartial() { + com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest result = + new com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest 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.DeleteManagementDnsZoneBindingRequest) { + return mergeFrom( + (com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest + .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 management DNS zone binding to delete.
    +     * 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +     * 
    + * + * + * 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 management DNS zone binding to delete.
    +     * 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +     * 
    + * + * + * 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 management DNS zone binding to delete.
    +     * 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +     * 
    + * + * + * 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 management DNS zone binding to delete.
    +     * 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +     * 
    + * + * + * 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 management DNS zone binding to delete.
    +     * 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +     * 
    + * + * + * 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 the 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 the 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 the 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 the 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 the 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.DeleteManagementDnsZoneBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest) + private static final com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest(); + } + + public static com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteManagementDnsZoneBindingRequest 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.DeleteManagementDnsZoneBindingRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteManagementDnsZoneBindingRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteManagementDnsZoneBindingRequestOrBuilder.java new file mode 100644 index 000000000000..5dbc800362bf --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteManagementDnsZoneBindingRequestOrBuilder.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 DeleteManagementDnsZoneBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the management DNS zone binding to delete.
    +   * 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +   * 
    + * + * + * 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 management DNS zone binding to delete.
    +   * 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +   * 
    + * + * + * 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 the 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 the 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/DeleteNetworkPeeringRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteNetworkPeeringRequest.java new file mode 100644 index 000000000000..c92d26cac995 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteNetworkPeeringRequest.java @@ -0,0 +1,946 @@ +/* + * 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.DeleteNetworkPeering][google.cloud.vmwareengine.v1.VmwareEngine.DeleteNetworkPeering]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest} + */ +public final class DeleteNetworkPeeringRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest) + DeleteNetworkPeeringRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteNetworkPeeringRequest.newBuilder() to construct. + private DeleteNetworkPeeringRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteNetworkPeeringRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteNetworkPeeringRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeleteNetworkPeeringRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeleteNetworkPeeringRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest.class, + com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. The resource name of the network peering 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/global/networkPeerings/my-peering`
    +   * 
    + * + * + * 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 network peering 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/global/networkPeerings/my-peering`
    +   * 
    + * + * + * 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.DeleteNetworkPeeringRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest other = + (com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest) 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.DeleteNetworkPeeringRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest 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.DeleteNetworkPeeringRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest 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.DeleteNetworkPeeringRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest 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.DeleteNetworkPeeringRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest 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.DeleteNetworkPeeringRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest 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.DeleteNetworkPeeringRequest 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.DeleteNetworkPeeringRequest 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.DeleteNetworkPeeringRequest 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.DeleteNetworkPeering][google.cloud.vmwareengine.v1.VmwareEngine.DeleteNetworkPeering]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest) + com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeleteNetworkPeeringRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeleteNetworkPeeringRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest.class, + com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest.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_DeleteNetworkPeeringRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest build() { + com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest buildPartial() { + com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest result = + new com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest 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.DeleteNetworkPeeringRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest.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 network peering 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/global/networkPeerings/my-peering`
    +     * 
    + * + * + * 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 network peering 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/global/networkPeerings/my-peering`
    +     * 
    + * + * + * 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 network peering 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/global/networkPeerings/my-peering`
    +     * 
    + * + * + * 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 network peering 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/global/networkPeerings/my-peering`
    +     * 
    + * + * + * 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 network peering 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/global/networkPeerings/my-peering`
    +     * 
    + * + * + * 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.DeleteNetworkPeeringRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest) + private static final com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest(); + } + + public static com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteNetworkPeeringRequest 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.DeleteNetworkPeeringRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteNetworkPeeringRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteNetworkPeeringRequestOrBuilder.java new file mode 100644 index 000000000000..609bd0c4ce2d --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteNetworkPeeringRequestOrBuilder.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 DeleteNetworkPeeringRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the network peering 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/global/networkPeerings/my-peering`
    +   * 
    + * + * + * 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 network peering 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/global/networkPeerings/my-peering`
    +   * 
    + * + * + * 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/DnsBindPermission.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DnsBindPermission.java new file mode 100644 index 000000000000..c0b0b4c9ef48 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DnsBindPermission.java @@ -0,0 +1,1232 @@ +/* + * 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; + +/** + * + * + *
    + * DnsBindPermission resource that contains the accounts having the consumer DNS
    + * bind permission on the corresponding intranet VPC of the consumer project.
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.DnsBindPermission} + */ +public final class DnsBindPermission extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.DnsBindPermission) + DnsBindPermissionOrBuilder { + private static final long serialVersionUID = 0L; + // Use DnsBindPermission.newBuilder() to construct. + private DnsBindPermission(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DnsBindPermission() { + name_ = ""; + principals_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DnsBindPermission(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_DnsBindPermission_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_DnsBindPermission_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.DnsBindPermission.class, + com.google.cloud.vmwareengine.v1.DnsBindPermission.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. Output only. The name of the resource which stores the
    +   * users/service accounts having the permission to bind to the corresponding
    +   * intranet VPC of the consumer project. DnsBindPermission is a global
    +   * resource and location can only be global. Resource names are schemeless
    +   * URIs that follow the conventions in
    +   * https://cloud.google.com/apis/design/resource_names. For example:
    +   * `projects/my-project/locations/global/dnsBindPermission`
    +   * 
    + * + * 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; + } + } + /** + * + * + *
    +   * Required. Output only. The name of the resource which stores the
    +   * users/service accounts having the permission to bind to the corresponding
    +   * intranet VPC of the consumer project. DnsBindPermission is a global
    +   * resource and location can only be global. Resource names are schemeless
    +   * URIs that follow the conventions in
    +   * https://cloud.google.com/apis/design/resource_names. For example:
    +   * `projects/my-project/locations/global/dnsBindPermission`
    +   * 
    + * + * 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 PRINCIPALS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List principals_; + /** + * + * + *
    +   * Output only. Users/Service accounts which have access for binding on the
    +   * intranet VPC project corresponding to the consumer project.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.Principal principals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getPrincipalsList() { + return principals_; + } + /** + * + * + *
    +   * Output only. Users/Service accounts which have access for binding on the
    +   * intranet VPC project corresponding to the consumer project.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.Principal principals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getPrincipalsOrBuilderList() { + return principals_; + } + /** + * + * + *
    +   * Output only. Users/Service accounts which have access for binding on the
    +   * intranet VPC project corresponding to the consumer project.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.Principal principals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getPrincipalsCount() { + return principals_.size(); + } + /** + * + * + *
    +   * Output only. Users/Service accounts which have access for binding on the
    +   * intranet VPC project corresponding to the consumer project.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.Principal principals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Principal getPrincipals(int index) { + return principals_.get(index); + } + /** + * + * + *
    +   * Output only. Users/Service accounts which have access for binding on the
    +   * intranet VPC project corresponding to the consumer project.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.Principal principals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrincipalOrBuilder getPrincipalsOrBuilder(int index) { + return principals_.get(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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + for (int i = 0; i < principals_.size(); i++) { + output.writeMessage(2, principals_.get(i)); + } + 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_); + } + for (int i = 0; i < principals_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, principals_.get(i)); + } + 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.DnsBindPermission)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.DnsBindPermission other = + (com.google.cloud.vmwareengine.v1.DnsBindPermission) obj; + + if (!getName().equals(other.getName())) return false; + if (!getPrincipalsList().equals(other.getPrincipalsList())) 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 (getPrincipalsCount() > 0) { + hash = (37 * hash) + PRINCIPALS_FIELD_NUMBER; + hash = (53 * hash) + getPrincipalsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.DnsBindPermission parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DnsBindPermission 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.DnsBindPermission parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DnsBindPermission 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.DnsBindPermission parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DnsBindPermission 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.DnsBindPermission parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.DnsBindPermission 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.DnsBindPermission parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.DnsBindPermission 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.DnsBindPermission 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.DnsBindPermission 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.DnsBindPermission 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; + } + /** + * + * + *
    +   * DnsBindPermission resource that contains the accounts having the consumer DNS
    +   * bind permission on the corresponding intranet VPC of the consumer project.
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.DnsBindPermission} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.DnsBindPermission) + com.google.cloud.vmwareengine.v1.DnsBindPermissionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_DnsBindPermission_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_DnsBindPermission_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.DnsBindPermission.class, + com.google.cloud.vmwareengine.v1.DnsBindPermission.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.DnsBindPermission.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + if (principalsBuilder_ == null) { + principals_ = java.util.Collections.emptyList(); + } else { + principals_ = null; + principalsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + 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_DnsBindPermission_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DnsBindPermission getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.DnsBindPermission.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DnsBindPermission build() { + com.google.cloud.vmwareengine.v1.DnsBindPermission result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DnsBindPermission buildPartial() { + com.google.cloud.vmwareengine.v1.DnsBindPermission result = + new com.google.cloud.vmwareengine.v1.DnsBindPermission(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.vmwareengine.v1.DnsBindPermission result) { + if (principalsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + principals_ = java.util.Collections.unmodifiableList(principals_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.principals_ = principals_; + } else { + result.principals_ = principalsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.vmwareengine.v1.DnsBindPermission 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.DnsBindPermission) { + return mergeFrom((com.google.cloud.vmwareengine.v1.DnsBindPermission) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.DnsBindPermission other) { + if (other == com.google.cloud.vmwareengine.v1.DnsBindPermission.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (principalsBuilder_ == null) { + if (!other.principals_.isEmpty()) { + if (principals_.isEmpty()) { + principals_ = other.principals_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensurePrincipalsIsMutable(); + principals_.addAll(other.principals_); + } + onChanged(); + } + } else { + if (!other.principals_.isEmpty()) { + if (principalsBuilder_.isEmpty()) { + principalsBuilder_.dispose(); + principalsBuilder_ = null; + principals_ = other.principals_; + bitField0_ = (bitField0_ & ~0x00000002); + principalsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPrincipalsFieldBuilder() + : null; + } else { + principalsBuilder_.addAllMessages(other.principals_); + } + } + } + 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: + { + com.google.cloud.vmwareengine.v1.Principal m = + input.readMessage( + com.google.cloud.vmwareengine.v1.Principal.parser(), extensionRegistry); + if (principalsBuilder_ == null) { + ensurePrincipalsIsMutable(); + principals_.add(m); + } else { + principalsBuilder_.addMessage(m); + } + 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. Output only. The name of the resource which stores the
    +     * users/service accounts having the permission to bind to the corresponding
    +     * intranet VPC of the consumer project. DnsBindPermission is a global
    +     * resource and location can only be global. Resource names are schemeless
    +     * URIs that follow the conventions in
    +     * https://cloud.google.com/apis/design/resource_names. For example:
    +     * `projects/my-project/locations/global/dnsBindPermission`
    +     * 
    + * + * 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; + } + } + /** + * + * + *
    +     * Required. Output only. The name of the resource which stores the
    +     * users/service accounts having the permission to bind to the corresponding
    +     * intranet VPC of the consumer project. DnsBindPermission is a global
    +     * resource and location can only be global. Resource names are schemeless
    +     * URIs that follow the conventions in
    +     * https://cloud.google.com/apis/design/resource_names. For example:
    +     * `projects/my-project/locations/global/dnsBindPermission`
    +     * 
    + * + * 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; + } + } + /** + * + * + *
    +     * Required. Output only. The name of the resource which stores the
    +     * users/service accounts having the permission to bind to the corresponding
    +     * intranet VPC of the consumer project. DnsBindPermission is a global
    +     * resource and location can only be global. Resource names are schemeless
    +     * URIs that follow the conventions in
    +     * https://cloud.google.com/apis/design/resource_names. For example:
    +     * `projects/my-project/locations/global/dnsBindPermission`
    +     * 
    + * + * 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; + } + /** + * + * + *
    +     * Required. Output only. The name of the resource which stores the
    +     * users/service accounts having the permission to bind to the corresponding
    +     * intranet VPC of the consumer project. DnsBindPermission is a global
    +     * resource and location can only be global. Resource names are schemeless
    +     * URIs that follow the conventions in
    +     * https://cloud.google.com/apis/design/resource_names. For example:
    +     * `projects/my-project/locations/global/dnsBindPermission`
    +     * 
    + * + * 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; + } + /** + * + * + *
    +     * Required. Output only. The name of the resource which stores the
    +     * users/service accounts having the permission to bind to the corresponding
    +     * intranet VPC of the consumer project. DnsBindPermission is a global
    +     * resource and location can only be global. Resource names are schemeless
    +     * URIs that follow the conventions in
    +     * https://cloud.google.com/apis/design/resource_names. For example:
    +     * `projects/my-project/locations/global/dnsBindPermission`
    +     * 
    + * + * 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 java.util.List principals_ = + java.util.Collections.emptyList(); + + private void ensurePrincipalsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + principals_ = + new java.util.ArrayList(principals_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Principal, + com.google.cloud.vmwareengine.v1.Principal.Builder, + com.google.cloud.vmwareengine.v1.PrincipalOrBuilder> + principalsBuilder_; + + /** + * + * + *
    +     * Output only. Users/Service accounts which have access for binding on the
    +     * intranet VPC project corresponding to the consumer project.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.Principal principals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getPrincipalsList() { + if (principalsBuilder_ == null) { + return java.util.Collections.unmodifiableList(principals_); + } else { + return principalsBuilder_.getMessageList(); + } + } + /** + * + * + *
    +     * Output only. Users/Service accounts which have access for binding on the
    +     * intranet VPC project corresponding to the consumer project.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.Principal principals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getPrincipalsCount() { + if (principalsBuilder_ == null) { + return principals_.size(); + } else { + return principalsBuilder_.getCount(); + } + } + /** + * + * + *
    +     * Output only. Users/Service accounts which have access for binding on the
    +     * intranet VPC project corresponding to the consumer project.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.Principal principals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmwareengine.v1.Principal getPrincipals(int index) { + if (principalsBuilder_ == null) { + return principals_.get(index); + } else { + return principalsBuilder_.getMessage(index); + } + } + /** + * + * + *
    +     * Output only. Users/Service accounts which have access for binding on the
    +     * intranet VPC project corresponding to the consumer project.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.Principal principals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPrincipals(int index, com.google.cloud.vmwareengine.v1.Principal value) { + if (principalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrincipalsIsMutable(); + principals_.set(index, value); + onChanged(); + } else { + principalsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * Output only. Users/Service accounts which have access for binding on the
    +     * intranet VPC project corresponding to the consumer project.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.Principal principals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPrincipals( + int index, com.google.cloud.vmwareengine.v1.Principal.Builder builderForValue) { + if (principalsBuilder_ == null) { + ensurePrincipalsIsMutable(); + principals_.set(index, builderForValue.build()); + onChanged(); + } else { + principalsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Output only. Users/Service accounts which have access for binding on the
    +     * intranet VPC project corresponding to the consumer project.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.Principal principals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPrincipals(com.google.cloud.vmwareengine.v1.Principal value) { + if (principalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrincipalsIsMutable(); + principals_.add(value); + onChanged(); + } else { + principalsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +     * Output only. Users/Service accounts which have access for binding on the
    +     * intranet VPC project corresponding to the consumer project.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.Principal principals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPrincipals(int index, com.google.cloud.vmwareengine.v1.Principal value) { + if (principalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrincipalsIsMutable(); + principals_.add(index, value); + onChanged(); + } else { + principalsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * Output only. Users/Service accounts which have access for binding on the
    +     * intranet VPC project corresponding to the consumer project.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.Principal principals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPrincipals( + com.google.cloud.vmwareengine.v1.Principal.Builder builderForValue) { + if (principalsBuilder_ == null) { + ensurePrincipalsIsMutable(); + principals_.add(builderForValue.build()); + onChanged(); + } else { + principalsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Output only. Users/Service accounts which have access for binding on the
    +     * intranet VPC project corresponding to the consumer project.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.Principal principals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPrincipals( + int index, com.google.cloud.vmwareengine.v1.Principal.Builder builderForValue) { + if (principalsBuilder_ == null) { + ensurePrincipalsIsMutable(); + principals_.add(index, builderForValue.build()); + onChanged(); + } else { + principalsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Output only. Users/Service accounts which have access for binding on the
    +     * intranet VPC project corresponding to the consumer project.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.Principal principals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllPrincipals( + java.lang.Iterable values) { + if (principalsBuilder_ == null) { + ensurePrincipalsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, principals_); + onChanged(); + } else { + principalsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +     * Output only. Users/Service accounts which have access for binding on the
    +     * intranet VPC project corresponding to the consumer project.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.Principal principals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPrincipals() { + if (principalsBuilder_ == null) { + principals_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + principalsBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Output only. Users/Service accounts which have access for binding on the
    +     * intranet VPC project corresponding to the consumer project.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.Principal principals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removePrincipals(int index) { + if (principalsBuilder_ == null) { + ensurePrincipalsIsMutable(); + principals_.remove(index); + onChanged(); + } else { + principalsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +     * Output only. Users/Service accounts which have access for binding on the
    +     * intranet VPC project corresponding to the consumer project.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.Principal principals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmwareengine.v1.Principal.Builder getPrincipalsBuilder(int index) { + return getPrincipalsFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +     * Output only. Users/Service accounts which have access for binding on the
    +     * intranet VPC project corresponding to the consumer project.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.Principal principals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmwareengine.v1.PrincipalOrBuilder getPrincipalsOrBuilder(int index) { + if (principalsBuilder_ == null) { + return principals_.get(index); + } else { + return principalsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +     * Output only. Users/Service accounts which have access for binding on the
    +     * intranet VPC project corresponding to the consumer project.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.Principal principals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getPrincipalsOrBuilderList() { + if (principalsBuilder_ != null) { + return principalsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(principals_); + } + } + /** + * + * + *
    +     * Output only. Users/Service accounts which have access for binding on the
    +     * intranet VPC project corresponding to the consumer project.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.Principal principals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmwareengine.v1.Principal.Builder addPrincipalsBuilder() { + return getPrincipalsFieldBuilder() + .addBuilder(com.google.cloud.vmwareengine.v1.Principal.getDefaultInstance()); + } + /** + * + * + *
    +     * Output only. Users/Service accounts which have access for binding on the
    +     * intranet VPC project corresponding to the consumer project.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.Principal principals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmwareengine.v1.Principal.Builder addPrincipalsBuilder(int index) { + return getPrincipalsFieldBuilder() + .addBuilder(index, com.google.cloud.vmwareengine.v1.Principal.getDefaultInstance()); + } + /** + * + * + *
    +     * Output only. Users/Service accounts which have access for binding on the
    +     * intranet VPC project corresponding to the consumer project.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.Principal principals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getPrincipalsBuilderList() { + return getPrincipalsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Principal, + com.google.cloud.vmwareengine.v1.Principal.Builder, + com.google.cloud.vmwareengine.v1.PrincipalOrBuilder> + getPrincipalsFieldBuilder() { + if (principalsBuilder_ == null) { + principalsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Principal, + com.google.cloud.vmwareengine.v1.Principal.Builder, + com.google.cloud.vmwareengine.v1.PrincipalOrBuilder>( + principals_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + principals_ = null; + } + return principalsBuilder_; + } + + @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.DnsBindPermission) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.DnsBindPermission) + private static final com.google.cloud.vmwareengine.v1.DnsBindPermission DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.DnsBindPermission(); + } + + public static com.google.cloud.vmwareengine.v1.DnsBindPermission getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DnsBindPermission 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.DnsBindPermission getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DnsBindPermissionName.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DnsBindPermissionName.java new file mode 100644 index 000000000000..4aa729395ff0 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DnsBindPermissionName.java @@ -0,0 +1,193 @@ +/* + * 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 DnsBindPermissionName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/dnsBindPermission"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + + @Deprecated + protected DnsBindPermissionName() { + project = null; + location = null; + } + + private DnsBindPermissionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DnsBindPermissionName of(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build(); + } + + public static String format(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build().toString(); + } + + public static DnsBindPermissionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION.validatedMatch( + formattedString, "DnsBindPermissionName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location")); + } + + 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 (DnsBindPermissionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION.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); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION.instantiate("project", project, "location", location); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + DnsBindPermissionName that = ((DnsBindPermissionName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + return h; + } + + /** Builder for projects/{project}/locations/{location}/dnsBindPermission. */ + public static class Builder { + private String project; + private String location; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + private Builder(DnsBindPermissionName dnsBindPermissionName) { + this.project = dnsBindPermissionName.project; + this.location = dnsBindPermissionName.location; + } + + public DnsBindPermissionName build() { + return new DnsBindPermissionName(this); + } + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DnsBindPermissionOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DnsBindPermissionOrBuilder.java new file mode 100644 index 000000000000..b8b4cd6fd6c8 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DnsBindPermissionOrBuilder.java @@ -0,0 +1,129 @@ +/* + * 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 DnsBindPermissionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.DnsBindPermission) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Output only. The name of the resource which stores the
    +   * users/service accounts having the permission to bind to the corresponding
    +   * intranet VPC of the consumer project. DnsBindPermission is a global
    +   * resource and location can only be global. Resource names are schemeless
    +   * URIs that follow the conventions in
    +   * https://cloud.google.com/apis/design/resource_names. For example:
    +   * `projects/my-project/locations/global/dnsBindPermission`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. Output only. The name of the resource which stores the
    +   * users/service accounts having the permission to bind to the corresponding
    +   * intranet VPC of the consumer project. DnsBindPermission is a global
    +   * resource and location can only be global. Resource names are schemeless
    +   * URIs that follow the conventions in
    +   * https://cloud.google.com/apis/design/resource_names. For example:
    +   * `projects/my-project/locations/global/dnsBindPermission`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Output only. Users/Service accounts which have access for binding on the
    +   * intranet VPC project corresponding to the consumer project.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.Principal principals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getPrincipalsList(); + /** + * + * + *
    +   * Output only. Users/Service accounts which have access for binding on the
    +   * intranet VPC project corresponding to the consumer project.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.Principal principals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmwareengine.v1.Principal getPrincipals(int index); + /** + * + * + *
    +   * Output only. Users/Service accounts which have access for binding on the
    +   * intranet VPC project corresponding to the consumer project.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.Principal principals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getPrincipalsCount(); + /** + * + * + *
    +   * Output only. Users/Service accounts which have access for binding on the
    +   * intranet VPC project corresponding to the consumer project.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.Principal principals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getPrincipalsOrBuilderList(); + /** + * + * + *
    +   * Output only. Users/Service accounts which have access for binding on the
    +   * intranet VPC project corresponding to the consumer project.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.Principal principals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmwareengine.v1.PrincipalOrBuilder getPrincipalsOrBuilder(int index); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DnsForwarding.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DnsForwarding.java new file mode 100644 index 000000000000..489bd3ea1718 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DnsForwarding.java @@ -0,0 +1,2766 @@ +/* + * 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; + +/** + * + * + *
    + * DNS forwarding config.
    + * This config defines a list of domain to name server mappings,
    + * and is attached to the private cloud for custom domain resolution.
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.DnsForwarding} + */ +public final class DnsForwarding extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.DnsForwarding) + DnsForwardingOrBuilder { + private static final long serialVersionUID = 0L; + // Use DnsForwarding.newBuilder() to construct. + private DnsForwarding(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DnsForwarding() { + name_ = ""; + forwardingRules_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DnsForwarding(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_DnsForwarding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_DnsForwarding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.DnsForwarding.class, + com.google.cloud.vmwareengine.v1.DnsForwarding.Builder.class); + } + + public interface ForwardingRuleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Required. Domain used to resolve a `name_servers` list.
    +     * 
    + * + * string domain = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The domain. + */ + java.lang.String getDomain(); + /** + * + * + *
    +     * Required. Domain used to resolve a `name_servers` list.
    +     * 
    + * + * string domain = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for domain. + */ + com.google.protobuf.ByteString getDomainBytes(); + + /** + * + * + *
    +     * Required. List of DNS servers to use for domain resolution
    +     * 
    + * + * repeated string name_servers = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the nameServers. + */ + java.util.List getNameServersList(); + /** + * + * + *
    +     * Required. List of DNS servers to use for domain resolution
    +     * 
    + * + * repeated string name_servers = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of nameServers. + */ + int getNameServersCount(); + /** + * + * + *
    +     * Required. List of DNS servers to use for domain resolution
    +     * 
    + * + * repeated string name_servers = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The nameServers at the given index. + */ + java.lang.String getNameServers(int index); + /** + * + * + *
    +     * Required. List of DNS servers to use for domain resolution
    +     * 
    + * + * repeated string name_servers = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the nameServers at the given index. + */ + com.google.protobuf.ByteString getNameServersBytes(int index); + } + /** + * + * + *
    +   * A forwarding rule is a mapping of a `domain` to `name_servers`.
    +   * This mapping allows VMware Engine to resolve domains for attached private
    +   * clouds by forwarding DNS requests for a given domain to the specified
    +   * nameservers.
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule} + */ + public static final class ForwardingRule extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule) + ForwardingRuleOrBuilder { + private static final long serialVersionUID = 0L; + // Use ForwardingRule.newBuilder() to construct. + private ForwardingRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ForwardingRule() { + domain_ = ""; + nameServers_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ForwardingRule(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_DnsForwarding_ForwardingRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_DnsForwarding_ForwardingRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule.class, + com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule.Builder.class); + } + + public static final int DOMAIN_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object domain_ = ""; + /** + * + * + *
    +     * Required. Domain used to resolve a `name_servers` list.
    +     * 
    + * + * string domain = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The domain. + */ + @java.lang.Override + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + * + * + *
    +     * Required. Domain used to resolve a `name_servers` list.
    +     * 
    + * + * string domain = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for domain. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_SERVERS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList nameServers_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
    +     * Required. List of DNS servers to use for domain resolution
    +     * 
    + * + * repeated string name_servers = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the nameServers. + */ + public com.google.protobuf.ProtocolStringList getNameServersList() { + return nameServers_; + } + /** + * + * + *
    +     * Required. List of DNS servers to use for domain resolution
    +     * 
    + * + * repeated string name_servers = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of nameServers. + */ + public int getNameServersCount() { + return nameServers_.size(); + } + /** + * + * + *
    +     * Required. List of DNS servers to use for domain resolution
    +     * 
    + * + * repeated string name_servers = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The nameServers at the given index. + */ + public java.lang.String getNameServers(int index) { + return nameServers_.get(index); + } + /** + * + * + *
    +     * Required. List of DNS servers to use for domain resolution
    +     * 
    + * + * repeated string name_servers = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the nameServers at the given index. + */ + public com.google.protobuf.ByteString getNameServersBytes(int index) { + return nameServers_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, domain_); + } + for (int i = 0; i < nameServers_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nameServers_.getRaw(i)); + } + 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(domain_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, domain_); + } + { + int dataSize = 0; + for (int i = 0; i < nameServers_.size(); i++) { + dataSize += computeStringSizeNoTag(nameServers_.getRaw(i)); + } + size += dataSize; + size += 1 * getNameServersList().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.DnsForwarding.ForwardingRule)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule other = + (com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule) obj; + + if (!getDomain().equals(other.getDomain())) return false; + if (!getNameServersList().equals(other.getNameServersList())) 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) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + if (getNameServersCount() > 0) { + hash = (37 * hash) + NAME_SERVERS_FIELD_NUMBER; + hash = (53 * hash) + getNameServersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule 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.DnsForwarding.ForwardingRule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule 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.DnsForwarding.ForwardingRule parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule 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.DnsForwarding.ForwardingRule parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule 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.DnsForwarding.ForwardingRule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule 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.DnsForwarding.ForwardingRule 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.DnsForwarding.ForwardingRule 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.DnsForwarding.ForwardingRule 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; + } + /** + * + * + *
    +     * A forwarding rule is a mapping of a `domain` to `name_servers`.
    +     * This mapping allows VMware Engine to resolve domains for attached private
    +     * clouds by forwarding DNS requests for a given domain to the specified
    +     * nameservers.
    +     * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule) + com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_DnsForwarding_ForwardingRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_DnsForwarding_ForwardingRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule.class, + com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + domain_ = ""; + nameServers_ = com.google.protobuf.LazyStringArrayList.emptyList(); + 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_DnsForwarding_ForwardingRule_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule build() { + com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule buildPartial() { + com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule result = + new com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.domain_ = domain_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + nameServers_.makeImmutable(); + result.nameServers_ = nameServers_; + } + } + + @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.DnsForwarding.ForwardingRule) { + return mergeFrom((com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule other) { + if (other + == com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule.getDefaultInstance()) + return this; + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.nameServers_.isEmpty()) { + if (nameServers_.isEmpty()) { + nameServers_ = other.nameServers_; + bitField0_ |= 0x00000002; + } else { + ensureNameServersIsMutable(); + nameServers_.addAll(other.nameServers_); + } + 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: + { + domain_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNameServersIsMutable(); + nameServers_.add(s); + 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 domain_ = ""; + /** + * + * + *
    +       * Required. Domain used to resolve a `name_servers` list.
    +       * 
    + * + * string domain = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The domain. + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Required. Domain used to resolve a `name_servers` list.
    +       * 
    + * + * string domain = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for domain. + */ + public com.google.protobuf.ByteString getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Required. Domain used to resolve a `name_servers` list.
    +       * 
    + * + * string domain = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The domain to set. + * @return This builder for chaining. + */ + public Builder setDomain(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + domain_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. Domain used to resolve a `name_servers` list.
    +       * 
    + * + * string domain = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDomain() { + domain_ = getDefaultInstance().getDomain(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. Domain used to resolve a `name_servers` list.
    +       * 
    + * + * string domain = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for domain to set. + * @return This builder for chaining. + */ + public Builder setDomainBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + domain_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList nameServers_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNameServersIsMutable() { + if (!nameServers_.isModifiable()) { + nameServers_ = new com.google.protobuf.LazyStringArrayList(nameServers_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
    +       * Required. List of DNS servers to use for domain resolution
    +       * 
    + * + * repeated string name_servers = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the nameServers. + */ + public com.google.protobuf.ProtocolStringList getNameServersList() { + nameServers_.makeImmutable(); + return nameServers_; + } + /** + * + * + *
    +       * Required. List of DNS servers to use for domain resolution
    +       * 
    + * + * repeated string name_servers = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of nameServers. + */ + public int getNameServersCount() { + return nameServers_.size(); + } + /** + * + * + *
    +       * Required. List of DNS servers to use for domain resolution
    +       * 
    + * + * repeated string name_servers = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The nameServers at the given index. + */ + public java.lang.String getNameServers(int index) { + return nameServers_.get(index); + } + /** + * + * + *
    +       * Required. List of DNS servers to use for domain resolution
    +       * 
    + * + * repeated string name_servers = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the nameServers at the given index. + */ + public com.google.protobuf.ByteString getNameServersBytes(int index) { + return nameServers_.getByteString(index); + } + /** + * + * + *
    +       * Required. List of DNS servers to use for domain resolution
    +       * 
    + * + * repeated string name_servers = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The nameServers to set. + * @return This builder for chaining. + */ + public Builder setNameServers(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNameServersIsMutable(); + nameServers_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. List of DNS servers to use for domain resolution
    +       * 
    + * + * repeated string name_servers = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The nameServers to add. + * @return This builder for chaining. + */ + public Builder addNameServers(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNameServersIsMutable(); + nameServers_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. List of DNS servers to use for domain resolution
    +       * 
    + * + * repeated string name_servers = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The nameServers to add. + * @return This builder for chaining. + */ + public Builder addAllNameServers(java.lang.Iterable values) { + ensureNameServersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nameServers_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. List of DNS servers to use for domain resolution
    +       * 
    + * + * repeated string name_servers = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearNameServers() { + nameServers_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. List of DNS servers to use for domain resolution
    +       * 
    + * + * repeated string name_servers = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the nameServers to add. + * @return This builder for chaining. + */ + public Builder addNameServersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNameServersIsMutable(); + nameServers_.add(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.DnsForwarding.ForwardingRule) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule) + private static final com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule(); + } + + public static com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ForwardingRule 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.DnsForwarding.ForwardingRule + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Output only. The resource name of this DNS profile.
    +   * 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/dnsForwarding`
    +   * 
    + * + * 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 this DNS profile.
    +   * 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/dnsForwarding`
    +   * 
    + * + * 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 FORWARDING_RULES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List + forwardingRules_; + /** + * + * + *
    +   * Required. List of domain mappings to configure
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getForwardingRulesList() { + return forwardingRules_; + } + /** + * + * + *
    +   * Required. List of domain mappings to configure
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRuleOrBuilder> + getForwardingRulesOrBuilderList() { + return forwardingRules_; + } + /** + * + * + *
    +   * Required. List of domain mappings to configure
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getForwardingRulesCount() { + return forwardingRules_.size(); + } + /** + * + * + *
    +   * Required. List of domain mappings to configure
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule getForwardingRules( + int index) { + return forwardingRules_.get(index); + } + /** + * + * + *
    +   * Required. List of domain mappings to configure
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRuleOrBuilder + getForwardingRulesOrBuilder(int index) { + return forwardingRules_.get(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 { + 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()); + } + for (int i = 0; i < forwardingRules_.size(); i++) { + output.writeMessage(4, forwardingRules_.get(i)); + } + 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()); + } + for (int i = 0; i < forwardingRules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, forwardingRules_.get(i)); + } + 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.DnsForwarding)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.DnsForwarding other = + (com.google.cloud.vmwareengine.v1.DnsForwarding) 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 (!getForwardingRulesList().equals(other.getForwardingRulesList())) 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(); + } + if (getForwardingRulesCount() > 0) { + hash = (37 * hash) + FORWARDING_RULES_FIELD_NUMBER; + hash = (53 * hash) + getForwardingRulesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.DnsForwarding parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DnsForwarding 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.DnsForwarding parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DnsForwarding 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.DnsForwarding parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DnsForwarding 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.DnsForwarding parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.DnsForwarding 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.DnsForwarding parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.DnsForwarding 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.DnsForwarding 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.DnsForwarding 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.DnsForwarding 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; + } + /** + * + * + *
    +   * DNS forwarding config.
    +   * This config defines a list of domain to name server mappings,
    +   * and is attached to the private cloud for custom domain resolution.
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.DnsForwarding} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.DnsForwarding) + com.google.cloud.vmwareengine.v1.DnsForwardingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_DnsForwarding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_DnsForwarding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.DnsForwarding.class, + com.google.cloud.vmwareengine.v1.DnsForwarding.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.DnsForwarding.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; + } + if (forwardingRulesBuilder_ == null) { + forwardingRules_ = java.util.Collections.emptyList(); + } else { + forwardingRules_ = null; + forwardingRulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + 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_DnsForwarding_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DnsForwarding getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.DnsForwarding.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DnsForwarding build() { + com.google.cloud.vmwareengine.v1.DnsForwarding result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DnsForwarding buildPartial() { + com.google.cloud.vmwareengine.v1.DnsForwarding result = + new com.google.cloud.vmwareengine.v1.DnsForwarding(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.vmwareengine.v1.DnsForwarding result) { + if (forwardingRulesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + forwardingRules_ = java.util.Collections.unmodifiableList(forwardingRules_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.forwardingRules_ = forwardingRules_; + } else { + result.forwardingRules_ = forwardingRulesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.vmwareengine.v1.DnsForwarding 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(); + } + } + + @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.DnsForwarding) { + return mergeFrom((com.google.cloud.vmwareengine.v1.DnsForwarding) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.DnsForwarding other) { + if (other == com.google.cloud.vmwareengine.v1.DnsForwarding.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 (forwardingRulesBuilder_ == null) { + if (!other.forwardingRules_.isEmpty()) { + if (forwardingRules_.isEmpty()) { + forwardingRules_ = other.forwardingRules_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureForwardingRulesIsMutable(); + forwardingRules_.addAll(other.forwardingRules_); + } + onChanged(); + } + } else { + if (!other.forwardingRules_.isEmpty()) { + if (forwardingRulesBuilder_.isEmpty()) { + forwardingRulesBuilder_.dispose(); + forwardingRulesBuilder_ = null; + forwardingRules_ = other.forwardingRules_; + bitField0_ = (bitField0_ & ~0x00000008); + forwardingRulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getForwardingRulesFieldBuilder() + : null; + } else { + forwardingRulesBuilder_.addAllMessages(other.forwardingRules_); + } + } + } + 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: + { + com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule m = + input.readMessage( + com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule.parser(), + extensionRegistry); + if (forwardingRulesBuilder_ == null) { + ensureForwardingRulesIsMutable(); + forwardingRules_.add(m); + } else { + forwardingRulesBuilder_.addMessage(m); + } + 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 name_ = ""; + /** + * + * + *
    +     * Output only. The resource name of this DNS profile.
    +     * 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/dnsForwarding`
    +     * 
    + * + * 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 this DNS profile.
    +     * 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/dnsForwarding`
    +     * 
    + * + * 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 this DNS profile.
    +     * 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/dnsForwarding`
    +     * 
    + * + * 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 this DNS profile.
    +     * 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/dnsForwarding`
    +     * 
    + * + * 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 this DNS profile.
    +     * 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/dnsForwarding`
    +     * 
    + * + * 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.util.List + forwardingRules_ = java.util.Collections.emptyList(); + + private void ensureForwardingRulesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + forwardingRules_ = + new java.util.ArrayList( + forwardingRules_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule, + com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule.Builder, + com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRuleOrBuilder> + forwardingRulesBuilder_; + + /** + * + * + *
    +     * Required. List of domain mappings to configure
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getForwardingRulesList() { + if (forwardingRulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(forwardingRules_); + } else { + return forwardingRulesBuilder_.getMessageList(); + } + } + /** + * + * + *
    +     * Required. List of domain mappings to configure
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getForwardingRulesCount() { + if (forwardingRulesBuilder_ == null) { + return forwardingRules_.size(); + } else { + return forwardingRulesBuilder_.getCount(); + } + } + /** + * + * + *
    +     * Required. List of domain mappings to configure
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule getForwardingRules( + int index) { + if (forwardingRulesBuilder_ == null) { + return forwardingRules_.get(index); + } else { + return forwardingRulesBuilder_.getMessage(index); + } + } + /** + * + * + *
    +     * Required. List of domain mappings to configure
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setForwardingRules( + int index, com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule value) { + if (forwardingRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureForwardingRulesIsMutable(); + forwardingRules_.set(index, value); + onChanged(); + } else { + forwardingRulesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * Required. List of domain mappings to configure
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setForwardingRules( + int index, + com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule.Builder builderForValue) { + if (forwardingRulesBuilder_ == null) { + ensureForwardingRulesIsMutable(); + forwardingRules_.set(index, builderForValue.build()); + onChanged(); + } else { + forwardingRulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Required. List of domain mappings to configure
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addForwardingRules( + com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule value) { + if (forwardingRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureForwardingRulesIsMutable(); + forwardingRules_.add(value); + onChanged(); + } else { + forwardingRulesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +     * Required. List of domain mappings to configure
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addForwardingRules( + int index, com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule value) { + if (forwardingRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureForwardingRulesIsMutable(); + forwardingRules_.add(index, value); + onChanged(); + } else { + forwardingRulesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * Required. List of domain mappings to configure
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addForwardingRules( + com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule.Builder builderForValue) { + if (forwardingRulesBuilder_ == null) { + ensureForwardingRulesIsMutable(); + forwardingRules_.add(builderForValue.build()); + onChanged(); + } else { + forwardingRulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Required. List of domain mappings to configure
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addForwardingRules( + int index, + com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule.Builder builderForValue) { + if (forwardingRulesBuilder_ == null) { + ensureForwardingRulesIsMutable(); + forwardingRules_.add(index, builderForValue.build()); + onChanged(); + } else { + forwardingRulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Required. List of domain mappings to configure
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllForwardingRules( + java.lang.Iterable + values) { + if (forwardingRulesBuilder_ == null) { + ensureForwardingRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, forwardingRules_); + onChanged(); + } else { + forwardingRulesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +     * Required. List of domain mappings to configure
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearForwardingRules() { + if (forwardingRulesBuilder_ == null) { + forwardingRules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + forwardingRulesBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Required. List of domain mappings to configure
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeForwardingRules(int index) { + if (forwardingRulesBuilder_ == null) { + ensureForwardingRulesIsMutable(); + forwardingRules_.remove(index); + onChanged(); + } else { + forwardingRulesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +     * Required. List of domain mappings to configure
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule.Builder + getForwardingRulesBuilder(int index) { + return getForwardingRulesFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +     * Required. List of domain mappings to configure
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRuleOrBuilder + getForwardingRulesOrBuilder(int index) { + if (forwardingRulesBuilder_ == null) { + return forwardingRules_.get(index); + } else { + return forwardingRulesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +     * Required. List of domain mappings to configure
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRuleOrBuilder> + getForwardingRulesOrBuilderList() { + if (forwardingRulesBuilder_ != null) { + return forwardingRulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(forwardingRules_); + } + } + /** + * + * + *
    +     * Required. List of domain mappings to configure
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule.Builder + addForwardingRulesBuilder() { + return getForwardingRulesFieldBuilder() + .addBuilder( + com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule.getDefaultInstance()); + } + /** + * + * + *
    +     * Required. List of domain mappings to configure
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule.Builder + addForwardingRulesBuilder(int index) { + return getForwardingRulesFieldBuilder() + .addBuilder( + index, + com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule.getDefaultInstance()); + } + /** + * + * + *
    +     * Required. List of domain mappings to configure
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getForwardingRulesBuilderList() { + return getForwardingRulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule, + com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule.Builder, + com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRuleOrBuilder> + getForwardingRulesFieldBuilder() { + if (forwardingRulesBuilder_ == null) { + forwardingRulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule, + com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule.Builder, + com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRuleOrBuilder>( + forwardingRules_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + forwardingRules_ = null; + } + return forwardingRulesBuilder_; + } + + @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.DnsForwarding) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.DnsForwarding) + private static final com.google.cloud.vmwareengine.v1.DnsForwarding DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.DnsForwarding(); + } + + public static com.google.cloud.vmwareengine.v1.DnsForwarding getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DnsForwarding 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.DnsForwarding getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DnsForwardingName.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DnsForwardingName.java new file mode 100644 index 000000000000..81a1976cec8e --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DnsForwardingName.java @@ -0,0 +1,230 @@ +/* + * 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 DnsForwardingName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_PRIVATE_CLOUD = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/privateClouds/{private_cloud}/dnsForwarding"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String privateCloud; + + @Deprecated + protected DnsForwardingName() { + project = null; + location = null; + privateCloud = null; + } + + private DnsForwardingName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + privateCloud = Preconditions.checkNotNull(builder.getPrivateCloud()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPrivateCloud() { + return privateCloud; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DnsForwardingName of(String project, String location, String privateCloud) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPrivateCloud(privateCloud) + .build(); + } + + public static String format(String project, String location, String privateCloud) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPrivateCloud(privateCloud) + .build() + .toString(); + } + + public static DnsForwardingName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_PRIVATE_CLOUD.validatedMatch( + formattedString, "DnsForwardingName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("private_cloud")); + } + + 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 (DnsForwardingName 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.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); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_PRIVATE_CLOUD.instantiate( + "project", project, "location", location, "private_cloud", privateCloud); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + DnsForwardingName that = ((DnsForwardingName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.privateCloud, that.privateCloud); + } + 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); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/privateClouds/{private_cloud}/dnsForwarding. + */ + public static class Builder { + private String project; + private String location; + private String privateCloud; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPrivateCloud() { + return privateCloud; + } + + 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; + } + + private Builder(DnsForwardingName dnsForwardingName) { + this.project = dnsForwardingName.project; + this.location = dnsForwardingName.location; + this.privateCloud = dnsForwardingName.privateCloud; + } + + public DnsForwardingName build() { + return new DnsForwardingName(this); + } + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DnsForwardingOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DnsForwardingOrBuilder.java new file mode 100644 index 000000000000..1922d6f028ad --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DnsForwardingOrBuilder.java @@ -0,0 +1,198 @@ +/* + * 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 DnsForwardingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.DnsForwarding) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Output only. The resource name of this DNS profile.
    +   * 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/dnsForwarding`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Output only. The resource name of this DNS profile.
    +   * 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/dnsForwarding`
    +   * 
    + * + * 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(); + + /** + * + * + *
    +   * Required. List of domain mappings to configure
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getForwardingRulesList(); + /** + * + * + *
    +   * Required. List of domain mappings to configure
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule getForwardingRules(int index); + /** + * + * + *
    +   * Required. List of domain mappings to configure
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getForwardingRulesCount(); + /** + * + * + *
    +   * Required. List of domain mappings to configure
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getForwardingRulesOrBuilderList(); + /** + * + * + *
    +   * Required. List of domain mappings to configure
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRuleOrBuilder + getForwardingRulesOrBuilder(int index); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ExternalAccessRule.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ExternalAccessRule.java new file mode 100644 index 000000000000..2dbe41f6ec3d --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ExternalAccessRule.java @@ -0,0 +1,5993 @@ +/* + * 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; + +/** + * + * + *
    + * External access firewall rules for filtering incoming traffic destined to
    + * `ExternalAddress` resources.
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ExternalAccessRule} + */ +public final class ExternalAccessRule extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ExternalAccessRule) + ExternalAccessRuleOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExternalAccessRule.newBuilder() to construct. + private ExternalAccessRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExternalAccessRule() { + name_ = ""; + description_ = ""; + action_ = 0; + ipProtocol_ = ""; + sourceIpRanges_ = java.util.Collections.emptyList(); + sourcePorts_ = com.google.protobuf.LazyStringArrayList.emptyList(); + destinationIpRanges_ = java.util.Collections.emptyList(); + destinationPorts_ = com.google.protobuf.LazyStringArrayList.emptyList(); + state_ = 0; + uid_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExternalAccessRule(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_ExternalAccessRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_ExternalAccessRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ExternalAccessRule.class, + com.google.cloud.vmwareengine.v1.ExternalAccessRule.Builder.class); + } + + /** + * + * + *
    +   * Action determines whether the external access rule permits or blocks
    +   * traffic, subject to the other components of the rule matching the traffic.
    +   * 
    + * + * Protobuf enum {@code google.cloud.vmwareengine.v1.ExternalAccessRule.Action} + */ + public enum Action implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Defaults to allow.
    +     * 
    + * + * ACTION_UNSPECIFIED = 0; + */ + ACTION_UNSPECIFIED(0), + /** + * + * + *
    +     * Allows connections that match the other specified components.
    +     * 
    + * + * ALLOW = 1; + */ + ALLOW(1), + /** + * + * + *
    +     * Blocks connections that match the other specified components.
    +     * 
    + * + * DENY = 2; + */ + DENY(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Defaults to allow.
    +     * 
    + * + * ACTION_UNSPECIFIED = 0; + */ + public static final int ACTION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +     * Allows connections that match the other specified components.
    +     * 
    + * + * ALLOW = 1; + */ + public static final int ALLOW_VALUE = 1; + /** + * + * + *
    +     * Blocks connections that match the other specified components.
    +     * 
    + * + * DENY = 2; + */ + public static final int DENY_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 Action 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 Action forNumber(int value) { + switch (value) { + case 0: + return ACTION_UNSPECIFIED; + case 1: + return ALLOW; + case 2: + return DENY; + 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 Action findValueByNumber(int number) { + return Action.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.ExternalAccessRule.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Action[] VALUES = values(); + + public static Action 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 Action(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmwareengine.v1.ExternalAccessRule.Action) + } + + /** + * + * + *
    +   * Defines possible states of external access firewall rules.
    +   * 
    + * + * Protobuf enum {@code google.cloud.vmwareengine.v1.ExternalAccessRule.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 rule is ready.
    +     * 
    + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
    +     * The rule is being created.
    +     * 
    + * + * CREATING = 2; + */ + CREATING(2), + /** + * + * + *
    +     * The rule is being updated.
    +     * 
    + * + * UPDATING = 3; + */ + UPDATING(3), + /** + * + * + *
    +     * The rule is being deleted.
    +     * 
    + * + * DELETING = 4; + */ + DELETING(4), + 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 rule is ready.
    +     * 
    + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + /** + * + * + *
    +     * The rule is being created.
    +     * 
    + * + * CREATING = 2; + */ + public static final int CREATING_VALUE = 2; + /** + * + * + *
    +     * The rule is being updated.
    +     * 
    + * + * UPDATING = 3; + */ + public static final int UPDATING_VALUE = 3; + /** + * + * + *
    +     * The rule is being deleted.
    +     * 
    + * + * DELETING = 4; + */ + public static final int DELETING_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 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 ACTIVE; + case 2: + return CREATING; + case 3: + return UPDATING; + case 4: + return DELETING; + 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.ExternalAccessRule.getDescriptor() + .getEnumTypes() + .get(1); + } + + 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.ExternalAccessRule.State) + } + + public interface IpRangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * A single IP address. For example: `10.0.0.5`.
    +     * 
    + * + * string ip_address = 1; + * + * @return Whether the ipAddress field is set. + */ + boolean hasIpAddress(); + /** + * + * + *
    +     * A single IP address. For example: `10.0.0.5`.
    +     * 
    + * + * string ip_address = 1; + * + * @return The ipAddress. + */ + java.lang.String getIpAddress(); + /** + * + * + *
    +     * A single IP address. For example: `10.0.0.5`.
    +     * 
    + * + * string ip_address = 1; + * + * @return The bytes for ipAddress. + */ + com.google.protobuf.ByteString getIpAddressBytes(); + + /** + * + * + *
    +     * An IP address range in the CIDR format. For example: `10.0.0.0/24`.
    +     * 
    + * + * string ip_address_range = 2; + * + * @return Whether the ipAddressRange field is set. + */ + boolean hasIpAddressRange(); + /** + * + * + *
    +     * An IP address range in the CIDR format. For example: `10.0.0.0/24`.
    +     * 
    + * + * string ip_address_range = 2; + * + * @return The ipAddressRange. + */ + java.lang.String getIpAddressRange(); + /** + * + * + *
    +     * An IP address range in the CIDR format. For example: `10.0.0.0/24`.
    +     * 
    + * + * string ip_address_range = 2; + * + * @return The bytes for ipAddressRange. + */ + com.google.protobuf.ByteString getIpAddressRangeBytes(); + + /** + * + * + *
    +     * The name of an `ExternalAddress` resource. The external address must
    +     * have been reserved in the scope of this external access rule's parent
    +     * network policy.  Provide the external address name in the form of
    +     * `projects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}`.
    +     * For example:
    +     * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address`.
    +     * 
    + * + * string external_address = 3 [(.google.api.resource_reference) = { ... } + * + * @return Whether the externalAddress field is set. + */ + boolean hasExternalAddress(); + /** + * + * + *
    +     * The name of an `ExternalAddress` resource. The external address must
    +     * have been reserved in the scope of this external access rule's parent
    +     * network policy.  Provide the external address name in the form of
    +     * `projects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}`.
    +     * For example:
    +     * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address`.
    +     * 
    + * + * string external_address = 3 [(.google.api.resource_reference) = { ... } + * + * @return The externalAddress. + */ + java.lang.String getExternalAddress(); + /** + * + * + *
    +     * The name of an `ExternalAddress` resource. The external address must
    +     * have been reserved in the scope of this external access rule's parent
    +     * network policy.  Provide the external address name in the form of
    +     * `projects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}`.
    +     * For example:
    +     * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address`.
    +     * 
    + * + * string external_address = 3 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for externalAddress. + */ + com.google.protobuf.ByteString getExternalAddressBytes(); + + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.IpRangeCase getIpRangeCase(); + } + /** + * + * + *
    +   * An IP range provided in any one of the supported formats.
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange} + */ + public static final class IpRange extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange) + IpRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use IpRange.newBuilder() to construct. + private IpRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IpRange() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IpRange(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_ExternalAccessRule_IpRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_ExternalAccessRule_IpRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.class, + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.Builder.class); + } + + private int ipRangeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object ipRange_; + + public enum IpRangeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + IP_ADDRESS(1), + IP_ADDRESS_RANGE(2), + EXTERNAL_ADDRESS(3), + IPRANGE_NOT_SET(0); + private final int value; + + private IpRangeCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static IpRangeCase valueOf(int value) { + return forNumber(value); + } + + public static IpRangeCase forNumber(int value) { + switch (value) { + case 1: + return IP_ADDRESS; + case 2: + return IP_ADDRESS_RANGE; + case 3: + return EXTERNAL_ADDRESS; + case 0: + return IPRANGE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public IpRangeCase getIpRangeCase() { + return IpRangeCase.forNumber(ipRangeCase_); + } + + public static final int IP_ADDRESS_FIELD_NUMBER = 1; + /** + * + * + *
    +     * A single IP address. For example: `10.0.0.5`.
    +     * 
    + * + * string ip_address = 1; + * + * @return Whether the ipAddress field is set. + */ + public boolean hasIpAddress() { + return ipRangeCase_ == 1; + } + /** + * + * + *
    +     * A single IP address. For example: `10.0.0.5`.
    +     * 
    + * + * string ip_address = 1; + * + * @return The ipAddress. + */ + public java.lang.String getIpAddress() { + java.lang.Object ref = ""; + if (ipRangeCase_ == 1) { + ref = ipRange_; + } + 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(); + if (ipRangeCase_ == 1) { + ipRange_ = s; + } + return s; + } + } + /** + * + * + *
    +     * A single IP address. For example: `10.0.0.5`.
    +     * 
    + * + * string ip_address = 1; + * + * @return The bytes for ipAddress. + */ + public com.google.protobuf.ByteString getIpAddressBytes() { + java.lang.Object ref = ""; + if (ipRangeCase_ == 1) { + ref = ipRange_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (ipRangeCase_ == 1) { + ipRange_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IP_ADDRESS_RANGE_FIELD_NUMBER = 2; + /** + * + * + *
    +     * An IP address range in the CIDR format. For example: `10.0.0.0/24`.
    +     * 
    + * + * string ip_address_range = 2; + * + * @return Whether the ipAddressRange field is set. + */ + public boolean hasIpAddressRange() { + return ipRangeCase_ == 2; + } + /** + * + * + *
    +     * An IP address range in the CIDR format. For example: `10.0.0.0/24`.
    +     * 
    + * + * string ip_address_range = 2; + * + * @return The ipAddressRange. + */ + public java.lang.String getIpAddressRange() { + java.lang.Object ref = ""; + if (ipRangeCase_ == 2) { + ref = ipRange_; + } + 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(); + if (ipRangeCase_ == 2) { + ipRange_ = s; + } + return s; + } + } + /** + * + * + *
    +     * An IP address range in the CIDR format. For example: `10.0.0.0/24`.
    +     * 
    + * + * string ip_address_range = 2; + * + * @return The bytes for ipAddressRange. + */ + public com.google.protobuf.ByteString getIpAddressRangeBytes() { + java.lang.Object ref = ""; + if (ipRangeCase_ == 2) { + ref = ipRange_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (ipRangeCase_ == 2) { + ipRange_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXTERNAL_ADDRESS_FIELD_NUMBER = 3; + /** + * + * + *
    +     * The name of an `ExternalAddress` resource. The external address must
    +     * have been reserved in the scope of this external access rule's parent
    +     * network policy.  Provide the external address name in the form of
    +     * `projects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}`.
    +     * For example:
    +     * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address`.
    +     * 
    + * + * string external_address = 3 [(.google.api.resource_reference) = { ... } + * + * @return Whether the externalAddress field is set. + */ + public boolean hasExternalAddress() { + return ipRangeCase_ == 3; + } + /** + * + * + *
    +     * The name of an `ExternalAddress` resource. The external address must
    +     * have been reserved in the scope of this external access rule's parent
    +     * network policy.  Provide the external address name in the form of
    +     * `projects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}`.
    +     * For example:
    +     * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address`.
    +     * 
    + * + * string external_address = 3 [(.google.api.resource_reference) = { ... } + * + * @return The externalAddress. + */ + public java.lang.String getExternalAddress() { + java.lang.Object ref = ""; + if (ipRangeCase_ == 3) { + ref = ipRange_; + } + 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(); + if (ipRangeCase_ == 3) { + ipRange_ = s; + } + return s; + } + } + /** + * + * + *
    +     * The name of an `ExternalAddress` resource. The external address must
    +     * have been reserved in the scope of this external access rule's parent
    +     * network policy.  Provide the external address name in the form of
    +     * `projects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}`.
    +     * For example:
    +     * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address`.
    +     * 
    + * + * string external_address = 3 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for externalAddress. + */ + public com.google.protobuf.ByteString getExternalAddressBytes() { + java.lang.Object ref = ""; + if (ipRangeCase_ == 3) { + ref = ipRange_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (ipRangeCase_ == 3) { + ipRange_ = 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 (ipRangeCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ipRange_); + } + if (ipRangeCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ipRange_); + } + if (ipRangeCase_ == 3) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ipRange_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (ipRangeCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ipRange_); + } + if (ipRangeCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ipRange_); + } + if (ipRangeCase_ == 3) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ipRange_); + } + 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.ExternalAccessRule.IpRange)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange other = + (com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange) obj; + + if (!getIpRangeCase().equals(other.getIpRangeCase())) return false; + switch (ipRangeCase_) { + case 1: + if (!getIpAddress().equals(other.getIpAddress())) return false; + break; + case 2: + if (!getIpAddressRange().equals(other.getIpAddressRange())) return false; + break; + case 3: + if (!getExternalAddress().equals(other.getExternalAddress())) return false; + break; + case 0: + default: + } + 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(); + switch (ipRangeCase_) { + case 1: + hash = (37 * hash) + IP_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getIpAddress().hashCode(); + break; + case 2: + hash = (37 * hash) + IP_ADDRESS_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getIpAddressRange().hashCode(); + break; + case 3: + hash = (37 * hash) + EXTERNAL_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getExternalAddress().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange 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.ExternalAccessRule.IpRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange 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.ExternalAccessRule.IpRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange 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.ExternalAccessRule.IpRange parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange 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.ExternalAccessRule.IpRange parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange 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.ExternalAccessRule.IpRange 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.ExternalAccessRule.IpRange 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.ExternalAccessRule.IpRange 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; + } + /** + * + * + *
    +     * An IP range provided in any one of the supported formats.
    +     * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange) + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_ExternalAccessRule_IpRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_ExternalAccessRule_IpRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.class, + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + ipRangeCase_ = 0; + ipRange_ = null; + 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_ExternalAccessRule_IpRange_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange build() { + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange buildPartial() { + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange result = + new com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange result) { + result.ipRangeCase_ = ipRangeCase_; + result.ipRange_ = this.ipRange_; + } + + @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.ExternalAccessRule.IpRange) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange other) { + if (other + == com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.getDefaultInstance()) + return this; + switch (other.getIpRangeCase()) { + case IP_ADDRESS: + { + ipRangeCase_ = 1; + ipRange_ = other.ipRange_; + onChanged(); + break; + } + case IP_ADDRESS_RANGE: + { + ipRangeCase_ = 2; + ipRange_ = other.ipRange_; + onChanged(); + break; + } + case EXTERNAL_ADDRESS: + { + ipRangeCase_ = 3; + ipRange_ = other.ipRange_; + onChanged(); + break; + } + case IPRANGE_NOT_SET: + { + break; + } + } + 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: + { + java.lang.String s = input.readStringRequireUtf8(); + ipRangeCase_ = 1; + ipRange_ = s; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ipRangeCase_ = 2; + ipRange_ = s; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ipRangeCase_ = 3; + ipRange_ = 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 ipRangeCase_ = 0; + private java.lang.Object ipRange_; + + public IpRangeCase getIpRangeCase() { + return IpRangeCase.forNumber(ipRangeCase_); + } + + public Builder clearIpRange() { + ipRangeCase_ = 0; + ipRange_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
    +       * A single IP address. For example: `10.0.0.5`.
    +       * 
    + * + * string ip_address = 1; + * + * @return Whether the ipAddress field is set. + */ + @java.lang.Override + public boolean hasIpAddress() { + return ipRangeCase_ == 1; + } + /** + * + * + *
    +       * A single IP address. For example: `10.0.0.5`.
    +       * 
    + * + * string ip_address = 1; + * + * @return The ipAddress. + */ + @java.lang.Override + public java.lang.String getIpAddress() { + java.lang.Object ref = ""; + if (ipRangeCase_ == 1) { + ref = ipRange_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (ipRangeCase_ == 1) { + ipRange_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * A single IP address. For example: `10.0.0.5`.
    +       * 
    + * + * string ip_address = 1; + * + * @return The bytes for ipAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIpAddressBytes() { + java.lang.Object ref = ""; + if (ipRangeCase_ == 1) { + ref = ipRange_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (ipRangeCase_ == 1) { + ipRange_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * A single IP address. For example: `10.0.0.5`.
    +       * 
    + * + * string ip_address = 1; + * + * @param value The ipAddress to set. + * @return This builder for chaining. + */ + public Builder setIpAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ipRangeCase_ = 1; + ipRange_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +       * A single IP address. For example: `10.0.0.5`.
    +       * 
    + * + * string ip_address = 1; + * + * @return This builder for chaining. + */ + public Builder clearIpAddress() { + if (ipRangeCase_ == 1) { + ipRangeCase_ = 0; + ipRange_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
    +       * A single IP address. For example: `10.0.0.5`.
    +       * 
    + * + * string ip_address = 1; + * + * @param value The bytes for ipAddress to set. + * @return This builder for chaining. + */ + public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ipRangeCase_ = 1; + ipRange_ = value; + onChanged(); + return this; + } + + /** + * + * + *
    +       * An IP address range in the CIDR format. For example: `10.0.0.0/24`.
    +       * 
    + * + * string ip_address_range = 2; + * + * @return Whether the ipAddressRange field is set. + */ + @java.lang.Override + public boolean hasIpAddressRange() { + return ipRangeCase_ == 2; + } + /** + * + * + *
    +       * An IP address range in the CIDR format. For example: `10.0.0.0/24`.
    +       * 
    + * + * string ip_address_range = 2; + * + * @return The ipAddressRange. + */ + @java.lang.Override + public java.lang.String getIpAddressRange() { + java.lang.Object ref = ""; + if (ipRangeCase_ == 2) { + ref = ipRange_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (ipRangeCase_ == 2) { + ipRange_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * An IP address range in the CIDR format. For example: `10.0.0.0/24`.
    +       * 
    + * + * string ip_address_range = 2; + * + * @return The bytes for ipAddressRange. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIpAddressRangeBytes() { + java.lang.Object ref = ""; + if (ipRangeCase_ == 2) { + ref = ipRange_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (ipRangeCase_ == 2) { + ipRange_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * An IP address range in the CIDR format. For example: `10.0.0.0/24`.
    +       * 
    + * + * string ip_address_range = 2; + * + * @param value The ipAddressRange to set. + * @return This builder for chaining. + */ + public Builder setIpAddressRange(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ipRangeCase_ = 2; + ipRange_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +       * An IP address range in the CIDR format. For example: `10.0.0.0/24`.
    +       * 
    + * + * string ip_address_range = 2; + * + * @return This builder for chaining. + */ + public Builder clearIpAddressRange() { + if (ipRangeCase_ == 2) { + ipRangeCase_ = 0; + ipRange_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
    +       * An IP address range in the CIDR format. For example: `10.0.0.0/24`.
    +       * 
    + * + * string ip_address_range = 2; + * + * @param value The bytes for ipAddressRange to set. + * @return This builder for chaining. + */ + public Builder setIpAddressRangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ipRangeCase_ = 2; + ipRange_ = value; + onChanged(); + return this; + } + + /** + * + * + *
    +       * The name of an `ExternalAddress` resource. The external address must
    +       * have been reserved in the scope of this external access rule's parent
    +       * network policy.  Provide the external address name in the form of
    +       * `projects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}`.
    +       * For example:
    +       * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address`.
    +       * 
    + * + * string external_address = 3 [(.google.api.resource_reference) = { ... } + * + * @return Whether the externalAddress field is set. + */ + @java.lang.Override + public boolean hasExternalAddress() { + return ipRangeCase_ == 3; + } + /** + * + * + *
    +       * The name of an `ExternalAddress` resource. The external address must
    +       * have been reserved in the scope of this external access rule's parent
    +       * network policy.  Provide the external address name in the form of
    +       * `projects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}`.
    +       * For example:
    +       * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address`.
    +       * 
    + * + * string external_address = 3 [(.google.api.resource_reference) = { ... } + * + * @return The externalAddress. + */ + @java.lang.Override + public java.lang.String getExternalAddress() { + java.lang.Object ref = ""; + if (ipRangeCase_ == 3) { + ref = ipRange_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (ipRangeCase_ == 3) { + ipRange_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * The name of an `ExternalAddress` resource. The external address must
    +       * have been reserved in the scope of this external access rule's parent
    +       * network policy.  Provide the external address name in the form of
    +       * `projects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}`.
    +       * For example:
    +       * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address`.
    +       * 
    + * + * string external_address = 3 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for externalAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExternalAddressBytes() { + java.lang.Object ref = ""; + if (ipRangeCase_ == 3) { + ref = ipRange_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (ipRangeCase_ == 3) { + ipRange_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * The name of an `ExternalAddress` resource. The external address must
    +       * have been reserved in the scope of this external access rule's parent
    +       * network policy.  Provide the external address name in the form of
    +       * `projects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}`.
    +       * For example:
    +       * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address`.
    +       * 
    + * + * string external_address = 3 [(.google.api.resource_reference) = { ... } + * + * @param value The externalAddress to set. + * @return This builder for chaining. + */ + public Builder setExternalAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ipRangeCase_ = 3; + ipRange_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +       * The name of an `ExternalAddress` resource. The external address must
    +       * have been reserved in the scope of this external access rule's parent
    +       * network policy.  Provide the external address name in the form of
    +       * `projects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}`.
    +       * For example:
    +       * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address`.
    +       * 
    + * + * string external_address = 3 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearExternalAddress() { + if (ipRangeCase_ == 3) { + ipRangeCase_ = 0; + ipRange_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
    +       * The name of an `ExternalAddress` resource. The external address must
    +       * have been reserved in the scope of this external access rule's parent
    +       * network policy.  Provide the external address name in the form of
    +       * `projects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}`.
    +       * For example:
    +       * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address`.
    +       * 
    + * + * string external_address = 3 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for externalAddress to set. + * @return This builder for chaining. + */ + public Builder setExternalAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ipRangeCase_ = 3; + ipRange_ = value; + 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.ExternalAccessRule.IpRange) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange) + private static final com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange(); + } + + public static com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IpRange 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.ExternalAccessRule.IpRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Output only. The resource name of this external access rule.
    +   * 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/networkPolicies/my-policy/externalAccessRules/my-rule`
    +   * 
    + * + * 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 this external access rule.
    +   * 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/networkPolicies/my-policy/externalAccessRules/my-rule`
    +   * 
    + * + * 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 = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * + * + *
    +   * User-provided description for this external access rule.
    +   * 
    + * + * string description = 5; + * + * @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; + } + } + /** + * + * + *
    +   * User-provided description for this external access rule.
    +   * 
    + * + * string description = 5; + * + * @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 PRIORITY_FIELD_NUMBER = 6; + private int priority_ = 0; + /** + * + * + *
    +   * External access rule priority, which determines the external access rule to
    +   * use when multiple rules apply. If multiple rules have the same priority,
    +   * their ordering is non-deterministic. If specific ordering is required,
    +   * assign unique priorities to enforce such ordering. The external access rule
    +   * priority is an integer from 100 to 4096, both inclusive. Lower integers
    +   * indicate higher precedence. For example, a rule with priority `100` has
    +   * higher precedence than a rule with priority `101`.
    +   * 
    + * + * int32 priority = 6; + * + * @return The priority. + */ + @java.lang.Override + public int getPriority() { + return priority_; + } + + public static final int ACTION_FIELD_NUMBER = 7; + private int action_ = 0; + /** + * + * + *
    +   * The action that the external access rule performs.
    +   * 
    + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule.Action action = 7; + * + * @return The enum numeric value on the wire for action. + */ + @java.lang.Override + public int getActionValue() { + return action_; + } + /** + * + * + *
    +   * The action that the external access rule performs.
    +   * 
    + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule.Action action = 7; + * + * @return The action. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ExternalAccessRule.Action getAction() { + com.google.cloud.vmwareengine.v1.ExternalAccessRule.Action result = + com.google.cloud.vmwareengine.v1.ExternalAccessRule.Action.forNumber(action_); + return result == null + ? com.google.cloud.vmwareengine.v1.ExternalAccessRule.Action.UNRECOGNIZED + : result; + } + + public static final int IP_PROTOCOL_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object ipProtocol_ = ""; + /** + * + * + *
    +   * The IP protocol to which the external access rule applies. This value can
    +   * be one of the following three protocol strings (not case-sensitive):
    +   * `tcp`, `udp`, or `icmp`.
    +   * 
    + * + * string ip_protocol = 8; + * + * @return The ipProtocol. + */ + @java.lang.Override + public java.lang.String getIpProtocol() { + java.lang.Object ref = ipProtocol_; + 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(); + ipProtocol_ = s; + return s; + } + } + /** + * + * + *
    +   * The IP protocol to which the external access rule applies. This value can
    +   * be one of the following three protocol strings (not case-sensitive):
    +   * `tcp`, `udp`, or `icmp`.
    +   * 
    + * + * string ip_protocol = 8; + * + * @return The bytes for ipProtocol. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIpProtocolBytes() { + java.lang.Object ref = ipProtocol_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipProtocol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_IP_RANGES_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List + sourceIpRanges_; + /** + * + * + *
    +   * If source ranges are specified, the external access rule applies only to
    +   * traffic that has a source IP address in these ranges. These ranges can
    +   * either be expressed in the CIDR format or as an IP address. As only inbound
    +   * rules are supported, `ExternalAddress` resources cannot be the source IP
    +   * addresses of an external access rule. To match all source addresses,
    +   * specify `0.0.0.0/0`.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9; + * + */ + @java.lang.Override + public java.util.List + getSourceIpRangesList() { + return sourceIpRanges_; + } + /** + * + * + *
    +   * If source ranges are specified, the external access rule applies only to
    +   * traffic that has a source IP address in these ranges. These ranges can
    +   * either be expressed in the CIDR format or as an IP address. As only inbound
    +   * rules are supported, `ExternalAddress` resources cannot be the source IP
    +   * addresses of an external access rule. To match all source addresses,
    +   * specify `0.0.0.0/0`.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRangeOrBuilder> + getSourceIpRangesOrBuilderList() { + return sourceIpRanges_; + } + /** + * + * + *
    +   * If source ranges are specified, the external access rule applies only to
    +   * traffic that has a source IP address in these ranges. These ranges can
    +   * either be expressed in the CIDR format or as an IP address. As only inbound
    +   * rules are supported, `ExternalAddress` resources cannot be the source IP
    +   * addresses of an external access rule. To match all source addresses,
    +   * specify `0.0.0.0/0`.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9; + * + */ + @java.lang.Override + public int getSourceIpRangesCount() { + return sourceIpRanges_.size(); + } + /** + * + * + *
    +   * If source ranges are specified, the external access rule applies only to
    +   * traffic that has a source IP address in these ranges. These ranges can
    +   * either be expressed in the CIDR format or as an IP address. As only inbound
    +   * rules are supported, `ExternalAddress` resources cannot be the source IP
    +   * addresses of an external access rule. To match all source addresses,
    +   * specify `0.0.0.0/0`.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange getSourceIpRanges(int index) { + return sourceIpRanges_.get(index); + } + /** + * + * + *
    +   * If source ranges are specified, the external access rule applies only to
    +   * traffic that has a source IP address in these ranges. These ranges can
    +   * either be expressed in the CIDR format or as an IP address. As only inbound
    +   * rules are supported, `ExternalAddress` resources cannot be the source IP
    +   * addresses of an external access rule. To match all source addresses,
    +   * specify `0.0.0.0/0`.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRangeOrBuilder + getSourceIpRangesOrBuilder(int index) { + return sourceIpRanges_.get(index); + } + + public static final int SOURCE_PORTS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList sourcePorts_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
    +   * A list of source ports to which the external access rule applies. This
    +   * field is only applicable for the UDP or TCP protocol.
    +   * Each entry must be either an integer or a range. For example: `["22"]`,
    +   * `["80","443"]`, or `["12345-12349"]`. To match all source ports, specify
    +   * `["0-65535"]`.
    +   * 
    + * + * repeated string source_ports = 10; + * + * @return A list containing the sourcePorts. + */ + public com.google.protobuf.ProtocolStringList getSourcePortsList() { + return sourcePorts_; + } + /** + * + * + *
    +   * A list of source ports to which the external access rule applies. This
    +   * field is only applicable for the UDP or TCP protocol.
    +   * Each entry must be either an integer or a range. For example: `["22"]`,
    +   * `["80","443"]`, or `["12345-12349"]`. To match all source ports, specify
    +   * `["0-65535"]`.
    +   * 
    + * + * repeated string source_ports = 10; + * + * @return The count of sourcePorts. + */ + public int getSourcePortsCount() { + return sourcePorts_.size(); + } + /** + * + * + *
    +   * A list of source ports to which the external access rule applies. This
    +   * field is only applicable for the UDP or TCP protocol.
    +   * Each entry must be either an integer or a range. For example: `["22"]`,
    +   * `["80","443"]`, or `["12345-12349"]`. To match all source ports, specify
    +   * `["0-65535"]`.
    +   * 
    + * + * repeated string source_ports = 10; + * + * @param index The index of the element to return. + * @return The sourcePorts at the given index. + */ + public java.lang.String getSourcePorts(int index) { + return sourcePorts_.get(index); + } + /** + * + * + *
    +   * A list of source ports to which the external access rule applies. This
    +   * field is only applicable for the UDP or TCP protocol.
    +   * Each entry must be either an integer or a range. For example: `["22"]`,
    +   * `["80","443"]`, or `["12345-12349"]`. To match all source ports, specify
    +   * `["0-65535"]`.
    +   * 
    + * + * repeated string source_ports = 10; + * + * @param index The index of the value to return. + * @return The bytes of the sourcePorts at the given index. + */ + public com.google.protobuf.ByteString getSourcePortsBytes(int index) { + return sourcePorts_.getByteString(index); + } + + public static final int DESTINATION_IP_RANGES_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private java.util.List + destinationIpRanges_; + /** + * + * + *
    +   * If destination ranges are specified, the external access rule applies only
    +   * to the traffic that has a destination IP address in these ranges. The
    +   * specified IP addresses must have reserved external IP addresses in the
    +   * scope of the parent network policy. To match all external IP addresses in
    +   * the scope of the parent network policy, specify `0.0.0.0/0`. To match a
    +   * specific external IP address, specify it using the
    +   * `IpRange.external_address` property.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11; + * + */ + @java.lang.Override + public java.util.List + getDestinationIpRangesList() { + return destinationIpRanges_; + } + /** + * + * + *
    +   * If destination ranges are specified, the external access rule applies only
    +   * to the traffic that has a destination IP address in these ranges. The
    +   * specified IP addresses must have reserved external IP addresses in the
    +   * scope of the parent network policy. To match all external IP addresses in
    +   * the scope of the parent network policy, specify `0.0.0.0/0`. To match a
    +   * specific external IP address, specify it using the
    +   * `IpRange.external_address` property.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRangeOrBuilder> + getDestinationIpRangesOrBuilderList() { + return destinationIpRanges_; + } + /** + * + * + *
    +   * If destination ranges are specified, the external access rule applies only
    +   * to the traffic that has a destination IP address in these ranges. The
    +   * specified IP addresses must have reserved external IP addresses in the
    +   * scope of the parent network policy. To match all external IP addresses in
    +   * the scope of the parent network policy, specify `0.0.0.0/0`. To match a
    +   * specific external IP address, specify it using the
    +   * `IpRange.external_address` property.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11; + * + */ + @java.lang.Override + public int getDestinationIpRangesCount() { + return destinationIpRanges_.size(); + } + /** + * + * + *
    +   * If destination ranges are specified, the external access rule applies only
    +   * to the traffic that has a destination IP address in these ranges. The
    +   * specified IP addresses must have reserved external IP addresses in the
    +   * scope of the parent network policy. To match all external IP addresses in
    +   * the scope of the parent network policy, specify `0.0.0.0/0`. To match a
    +   * specific external IP address, specify it using the
    +   * `IpRange.external_address` property.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange getDestinationIpRanges( + int index) { + return destinationIpRanges_.get(index); + } + /** + * + * + *
    +   * If destination ranges are specified, the external access rule applies only
    +   * to the traffic that has a destination IP address in these ranges. The
    +   * specified IP addresses must have reserved external IP addresses in the
    +   * scope of the parent network policy. To match all external IP addresses in
    +   * the scope of the parent network policy, specify `0.0.0.0/0`. To match a
    +   * specific external IP address, specify it using the
    +   * `IpRange.external_address` property.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRangeOrBuilder + getDestinationIpRangesOrBuilder(int index) { + return destinationIpRanges_.get(index); + } + + public static final int DESTINATION_PORTS_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList destinationPorts_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
    +   * A list of destination ports to which the external access rule applies. This
    +   * field is only applicable for the UDP or TCP protocol.
    +   * Each entry must be either an integer or a range. For example: `["22"]`,
    +   * `["80","443"]`, or `["12345-12349"]`. To match all destination ports,
    +   * specify `["0-65535"]`.
    +   * 
    + * + * repeated string destination_ports = 12; + * + * @return A list containing the destinationPorts. + */ + public com.google.protobuf.ProtocolStringList getDestinationPortsList() { + return destinationPorts_; + } + /** + * + * + *
    +   * A list of destination ports to which the external access rule applies. This
    +   * field is only applicable for the UDP or TCP protocol.
    +   * Each entry must be either an integer or a range. For example: `["22"]`,
    +   * `["80","443"]`, or `["12345-12349"]`. To match all destination ports,
    +   * specify `["0-65535"]`.
    +   * 
    + * + * repeated string destination_ports = 12; + * + * @return The count of destinationPorts. + */ + public int getDestinationPortsCount() { + return destinationPorts_.size(); + } + /** + * + * + *
    +   * A list of destination ports to which the external access rule applies. This
    +   * field is only applicable for the UDP or TCP protocol.
    +   * Each entry must be either an integer or a range. For example: `["22"]`,
    +   * `["80","443"]`, or `["12345-12349"]`. To match all destination ports,
    +   * specify `["0-65535"]`.
    +   * 
    + * + * repeated string destination_ports = 12; + * + * @param index The index of the element to return. + * @return The destinationPorts at the given index. + */ + public java.lang.String getDestinationPorts(int index) { + return destinationPorts_.get(index); + } + /** + * + * + *
    +   * A list of destination ports to which the external access rule applies. This
    +   * field is only applicable for the UDP or TCP protocol.
    +   * Each entry must be either an integer or a range. For example: `["22"]`,
    +   * `["80","443"]`, or `["12345-12349"]`. To match all destination ports,
    +   * specify `["0-65535"]`.
    +   * 
    + * + * repeated string destination_ports = 12; + * + * @param index The index of the value to return. + * @return The bytes of the destinationPorts at the given index. + */ + public com.google.protobuf.ByteString getDestinationPortsBytes(int index) { + return destinationPorts_.getByteString(index); + } + + public static final int STATE_FIELD_NUMBER = 13; + private int state_ = 0; + /** + * + * + *
    +   * Output only. The state of the resource.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule.State state = 13 [(.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. The state of the resource.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ExternalAccessRule.State getState() { + com.google.cloud.vmwareengine.v1.ExternalAccessRule.State result = + com.google.cloud.vmwareengine.v1.ExternalAccessRule.State.forNumber(state_); + return result == null + ? com.google.cloud.vmwareengine.v1.ExternalAccessRule.State.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; + } + } + + 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, 5, description_); + } + if (priority_ != 0) { + output.writeInt32(6, priority_); + } + if (action_ + != com.google.cloud.vmwareengine.v1.ExternalAccessRule.Action.ACTION_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, action_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipProtocol_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, ipProtocol_); + } + for (int i = 0; i < sourceIpRanges_.size(); i++) { + output.writeMessage(9, sourceIpRanges_.get(i)); + } + for (int i = 0; i < sourcePorts_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, sourcePorts_.getRaw(i)); + } + for (int i = 0; i < destinationIpRanges_.size(); i++) { + output.writeMessage(11, destinationIpRanges_.get(i)); + } + for (int i = 0; i < destinationPorts_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, destinationPorts_.getRaw(i)); + } + if (state_ + != com.google.cloud.vmwareengine.v1.ExternalAccessRule.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(13, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, uid_); + } + 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(5, description_); + } + if (priority_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, priority_); + } + if (action_ + != com.google.cloud.vmwareengine.v1.ExternalAccessRule.Action.ACTION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, action_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipProtocol_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, ipProtocol_); + } + for (int i = 0; i < sourceIpRanges_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, sourceIpRanges_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < sourcePorts_.size(); i++) { + dataSize += computeStringSizeNoTag(sourcePorts_.getRaw(i)); + } + size += dataSize; + size += 1 * getSourcePortsList().size(); + } + for (int i = 0; i < destinationIpRanges_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(11, destinationIpRanges_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < destinationPorts_.size(); i++) { + dataSize += computeStringSizeNoTag(destinationPorts_.getRaw(i)); + } + size += dataSize; + size += 1 * getDestinationPortsList().size(); + } + if (state_ + != com.google.cloud.vmwareengine.v1.ExternalAccessRule.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, uid_); + } + 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.ExternalAccessRule)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ExternalAccessRule other = + (com.google.cloud.vmwareengine.v1.ExternalAccessRule) 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 (getPriority() != other.getPriority()) return false; + if (action_ != other.action_) return false; + if (!getIpProtocol().equals(other.getIpProtocol())) return false; + if (!getSourceIpRangesList().equals(other.getSourceIpRangesList())) return false; + if (!getSourcePortsList().equals(other.getSourcePortsList())) return false; + if (!getDestinationIpRangesList().equals(other.getDestinationIpRangesList())) return false; + if (!getDestinationPortsList().equals(other.getDestinationPortsList())) return false; + if (state_ != other.state_) return false; + if (!getUid().equals(other.getUid())) 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) + PRIORITY_FIELD_NUMBER; + hash = (53 * hash) + getPriority(); + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + action_; + hash = (37 * hash) + IP_PROTOCOL_FIELD_NUMBER; + hash = (53 * hash) + getIpProtocol().hashCode(); + if (getSourceIpRangesCount() > 0) { + hash = (37 * hash) + SOURCE_IP_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getSourceIpRangesList().hashCode(); + } + if (getSourcePortsCount() > 0) { + hash = (37 * hash) + SOURCE_PORTS_FIELD_NUMBER; + hash = (53 * hash) + getSourcePortsList().hashCode(); + } + if (getDestinationIpRangesCount() > 0) { + hash = (37 * hash) + DESTINATION_IP_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getDestinationIpRangesList().hashCode(); + } + if (getDestinationPortsCount() > 0) { + hash = (37 * hash) + DESTINATION_PORTS_FIELD_NUMBER; + hash = (53 * hash) + getDestinationPortsList().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.ExternalAccessRule parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ExternalAccessRule 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.ExternalAccessRule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ExternalAccessRule 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.ExternalAccessRule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ExternalAccessRule 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.ExternalAccessRule parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ExternalAccessRule 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.ExternalAccessRule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ExternalAccessRule 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.ExternalAccessRule 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.ExternalAccessRule 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.ExternalAccessRule 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; + } + /** + * + * + *
    +   * External access firewall rules for filtering incoming traffic destined to
    +   * `ExternalAddress` resources.
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ExternalAccessRule} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ExternalAccessRule) + com.google.cloud.vmwareengine.v1.ExternalAccessRuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_ExternalAccessRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_ExternalAccessRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ExternalAccessRule.class, + com.google.cloud.vmwareengine.v1.ExternalAccessRule.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.ExternalAccessRule.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_ = ""; + priority_ = 0; + action_ = 0; + ipProtocol_ = ""; + if (sourceIpRangesBuilder_ == null) { + sourceIpRanges_ = java.util.Collections.emptyList(); + } else { + sourceIpRanges_ = null; + sourceIpRangesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + sourcePorts_ = com.google.protobuf.LazyStringArrayList.emptyList(); + if (destinationIpRangesBuilder_ == null) { + destinationIpRanges_ = java.util.Collections.emptyList(); + } else { + destinationIpRanges_ = null; + destinationIpRangesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); + destinationPorts_ = com.google.protobuf.LazyStringArrayList.emptyList(); + state_ = 0; + uid_ = ""; + 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_ExternalAccessRule_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ExternalAccessRule getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ExternalAccessRule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ExternalAccessRule build() { + com.google.cloud.vmwareengine.v1.ExternalAccessRule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ExternalAccessRule buildPartial() { + com.google.cloud.vmwareengine.v1.ExternalAccessRule result = + new com.google.cloud.vmwareengine.v1.ExternalAccessRule(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.vmwareengine.v1.ExternalAccessRule result) { + if (sourceIpRangesBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + sourceIpRanges_ = java.util.Collections.unmodifiableList(sourceIpRanges_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.sourceIpRanges_ = sourceIpRanges_; + } else { + result.sourceIpRanges_ = sourceIpRangesBuilder_.build(); + } + if (destinationIpRangesBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + destinationIpRanges_ = java.util.Collections.unmodifiableList(destinationIpRanges_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.destinationIpRanges_ = destinationIpRanges_; + } else { + result.destinationIpRanges_ = destinationIpRangesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.vmwareengine.v1.ExternalAccessRule 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.priority_ = priority_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.action_ = action_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.ipProtocol_ = ipProtocol_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + sourcePorts_.makeImmutable(); + result.sourcePorts_ = sourcePorts_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + destinationPorts_.makeImmutable(); + result.destinationPorts_ = destinationPorts_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.uid_ = uid_; + } + } + + @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.ExternalAccessRule) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ExternalAccessRule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.ExternalAccessRule other) { + if (other == com.google.cloud.vmwareengine.v1.ExternalAccessRule.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.getPriority() != 0) { + setPriority(other.getPriority()); + } + if (other.action_ != 0) { + setActionValue(other.getActionValue()); + } + if (!other.getIpProtocol().isEmpty()) { + ipProtocol_ = other.ipProtocol_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (sourceIpRangesBuilder_ == null) { + if (!other.sourceIpRanges_.isEmpty()) { + if (sourceIpRanges_.isEmpty()) { + sourceIpRanges_ = other.sourceIpRanges_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureSourceIpRangesIsMutable(); + sourceIpRanges_.addAll(other.sourceIpRanges_); + } + onChanged(); + } + } else { + if (!other.sourceIpRanges_.isEmpty()) { + if (sourceIpRangesBuilder_.isEmpty()) { + sourceIpRangesBuilder_.dispose(); + sourceIpRangesBuilder_ = null; + sourceIpRanges_ = other.sourceIpRanges_; + bitField0_ = (bitField0_ & ~0x00000080); + sourceIpRangesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSourceIpRangesFieldBuilder() + : null; + } else { + sourceIpRangesBuilder_.addAllMessages(other.sourceIpRanges_); + } + } + } + if (!other.sourcePorts_.isEmpty()) { + if (sourcePorts_.isEmpty()) { + sourcePorts_ = other.sourcePorts_; + bitField0_ |= 0x00000100; + } else { + ensureSourcePortsIsMutable(); + sourcePorts_.addAll(other.sourcePorts_); + } + onChanged(); + } + if (destinationIpRangesBuilder_ == null) { + if (!other.destinationIpRanges_.isEmpty()) { + if (destinationIpRanges_.isEmpty()) { + destinationIpRanges_ = other.destinationIpRanges_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureDestinationIpRangesIsMutable(); + destinationIpRanges_.addAll(other.destinationIpRanges_); + } + onChanged(); + } + } else { + if (!other.destinationIpRanges_.isEmpty()) { + if (destinationIpRangesBuilder_.isEmpty()) { + destinationIpRangesBuilder_.dispose(); + destinationIpRangesBuilder_ = null; + destinationIpRanges_ = other.destinationIpRanges_; + bitField0_ = (bitField0_ & ~0x00000200); + destinationIpRangesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDestinationIpRangesFieldBuilder() + : null; + } else { + destinationIpRangesBuilder_.addAllMessages(other.destinationIpRanges_); + } + } + } + if (!other.destinationPorts_.isEmpty()) { + if (destinationPorts_.isEmpty()) { + destinationPorts_ = other.destinationPorts_; + bitField0_ |= 0x00000400; + } else { + ensureDestinationPortsIsMutable(); + destinationPorts_.addAll(other.destinationPorts_); + } + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00001000; + 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: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 48: + { + priority_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 56: + { + action_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 56 + case 66: + { + ipProtocol_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 74: + { + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange m = + input.readMessage( + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.parser(), + extensionRegistry); + if (sourceIpRangesBuilder_ == null) { + ensureSourceIpRangesIsMutable(); + sourceIpRanges_.add(m); + } else { + sourceIpRangesBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSourcePortsIsMutable(); + sourcePorts_.add(s); + break; + } // case 82 + case 90: + { + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange m = + input.readMessage( + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.parser(), + extensionRegistry); + if (destinationIpRangesBuilder_ == null) { + ensureDestinationIpRangesIsMutable(); + destinationIpRanges_.add(m); + } else { + destinationIpRangesBuilder_.addMessage(m); + } + break; + } // case 90 + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDestinationPortsIsMutable(); + destinationPorts_.add(s); + break; + } // case 98 + case 104: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000800; + break; + } // case 104 + case 114: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 114 + 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 this external access rule.
    +     * 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/networkPolicies/my-policy/externalAccessRules/my-rule`
    +     * 
    + * + * 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 this external access rule.
    +     * 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/networkPolicies/my-policy/externalAccessRules/my-rule`
    +     * 
    + * + * 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 this external access rule.
    +     * 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/networkPolicies/my-policy/externalAccessRules/my-rule`
    +     * 
    + * + * 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 this external access rule.
    +     * 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/networkPolicies/my-policy/externalAccessRules/my-rule`
    +     * 
    + * + * 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 this external access rule.
    +     * 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/networkPolicies/my-policy/externalAccessRules/my-rule`
    +     * 
    + * + * 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_ = ""; + /** + * + * + *
    +     * User-provided description for this external access rule.
    +     * 
    + * + * string description = 5; + * + * @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; + } + } + /** + * + * + *
    +     * User-provided description for this external access rule.
    +     * 
    + * + * string description = 5; + * + * @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; + } + } + /** + * + * + *
    +     * User-provided description for this external access rule.
    +     * 
    + * + * string description = 5; + * + * @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; + } + /** + * + * + *
    +     * User-provided description for this external access rule.
    +     * 
    + * + * string description = 5; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
    +     * User-provided description for this external access rule.
    +     * 
    + * + * string description = 5; + * + * @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 priority_; + /** + * + * + *
    +     * External access rule priority, which determines the external access rule to
    +     * use when multiple rules apply. If multiple rules have the same priority,
    +     * their ordering is non-deterministic. If specific ordering is required,
    +     * assign unique priorities to enforce such ordering. The external access rule
    +     * priority is an integer from 100 to 4096, both inclusive. Lower integers
    +     * indicate higher precedence. For example, a rule with priority `100` has
    +     * higher precedence than a rule with priority `101`.
    +     * 
    + * + * int32 priority = 6; + * + * @return The priority. + */ + @java.lang.Override + public int getPriority() { + return priority_; + } + /** + * + * + *
    +     * External access rule priority, which determines the external access rule to
    +     * use when multiple rules apply. If multiple rules have the same priority,
    +     * their ordering is non-deterministic. If specific ordering is required,
    +     * assign unique priorities to enforce such ordering. The external access rule
    +     * priority is an integer from 100 to 4096, both inclusive. Lower integers
    +     * indicate higher precedence. For example, a rule with priority `100` has
    +     * higher precedence than a rule with priority `101`.
    +     * 
    + * + * int32 priority = 6; + * + * @param value The priority to set. + * @return This builder for chaining. + */ + public Builder setPriority(int value) { + + priority_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +     * External access rule priority, which determines the external access rule to
    +     * use when multiple rules apply. If multiple rules have the same priority,
    +     * their ordering is non-deterministic. If specific ordering is required,
    +     * assign unique priorities to enforce such ordering. The external access rule
    +     * priority is an integer from 100 to 4096, both inclusive. Lower integers
    +     * indicate higher precedence. For example, a rule with priority `100` has
    +     * higher precedence than a rule with priority `101`.
    +     * 
    + * + * int32 priority = 6; + * + * @return This builder for chaining. + */ + public Builder clearPriority() { + bitField0_ = (bitField0_ & ~0x00000010); + priority_ = 0; + onChanged(); + return this; + } + + private int action_ = 0; + /** + * + * + *
    +     * The action that the external access rule performs.
    +     * 
    + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule.Action action = 7; + * + * @return The enum numeric value on the wire for action. + */ + @java.lang.Override + public int getActionValue() { + return action_; + } + /** + * + * + *
    +     * The action that the external access rule performs.
    +     * 
    + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule.Action action = 7; + * + * @param value The enum numeric value on the wire for action to set. + * @return This builder for chaining. + */ + public Builder setActionValue(int value) { + action_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
    +     * The action that the external access rule performs.
    +     * 
    + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule.Action action = 7; + * + * @return The action. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ExternalAccessRule.Action getAction() { + com.google.cloud.vmwareengine.v1.ExternalAccessRule.Action result = + com.google.cloud.vmwareengine.v1.ExternalAccessRule.Action.forNumber(action_); + return result == null + ? com.google.cloud.vmwareengine.v1.ExternalAccessRule.Action.UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * The action that the external access rule performs.
    +     * 
    + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule.Action action = 7; + * + * @param value The action to set. + * @return This builder for chaining. + */ + public Builder setAction(com.google.cloud.vmwareengine.v1.ExternalAccessRule.Action value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + action_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * The action that the external access rule performs.
    +     * 
    + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule.Action action = 7; + * + * @return This builder for chaining. + */ + public Builder clearAction() { + bitField0_ = (bitField0_ & ~0x00000020); + action_ = 0; + onChanged(); + return this; + } + + private java.lang.Object ipProtocol_ = ""; + /** + * + * + *
    +     * The IP protocol to which the external access rule applies. This value can
    +     * be one of the following three protocol strings (not case-sensitive):
    +     * `tcp`, `udp`, or `icmp`.
    +     * 
    + * + * string ip_protocol = 8; + * + * @return The ipProtocol. + */ + public java.lang.String getIpProtocol() { + java.lang.Object ref = ipProtocol_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipProtocol_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * The IP protocol to which the external access rule applies. This value can
    +     * be one of the following three protocol strings (not case-sensitive):
    +     * `tcp`, `udp`, or `icmp`.
    +     * 
    + * + * string ip_protocol = 8; + * + * @return The bytes for ipProtocol. + */ + public com.google.protobuf.ByteString getIpProtocolBytes() { + java.lang.Object ref = ipProtocol_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipProtocol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * The IP protocol to which the external access rule applies. This value can
    +     * be one of the following three protocol strings (not case-sensitive):
    +     * `tcp`, `udp`, or `icmp`.
    +     * 
    + * + * string ip_protocol = 8; + * + * @param value The ipProtocol to set. + * @return This builder for chaining. + */ + public Builder setIpProtocol(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ipProtocol_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
    +     * The IP protocol to which the external access rule applies. This value can
    +     * be one of the following three protocol strings (not case-sensitive):
    +     * `tcp`, `udp`, or `icmp`.
    +     * 
    + * + * string ip_protocol = 8; + * + * @return This builder for chaining. + */ + public Builder clearIpProtocol() { + ipProtocol_ = getDefaultInstance().getIpProtocol(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
    +     * The IP protocol to which the external access rule applies. This value can
    +     * be one of the following three protocol strings (not case-sensitive):
    +     * `tcp`, `udp`, or `icmp`.
    +     * 
    + * + * string ip_protocol = 8; + * + * @param value The bytes for ipProtocol to set. + * @return This builder for chaining. + */ + public Builder setIpProtocolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ipProtocol_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.util.List + sourceIpRanges_ = java.util.Collections.emptyList(); + + private void ensureSourceIpRangesIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + sourceIpRanges_ = + new java.util.ArrayList( + sourceIpRanges_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange, + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.Builder, + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRangeOrBuilder> + sourceIpRangesBuilder_; + + /** + * + * + *
    +     * If source ranges are specified, the external access rule applies only to
    +     * traffic that has a source IP address in these ranges. These ranges can
    +     * either be expressed in the CIDR format or as an IP address. As only inbound
    +     * rules are supported, `ExternalAddress` resources cannot be the source IP
    +     * addresses of an external access rule. To match all source addresses,
    +     * specify `0.0.0.0/0`.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9; + * + */ + public java.util.List + getSourceIpRangesList() { + if (sourceIpRangesBuilder_ == null) { + return java.util.Collections.unmodifiableList(sourceIpRanges_); + } else { + return sourceIpRangesBuilder_.getMessageList(); + } + } + /** + * + * + *
    +     * If source ranges are specified, the external access rule applies only to
    +     * traffic that has a source IP address in these ranges. These ranges can
    +     * either be expressed in the CIDR format or as an IP address. As only inbound
    +     * rules are supported, `ExternalAddress` resources cannot be the source IP
    +     * addresses of an external access rule. To match all source addresses,
    +     * specify `0.0.0.0/0`.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9; + * + */ + public int getSourceIpRangesCount() { + if (sourceIpRangesBuilder_ == null) { + return sourceIpRanges_.size(); + } else { + return sourceIpRangesBuilder_.getCount(); + } + } + /** + * + * + *
    +     * If source ranges are specified, the external access rule applies only to
    +     * traffic that has a source IP address in these ranges. These ranges can
    +     * either be expressed in the CIDR format or as an IP address. As only inbound
    +     * rules are supported, `ExternalAddress` resources cannot be the source IP
    +     * addresses of an external access rule. To match all source addresses,
    +     * specify `0.0.0.0/0`.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9; + * + */ + public com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange getSourceIpRanges( + int index) { + if (sourceIpRangesBuilder_ == null) { + return sourceIpRanges_.get(index); + } else { + return sourceIpRangesBuilder_.getMessage(index); + } + } + /** + * + * + *
    +     * If source ranges are specified, the external access rule applies only to
    +     * traffic that has a source IP address in these ranges. These ranges can
    +     * either be expressed in the CIDR format or as an IP address. As only inbound
    +     * rules are supported, `ExternalAddress` resources cannot be the source IP
    +     * addresses of an external access rule. To match all source addresses,
    +     * specify `0.0.0.0/0`.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9; + * + */ + public Builder setSourceIpRanges( + int index, com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange value) { + if (sourceIpRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourceIpRangesIsMutable(); + sourceIpRanges_.set(index, value); + onChanged(); + } else { + sourceIpRangesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * If source ranges are specified, the external access rule applies only to
    +     * traffic that has a source IP address in these ranges. These ranges can
    +     * either be expressed in the CIDR format or as an IP address. As only inbound
    +     * rules are supported, `ExternalAddress` resources cannot be the source IP
    +     * addresses of an external access rule. To match all source addresses,
    +     * specify `0.0.0.0/0`.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9; + * + */ + public Builder setSourceIpRanges( + int index, + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.Builder builderForValue) { + if (sourceIpRangesBuilder_ == null) { + ensureSourceIpRangesIsMutable(); + sourceIpRanges_.set(index, builderForValue.build()); + onChanged(); + } else { + sourceIpRangesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * If source ranges are specified, the external access rule applies only to
    +     * traffic that has a source IP address in these ranges. These ranges can
    +     * either be expressed in the CIDR format or as an IP address. As only inbound
    +     * rules are supported, `ExternalAddress` resources cannot be the source IP
    +     * addresses of an external access rule. To match all source addresses,
    +     * specify `0.0.0.0/0`.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9; + * + */ + public Builder addSourceIpRanges( + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange value) { + if (sourceIpRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourceIpRangesIsMutable(); + sourceIpRanges_.add(value); + onChanged(); + } else { + sourceIpRangesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +     * If source ranges are specified, the external access rule applies only to
    +     * traffic that has a source IP address in these ranges. These ranges can
    +     * either be expressed in the CIDR format or as an IP address. As only inbound
    +     * rules are supported, `ExternalAddress` resources cannot be the source IP
    +     * addresses of an external access rule. To match all source addresses,
    +     * specify `0.0.0.0/0`.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9; + * + */ + public Builder addSourceIpRanges( + int index, com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange value) { + if (sourceIpRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourceIpRangesIsMutable(); + sourceIpRanges_.add(index, value); + onChanged(); + } else { + sourceIpRangesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * If source ranges are specified, the external access rule applies only to
    +     * traffic that has a source IP address in these ranges. These ranges can
    +     * either be expressed in the CIDR format or as an IP address. As only inbound
    +     * rules are supported, `ExternalAddress` resources cannot be the source IP
    +     * addresses of an external access rule. To match all source addresses,
    +     * specify `0.0.0.0/0`.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9; + * + */ + public Builder addSourceIpRanges( + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.Builder builderForValue) { + if (sourceIpRangesBuilder_ == null) { + ensureSourceIpRangesIsMutable(); + sourceIpRanges_.add(builderForValue.build()); + onChanged(); + } else { + sourceIpRangesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * If source ranges are specified, the external access rule applies only to
    +     * traffic that has a source IP address in these ranges. These ranges can
    +     * either be expressed in the CIDR format or as an IP address. As only inbound
    +     * rules are supported, `ExternalAddress` resources cannot be the source IP
    +     * addresses of an external access rule. To match all source addresses,
    +     * specify `0.0.0.0/0`.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9; + * + */ + public Builder addSourceIpRanges( + int index, + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.Builder builderForValue) { + if (sourceIpRangesBuilder_ == null) { + ensureSourceIpRangesIsMutable(); + sourceIpRanges_.add(index, builderForValue.build()); + onChanged(); + } else { + sourceIpRangesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * If source ranges are specified, the external access rule applies only to
    +     * traffic that has a source IP address in these ranges. These ranges can
    +     * either be expressed in the CIDR format or as an IP address. As only inbound
    +     * rules are supported, `ExternalAddress` resources cannot be the source IP
    +     * addresses of an external access rule. To match all source addresses,
    +     * specify `0.0.0.0/0`.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9; + * + */ + public Builder addAllSourceIpRanges( + java.lang.Iterable + values) { + if (sourceIpRangesBuilder_ == null) { + ensureSourceIpRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sourceIpRanges_); + onChanged(); + } else { + sourceIpRangesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +     * If source ranges are specified, the external access rule applies only to
    +     * traffic that has a source IP address in these ranges. These ranges can
    +     * either be expressed in the CIDR format or as an IP address. As only inbound
    +     * rules are supported, `ExternalAddress` resources cannot be the source IP
    +     * addresses of an external access rule. To match all source addresses,
    +     * specify `0.0.0.0/0`.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9; + * + */ + public Builder clearSourceIpRanges() { + if (sourceIpRangesBuilder_ == null) { + sourceIpRanges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + sourceIpRangesBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * If source ranges are specified, the external access rule applies only to
    +     * traffic that has a source IP address in these ranges. These ranges can
    +     * either be expressed in the CIDR format or as an IP address. As only inbound
    +     * rules are supported, `ExternalAddress` resources cannot be the source IP
    +     * addresses of an external access rule. To match all source addresses,
    +     * specify `0.0.0.0/0`.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9; + * + */ + public Builder removeSourceIpRanges(int index) { + if (sourceIpRangesBuilder_ == null) { + ensureSourceIpRangesIsMutable(); + sourceIpRanges_.remove(index); + onChanged(); + } else { + sourceIpRangesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +     * If source ranges are specified, the external access rule applies only to
    +     * traffic that has a source IP address in these ranges. These ranges can
    +     * either be expressed in the CIDR format or as an IP address. As only inbound
    +     * rules are supported, `ExternalAddress` resources cannot be the source IP
    +     * addresses of an external access rule. To match all source addresses,
    +     * specify `0.0.0.0/0`.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9; + * + */ + public com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.Builder + getSourceIpRangesBuilder(int index) { + return getSourceIpRangesFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +     * If source ranges are specified, the external access rule applies only to
    +     * traffic that has a source IP address in these ranges. These ranges can
    +     * either be expressed in the CIDR format or as an IP address. As only inbound
    +     * rules are supported, `ExternalAddress` resources cannot be the source IP
    +     * addresses of an external access rule. To match all source addresses,
    +     * specify `0.0.0.0/0`.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9; + * + */ + public com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRangeOrBuilder + getSourceIpRangesOrBuilder(int index) { + if (sourceIpRangesBuilder_ == null) { + return sourceIpRanges_.get(index); + } else { + return sourceIpRangesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +     * If source ranges are specified, the external access rule applies only to
    +     * traffic that has a source IP address in these ranges. These ranges can
    +     * either be expressed in the CIDR format or as an IP address. As only inbound
    +     * rules are supported, `ExternalAddress` resources cannot be the source IP
    +     * addresses of an external access rule. To match all source addresses,
    +     * specify `0.0.0.0/0`.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9; + * + */ + public java.util.List< + ? extends com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRangeOrBuilder> + getSourceIpRangesOrBuilderList() { + if (sourceIpRangesBuilder_ != null) { + return sourceIpRangesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sourceIpRanges_); + } + } + /** + * + * + *
    +     * If source ranges are specified, the external access rule applies only to
    +     * traffic that has a source IP address in these ranges. These ranges can
    +     * either be expressed in the CIDR format or as an IP address. As only inbound
    +     * rules are supported, `ExternalAddress` resources cannot be the source IP
    +     * addresses of an external access rule. To match all source addresses,
    +     * specify `0.0.0.0/0`.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9; + * + */ + public com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.Builder + addSourceIpRangesBuilder() { + return getSourceIpRangesFieldBuilder() + .addBuilder( + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.getDefaultInstance()); + } + /** + * + * + *
    +     * If source ranges are specified, the external access rule applies only to
    +     * traffic that has a source IP address in these ranges. These ranges can
    +     * either be expressed in the CIDR format or as an IP address. As only inbound
    +     * rules are supported, `ExternalAddress` resources cannot be the source IP
    +     * addresses of an external access rule. To match all source addresses,
    +     * specify `0.0.0.0/0`.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9; + * + */ + public com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.Builder + addSourceIpRangesBuilder(int index) { + return getSourceIpRangesFieldBuilder() + .addBuilder( + index, + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.getDefaultInstance()); + } + /** + * + * + *
    +     * If source ranges are specified, the external access rule applies only to
    +     * traffic that has a source IP address in these ranges. These ranges can
    +     * either be expressed in the CIDR format or as an IP address. As only inbound
    +     * rules are supported, `ExternalAddress` resources cannot be the source IP
    +     * addresses of an external access rule. To match all source addresses,
    +     * specify `0.0.0.0/0`.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9; + * + */ + public java.util.List + getSourceIpRangesBuilderList() { + return getSourceIpRangesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange, + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.Builder, + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRangeOrBuilder> + getSourceIpRangesFieldBuilder() { + if (sourceIpRangesBuilder_ == null) { + sourceIpRangesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange, + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.Builder, + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRangeOrBuilder>( + sourceIpRanges_, + ((bitField0_ & 0x00000080) != 0), + getParentForChildren(), + isClean()); + sourceIpRanges_ = null; + } + return sourceIpRangesBuilder_; + } + + private com.google.protobuf.LazyStringArrayList sourcePorts_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureSourcePortsIsMutable() { + if (!sourcePorts_.isModifiable()) { + sourcePorts_ = new com.google.protobuf.LazyStringArrayList(sourcePorts_); + } + bitField0_ |= 0x00000100; + } + /** + * + * + *
    +     * A list of source ports to which the external access rule applies. This
    +     * field is only applicable for the UDP or TCP protocol.
    +     * Each entry must be either an integer or a range. For example: `["22"]`,
    +     * `["80","443"]`, or `["12345-12349"]`. To match all source ports, specify
    +     * `["0-65535"]`.
    +     * 
    + * + * repeated string source_ports = 10; + * + * @return A list containing the sourcePorts. + */ + public com.google.protobuf.ProtocolStringList getSourcePortsList() { + sourcePorts_.makeImmutable(); + return sourcePorts_; + } + /** + * + * + *
    +     * A list of source ports to which the external access rule applies. This
    +     * field is only applicable for the UDP or TCP protocol.
    +     * Each entry must be either an integer or a range. For example: `["22"]`,
    +     * `["80","443"]`, or `["12345-12349"]`. To match all source ports, specify
    +     * `["0-65535"]`.
    +     * 
    + * + * repeated string source_ports = 10; + * + * @return The count of sourcePorts. + */ + public int getSourcePortsCount() { + return sourcePorts_.size(); + } + /** + * + * + *
    +     * A list of source ports to which the external access rule applies. This
    +     * field is only applicable for the UDP or TCP protocol.
    +     * Each entry must be either an integer or a range. For example: `["22"]`,
    +     * `["80","443"]`, or `["12345-12349"]`. To match all source ports, specify
    +     * `["0-65535"]`.
    +     * 
    + * + * repeated string source_ports = 10; + * + * @param index The index of the element to return. + * @return The sourcePorts at the given index. + */ + public java.lang.String getSourcePorts(int index) { + return sourcePorts_.get(index); + } + /** + * + * + *
    +     * A list of source ports to which the external access rule applies. This
    +     * field is only applicable for the UDP or TCP protocol.
    +     * Each entry must be either an integer or a range. For example: `["22"]`,
    +     * `["80","443"]`, or `["12345-12349"]`. To match all source ports, specify
    +     * `["0-65535"]`.
    +     * 
    + * + * repeated string source_ports = 10; + * + * @param index The index of the value to return. + * @return The bytes of the sourcePorts at the given index. + */ + public com.google.protobuf.ByteString getSourcePortsBytes(int index) { + return sourcePorts_.getByteString(index); + } + /** + * + * + *
    +     * A list of source ports to which the external access rule applies. This
    +     * field is only applicable for the UDP or TCP protocol.
    +     * Each entry must be either an integer or a range. For example: `["22"]`,
    +     * `["80","443"]`, or `["12345-12349"]`. To match all source ports, specify
    +     * `["0-65535"]`.
    +     * 
    + * + * repeated string source_ports = 10; + * + * @param index The index to set the value at. + * @param value The sourcePorts to set. + * @return This builder for chaining. + */ + public Builder setSourcePorts(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourcePortsIsMutable(); + sourcePorts_.set(index, value); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
    +     * A list of source ports to which the external access rule applies. This
    +     * field is only applicable for the UDP or TCP protocol.
    +     * Each entry must be either an integer or a range. For example: `["22"]`,
    +     * `["80","443"]`, or `["12345-12349"]`. To match all source ports, specify
    +     * `["0-65535"]`.
    +     * 
    + * + * repeated string source_ports = 10; + * + * @param value The sourcePorts to add. + * @return This builder for chaining. + */ + public Builder addSourcePorts(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourcePortsIsMutable(); + sourcePorts_.add(value); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
    +     * A list of source ports to which the external access rule applies. This
    +     * field is only applicable for the UDP or TCP protocol.
    +     * Each entry must be either an integer or a range. For example: `["22"]`,
    +     * `["80","443"]`, or `["12345-12349"]`. To match all source ports, specify
    +     * `["0-65535"]`.
    +     * 
    + * + * repeated string source_ports = 10; + * + * @param values The sourcePorts to add. + * @return This builder for chaining. + */ + public Builder addAllSourcePorts(java.lang.Iterable values) { + ensureSourcePortsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sourcePorts_); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
    +     * A list of source ports to which the external access rule applies. This
    +     * field is only applicable for the UDP or TCP protocol.
    +     * Each entry must be either an integer or a range. For example: `["22"]`,
    +     * `["80","443"]`, or `["12345-12349"]`. To match all source ports, specify
    +     * `["0-65535"]`.
    +     * 
    + * + * repeated string source_ports = 10; + * + * @return This builder for chaining. + */ + public Builder clearSourcePorts() { + sourcePorts_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + ; + onChanged(); + return this; + } + /** + * + * + *
    +     * A list of source ports to which the external access rule applies. This
    +     * field is only applicable for the UDP or TCP protocol.
    +     * Each entry must be either an integer or a range. For example: `["22"]`,
    +     * `["80","443"]`, or `["12345-12349"]`. To match all source ports, specify
    +     * `["0-65535"]`.
    +     * 
    + * + * repeated string source_ports = 10; + * + * @param value The bytes of the sourcePorts to add. + * @return This builder for chaining. + */ + public Builder addSourcePortsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSourcePortsIsMutable(); + sourcePorts_.add(value); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.util.List + destinationIpRanges_ = java.util.Collections.emptyList(); + + private void ensureDestinationIpRangesIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + destinationIpRanges_ = + new java.util.ArrayList( + destinationIpRanges_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange, + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.Builder, + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRangeOrBuilder> + destinationIpRangesBuilder_; + + /** + * + * + *
    +     * If destination ranges are specified, the external access rule applies only
    +     * to the traffic that has a destination IP address in these ranges. The
    +     * specified IP addresses must have reserved external IP addresses in the
    +     * scope of the parent network policy. To match all external IP addresses in
    +     * the scope of the parent network policy, specify `0.0.0.0/0`. To match a
    +     * specific external IP address, specify it using the
    +     * `IpRange.external_address` property.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11; + * + */ + public java.util.List + getDestinationIpRangesList() { + if (destinationIpRangesBuilder_ == null) { + return java.util.Collections.unmodifiableList(destinationIpRanges_); + } else { + return destinationIpRangesBuilder_.getMessageList(); + } + } + /** + * + * + *
    +     * If destination ranges are specified, the external access rule applies only
    +     * to the traffic that has a destination IP address in these ranges. The
    +     * specified IP addresses must have reserved external IP addresses in the
    +     * scope of the parent network policy. To match all external IP addresses in
    +     * the scope of the parent network policy, specify `0.0.0.0/0`. To match a
    +     * specific external IP address, specify it using the
    +     * `IpRange.external_address` property.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11; + * + */ + public int getDestinationIpRangesCount() { + if (destinationIpRangesBuilder_ == null) { + return destinationIpRanges_.size(); + } else { + return destinationIpRangesBuilder_.getCount(); + } + } + /** + * + * + *
    +     * If destination ranges are specified, the external access rule applies only
    +     * to the traffic that has a destination IP address in these ranges. The
    +     * specified IP addresses must have reserved external IP addresses in the
    +     * scope of the parent network policy. To match all external IP addresses in
    +     * the scope of the parent network policy, specify `0.0.0.0/0`. To match a
    +     * specific external IP address, specify it using the
    +     * `IpRange.external_address` property.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11; + * + */ + public com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange getDestinationIpRanges( + int index) { + if (destinationIpRangesBuilder_ == null) { + return destinationIpRanges_.get(index); + } else { + return destinationIpRangesBuilder_.getMessage(index); + } + } + /** + * + * + *
    +     * If destination ranges are specified, the external access rule applies only
    +     * to the traffic that has a destination IP address in these ranges. The
    +     * specified IP addresses must have reserved external IP addresses in the
    +     * scope of the parent network policy. To match all external IP addresses in
    +     * the scope of the parent network policy, specify `0.0.0.0/0`. To match a
    +     * specific external IP address, specify it using the
    +     * `IpRange.external_address` property.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11; + * + */ + public Builder setDestinationIpRanges( + int index, com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange value) { + if (destinationIpRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDestinationIpRangesIsMutable(); + destinationIpRanges_.set(index, value); + onChanged(); + } else { + destinationIpRangesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * If destination ranges are specified, the external access rule applies only
    +     * to the traffic that has a destination IP address in these ranges. The
    +     * specified IP addresses must have reserved external IP addresses in the
    +     * scope of the parent network policy. To match all external IP addresses in
    +     * the scope of the parent network policy, specify `0.0.0.0/0`. To match a
    +     * specific external IP address, specify it using the
    +     * `IpRange.external_address` property.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11; + * + */ + public Builder setDestinationIpRanges( + int index, + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.Builder builderForValue) { + if (destinationIpRangesBuilder_ == null) { + ensureDestinationIpRangesIsMutable(); + destinationIpRanges_.set(index, builderForValue.build()); + onChanged(); + } else { + destinationIpRangesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * If destination ranges are specified, the external access rule applies only
    +     * to the traffic that has a destination IP address in these ranges. The
    +     * specified IP addresses must have reserved external IP addresses in the
    +     * scope of the parent network policy. To match all external IP addresses in
    +     * the scope of the parent network policy, specify `0.0.0.0/0`. To match a
    +     * specific external IP address, specify it using the
    +     * `IpRange.external_address` property.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11; + * + */ + public Builder addDestinationIpRanges( + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange value) { + if (destinationIpRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDestinationIpRangesIsMutable(); + destinationIpRanges_.add(value); + onChanged(); + } else { + destinationIpRangesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +     * If destination ranges are specified, the external access rule applies only
    +     * to the traffic that has a destination IP address in these ranges. The
    +     * specified IP addresses must have reserved external IP addresses in the
    +     * scope of the parent network policy. To match all external IP addresses in
    +     * the scope of the parent network policy, specify `0.0.0.0/0`. To match a
    +     * specific external IP address, specify it using the
    +     * `IpRange.external_address` property.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11; + * + */ + public Builder addDestinationIpRanges( + int index, com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange value) { + if (destinationIpRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDestinationIpRangesIsMutable(); + destinationIpRanges_.add(index, value); + onChanged(); + } else { + destinationIpRangesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * If destination ranges are specified, the external access rule applies only
    +     * to the traffic that has a destination IP address in these ranges. The
    +     * specified IP addresses must have reserved external IP addresses in the
    +     * scope of the parent network policy. To match all external IP addresses in
    +     * the scope of the parent network policy, specify `0.0.0.0/0`. To match a
    +     * specific external IP address, specify it using the
    +     * `IpRange.external_address` property.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11; + * + */ + public Builder addDestinationIpRanges( + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.Builder builderForValue) { + if (destinationIpRangesBuilder_ == null) { + ensureDestinationIpRangesIsMutable(); + destinationIpRanges_.add(builderForValue.build()); + onChanged(); + } else { + destinationIpRangesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * If destination ranges are specified, the external access rule applies only
    +     * to the traffic that has a destination IP address in these ranges. The
    +     * specified IP addresses must have reserved external IP addresses in the
    +     * scope of the parent network policy. To match all external IP addresses in
    +     * the scope of the parent network policy, specify `0.0.0.0/0`. To match a
    +     * specific external IP address, specify it using the
    +     * `IpRange.external_address` property.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11; + * + */ + public Builder addDestinationIpRanges( + int index, + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.Builder builderForValue) { + if (destinationIpRangesBuilder_ == null) { + ensureDestinationIpRangesIsMutable(); + destinationIpRanges_.add(index, builderForValue.build()); + onChanged(); + } else { + destinationIpRangesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * If destination ranges are specified, the external access rule applies only
    +     * to the traffic that has a destination IP address in these ranges. The
    +     * specified IP addresses must have reserved external IP addresses in the
    +     * scope of the parent network policy. To match all external IP addresses in
    +     * the scope of the parent network policy, specify `0.0.0.0/0`. To match a
    +     * specific external IP address, specify it using the
    +     * `IpRange.external_address` property.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11; + * + */ + public Builder addAllDestinationIpRanges( + java.lang.Iterable + values) { + if (destinationIpRangesBuilder_ == null) { + ensureDestinationIpRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, destinationIpRanges_); + onChanged(); + } else { + destinationIpRangesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +     * If destination ranges are specified, the external access rule applies only
    +     * to the traffic that has a destination IP address in these ranges. The
    +     * specified IP addresses must have reserved external IP addresses in the
    +     * scope of the parent network policy. To match all external IP addresses in
    +     * the scope of the parent network policy, specify `0.0.0.0/0`. To match a
    +     * specific external IP address, specify it using the
    +     * `IpRange.external_address` property.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11; + * + */ + public Builder clearDestinationIpRanges() { + if (destinationIpRangesBuilder_ == null) { + destinationIpRanges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + destinationIpRangesBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * If destination ranges are specified, the external access rule applies only
    +     * to the traffic that has a destination IP address in these ranges. The
    +     * specified IP addresses must have reserved external IP addresses in the
    +     * scope of the parent network policy. To match all external IP addresses in
    +     * the scope of the parent network policy, specify `0.0.0.0/0`. To match a
    +     * specific external IP address, specify it using the
    +     * `IpRange.external_address` property.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11; + * + */ + public Builder removeDestinationIpRanges(int index) { + if (destinationIpRangesBuilder_ == null) { + ensureDestinationIpRangesIsMutable(); + destinationIpRanges_.remove(index); + onChanged(); + } else { + destinationIpRangesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +     * If destination ranges are specified, the external access rule applies only
    +     * to the traffic that has a destination IP address in these ranges. The
    +     * specified IP addresses must have reserved external IP addresses in the
    +     * scope of the parent network policy. To match all external IP addresses in
    +     * the scope of the parent network policy, specify `0.0.0.0/0`. To match a
    +     * specific external IP address, specify it using the
    +     * `IpRange.external_address` property.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11; + * + */ + public com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.Builder + getDestinationIpRangesBuilder(int index) { + return getDestinationIpRangesFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +     * If destination ranges are specified, the external access rule applies only
    +     * to the traffic that has a destination IP address in these ranges. The
    +     * specified IP addresses must have reserved external IP addresses in the
    +     * scope of the parent network policy. To match all external IP addresses in
    +     * the scope of the parent network policy, specify `0.0.0.0/0`. To match a
    +     * specific external IP address, specify it using the
    +     * `IpRange.external_address` property.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11; + * + */ + public com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRangeOrBuilder + getDestinationIpRangesOrBuilder(int index) { + if (destinationIpRangesBuilder_ == null) { + return destinationIpRanges_.get(index); + } else { + return destinationIpRangesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +     * If destination ranges are specified, the external access rule applies only
    +     * to the traffic that has a destination IP address in these ranges. The
    +     * specified IP addresses must have reserved external IP addresses in the
    +     * scope of the parent network policy. To match all external IP addresses in
    +     * the scope of the parent network policy, specify `0.0.0.0/0`. To match a
    +     * specific external IP address, specify it using the
    +     * `IpRange.external_address` property.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11; + * + */ + public java.util.List< + ? extends com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRangeOrBuilder> + getDestinationIpRangesOrBuilderList() { + if (destinationIpRangesBuilder_ != null) { + return destinationIpRangesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(destinationIpRanges_); + } + } + /** + * + * + *
    +     * If destination ranges are specified, the external access rule applies only
    +     * to the traffic that has a destination IP address in these ranges. The
    +     * specified IP addresses must have reserved external IP addresses in the
    +     * scope of the parent network policy. To match all external IP addresses in
    +     * the scope of the parent network policy, specify `0.0.0.0/0`. To match a
    +     * specific external IP address, specify it using the
    +     * `IpRange.external_address` property.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11; + * + */ + public com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.Builder + addDestinationIpRangesBuilder() { + return getDestinationIpRangesFieldBuilder() + .addBuilder( + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.getDefaultInstance()); + } + /** + * + * + *
    +     * If destination ranges are specified, the external access rule applies only
    +     * to the traffic that has a destination IP address in these ranges. The
    +     * specified IP addresses must have reserved external IP addresses in the
    +     * scope of the parent network policy. To match all external IP addresses in
    +     * the scope of the parent network policy, specify `0.0.0.0/0`. To match a
    +     * specific external IP address, specify it using the
    +     * `IpRange.external_address` property.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11; + * + */ + public com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.Builder + addDestinationIpRangesBuilder(int index) { + return getDestinationIpRangesFieldBuilder() + .addBuilder( + index, + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.getDefaultInstance()); + } + /** + * + * + *
    +     * If destination ranges are specified, the external access rule applies only
    +     * to the traffic that has a destination IP address in these ranges. The
    +     * specified IP addresses must have reserved external IP addresses in the
    +     * scope of the parent network policy. To match all external IP addresses in
    +     * the scope of the parent network policy, specify `0.0.0.0/0`. To match a
    +     * specific external IP address, specify it using the
    +     * `IpRange.external_address` property.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11; + * + */ + public java.util.List + getDestinationIpRangesBuilderList() { + return getDestinationIpRangesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange, + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.Builder, + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRangeOrBuilder> + getDestinationIpRangesFieldBuilder() { + if (destinationIpRangesBuilder_ == null) { + destinationIpRangesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange, + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange.Builder, + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRangeOrBuilder>( + destinationIpRanges_, + ((bitField0_ & 0x00000200) != 0), + getParentForChildren(), + isClean()); + destinationIpRanges_ = null; + } + return destinationIpRangesBuilder_; + } + + private com.google.protobuf.LazyStringArrayList destinationPorts_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureDestinationPortsIsMutable() { + if (!destinationPorts_.isModifiable()) { + destinationPorts_ = new com.google.protobuf.LazyStringArrayList(destinationPorts_); + } + bitField0_ |= 0x00000400; + } + /** + * + * + *
    +     * A list of destination ports to which the external access rule applies. This
    +     * field is only applicable for the UDP or TCP protocol.
    +     * Each entry must be either an integer or a range. For example: `["22"]`,
    +     * `["80","443"]`, or `["12345-12349"]`. To match all destination ports,
    +     * specify `["0-65535"]`.
    +     * 
    + * + * repeated string destination_ports = 12; + * + * @return A list containing the destinationPorts. + */ + public com.google.protobuf.ProtocolStringList getDestinationPortsList() { + destinationPorts_.makeImmutable(); + return destinationPorts_; + } + /** + * + * + *
    +     * A list of destination ports to which the external access rule applies. This
    +     * field is only applicable for the UDP or TCP protocol.
    +     * Each entry must be either an integer or a range. For example: `["22"]`,
    +     * `["80","443"]`, or `["12345-12349"]`. To match all destination ports,
    +     * specify `["0-65535"]`.
    +     * 
    + * + * repeated string destination_ports = 12; + * + * @return The count of destinationPorts. + */ + public int getDestinationPortsCount() { + return destinationPorts_.size(); + } + /** + * + * + *
    +     * A list of destination ports to which the external access rule applies. This
    +     * field is only applicable for the UDP or TCP protocol.
    +     * Each entry must be either an integer or a range. For example: `["22"]`,
    +     * `["80","443"]`, or `["12345-12349"]`. To match all destination ports,
    +     * specify `["0-65535"]`.
    +     * 
    + * + * repeated string destination_ports = 12; + * + * @param index The index of the element to return. + * @return The destinationPorts at the given index. + */ + public java.lang.String getDestinationPorts(int index) { + return destinationPorts_.get(index); + } + /** + * + * + *
    +     * A list of destination ports to which the external access rule applies. This
    +     * field is only applicable for the UDP or TCP protocol.
    +     * Each entry must be either an integer or a range. For example: `["22"]`,
    +     * `["80","443"]`, or `["12345-12349"]`. To match all destination ports,
    +     * specify `["0-65535"]`.
    +     * 
    + * + * repeated string destination_ports = 12; + * + * @param index The index of the value to return. + * @return The bytes of the destinationPorts at the given index. + */ + public com.google.protobuf.ByteString getDestinationPortsBytes(int index) { + return destinationPorts_.getByteString(index); + } + /** + * + * + *
    +     * A list of destination ports to which the external access rule applies. This
    +     * field is only applicable for the UDP or TCP protocol.
    +     * Each entry must be either an integer or a range. For example: `["22"]`,
    +     * `["80","443"]`, or `["12345-12349"]`. To match all destination ports,
    +     * specify `["0-65535"]`.
    +     * 
    + * + * repeated string destination_ports = 12; + * + * @param index The index to set the value at. + * @param value The destinationPorts to set. + * @return This builder for chaining. + */ + public Builder setDestinationPorts(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDestinationPortsIsMutable(); + destinationPorts_.set(index, value); + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
    +     * A list of destination ports to which the external access rule applies. This
    +     * field is only applicable for the UDP or TCP protocol.
    +     * Each entry must be either an integer or a range. For example: `["22"]`,
    +     * `["80","443"]`, or `["12345-12349"]`. To match all destination ports,
    +     * specify `["0-65535"]`.
    +     * 
    + * + * repeated string destination_ports = 12; + * + * @param value The destinationPorts to add. + * @return This builder for chaining. + */ + public Builder addDestinationPorts(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDestinationPortsIsMutable(); + destinationPorts_.add(value); + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
    +     * A list of destination ports to which the external access rule applies. This
    +     * field is only applicable for the UDP or TCP protocol.
    +     * Each entry must be either an integer or a range. For example: `["22"]`,
    +     * `["80","443"]`, or `["12345-12349"]`. To match all destination ports,
    +     * specify `["0-65535"]`.
    +     * 
    + * + * repeated string destination_ports = 12; + * + * @param values The destinationPorts to add. + * @return This builder for chaining. + */ + public Builder addAllDestinationPorts(java.lang.Iterable values) { + ensureDestinationPortsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, destinationPorts_); + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
    +     * A list of destination ports to which the external access rule applies. This
    +     * field is only applicable for the UDP or TCP protocol.
    +     * Each entry must be either an integer or a range. For example: `["22"]`,
    +     * `["80","443"]`, or `["12345-12349"]`. To match all destination ports,
    +     * specify `["0-65535"]`.
    +     * 
    + * + * repeated string destination_ports = 12; + * + * @return This builder for chaining. + */ + public Builder clearDestinationPorts() { + destinationPorts_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + ; + onChanged(); + return this; + } + /** + * + * + *
    +     * A list of destination ports to which the external access rule applies. This
    +     * field is only applicable for the UDP or TCP protocol.
    +     * Each entry must be either an integer or a range. For example: `["22"]`,
    +     * `["80","443"]`, or `["12345-12349"]`. To match all destination ports,
    +     * specify `["0-65535"]`.
    +     * 
    + * + * repeated string destination_ports = 12; + * + * @param value The bytes of the destinationPorts to add. + * @return This builder for chaining. + */ + public Builder addDestinationPortsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDestinationPortsIsMutable(); + destinationPorts_.add(value); + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
    +     * Output only. The state of the resource.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule.State state = 13 [(.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. The state of the resource.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule.State state = 13 [(.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_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The state of the resource.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ExternalAccessRule.State getState() { + com.google.cloud.vmwareengine.v1.ExternalAccessRule.State result = + com.google.cloud.vmwareengine.v1.ExternalAccessRule.State.forNumber(state_); + return result == null + ? com.google.cloud.vmwareengine.v1.ExternalAccessRule.State.UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * Output only. The state of the resource.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule.State state = 13 [(.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.ExternalAccessRule.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The state of the resource.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000800); + state_ = 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_ |= 0x00001000; + 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_ & ~0x00001000); + 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_ |= 0x00001000; + 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.ExternalAccessRule) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ExternalAccessRule) + private static final com.google.cloud.vmwareengine.v1.ExternalAccessRule DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ExternalAccessRule(); + } + + public static com.google.cloud.vmwareengine.v1.ExternalAccessRule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExternalAccessRule 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.ExternalAccessRule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ExternalAccessRuleName.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ExternalAccessRuleName.java new file mode 100644 index 000000000000..852bcd6d4909 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ExternalAccessRuleName.java @@ -0,0 +1,269 @@ +/* + * 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 ExternalAccessRuleName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_NETWORK_POLICY_EXTERNAL_ACCESS_RULE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/networkPolicies/{network_policy}/externalAccessRules/{external_access_rule}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String networkPolicy; + private final String externalAccessRule; + + @Deprecated + protected ExternalAccessRuleName() { + project = null; + location = null; + networkPolicy = null; + externalAccessRule = null; + } + + private ExternalAccessRuleName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + networkPolicy = Preconditions.checkNotNull(builder.getNetworkPolicy()); + externalAccessRule = Preconditions.checkNotNull(builder.getExternalAccessRule()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getNetworkPolicy() { + return networkPolicy; + } + + public String getExternalAccessRule() { + return externalAccessRule; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ExternalAccessRuleName of( + String project, String location, String networkPolicy, String externalAccessRule) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setNetworkPolicy(networkPolicy) + .setExternalAccessRule(externalAccessRule) + .build(); + } + + public static String format( + String project, String location, String networkPolicy, String externalAccessRule) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setNetworkPolicy(networkPolicy) + .setExternalAccessRule(externalAccessRule) + .build() + .toString(); + } + + public static ExternalAccessRuleName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_NETWORK_POLICY_EXTERNAL_ACCESS_RULE.validatedMatch( + formattedString, "ExternalAccessRuleName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("network_policy"), + matchMap.get("external_access_rule")); + } + + 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 (ExternalAccessRuleName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_NETWORK_POLICY_EXTERNAL_ACCESS_RULE.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 (networkPolicy != null) { + fieldMapBuilder.put("network_policy", networkPolicy); + } + if (externalAccessRule != null) { + fieldMapBuilder.put("external_access_rule", externalAccessRule); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_NETWORK_POLICY_EXTERNAL_ACCESS_RULE.instantiate( + "project", + project, + "location", + location, + "network_policy", + networkPolicy, + "external_access_rule", + externalAccessRule); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ExternalAccessRuleName that = ((ExternalAccessRuleName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.networkPolicy, that.networkPolicy) + && Objects.equals(this.externalAccessRule, that.externalAccessRule); + } + 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(networkPolicy); + h *= 1000003; + h ^= Objects.hashCode(externalAccessRule); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/networkPolicies/{network_policy}/externalAccessRules/{external_access_rule}. + */ + public static class Builder { + private String project; + private String location; + private String networkPolicy; + private String externalAccessRule; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getNetworkPolicy() { + return networkPolicy; + } + + public String getExternalAccessRule() { + return externalAccessRule; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setNetworkPolicy(String networkPolicy) { + this.networkPolicy = networkPolicy; + return this; + } + + public Builder setExternalAccessRule(String externalAccessRule) { + this.externalAccessRule = externalAccessRule; + return this; + } + + private Builder(ExternalAccessRuleName externalAccessRuleName) { + this.project = externalAccessRuleName.project; + this.location = externalAccessRuleName.location; + this.networkPolicy = externalAccessRuleName.networkPolicy; + this.externalAccessRule = externalAccessRuleName.externalAccessRule; + } + + public ExternalAccessRuleName build() { + return new ExternalAccessRuleName(this); + } + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ExternalAccessRuleOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ExternalAccessRuleOrBuilder.java new file mode 100644 index 000000000000..abf07cce6e81 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ExternalAccessRuleOrBuilder.java @@ -0,0 +1,598 @@ +/* + * 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 ExternalAccessRuleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ExternalAccessRule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Output only. The resource name of this external access rule.
    +   * 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/networkPolicies/my-policy/externalAccessRules/my-rule`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Output only. The resource name of this external access rule.
    +   * 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/networkPolicies/my-policy/externalAccessRules/my-rule`
    +   * 
    + * + * 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(); + + /** + * + * + *
    +   * User-provided description for this external access rule.
    +   * 
    + * + * string description = 5; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
    +   * User-provided description for this external access rule.
    +   * 
    + * + * string description = 5; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
    +   * External access rule priority, which determines the external access rule to
    +   * use when multiple rules apply. If multiple rules have the same priority,
    +   * their ordering is non-deterministic. If specific ordering is required,
    +   * assign unique priorities to enforce such ordering. The external access rule
    +   * priority is an integer from 100 to 4096, both inclusive. Lower integers
    +   * indicate higher precedence. For example, a rule with priority `100` has
    +   * higher precedence than a rule with priority `101`.
    +   * 
    + * + * int32 priority = 6; + * + * @return The priority. + */ + int getPriority(); + + /** + * + * + *
    +   * The action that the external access rule performs.
    +   * 
    + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule.Action action = 7; + * + * @return The enum numeric value on the wire for action. + */ + int getActionValue(); + /** + * + * + *
    +   * The action that the external access rule performs.
    +   * 
    + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule.Action action = 7; + * + * @return The action. + */ + com.google.cloud.vmwareengine.v1.ExternalAccessRule.Action getAction(); + + /** + * + * + *
    +   * The IP protocol to which the external access rule applies. This value can
    +   * be one of the following three protocol strings (not case-sensitive):
    +   * `tcp`, `udp`, or `icmp`.
    +   * 
    + * + * string ip_protocol = 8; + * + * @return The ipProtocol. + */ + java.lang.String getIpProtocol(); + /** + * + * + *
    +   * The IP protocol to which the external access rule applies. This value can
    +   * be one of the following three protocol strings (not case-sensitive):
    +   * `tcp`, `udp`, or `icmp`.
    +   * 
    + * + * string ip_protocol = 8; + * + * @return The bytes for ipProtocol. + */ + com.google.protobuf.ByteString getIpProtocolBytes(); + + /** + * + * + *
    +   * If source ranges are specified, the external access rule applies only to
    +   * traffic that has a source IP address in these ranges. These ranges can
    +   * either be expressed in the CIDR format or as an IP address. As only inbound
    +   * rules are supported, `ExternalAddress` resources cannot be the source IP
    +   * addresses of an external access rule. To match all source addresses,
    +   * specify `0.0.0.0/0`.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9; + * + */ + java.util.List + getSourceIpRangesList(); + /** + * + * + *
    +   * If source ranges are specified, the external access rule applies only to
    +   * traffic that has a source IP address in these ranges. These ranges can
    +   * either be expressed in the CIDR format or as an IP address. As only inbound
    +   * rules are supported, `ExternalAddress` resources cannot be the source IP
    +   * addresses of an external access rule. To match all source addresses,
    +   * specify `0.0.0.0/0`.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9; + * + */ + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange getSourceIpRanges(int index); + /** + * + * + *
    +   * If source ranges are specified, the external access rule applies only to
    +   * traffic that has a source IP address in these ranges. These ranges can
    +   * either be expressed in the CIDR format or as an IP address. As only inbound
    +   * rules are supported, `ExternalAddress` resources cannot be the source IP
    +   * addresses of an external access rule. To match all source addresses,
    +   * specify `0.0.0.0/0`.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9; + * + */ + int getSourceIpRangesCount(); + /** + * + * + *
    +   * If source ranges are specified, the external access rule applies only to
    +   * traffic that has a source IP address in these ranges. These ranges can
    +   * either be expressed in the CIDR format or as an IP address. As only inbound
    +   * rules are supported, `ExternalAddress` resources cannot be the source IP
    +   * addresses of an external access rule. To match all source addresses,
    +   * specify `0.0.0.0/0`.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9; + * + */ + java.util.List + getSourceIpRangesOrBuilderList(); + /** + * + * + *
    +   * If source ranges are specified, the external access rule applies only to
    +   * traffic that has a source IP address in these ranges. These ranges can
    +   * either be expressed in the CIDR format or as an IP address. As only inbound
    +   * rules are supported, `ExternalAddress` resources cannot be the source IP
    +   * addresses of an external access rule. To match all source addresses,
    +   * specify `0.0.0.0/0`.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9; + * + */ + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRangeOrBuilder getSourceIpRangesOrBuilder( + int index); + + /** + * + * + *
    +   * A list of source ports to which the external access rule applies. This
    +   * field is only applicable for the UDP or TCP protocol.
    +   * Each entry must be either an integer or a range. For example: `["22"]`,
    +   * `["80","443"]`, or `["12345-12349"]`. To match all source ports, specify
    +   * `["0-65535"]`.
    +   * 
    + * + * repeated string source_ports = 10; + * + * @return A list containing the sourcePorts. + */ + java.util.List getSourcePortsList(); + /** + * + * + *
    +   * A list of source ports to which the external access rule applies. This
    +   * field is only applicable for the UDP or TCP protocol.
    +   * Each entry must be either an integer or a range. For example: `["22"]`,
    +   * `["80","443"]`, or `["12345-12349"]`. To match all source ports, specify
    +   * `["0-65535"]`.
    +   * 
    + * + * repeated string source_ports = 10; + * + * @return The count of sourcePorts. + */ + int getSourcePortsCount(); + /** + * + * + *
    +   * A list of source ports to which the external access rule applies. This
    +   * field is only applicable for the UDP or TCP protocol.
    +   * Each entry must be either an integer or a range. For example: `["22"]`,
    +   * `["80","443"]`, or `["12345-12349"]`. To match all source ports, specify
    +   * `["0-65535"]`.
    +   * 
    + * + * repeated string source_ports = 10; + * + * @param index The index of the element to return. + * @return The sourcePorts at the given index. + */ + java.lang.String getSourcePorts(int index); + /** + * + * + *
    +   * A list of source ports to which the external access rule applies. This
    +   * field is only applicable for the UDP or TCP protocol.
    +   * Each entry must be either an integer or a range. For example: `["22"]`,
    +   * `["80","443"]`, or `["12345-12349"]`. To match all source ports, specify
    +   * `["0-65535"]`.
    +   * 
    + * + * repeated string source_ports = 10; + * + * @param index The index of the value to return. + * @return The bytes of the sourcePorts at the given index. + */ + com.google.protobuf.ByteString getSourcePortsBytes(int index); + + /** + * + * + *
    +   * If destination ranges are specified, the external access rule applies only
    +   * to the traffic that has a destination IP address in these ranges. The
    +   * specified IP addresses must have reserved external IP addresses in the
    +   * scope of the parent network policy. To match all external IP addresses in
    +   * the scope of the parent network policy, specify `0.0.0.0/0`. To match a
    +   * specific external IP address, specify it using the
    +   * `IpRange.external_address` property.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11; + * + */ + java.util.List + getDestinationIpRangesList(); + /** + * + * + *
    +   * If destination ranges are specified, the external access rule applies only
    +   * to the traffic that has a destination IP address in these ranges. The
    +   * specified IP addresses must have reserved external IP addresses in the
    +   * scope of the parent network policy. To match all external IP addresses in
    +   * the scope of the parent network policy, specify `0.0.0.0/0`. To match a
    +   * specific external IP address, specify it using the
    +   * `IpRange.external_address` property.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11; + * + */ + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange getDestinationIpRanges(int index); + /** + * + * + *
    +   * If destination ranges are specified, the external access rule applies only
    +   * to the traffic that has a destination IP address in these ranges. The
    +   * specified IP addresses must have reserved external IP addresses in the
    +   * scope of the parent network policy. To match all external IP addresses in
    +   * the scope of the parent network policy, specify `0.0.0.0/0`. To match a
    +   * specific external IP address, specify it using the
    +   * `IpRange.external_address` property.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11; + * + */ + int getDestinationIpRangesCount(); + /** + * + * + *
    +   * If destination ranges are specified, the external access rule applies only
    +   * to the traffic that has a destination IP address in these ranges. The
    +   * specified IP addresses must have reserved external IP addresses in the
    +   * scope of the parent network policy. To match all external IP addresses in
    +   * the scope of the parent network policy, specify `0.0.0.0/0`. To match a
    +   * specific external IP address, specify it using the
    +   * `IpRange.external_address` property.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11; + * + */ + java.util.List + getDestinationIpRangesOrBuilderList(); + /** + * + * + *
    +   * If destination ranges are specified, the external access rule applies only
    +   * to the traffic that has a destination IP address in these ranges. The
    +   * specified IP addresses must have reserved external IP addresses in the
    +   * scope of the parent network policy. To match all external IP addresses in
    +   * the scope of the parent network policy, specify `0.0.0.0/0`. To match a
    +   * specific external IP address, specify it using the
    +   * `IpRange.external_address` property.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11; + * + */ + com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRangeOrBuilder + getDestinationIpRangesOrBuilder(int index); + + /** + * + * + *
    +   * A list of destination ports to which the external access rule applies. This
    +   * field is only applicable for the UDP or TCP protocol.
    +   * Each entry must be either an integer or a range. For example: `["22"]`,
    +   * `["80","443"]`, or `["12345-12349"]`. To match all destination ports,
    +   * specify `["0-65535"]`.
    +   * 
    + * + * repeated string destination_ports = 12; + * + * @return A list containing the destinationPorts. + */ + java.util.List getDestinationPortsList(); + /** + * + * + *
    +   * A list of destination ports to which the external access rule applies. This
    +   * field is only applicable for the UDP or TCP protocol.
    +   * Each entry must be either an integer or a range. For example: `["22"]`,
    +   * `["80","443"]`, or `["12345-12349"]`. To match all destination ports,
    +   * specify `["0-65535"]`.
    +   * 
    + * + * repeated string destination_ports = 12; + * + * @return The count of destinationPorts. + */ + int getDestinationPortsCount(); + /** + * + * + *
    +   * A list of destination ports to which the external access rule applies. This
    +   * field is only applicable for the UDP or TCP protocol.
    +   * Each entry must be either an integer or a range. For example: `["22"]`,
    +   * `["80","443"]`, or `["12345-12349"]`. To match all destination ports,
    +   * specify `["0-65535"]`.
    +   * 
    + * + * repeated string destination_ports = 12; + * + * @param index The index of the element to return. + * @return The destinationPorts at the given index. + */ + java.lang.String getDestinationPorts(int index); + /** + * + * + *
    +   * A list of destination ports to which the external access rule applies. This
    +   * field is only applicable for the UDP or TCP protocol.
    +   * Each entry must be either an integer or a range. For example: `["22"]`,
    +   * `["80","443"]`, or `["12345-12349"]`. To match all destination ports,
    +   * specify `["0-65535"]`.
    +   * 
    + * + * repeated string destination_ports = 12; + * + * @param index The index of the value to return. + * @return The bytes of the destinationPorts at the given index. + */ + com.google.protobuf.ByteString getDestinationPortsBytes(int index); + + /** + * + * + *
    +   * Output only. The state of the resource.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
    +   * Output only. The state of the resource.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.vmwareengine.v1.ExternalAccessRule.State getState(); + + /** + * + * + *
    +   * 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(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ExternalAddress.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ExternalAddress.java new file mode 100644 index 000000000000..8c45ddc2ae81 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ExternalAddress.java @@ -0,0 +1,2313 @@ +/* + * 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; + +/** + * + * + *
    + * Represents an allocated external IP address and its corresponding internal IP
    + * address in a private cloud.
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ExternalAddress} + */ +public final class ExternalAddress extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ExternalAddress) + ExternalAddressOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExternalAddress.newBuilder() to construct. + private ExternalAddress(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExternalAddress() { + name_ = ""; + internalIp_ = ""; + externalIp_ = ""; + state_ = 0; + uid_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExternalAddress(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_ExternalAddress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_ExternalAddress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ExternalAddress.class, + com.google.cloud.vmwareengine.v1.ExternalAddress.Builder.class); + } + + /** + * + * + *
    +   * Enum State defines possible states of external addresses.
    +   * 
    + * + * Protobuf enum {@code google.cloud.vmwareengine.v1.ExternalAddress.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * The default value. This value should never be used.
    +     * 
    + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
    +     * The address is ready.
    +     * 
    + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
    +     * The address is being created.
    +     * 
    + * + * CREATING = 2; + */ + CREATING(2), + /** + * + * + *
    +     * The address is being updated.
    +     * 
    + * + * UPDATING = 3; + */ + UPDATING(3), + /** + * + * + *
    +     * The address is being deleted.
    +     * 
    + * + * DELETING = 4; + */ + DELETING(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * The default value. This value should never be used.
    +     * 
    + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +     * The address is ready.
    +     * 
    + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + /** + * + * + *
    +     * The address is being created.
    +     * 
    + * + * CREATING = 2; + */ + public static final int CREATING_VALUE = 2; + /** + * + * + *
    +     * The address is being updated.
    +     * 
    + * + * UPDATING = 3; + */ + public static final int UPDATING_VALUE = 3; + /** + * + * + *
    +     * The address is being deleted.
    +     * 
    + * + * DELETING = 4; + */ + public static final int DELETING_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 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 ACTIVE; + case 2: + return CREATING; + case 3: + return UPDATING; + case 4: + return DELETING; + 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.ExternalAddress.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.ExternalAddress.State) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Output only. The resource name of this external IP address.
    +   * 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/externalAddresses/my-address`
    +   * 
    + * + * 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 this external IP address.
    +   * 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/externalAddresses/my-address`
    +   * 
    + * + * 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 INTERNAL_IP_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object internalIp_ = ""; + /** + * + * + *
    +   * The internal IP address of a workload VM.
    +   * 
    + * + * string internal_ip = 6; + * + * @return The internalIp. + */ + @java.lang.Override + public java.lang.String getInternalIp() { + java.lang.Object ref = internalIp_; + 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(); + internalIp_ = s; + return s; + } + } + /** + * + * + *
    +   * The internal IP address of a workload VM.
    +   * 
    + * + * string internal_ip = 6; + * + * @return The bytes for internalIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInternalIpBytes() { + java.lang.Object ref = internalIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + internalIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXTERNAL_IP_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object externalIp_ = ""; + /** + * + * + *
    +   * Output only. The external IP address of a workload VM.
    +   * 
    + * + * string external_ip = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The externalIp. + */ + @java.lang.Override + public java.lang.String getExternalIp() { + java.lang.Object ref = externalIp_; + 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(); + externalIp_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. The external IP address of a workload VM.
    +   * 
    + * + * string external_ip = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for externalIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExternalIpBytes() { + java.lang.Object ref = externalIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + externalIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 8; + private int state_ = 0; + /** + * + * + *
    +   * Output only. The state of the resource.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress.State state = 8 [(.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. The state of the resource.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ExternalAddress.State getState() { + com.google.cloud.vmwareengine.v1.ExternalAddress.State result = + com.google.cloud.vmwareengine.v1.ExternalAddress.State.forNumber(state_); + return result == null + ? com.google.cloud.vmwareengine.v1.ExternalAddress.State.UNRECOGNIZED + : result; + } + + public static final int UID_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + /** + * + * + *
    +   * Output only. System-generated unique identifier for the resource.
    +   * 
    + * + * string uid = 9 [(.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 = 9 [(.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 DESCRIPTION_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * + * + *
    +   * User-provided description for this resource.
    +   * 
    + * + * string description = 11; + * + * @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; + } + } + /** + * + * + *
    +   * User-provided description for this resource.
    +   * 
    + * + * string description = 11; + * + * @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; + } + } + + 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(internalIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, internalIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, externalIp_); + } + if (state_ + != com.google.cloud.vmwareengine.v1.ExternalAddress.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(8, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, description_); + } + 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(internalIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, internalIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, externalIp_); + } + if (state_ + != com.google.cloud.vmwareengine.v1.ExternalAddress.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, description_); + } + 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.ExternalAddress)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ExternalAddress other = + (com.google.cloud.vmwareengine.v1.ExternalAddress) 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 (!getInternalIp().equals(other.getInternalIp())) return false; + if (!getExternalIp().equals(other.getExternalIp())) return false; + if (state_ != other.state_) return false; + if (!getUid().equals(other.getUid())) return false; + if (!getDescription().equals(other.getDescription())) 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) + INTERNAL_IP_FIELD_NUMBER; + hash = (53 * hash) + getInternalIp().hashCode(); + hash = (37 * hash) + EXTERNAL_IP_FIELD_NUMBER; + hash = (53 * hash) + getExternalIp().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.ExternalAddress parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ExternalAddress 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.ExternalAddress parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ExternalAddress 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.ExternalAddress parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ExternalAddress 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.ExternalAddress parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ExternalAddress 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.ExternalAddress parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ExternalAddress 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.ExternalAddress 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.ExternalAddress 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.ExternalAddress 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; + } + /** + * + * + *
    +   * Represents an allocated external IP address and its corresponding internal IP
    +   * address in a private cloud.
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ExternalAddress} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ExternalAddress) + com.google.cloud.vmwareengine.v1.ExternalAddressOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_ExternalAddress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_ExternalAddress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ExternalAddress.class, + com.google.cloud.vmwareengine.v1.ExternalAddress.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.ExternalAddress.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; + } + internalIp_ = ""; + externalIp_ = ""; + state_ = 0; + uid_ = ""; + description_ = ""; + 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_ExternalAddress_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ExternalAddress getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ExternalAddress.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ExternalAddress build() { + com.google.cloud.vmwareengine.v1.ExternalAddress result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ExternalAddress buildPartial() { + com.google.cloud.vmwareengine.v1.ExternalAddress result = + new com.google.cloud.vmwareengine.v1.ExternalAddress(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmwareengine.v1.ExternalAddress 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.internalIp_ = internalIp_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.externalIp_ = externalIp_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.uid_ = uid_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.description_ = description_; + } + } + + @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.ExternalAddress) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ExternalAddress) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.ExternalAddress other) { + if (other == com.google.cloud.vmwareengine.v1.ExternalAddress.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.getInternalIp().isEmpty()) { + internalIp_ = other.internalIp_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getExternalIp().isEmpty()) { + externalIp_ = other.externalIp_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000080; + 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: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 50: + { + internalIp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 50 + case 58: + { + externalIp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 58 + case 64: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 64 + case 74: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 74 + case 90: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 90 + 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 this external IP address.
    +     * 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/externalAddresses/my-address`
    +     * 
    + * + * 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 this external IP address.
    +     * 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/externalAddresses/my-address`
    +     * 
    + * + * 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 this external IP address.
    +     * 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/externalAddresses/my-address`
    +     * 
    + * + * 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 this external IP address.
    +     * 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/externalAddresses/my-address`
    +     * 
    + * + * 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 this external IP address.
    +     * 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/externalAddresses/my-address`
    +     * 
    + * + * 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 internalIp_ = ""; + /** + * + * + *
    +     * The internal IP address of a workload VM.
    +     * 
    + * + * string internal_ip = 6; + * + * @return The internalIp. + */ + public java.lang.String getInternalIp() { + java.lang.Object ref = internalIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + internalIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * The internal IP address of a workload VM.
    +     * 
    + * + * string internal_ip = 6; + * + * @return The bytes for internalIp. + */ + public com.google.protobuf.ByteString getInternalIpBytes() { + java.lang.Object ref = internalIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + internalIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * The internal IP address of a workload VM.
    +     * 
    + * + * string internal_ip = 6; + * + * @param value The internalIp to set. + * @return This builder for chaining. + */ + public Builder setInternalIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + internalIp_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * The internal IP address of a workload VM.
    +     * 
    + * + * string internal_ip = 6; + * + * @return This builder for chaining. + */ + public Builder clearInternalIp() { + internalIp_ = getDefaultInstance().getInternalIp(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
    +     * The internal IP address of a workload VM.
    +     * 
    + * + * string internal_ip = 6; + * + * @param value The bytes for internalIp to set. + * @return This builder for chaining. + */ + public Builder setInternalIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + internalIp_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object externalIp_ = ""; + /** + * + * + *
    +     * Output only. The external IP address of a workload VM.
    +     * 
    + * + * string external_ip = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The externalIp. + */ + public java.lang.String getExternalIp() { + java.lang.Object ref = externalIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + externalIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. The external IP address of a workload VM.
    +     * 
    + * + * string external_ip = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for externalIp. + */ + public com.google.protobuf.ByteString getExternalIpBytes() { + java.lang.Object ref = externalIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + externalIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. The external IP address of a workload VM.
    +     * 
    + * + * string external_ip = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The externalIp to set. + * @return This builder for chaining. + */ + public Builder setExternalIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + externalIp_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The external IP address of a workload VM.
    +     * 
    + * + * string external_ip = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearExternalIp() { + externalIp_ = getDefaultInstance().getExternalIp(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The external IP address of a workload VM.
    +     * 
    + * + * string external_ip = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for externalIp to set. + * @return This builder for chaining. + */ + public Builder setExternalIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + externalIp_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
    +     * Output only. The state of the resource.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress.State state = 8 [(.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. The state of the resource.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress.State state = 8 [(.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_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The state of the resource.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ExternalAddress.State getState() { + com.google.cloud.vmwareengine.v1.ExternalAddress.State result = + com.google.cloud.vmwareengine.v1.ExternalAddress.State.forNumber(state_); + return result == null + ? com.google.cloud.vmwareengine.v1.ExternalAddress.State.UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * Output only. The state of the resource.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress.State state = 8 [(.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.ExternalAddress.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The state of the resource.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000020); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object uid_ = ""; + /** + * + * + *
    +     * Output only. System-generated unique identifier for the resource.
    +     * 
    + * + * string uid = 9 [(.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 = 9 [(.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 = 9 [(.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_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. System-generated unique identifier for the resource.
    +     * 
    + * + * string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. System-generated unique identifier for the resource.
    +     * 
    + * + * string uid = 9 [(.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_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
    +     * User-provided description for this resource.
    +     * 
    + * + * string description = 11; + * + * @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; + } + } + /** + * + * + *
    +     * User-provided description for this resource.
    +     * 
    + * + * string description = 11; + * + * @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; + } + } + /** + * + * + *
    +     * User-provided description for this resource.
    +     * 
    + * + * string description = 11; + * + * @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_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
    +     * User-provided description for this resource.
    +     * 
    + * + * string description = 11; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * + * + *
    +     * User-provided description for this resource.
    +     * 
    + * + * string description = 11; + * + * @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_ |= 0x00000080; + 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.ExternalAddress) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ExternalAddress) + private static final com.google.cloud.vmwareengine.v1.ExternalAddress DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ExternalAddress(); + } + + public static com.google.cloud.vmwareengine.v1.ExternalAddress getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExternalAddress 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.ExternalAddress getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ExternalAddressName.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ExternalAddressName.java new file mode 100644 index 000000000000..4fdf584ff133 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ExternalAddressName.java @@ -0,0 +1,269 @@ +/* + * 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 ExternalAddressName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_PRIVATE_CLOUD_EXTERNAL_ADDRESS = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String privateCloud; + private final String externalAddress; + + @Deprecated + protected ExternalAddressName() { + project = null; + location = null; + privateCloud = null; + externalAddress = null; + } + + private ExternalAddressName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + privateCloud = Preconditions.checkNotNull(builder.getPrivateCloud()); + externalAddress = Preconditions.checkNotNull(builder.getExternalAddress()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPrivateCloud() { + return privateCloud; + } + + public String getExternalAddress() { + return externalAddress; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ExternalAddressName of( + String project, String location, String privateCloud, String externalAddress) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPrivateCloud(privateCloud) + .setExternalAddress(externalAddress) + .build(); + } + + public static String format( + String project, String location, String privateCloud, String externalAddress) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPrivateCloud(privateCloud) + .setExternalAddress(externalAddress) + .build() + .toString(); + } + + public static ExternalAddressName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_PRIVATE_CLOUD_EXTERNAL_ADDRESS.validatedMatch( + formattedString, "ExternalAddressName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("private_cloud"), + matchMap.get("external_address")); + } + + 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 (ExternalAddressName 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_EXTERNAL_ADDRESS.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 (externalAddress != null) { + fieldMapBuilder.put("external_address", externalAddress); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_PRIVATE_CLOUD_EXTERNAL_ADDRESS.instantiate( + "project", + project, + "location", + location, + "private_cloud", + privateCloud, + "external_address", + externalAddress); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ExternalAddressName that = ((ExternalAddressName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.privateCloud, that.privateCloud) + && Objects.equals(this.externalAddress, that.externalAddress); + } + 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(externalAddress); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}. + */ + public static class Builder { + private String project; + private String location; + private String privateCloud; + private String externalAddress; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPrivateCloud() { + return privateCloud; + } + + public String getExternalAddress() { + return externalAddress; + } + + 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 setExternalAddress(String externalAddress) { + this.externalAddress = externalAddress; + return this; + } + + private Builder(ExternalAddressName externalAddressName) { + this.project = externalAddressName.project; + this.location = externalAddressName.location; + this.privateCloud = externalAddressName.privateCloud; + this.externalAddress = externalAddressName.externalAddress; + } + + public ExternalAddressName build() { + return new ExternalAddressName(this); + } + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ExternalAddressOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ExternalAddressOrBuilder.java new file mode 100644 index 000000000000..493531c8eccb --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ExternalAddressOrBuilder.java @@ -0,0 +1,263 @@ +/* + * 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 ExternalAddressOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ExternalAddress) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Output only. The resource name of this external IP address.
    +   * 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/externalAddresses/my-address`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Output only. The resource name of this external IP address.
    +   * 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/externalAddresses/my-address`
    +   * 
    + * + * 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(); + + /** + * + * + *
    +   * The internal IP address of a workload VM.
    +   * 
    + * + * string internal_ip = 6; + * + * @return The internalIp. + */ + java.lang.String getInternalIp(); + /** + * + * + *
    +   * The internal IP address of a workload VM.
    +   * 
    + * + * string internal_ip = 6; + * + * @return The bytes for internalIp. + */ + com.google.protobuf.ByteString getInternalIpBytes(); + + /** + * + * + *
    +   * Output only. The external IP address of a workload VM.
    +   * 
    + * + * string external_ip = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The externalIp. + */ + java.lang.String getExternalIp(); + /** + * + * + *
    +   * Output only. The external IP address of a workload VM.
    +   * 
    + * + * string external_ip = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for externalIp. + */ + com.google.protobuf.ByteString getExternalIpBytes(); + + /** + * + * + *
    +   * Output only. The state of the resource.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
    +   * Output only. The state of the resource.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.vmwareengine.v1.ExternalAddress.State getState(); + + /** + * + * + *
    +   * Output only. System-generated unique identifier for the resource.
    +   * 
    + * + * string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + java.lang.String getUid(); + /** + * + * + *
    +   * Output only. System-generated unique identifier for the resource.
    +   * 
    + * + * string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
    +   * User-provided description for this resource.
    +   * 
    + * + * string description = 11; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
    +   * User-provided description for this resource.
    +   * 
    + * + * string description = 11; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/FetchNetworkPolicyExternalAddressesRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/FetchNetworkPolicyExternalAddressesRequest.java new file mode 100644 index 000000000000..71ff38d51430 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/FetchNetworkPolicyExternalAddressesRequest.java @@ -0,0 +1,1025 @@ +/* + * 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.FetchNetworkPolicyExternalAddresses][google.cloud.vmwareengine.v1.VmwareEngine.FetchNetworkPolicyExternalAddresses]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest} + */ +public final class FetchNetworkPolicyExternalAddressesRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest) + FetchNetworkPolicyExternalAddressesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use FetchNetworkPolicyExternalAddressesRequest.newBuilder() to construct. + private FetchNetworkPolicyExternalAddressesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FetchNetworkPolicyExternalAddressesRequest() { + networkPolicy_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FetchNetworkPolicyExternalAddressesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_FetchNetworkPolicyExternalAddressesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_FetchNetworkPolicyExternalAddressesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest.class, + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest.Builder + .class); + } + + public static final int NETWORK_POLICY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object networkPolicy_ = ""; + /** + * + * + *
    +   * Required. The resource name of the network policy to query for assigned
    +   * external IP addresses. 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/networkPolicies/my-policy`
    +   * 
    + * + * + * string network_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The networkPolicy. + */ + @java.lang.Override + public java.lang.String getNetworkPolicy() { + java.lang.Object ref = networkPolicy_; + 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(); + networkPolicy_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The resource name of the network policy to query for assigned
    +   * external IP addresses. 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/networkPolicies/my-policy`
    +   * 
    + * + * + * string network_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for networkPolicy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkPolicyBytes() { + java.lang.Object ref = networkPolicy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkPolicy_ = 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 external IP addresses 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
    +   * `FetchNetworkPolicyExternalAddresses` call. Provide this to retrieve the
    +   * subsequent page.
    +   *
    +   * When paginating, all parameters provided to
    +   * `FetchNetworkPolicyExternalAddresses`, except for `page_size` and
    +   * `page_token`, 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
    +   * `FetchNetworkPolicyExternalAddresses` call. Provide this to retrieve the
    +   * subsequent page.
    +   *
    +   * When paginating, all parameters provided to
    +   * `FetchNetworkPolicyExternalAddresses`, except for `page_size` and
    +   * `page_token`, 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(networkPolicy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, networkPolicy_); + } + 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(networkPolicy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, networkPolicy_); + } + 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.FetchNetworkPolicyExternalAddressesRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest other = + (com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest) obj; + + if (!getNetworkPolicy().equals(other.getNetworkPolicy())) 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) + NETWORK_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getNetworkPolicy().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.FetchNetworkPolicyExternalAddressesRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest + 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.FetchNetworkPolicyExternalAddressesRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest + 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.FetchNetworkPolicyExternalAddressesRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest + 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.FetchNetworkPolicyExternalAddressesRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest + 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.FetchNetworkPolicyExternalAddressesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest + 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.FetchNetworkPolicyExternalAddressesRequest + 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.FetchNetworkPolicyExternalAddressesRequest + 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.FetchNetworkPolicyExternalAddressesRequest 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.FetchNetworkPolicyExternalAddresses][google.cloud.vmwareengine.v1.VmwareEngine.FetchNetworkPolicyExternalAddresses]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest) + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_FetchNetworkPolicyExternalAddressesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_FetchNetworkPolicyExternalAddressesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest.class, + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + networkPolicy_ = ""; + 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_FetchNetworkPolicyExternalAddressesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest build() { + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest + buildPartial() { + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest result = + new com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.networkPolicy_ = networkPolicy_; + } + 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.FetchNetworkPolicyExternalAddressesRequest) { + return mergeFrom( + (com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest + .getDefaultInstance()) return this; + if (!other.getNetworkPolicy().isEmpty()) { + networkPolicy_ = other.networkPolicy_; + 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: + { + networkPolicy_ = 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 networkPolicy_ = ""; + /** + * + * + *
    +     * Required. The resource name of the network policy to query for assigned
    +     * external IP addresses. 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/networkPolicies/my-policy`
    +     * 
    + * + * + * string network_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The networkPolicy. + */ + public java.lang.String getNetworkPolicy() { + java.lang.Object ref = networkPolicy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkPolicy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The resource name of the network policy to query for assigned
    +     * external IP addresses. 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/networkPolicies/my-policy`
    +     * 
    + * + * + * string network_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for networkPolicy. + */ + public com.google.protobuf.ByteString getNetworkPolicyBytes() { + java.lang.Object ref = networkPolicy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The resource name of the network policy to query for assigned
    +     * external IP addresses. 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/networkPolicies/my-policy`
    +     * 
    + * + * + * string network_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The networkPolicy to set. + * @return This builder for chaining. + */ + public Builder setNetworkPolicy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + networkPolicy_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The resource name of the network policy to query for assigned
    +     * external IP addresses. 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/networkPolicies/my-policy`
    +     * 
    + * + * + * string network_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNetworkPolicy() { + networkPolicy_ = getDefaultInstance().getNetworkPolicy(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The resource name of the network policy to query for assigned
    +     * external IP addresses. 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/networkPolicies/my-policy`
    +     * 
    + * + * + * string network_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for networkPolicy to set. + * @return This builder for chaining. + */ + public Builder setNetworkPolicyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + networkPolicy_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
    +     * The maximum number of external IP addresses 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 external IP addresses 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 external IP addresses 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
    +     * `FetchNetworkPolicyExternalAddresses` call. Provide this to retrieve the
    +     * subsequent page.
    +     *
    +     * When paginating, all parameters provided to
    +     * `FetchNetworkPolicyExternalAddresses`, except for `page_size` and
    +     * `page_token`, 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
    +     * `FetchNetworkPolicyExternalAddresses` call. Provide this to retrieve the
    +     * subsequent page.
    +     *
    +     * When paginating, all parameters provided to
    +     * `FetchNetworkPolicyExternalAddresses`, except for `page_size` and
    +     * `page_token`, 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
    +     * `FetchNetworkPolicyExternalAddresses` call. Provide this to retrieve the
    +     * subsequent page.
    +     *
    +     * When paginating, all parameters provided to
    +     * `FetchNetworkPolicyExternalAddresses`, except for `page_size` and
    +     * `page_token`, 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
    +     * `FetchNetworkPolicyExternalAddresses` call. Provide this to retrieve the
    +     * subsequent page.
    +     *
    +     * When paginating, all parameters provided to
    +     * `FetchNetworkPolicyExternalAddresses`, except for `page_size` and
    +     * `page_token`, 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
    +     * `FetchNetworkPolicyExternalAddresses` call. Provide this to retrieve the
    +     * subsequent page.
    +     *
    +     * When paginating, all parameters provided to
    +     * `FetchNetworkPolicyExternalAddresses`, except for `page_size` and
    +     * `page_token`, 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.FetchNetworkPolicyExternalAddressesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest) + private static final com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest(); + } + + public static com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchNetworkPolicyExternalAddressesRequest 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.FetchNetworkPolicyExternalAddressesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/FetchNetworkPolicyExternalAddressesRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/FetchNetworkPolicyExternalAddressesRequestOrBuilder.java new file mode 100644 index 000000000000..dbe9269be354 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/FetchNetworkPolicyExternalAddressesRequestOrBuilder.java @@ -0,0 +1,115 @@ +/* + * 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 FetchNetworkPolicyExternalAddressesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the network policy to query for assigned
    +   * external IP addresses. 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/networkPolicies/my-policy`
    +   * 
    + * + * + * string network_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The networkPolicy. + */ + java.lang.String getNetworkPolicy(); + /** + * + * + *
    +   * Required. The resource name of the network policy to query for assigned
    +   * external IP addresses. 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/networkPolicies/my-policy`
    +   * 
    + * + * + * string network_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for networkPolicy. + */ + com.google.protobuf.ByteString getNetworkPolicyBytes(); + + /** + * + * + *
    +   * The maximum number of external IP addresses 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
    +   * `FetchNetworkPolicyExternalAddresses` call. Provide this to retrieve the
    +   * subsequent page.
    +   *
    +   * When paginating, all parameters provided to
    +   * `FetchNetworkPolicyExternalAddresses`, except for `page_size` and
    +   * `page_token`, 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
    +   * `FetchNetworkPolicyExternalAddresses` call. Provide this to retrieve the
    +   * subsequent page.
    +   *
    +   * When paginating, all parameters provided to
    +   * `FetchNetworkPolicyExternalAddresses`, except for `page_size` and
    +   * `page_token`, 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/FetchNetworkPolicyExternalAddressesResponse.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/FetchNetworkPolicyExternalAddressesResponse.java new file mode 100644 index 000000000000..00f10f28a38e --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/FetchNetworkPolicyExternalAddressesResponse.java @@ -0,0 +1,1194 @@ +/* + * 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.FetchNetworkPolicyExternalAddresses][google.cloud.vmwareengine.v1.VmwareEngine.FetchNetworkPolicyExternalAddresses]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse} + */ +public final class FetchNetworkPolicyExternalAddressesResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse) + FetchNetworkPolicyExternalAddressesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use FetchNetworkPolicyExternalAddressesResponse.newBuilder() to construct. + private FetchNetworkPolicyExternalAddressesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FetchNetworkPolicyExternalAddressesResponse() { + externalAddresses_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FetchNetworkPolicyExternalAddressesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_FetchNetworkPolicyExternalAddressesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_FetchNetworkPolicyExternalAddressesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse.class, + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse.Builder + .class); + } + + public static final int EXTERNAL_ADDRESSES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List externalAddresses_; + /** + * + * + *
    +   * A list of external IP addresses assigned to VMware workload VMs within the
    +   * scope of the given network policy.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + @java.lang.Override + public java.util.List + getExternalAddressesList() { + return externalAddresses_; + } + /** + * + * + *
    +   * A list of external IP addresses assigned to VMware workload VMs within the
    +   * scope of the given network policy.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + @java.lang.Override + public java.util.List + getExternalAddressesOrBuilderList() { + return externalAddresses_; + } + /** + * + * + *
    +   * A list of external IP addresses assigned to VMware workload VMs within the
    +   * scope of the given network policy.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + @java.lang.Override + public int getExternalAddressesCount() { + return externalAddresses_.size(); + } + /** + * + * + *
    +   * A list of external IP addresses assigned to VMware workload VMs within the
    +   * scope of the given network policy.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ExternalAddress getExternalAddresses(int index) { + return externalAddresses_.get(index); + } + /** + * + * + *
    +   * A list of external IP addresses assigned to VMware workload VMs within the
    +   * scope of the given network policy.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ExternalAddressOrBuilder getExternalAddressesOrBuilder( + int index) { + return externalAddresses_.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 < externalAddresses_.size(); i++) { + output.writeMessage(1, externalAddresses_.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 < externalAddresses_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, externalAddresses_.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.FetchNetworkPolicyExternalAddressesResponse)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse other = + (com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse) obj; + + if (!getExternalAddressesList().equals(other.getExternalAddressesList())) 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 (getExternalAddressesCount() > 0) { + hash = (37 * hash) + EXTERNAL_ADDRESSES_FIELD_NUMBER; + hash = (53 * hash) + getExternalAddressesList().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.FetchNetworkPolicyExternalAddressesResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse + 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.FetchNetworkPolicyExternalAddressesResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse + 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.FetchNetworkPolicyExternalAddressesResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse + 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.FetchNetworkPolicyExternalAddressesResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse + 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.FetchNetworkPolicyExternalAddressesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse + 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.FetchNetworkPolicyExternalAddressesResponse + 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.FetchNetworkPolicyExternalAddressesResponse + 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.FetchNetworkPolicyExternalAddressesResponse 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.FetchNetworkPolicyExternalAddresses][google.cloud.vmwareengine.v1.VmwareEngine.FetchNetworkPolicyExternalAddresses]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse) + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_FetchNetworkPolicyExternalAddressesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_FetchNetworkPolicyExternalAddressesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse.class, + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (externalAddressesBuilder_ == null) { + externalAddresses_ = java.util.Collections.emptyList(); + } else { + externalAddresses_ = null; + externalAddressesBuilder_.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_FetchNetworkPolicyExternalAddressesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse build() { + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse + buildPartial() { + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse result = + new com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse result) { + if (externalAddressesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + externalAddresses_ = java.util.Collections.unmodifiableList(externalAddresses_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.externalAddresses_ = externalAddresses_; + } else { + result.externalAddresses_ = externalAddressesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse 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.FetchNetworkPolicyExternalAddressesResponse) { + return mergeFrom( + (com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse other) { + if (other + == com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse + .getDefaultInstance()) return this; + if (externalAddressesBuilder_ == null) { + if (!other.externalAddresses_.isEmpty()) { + if (externalAddresses_.isEmpty()) { + externalAddresses_ = other.externalAddresses_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureExternalAddressesIsMutable(); + externalAddresses_.addAll(other.externalAddresses_); + } + onChanged(); + } + } else { + if (!other.externalAddresses_.isEmpty()) { + if (externalAddressesBuilder_.isEmpty()) { + externalAddressesBuilder_.dispose(); + externalAddressesBuilder_ = null; + externalAddresses_ = other.externalAddresses_; + bitField0_ = (bitField0_ & ~0x00000001); + externalAddressesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getExternalAddressesFieldBuilder() + : null; + } else { + externalAddressesBuilder_.addAllMessages(other.externalAddresses_); + } + } + } + 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.ExternalAddress m = + input.readMessage( + com.google.cloud.vmwareengine.v1.ExternalAddress.parser(), + extensionRegistry); + if (externalAddressesBuilder_ == null) { + ensureExternalAddressesIsMutable(); + externalAddresses_.add(m); + } else { + externalAddressesBuilder_.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 externalAddresses_ = + java.util.Collections.emptyList(); + + private void ensureExternalAddressesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + externalAddresses_ = + new java.util.ArrayList( + externalAddresses_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ExternalAddress, + com.google.cloud.vmwareengine.v1.ExternalAddress.Builder, + com.google.cloud.vmwareengine.v1.ExternalAddressOrBuilder> + externalAddressesBuilder_; + + /** + * + * + *
    +     * A list of external IP addresses assigned to VMware workload VMs within the
    +     * scope of the given network policy.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public java.util.List + getExternalAddressesList() { + if (externalAddressesBuilder_ == null) { + return java.util.Collections.unmodifiableList(externalAddresses_); + } else { + return externalAddressesBuilder_.getMessageList(); + } + } + /** + * + * + *
    +     * A list of external IP addresses assigned to VMware workload VMs within the
    +     * scope of the given network policy.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public int getExternalAddressesCount() { + if (externalAddressesBuilder_ == null) { + return externalAddresses_.size(); + } else { + return externalAddressesBuilder_.getCount(); + } + } + /** + * + * + *
    +     * A list of external IP addresses assigned to VMware workload VMs within the
    +     * scope of the given network policy.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public com.google.cloud.vmwareengine.v1.ExternalAddress getExternalAddresses(int index) { + if (externalAddressesBuilder_ == null) { + return externalAddresses_.get(index); + } else { + return externalAddressesBuilder_.getMessage(index); + } + } + /** + * + * + *
    +     * A list of external IP addresses assigned to VMware workload VMs within the
    +     * scope of the given network policy.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public Builder setExternalAddresses( + int index, com.google.cloud.vmwareengine.v1.ExternalAddress value) { + if (externalAddressesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExternalAddressesIsMutable(); + externalAddresses_.set(index, value); + onChanged(); + } else { + externalAddressesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * A list of external IP addresses assigned to VMware workload VMs within the
    +     * scope of the given network policy.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public Builder setExternalAddresses( + int index, com.google.cloud.vmwareengine.v1.ExternalAddress.Builder builderForValue) { + if (externalAddressesBuilder_ == null) { + ensureExternalAddressesIsMutable(); + externalAddresses_.set(index, builderForValue.build()); + onChanged(); + } else { + externalAddressesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A list of external IP addresses assigned to VMware workload VMs within the
    +     * scope of the given network policy.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public Builder addExternalAddresses(com.google.cloud.vmwareengine.v1.ExternalAddress value) { + if (externalAddressesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExternalAddressesIsMutable(); + externalAddresses_.add(value); + onChanged(); + } else { + externalAddressesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +     * A list of external IP addresses assigned to VMware workload VMs within the
    +     * scope of the given network policy.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public Builder addExternalAddresses( + int index, com.google.cloud.vmwareengine.v1.ExternalAddress value) { + if (externalAddressesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExternalAddressesIsMutable(); + externalAddresses_.add(index, value); + onChanged(); + } else { + externalAddressesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * A list of external IP addresses assigned to VMware workload VMs within the
    +     * scope of the given network policy.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public Builder addExternalAddresses( + com.google.cloud.vmwareengine.v1.ExternalAddress.Builder builderForValue) { + if (externalAddressesBuilder_ == null) { + ensureExternalAddressesIsMutable(); + externalAddresses_.add(builderForValue.build()); + onChanged(); + } else { + externalAddressesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A list of external IP addresses assigned to VMware workload VMs within the
    +     * scope of the given network policy.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public Builder addExternalAddresses( + int index, com.google.cloud.vmwareengine.v1.ExternalAddress.Builder builderForValue) { + if (externalAddressesBuilder_ == null) { + ensureExternalAddressesIsMutable(); + externalAddresses_.add(index, builderForValue.build()); + onChanged(); + } else { + externalAddressesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A list of external IP addresses assigned to VMware workload VMs within the
    +     * scope of the given network policy.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public Builder addAllExternalAddresses( + java.lang.Iterable values) { + if (externalAddressesBuilder_ == null) { + ensureExternalAddressesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, externalAddresses_); + onChanged(); + } else { + externalAddressesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +     * A list of external IP addresses assigned to VMware workload VMs within the
    +     * scope of the given network policy.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public Builder clearExternalAddresses() { + if (externalAddressesBuilder_ == null) { + externalAddresses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + externalAddressesBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * A list of external IP addresses assigned to VMware workload VMs within the
    +     * scope of the given network policy.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public Builder removeExternalAddresses(int index) { + if (externalAddressesBuilder_ == null) { + ensureExternalAddressesIsMutable(); + externalAddresses_.remove(index); + onChanged(); + } else { + externalAddressesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +     * A list of external IP addresses assigned to VMware workload VMs within the
    +     * scope of the given network policy.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public com.google.cloud.vmwareengine.v1.ExternalAddress.Builder getExternalAddressesBuilder( + int index) { + return getExternalAddressesFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +     * A list of external IP addresses assigned to VMware workload VMs within the
    +     * scope of the given network policy.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public com.google.cloud.vmwareengine.v1.ExternalAddressOrBuilder getExternalAddressesOrBuilder( + int index) { + if (externalAddressesBuilder_ == null) { + return externalAddresses_.get(index); + } else { + return externalAddressesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +     * A list of external IP addresses assigned to VMware workload VMs within the
    +     * scope of the given network policy.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public java.util.List + getExternalAddressesOrBuilderList() { + if (externalAddressesBuilder_ != null) { + return externalAddressesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(externalAddresses_); + } + } + /** + * + * + *
    +     * A list of external IP addresses assigned to VMware workload VMs within the
    +     * scope of the given network policy.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public com.google.cloud.vmwareengine.v1.ExternalAddress.Builder addExternalAddressesBuilder() { + return getExternalAddressesFieldBuilder() + .addBuilder(com.google.cloud.vmwareengine.v1.ExternalAddress.getDefaultInstance()); + } + /** + * + * + *
    +     * A list of external IP addresses assigned to VMware workload VMs within the
    +     * scope of the given network policy.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public com.google.cloud.vmwareengine.v1.ExternalAddress.Builder addExternalAddressesBuilder( + int index) { + return getExternalAddressesFieldBuilder() + .addBuilder(index, com.google.cloud.vmwareengine.v1.ExternalAddress.getDefaultInstance()); + } + /** + * + * + *
    +     * A list of external IP addresses assigned to VMware workload VMs within the
    +     * scope of the given network policy.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public java.util.List + getExternalAddressesBuilderList() { + return getExternalAddressesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ExternalAddress, + com.google.cloud.vmwareengine.v1.ExternalAddress.Builder, + com.google.cloud.vmwareengine.v1.ExternalAddressOrBuilder> + getExternalAddressesFieldBuilder() { + if (externalAddressesBuilder_ == null) { + externalAddressesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ExternalAddress, + com.google.cloud.vmwareengine.v1.ExternalAddress.Builder, + com.google.cloud.vmwareengine.v1.ExternalAddressOrBuilder>( + externalAddresses_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + externalAddresses_ = null; + } + return externalAddressesBuilder_; + } + + 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.FetchNetworkPolicyExternalAddressesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse) + private static final com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse(); + } + + public static com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchNetworkPolicyExternalAddressesResponse 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.FetchNetworkPolicyExternalAddressesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/FetchNetworkPolicyExternalAddressesResponseOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/FetchNetworkPolicyExternalAddressesResponseOrBuilder.java new file mode 100644 index 000000000000..7bbeac0b6185 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/FetchNetworkPolicyExternalAddressesResponseOrBuilder.java @@ -0,0 +1,110 @@ +/* + * 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 FetchNetworkPolicyExternalAddressesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * A list of external IP addresses assigned to VMware workload VMs within the
    +   * scope of the given network policy.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + java.util.List getExternalAddressesList(); + /** + * + * + *
    +   * A list of external IP addresses assigned to VMware workload VMs within the
    +   * scope of the given network policy.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + com.google.cloud.vmwareengine.v1.ExternalAddress getExternalAddresses(int index); + /** + * + * + *
    +   * A list of external IP addresses assigned to VMware workload VMs within the
    +   * scope of the given network policy.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + int getExternalAddressesCount(); + /** + * + * + *
    +   * A list of external IP addresses assigned to VMware workload VMs within the
    +   * scope of the given network policy.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + java.util.List + getExternalAddressesOrBuilderList(); + /** + * + * + *
    +   * A list of external IP addresses assigned to VMware workload VMs within the
    +   * scope of the given network policy.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + com.google.cloud.vmwareengine.v1.ExternalAddressOrBuilder getExternalAddressesOrBuilder( + 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/GetDnsBindPermissionRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetDnsBindPermissionRequest.java new file mode 100644 index 000000000000..df3869a0c11b --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetDnsBindPermissionRequest.java @@ -0,0 +1,680 @@ +/* + * 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.GetDnsBindPermission][google.cloud.vmwareengine.v1.VmwareEngine.GetDnsBindPermission]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest} + */ +public final class GetDnsBindPermissionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest) + GetDnsBindPermissionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetDnsBindPermissionRequest.newBuilder() to construct. + private GetDnsBindPermissionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetDnsBindPermissionRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetDnsBindPermissionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetDnsBindPermissionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetDnsBindPermissionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest.class, + com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. The name of the resource which stores the users/service accounts
    +   * having the permission to bind to the corresponding intranet VPC of the
    +   * consumer project. DnsBindPermission is a global 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/global/dnsBindPermission`
    +   * 
    + * + * + * 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 name of the resource which stores the users/service accounts
    +   * having the permission to bind to the corresponding intranet VPC of the
    +   * consumer project. DnsBindPermission is a global 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/global/dnsBindPermission`
    +   * 
    + * + * + * 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.GetDnsBindPermissionRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest other = + (com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest) 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.GetDnsBindPermissionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest 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.GetDnsBindPermissionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest 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.GetDnsBindPermissionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest 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.GetDnsBindPermissionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest 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.GetDnsBindPermissionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest 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.GetDnsBindPermissionRequest 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.GetDnsBindPermissionRequest 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.GetDnsBindPermissionRequest 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.GetDnsBindPermission][google.cloud.vmwareengine.v1.VmwareEngine.GetDnsBindPermission]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest) + com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetDnsBindPermissionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetDnsBindPermissionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest.class, + com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest.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_GetDnsBindPermissionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest build() { + com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest buildPartial() { + com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest result = + new com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest 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.GetDnsBindPermissionRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest.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 name of the resource which stores the users/service accounts
    +     * having the permission to bind to the corresponding intranet VPC of the
    +     * consumer project. DnsBindPermission is a global 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/global/dnsBindPermission`
    +     * 
    + * + * + * 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 name of the resource which stores the users/service accounts
    +     * having the permission to bind to the corresponding intranet VPC of the
    +     * consumer project. DnsBindPermission is a global 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/global/dnsBindPermission`
    +     * 
    + * + * + * 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 name of the resource which stores the users/service accounts
    +     * having the permission to bind to the corresponding intranet VPC of the
    +     * consumer project. DnsBindPermission is a global 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/global/dnsBindPermission`
    +     * 
    + * + * + * 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 name of the resource which stores the users/service accounts
    +     * having the permission to bind to the corresponding intranet VPC of the
    +     * consumer project. DnsBindPermission is a global 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/global/dnsBindPermission`
    +     * 
    + * + * + * 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 name of the resource which stores the users/service accounts
    +     * having the permission to bind to the corresponding intranet VPC of the
    +     * consumer project. DnsBindPermission is a global 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/global/dnsBindPermission`
    +     * 
    + * + * + * 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.GetDnsBindPermissionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest) + private static final com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest(); + } + + public static com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDnsBindPermissionRequest 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.GetDnsBindPermissionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetDnsBindPermissionRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetDnsBindPermissionRequestOrBuilder.java new file mode 100644 index 000000000000..eb77277d1278 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetDnsBindPermissionRequestOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface GetDnsBindPermissionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the resource which stores the users/service accounts
    +   * having the permission to bind to the corresponding intranet VPC of the
    +   * consumer project. DnsBindPermission is a global 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/global/dnsBindPermission`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. The name of the resource which stores the users/service accounts
    +   * having the permission to bind to the corresponding intranet VPC of the
    +   * consumer project. DnsBindPermission is a global 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/global/dnsBindPermission`
    +   * 
    + * + * + * 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/GetDnsForwardingRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetDnsForwardingRequest.java new file mode 100644 index 000000000000..3b0bf2c26922 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetDnsForwardingRequest.java @@ -0,0 +1,669 @@ +/* + * 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.GetDnsForwarding][google.cloud.vmwareengine.v1.VmwareEngine.GetDnsForwarding]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.GetDnsForwardingRequest} + */ +public final class GetDnsForwardingRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.GetDnsForwardingRequest) + GetDnsForwardingRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetDnsForwardingRequest.newBuilder() to construct. + private GetDnsForwardingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetDnsForwardingRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetDnsForwardingRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetDnsForwardingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetDnsForwardingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest.class, + com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. The resource name of a `DnsForwarding` 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/dnsForwarding`
    +   * 
    + * + * + * 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 a `DnsForwarding` 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/dnsForwarding`
    +   * 
    + * + * + * 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.GetDnsForwardingRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest other = + (com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest) 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.GetDnsForwardingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest 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.GetDnsForwardingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest 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.GetDnsForwardingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest 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.GetDnsForwardingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest 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.GetDnsForwardingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest 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.GetDnsForwardingRequest 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.GetDnsForwardingRequest 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.GetDnsForwardingRequest 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.GetDnsForwarding][google.cloud.vmwareengine.v1.VmwareEngine.GetDnsForwarding]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.GetDnsForwardingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.GetDnsForwardingRequest) + com.google.cloud.vmwareengine.v1.GetDnsForwardingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetDnsForwardingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetDnsForwardingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest.class, + com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest.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_GetDnsForwardingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest build() { + com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest buildPartial() { + com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest result = + new com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest 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.GetDnsForwardingRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest other) { + if (other == com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest.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 a `DnsForwarding` 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/dnsForwarding`
    +     * 
    + * + * + * 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 a `DnsForwarding` 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/dnsForwarding`
    +     * 
    + * + * + * 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 a `DnsForwarding` 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/dnsForwarding`
    +     * 
    + * + * + * 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 a `DnsForwarding` 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/dnsForwarding`
    +     * 
    + * + * + * 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 a `DnsForwarding` 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/dnsForwarding`
    +     * 
    + * + * + * 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.GetDnsForwardingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.GetDnsForwardingRequest) + private static final com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest(); + } + + public static com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDnsForwardingRequest 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.GetDnsForwardingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetDnsForwardingRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetDnsForwardingRequestOrBuilder.java new file mode 100644 index 000000000000..32ae1a624b90 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetDnsForwardingRequestOrBuilder.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 GetDnsForwardingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.GetDnsForwardingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of a `DnsForwarding` 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/dnsForwarding`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. The resource name of a `DnsForwarding` 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/dnsForwarding`
    +   * 
    + * + * + * 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/GetExternalAccessRuleRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetExternalAccessRuleRequest.java new file mode 100644 index 000000000000..0985640e9289 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetExternalAccessRuleRequest.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.GetExternalAccessRule][google.cloud.vmwareengine.v1.VmwareEngine.GetExternalAccessRule]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest} + */ +public final class GetExternalAccessRuleRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest) + GetExternalAccessRuleRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetExternalAccessRuleRequest.newBuilder() to construct. + private GetExternalAccessRuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetExternalAccessRuleRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetExternalAccessRuleRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetExternalAccessRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetExternalAccessRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest.class, + com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. The resource name of the external access firewall rule 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/networkPolicies/my-policy/externalAccessRules/my-rule`
    +   * 
    + * + * + * 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 external access firewall rule 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/networkPolicies/my-policy/externalAccessRules/my-rule`
    +   * 
    + * + * + * 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.GetExternalAccessRuleRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest other = + (com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest) 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.GetExternalAccessRuleRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest 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.GetExternalAccessRuleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest 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.GetExternalAccessRuleRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest 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.GetExternalAccessRuleRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest 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.GetExternalAccessRuleRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest 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.GetExternalAccessRuleRequest 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.GetExternalAccessRuleRequest 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.GetExternalAccessRuleRequest 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.GetExternalAccessRule][google.cloud.vmwareengine.v1.VmwareEngine.GetExternalAccessRule]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest) + com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetExternalAccessRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetExternalAccessRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest.class, + com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest.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_GetExternalAccessRuleRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest build() { + com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest buildPartial() { + com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest result = + new com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest 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.GetExternalAccessRuleRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest.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 external access firewall rule 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/networkPolicies/my-policy/externalAccessRules/my-rule`
    +     * 
    + * + * + * 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 external access firewall rule 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/networkPolicies/my-policy/externalAccessRules/my-rule`
    +     * 
    + * + * + * 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 external access firewall rule 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/networkPolicies/my-policy/externalAccessRules/my-rule`
    +     * 
    + * + * + * 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 external access firewall rule 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/networkPolicies/my-policy/externalAccessRules/my-rule`
    +     * 
    + * + * + * 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 external access firewall rule 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/networkPolicies/my-policy/externalAccessRules/my-rule`
    +     * 
    + * + * + * 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.GetExternalAccessRuleRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest) + private static final com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest(); + } + + public static com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetExternalAccessRuleRequest 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.GetExternalAccessRuleRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetExternalAccessRuleRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetExternalAccessRuleRequestOrBuilder.java new file mode 100644 index 000000000000..ad61b15bd671 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetExternalAccessRuleRequestOrBuilder.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 GetExternalAccessRuleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the external access firewall rule 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/networkPolicies/my-policy/externalAccessRules/my-rule`
    +   * 
    + * + * + * 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 external access firewall rule 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/networkPolicies/my-policy/externalAccessRules/my-rule`
    +   * 
    + * + * + * 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/GetExternalAddressRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetExternalAddressRequest.java new file mode 100644 index 000000000000..ebcb6eac7a71 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetExternalAddressRequest.java @@ -0,0 +1,669 @@ +/* + * 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.GetExternalAddress][google.cloud.vmwareengine.v1.VmwareEngine.GetExternalAddress]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.GetExternalAddressRequest} + */ +public final class GetExternalAddressRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.GetExternalAddressRequest) + GetExternalAddressRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetExternalAddressRequest.newBuilder() to construct. + private GetExternalAddressRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetExternalAddressRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetExternalAddressRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetExternalAddressRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetExternalAddressRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.GetExternalAddressRequest.class, + com.google.cloud.vmwareengine.v1.GetExternalAddressRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. The resource name of the external IP address 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/externalAddresses/my-ip`
    +   * 
    + * + * + * 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 external IP address 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/externalAddresses/my-ip`
    +   * 
    + * + * + * 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.GetExternalAddressRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.GetExternalAddressRequest other = + (com.google.cloud.vmwareengine.v1.GetExternalAddressRequest) 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.GetExternalAddressRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetExternalAddressRequest 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.GetExternalAddressRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetExternalAddressRequest 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.GetExternalAddressRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetExternalAddressRequest 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.GetExternalAddressRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetExternalAddressRequest 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.GetExternalAddressRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetExternalAddressRequest 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.GetExternalAddressRequest 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.GetExternalAddressRequest 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.GetExternalAddressRequest 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.GetExternalAddress][google.cloud.vmwareengine.v1.VmwareEngine.GetExternalAddress]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.GetExternalAddressRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.GetExternalAddressRequest) + com.google.cloud.vmwareengine.v1.GetExternalAddressRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetExternalAddressRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetExternalAddressRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.GetExternalAddressRequest.class, + com.google.cloud.vmwareengine.v1.GetExternalAddressRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.GetExternalAddressRequest.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_GetExternalAddressRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetExternalAddressRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.GetExternalAddressRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetExternalAddressRequest build() { + com.google.cloud.vmwareengine.v1.GetExternalAddressRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetExternalAddressRequest buildPartial() { + com.google.cloud.vmwareengine.v1.GetExternalAddressRequest result = + new com.google.cloud.vmwareengine.v1.GetExternalAddressRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmwareengine.v1.GetExternalAddressRequest 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.GetExternalAddressRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.GetExternalAddressRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.GetExternalAddressRequest other) { + if (other == com.google.cloud.vmwareengine.v1.GetExternalAddressRequest.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 external IP address 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/externalAddresses/my-ip`
    +     * 
    + * + * + * 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 external IP address 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/externalAddresses/my-ip`
    +     * 
    + * + * + * 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 external IP address 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/externalAddresses/my-ip`
    +     * 
    + * + * + * 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 external IP address 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/externalAddresses/my-ip`
    +     * 
    + * + * + * 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 external IP address 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/externalAddresses/my-ip`
    +     * 
    + * + * + * 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.GetExternalAddressRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.GetExternalAddressRequest) + private static final com.google.cloud.vmwareengine.v1.GetExternalAddressRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.GetExternalAddressRequest(); + } + + public static com.google.cloud.vmwareengine.v1.GetExternalAddressRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetExternalAddressRequest 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.GetExternalAddressRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetExternalAddressRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetExternalAddressRequestOrBuilder.java new file mode 100644 index 000000000000..3aad5b0e49c5 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetExternalAddressRequestOrBuilder.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 GetExternalAddressRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.GetExternalAddressRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the external IP address 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/externalAddresses/my-ip`
    +   * 
    + * + * + * 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 external IP address 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/externalAddresses/my-ip`
    +   * 
    + * + * + * 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/GetLoggingServerRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetLoggingServerRequest.java new file mode 100644 index 000000000000..2acaf9ecbe70 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetLoggingServerRequest.java @@ -0,0 +1,669 @@ +/* + * 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.GetLoggingServer][google.cloud.vmwareengine.v1.VmwareEngine.GetLoggingServer]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.GetLoggingServerRequest} + */ +public final class GetLoggingServerRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.GetLoggingServerRequest) + GetLoggingServerRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetLoggingServerRequest.newBuilder() to construct. + private GetLoggingServerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetLoggingServerRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetLoggingServerRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetLoggingServerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetLoggingServerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.GetLoggingServerRequest.class, + com.google.cloud.vmwareengine.v1.GetLoggingServerRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. The resource name of the Logging Server 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/loggingServers/my-logging-server`
    +   * 
    + * + * + * 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 Logging Server 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/loggingServers/my-logging-server`
    +   * 
    + * + * + * 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.GetLoggingServerRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.GetLoggingServerRequest other = + (com.google.cloud.vmwareengine.v1.GetLoggingServerRequest) 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.GetLoggingServerRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetLoggingServerRequest 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.GetLoggingServerRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetLoggingServerRequest 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.GetLoggingServerRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetLoggingServerRequest 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.GetLoggingServerRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetLoggingServerRequest 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.GetLoggingServerRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetLoggingServerRequest 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.GetLoggingServerRequest 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.GetLoggingServerRequest 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.GetLoggingServerRequest 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.GetLoggingServer][google.cloud.vmwareengine.v1.VmwareEngine.GetLoggingServer]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.GetLoggingServerRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.GetLoggingServerRequest) + com.google.cloud.vmwareengine.v1.GetLoggingServerRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetLoggingServerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetLoggingServerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.GetLoggingServerRequest.class, + com.google.cloud.vmwareengine.v1.GetLoggingServerRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.GetLoggingServerRequest.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_GetLoggingServerRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetLoggingServerRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.GetLoggingServerRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetLoggingServerRequest build() { + com.google.cloud.vmwareengine.v1.GetLoggingServerRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetLoggingServerRequest buildPartial() { + com.google.cloud.vmwareengine.v1.GetLoggingServerRequest result = + new com.google.cloud.vmwareengine.v1.GetLoggingServerRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmwareengine.v1.GetLoggingServerRequest 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.GetLoggingServerRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.GetLoggingServerRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.GetLoggingServerRequest other) { + if (other == com.google.cloud.vmwareengine.v1.GetLoggingServerRequest.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 Logging Server 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/loggingServers/my-logging-server`
    +     * 
    + * + * + * 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 Logging Server 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/loggingServers/my-logging-server`
    +     * 
    + * + * + * 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 Logging Server 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/loggingServers/my-logging-server`
    +     * 
    + * + * + * 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 Logging Server 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/loggingServers/my-logging-server`
    +     * 
    + * + * + * 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 Logging Server 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/loggingServers/my-logging-server`
    +     * 
    + * + * + * 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.GetLoggingServerRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.GetLoggingServerRequest) + private static final com.google.cloud.vmwareengine.v1.GetLoggingServerRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.GetLoggingServerRequest(); + } + + public static com.google.cloud.vmwareengine.v1.GetLoggingServerRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetLoggingServerRequest 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.GetLoggingServerRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetLoggingServerRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetLoggingServerRequestOrBuilder.java new file mode 100644 index 000000000000..2b1f22069e59 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetLoggingServerRequestOrBuilder.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 GetLoggingServerRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.GetLoggingServerRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the Logging Server 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/loggingServers/my-logging-server`
    +   * 
    + * + * + * 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 Logging Server 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/loggingServers/my-logging-server`
    +   * 
    + * + * + * 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/GetManagementDnsZoneBindingRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetManagementDnsZoneBindingRequest.java new file mode 100644 index 000000000000..1644f0234fa0 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetManagementDnsZoneBindingRequest.java @@ -0,0 +1,681 @@ +/* + * 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.GetManagementDnsZoneBinding][google.cloud.vmwareengine.v1.VmwareEngine.GetManagementDnsZoneBinding]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest} + */ +public final class GetManagementDnsZoneBindingRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest) + GetManagementDnsZoneBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetManagementDnsZoneBindingRequest.newBuilder() to construct. + private GetManagementDnsZoneBindingRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetManagementDnsZoneBindingRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetManagementDnsZoneBindingRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetManagementDnsZoneBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetManagementDnsZoneBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest.class, + com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. The resource name of the management DNS zone binding 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +   * 
    + * + * + * 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 management DNS zone binding 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +   * 
    + * + * + * 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.GetManagementDnsZoneBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest other = + (com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest) 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.GetManagementDnsZoneBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest 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.GetManagementDnsZoneBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest 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.GetManagementDnsZoneBindingRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest 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.GetManagementDnsZoneBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest 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.GetManagementDnsZoneBindingRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest + 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.GetManagementDnsZoneBindingRequest 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.GetManagementDnsZoneBindingRequest 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.GetManagementDnsZoneBindingRequest 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.GetManagementDnsZoneBinding][google.cloud.vmwareengine.v1.VmwareEngine.GetManagementDnsZoneBinding]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest) + com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetManagementDnsZoneBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetManagementDnsZoneBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest.class, + com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest.Builder.class); + } + + // Construct using + // com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest.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_GetManagementDnsZoneBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest build() { + com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest buildPartial() { + com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest result = + new com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest 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.GetManagementDnsZoneBindingRequest) { + return mergeFrom( + (com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest + .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 management DNS zone binding 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +     * 
    + * + * + * 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 management DNS zone binding 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +     * 
    + * + * + * 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 management DNS zone binding 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +     * 
    + * + * + * 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 management DNS zone binding 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +     * 
    + * + * + * 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 management DNS zone binding 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +     * 
    + * + * + * 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.GetManagementDnsZoneBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest) + private static final com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest(); + } + + public static com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetManagementDnsZoneBindingRequest 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.GetManagementDnsZoneBindingRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetManagementDnsZoneBindingRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetManagementDnsZoneBindingRequestOrBuilder.java new file mode 100644 index 000000000000..94505779fe3a --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetManagementDnsZoneBindingRequestOrBuilder.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 GetManagementDnsZoneBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the management DNS zone binding 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +   * 
    + * + * + * 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 management DNS zone binding 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +   * 
    + * + * + * 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/GetNetworkPeeringRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetNetworkPeeringRequest.java new file mode 100644 index 000000000000..f5628314dad3 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetNetworkPeeringRequest.java @@ -0,0 +1,669 @@ +/* + * 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.GetNetworkPeering][google.cloud.vmwareengine.v1.VmwareEngine.GetNetworkPeering]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.GetNetworkPeeringRequest} + */ +public final class GetNetworkPeeringRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.GetNetworkPeeringRequest) + GetNetworkPeeringRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetNetworkPeeringRequest.newBuilder() to construct. + private GetNetworkPeeringRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetNetworkPeeringRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetNetworkPeeringRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetNetworkPeeringRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetNetworkPeeringRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest.class, + com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. The resource name of the network peering 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/global/networkPeerings/my-peering`
    +   * 
    + * + * + * 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 network peering 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/global/networkPeerings/my-peering`
    +   * 
    + * + * + * 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.GetNetworkPeeringRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest other = + (com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest) 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.GetNetworkPeeringRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest 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.GetNetworkPeeringRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest 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.GetNetworkPeeringRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest 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.GetNetworkPeeringRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest 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.GetNetworkPeeringRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest 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.GetNetworkPeeringRequest 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.GetNetworkPeeringRequest 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.GetNetworkPeeringRequest 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.GetNetworkPeering][google.cloud.vmwareengine.v1.VmwareEngine.GetNetworkPeering]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.GetNetworkPeeringRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.GetNetworkPeeringRequest) + com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetNetworkPeeringRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetNetworkPeeringRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest.class, + com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest.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_GetNetworkPeeringRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest build() { + com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest buildPartial() { + com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest result = + new com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest 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.GetNetworkPeeringRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest other) { + if (other == com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest.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 network peering 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/global/networkPeerings/my-peering`
    +     * 
    + * + * + * 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 network peering 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/global/networkPeerings/my-peering`
    +     * 
    + * + * + * 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 network peering 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/global/networkPeerings/my-peering`
    +     * 
    + * + * + * 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 network peering 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/global/networkPeerings/my-peering`
    +     * 
    + * + * + * 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 network peering 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/global/networkPeerings/my-peering`
    +     * 
    + * + * + * 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.GetNetworkPeeringRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.GetNetworkPeeringRequest) + private static final com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest(); + } + + public static com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNetworkPeeringRequest 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.GetNetworkPeeringRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetNetworkPeeringRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetNetworkPeeringRequestOrBuilder.java new file mode 100644 index 000000000000..cd29a15b23c2 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetNetworkPeeringRequestOrBuilder.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 GetNetworkPeeringRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.GetNetworkPeeringRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the network peering 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/global/networkPeerings/my-peering`
    +   * 
    + * + * + * 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 network peering 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/global/networkPeerings/my-peering`
    +   * 
    + * + * + * 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/GetNodeRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetNodeRequest.java new file mode 100644 index 000000000000..cf402de643ae --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetNodeRequest.java @@ -0,0 +1,654 @@ +/* + * 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.GetNode][google.cloud.vmwareengine.v1.VmwareEngine.GetNode]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.GetNodeRequest} + */ +public final class GetNodeRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.GetNodeRequest) + GetNodeRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetNodeRequest.newBuilder() to construct. + private GetNodeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetNodeRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetNodeRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetNodeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetNodeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.GetNodeRequest.class, + com.google.cloud.vmwareengine.v1.GetNodeRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. The resource name of the node to retrieve.
    +   * For example:
    +   * `projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}/nodes/{node}`
    +   * 
    + * + * + * 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 node to retrieve.
    +   * For example:
    +   * `projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}/nodes/{node}`
    +   * 
    + * + * + * 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.GetNodeRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.GetNodeRequest other = + (com.google.cloud.vmwareengine.v1.GetNodeRequest) 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.GetNodeRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetNodeRequest 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.GetNodeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetNodeRequest 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.GetNodeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetNodeRequest 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.GetNodeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetNodeRequest 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.GetNodeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetNodeRequest 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.GetNodeRequest 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.GetNodeRequest 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.GetNodeRequest 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.GetNode][google.cloud.vmwareengine.v1.VmwareEngine.GetNode]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.GetNodeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.GetNodeRequest) + com.google.cloud.vmwareengine.v1.GetNodeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetNodeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetNodeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.GetNodeRequest.class, + com.google.cloud.vmwareengine.v1.GetNodeRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.GetNodeRequest.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_GetNodeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetNodeRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.GetNodeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetNodeRequest build() { + com.google.cloud.vmwareengine.v1.GetNodeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetNodeRequest buildPartial() { + com.google.cloud.vmwareengine.v1.GetNodeRequest result = + new com.google.cloud.vmwareengine.v1.GetNodeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmwareengine.v1.GetNodeRequest 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.GetNodeRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.GetNodeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.GetNodeRequest other) { + if (other == com.google.cloud.vmwareengine.v1.GetNodeRequest.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 node to retrieve.
    +     * For example:
    +     * `projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}/nodes/{node}`
    +     * 
    + * + * + * 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 node to retrieve.
    +     * For example:
    +     * `projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}/nodes/{node}`
    +     * 
    + * + * + * 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 node to retrieve.
    +     * For example:
    +     * `projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}/nodes/{node}`
    +     * 
    + * + * + * 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 node to retrieve.
    +     * For example:
    +     * `projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}/nodes/{node}`
    +     * 
    + * + * + * 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 node to retrieve.
    +     * For example:
    +     * `projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}/nodes/{node}`
    +     * 
    + * + * + * 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.GetNodeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.GetNodeRequest) + private static final com.google.cloud.vmwareengine.v1.GetNodeRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.GetNodeRequest(); + } + + public static com.google.cloud.vmwareengine.v1.GetNodeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNodeRequest 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.GetNodeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetNodeRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetNodeRequestOrBuilder.java new file mode 100644 index 000000000000..1c22a87ba4d0 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetNodeRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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 GetNodeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.GetNodeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the node to retrieve.
    +   * For example:
    +   * `projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}/nodes/{node}`
    +   * 
    + * + * + * 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 node to retrieve.
    +   * For example:
    +   * `projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}/nodes/{node}`
    +   * 
    + * + * + * 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/GrantDnsBindPermissionRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GrantDnsBindPermissionRequest.java new file mode 100644 index 000000000000..5bf1d5096be2 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GrantDnsBindPermissionRequest.java @@ -0,0 +1,1268 @@ +/* + * 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.GrantDnsBindPermission][google.cloud.vmwareengine.v1.VmwareEngine.GrantDnsBindPermission]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest} + */ +public final class GrantDnsBindPermissionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest) + GrantDnsBindPermissionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GrantDnsBindPermissionRequest.newBuilder() to construct. + private GrantDnsBindPermissionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GrantDnsBindPermissionRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GrantDnsBindPermissionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GrantDnsBindPermissionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GrantDnsBindPermissionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest.class, + com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. The name of the resource which stores the users/service accounts
    +   * having the permission to bind to the corresponding intranet VPC of the
    +   * consumer project. DnsBindPermission is a global 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/global/dnsBindPermission`
    +   * 
    + * + * + * 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 name of the resource which stores the users/service accounts
    +   * having the permission to bind to the corresponding intranet VPC of the
    +   * consumer project. DnsBindPermission is a global 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/global/dnsBindPermission`
    +   * 
    + * + * + * 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 PRINCIPAL_FIELD_NUMBER = 2; + private com.google.cloud.vmwareengine.v1.Principal principal_; + /** + * + * + *
    +   * Required. The consumer provided user/service account which needs to be
    +   * granted permission to bind with the intranet VPC corresponding to the
    +   * consumer project.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.Principal principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the principal field is set. + */ + @java.lang.Override + public boolean hasPrincipal() { + return principal_ != null; + } + /** + * + * + *
    +   * Required. The consumer provided user/service account which needs to be
    +   * granted permission to bind with the intranet VPC corresponding to the
    +   * consumer project.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.Principal principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The principal. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Principal getPrincipal() { + return principal_ == null + ? com.google.cloud.vmwareengine.v1.Principal.getDefaultInstance() + : principal_; + } + /** + * + * + *
    +   * Required. The consumer provided user/service account which needs to be
    +   * granted permission to bind with the intranet VPC corresponding to the
    +   * consumer project.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.Principal principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrincipalOrBuilder getPrincipalOrBuilder() { + return principal_ == null + ? com.google.cloud.vmwareengine.v1.Principal.getDefaultInstance() + : principal_; + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (principal_ != null) { + output.writeMessage(2, getPrincipal()); + } + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (principal_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPrincipal()); + } + 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.GrantDnsBindPermissionRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest other = + (com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasPrincipal() != other.hasPrincipal()) return false; + if (hasPrincipal()) { + if (!getPrincipal().equals(other.getPrincipal())) 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(); + if (hasPrincipal()) { + hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; + hash = (53 * hash) + getPrincipal().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.GrantDnsBindPermissionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest 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.GrantDnsBindPermissionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest 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.GrantDnsBindPermissionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest 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.GrantDnsBindPermissionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest 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.GrantDnsBindPermissionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest 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.GrantDnsBindPermissionRequest 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.GrantDnsBindPermissionRequest 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.GrantDnsBindPermissionRequest 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.GrantDnsBindPermission][google.cloud.vmwareengine.v1.VmwareEngine.GrantDnsBindPermission]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest) + com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GrantDnsBindPermissionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GrantDnsBindPermissionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest.class, + com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + principal_ = null; + if (principalBuilder_ != null) { + principalBuilder_.dispose(); + principalBuilder_ = 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_GrantDnsBindPermissionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest build() { + com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest buildPartial() { + com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest result = + new com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.principal_ = principalBuilder_ == null ? principal_ : principalBuilder_.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.GrantDnsBindPermissionRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasPrincipal()) { + mergePrincipal(other.getPrincipal()); + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getPrincipalFieldBuilder().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 java.lang.Object name_ = ""; + /** + * + * + *
    +     * Required. The name of the resource which stores the users/service accounts
    +     * having the permission to bind to the corresponding intranet VPC of the
    +     * consumer project. DnsBindPermission is a global 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/global/dnsBindPermission`
    +     * 
    + * + * + * 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 name of the resource which stores the users/service accounts
    +     * having the permission to bind to the corresponding intranet VPC of the
    +     * consumer project. DnsBindPermission is a global 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/global/dnsBindPermission`
    +     * 
    + * + * + * 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 name of the resource which stores the users/service accounts
    +     * having the permission to bind to the corresponding intranet VPC of the
    +     * consumer project. DnsBindPermission is a global 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/global/dnsBindPermission`
    +     * 
    + * + * + * 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 name of the resource which stores the users/service accounts
    +     * having the permission to bind to the corresponding intranet VPC of the
    +     * consumer project. DnsBindPermission is a global 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/global/dnsBindPermission`
    +     * 
    + * + * + * 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 name of the resource which stores the users/service accounts
    +     * having the permission to bind to the corresponding intranet VPC of the
    +     * consumer project. DnsBindPermission is a global 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/global/dnsBindPermission`
    +     * 
    + * + * + * 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 com.google.cloud.vmwareengine.v1.Principal principal_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Principal, + com.google.cloud.vmwareengine.v1.Principal.Builder, + com.google.cloud.vmwareengine.v1.PrincipalOrBuilder> + principalBuilder_; + /** + * + * + *
    +     * Required. The consumer provided user/service account which needs to be
    +     * granted permission to bind with the intranet VPC corresponding to the
    +     * consumer project.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.Principal principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the principal field is set. + */ + public boolean hasPrincipal() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * Required. The consumer provided user/service account which needs to be
    +     * granted permission to bind with the intranet VPC corresponding to the
    +     * consumer project.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.Principal principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The principal. + */ + public com.google.cloud.vmwareengine.v1.Principal getPrincipal() { + if (principalBuilder_ == null) { + return principal_ == null + ? com.google.cloud.vmwareengine.v1.Principal.getDefaultInstance() + : principal_; + } else { + return principalBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Required. The consumer provided user/service account which needs to be
    +     * granted permission to bind with the intranet VPC corresponding to the
    +     * consumer project.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.Principal principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPrincipal(com.google.cloud.vmwareengine.v1.Principal value) { + if (principalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + principal_ = value; + } else { + principalBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The consumer provided user/service account which needs to be
    +     * granted permission to bind with the intranet VPC corresponding to the
    +     * consumer project.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.Principal principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPrincipal( + com.google.cloud.vmwareengine.v1.Principal.Builder builderForValue) { + if (principalBuilder_ == null) { + principal_ = builderForValue.build(); + } else { + principalBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The consumer provided user/service account which needs to be
    +     * granted permission to bind with the intranet VPC corresponding to the
    +     * consumer project.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.Principal principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePrincipal(com.google.cloud.vmwareengine.v1.Principal value) { + if (principalBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && principal_ != null + && principal_ != com.google.cloud.vmwareengine.v1.Principal.getDefaultInstance()) { + getPrincipalBuilder().mergeFrom(value); + } else { + principal_ = value; + } + } else { + principalBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The consumer provided user/service account which needs to be
    +     * granted permission to bind with the intranet VPC corresponding to the
    +     * consumer project.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.Principal principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPrincipal() { + bitField0_ = (bitField0_ & ~0x00000002); + principal_ = null; + if (principalBuilder_ != null) { + principalBuilder_.dispose(); + principalBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The consumer provided user/service account which needs to be
    +     * granted permission to bind with the intranet VPC corresponding to the
    +     * consumer project.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.Principal principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.Principal.Builder getPrincipalBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPrincipalFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Required. The consumer provided user/service account which needs to be
    +     * granted permission to bind with the intranet VPC corresponding to the
    +     * consumer project.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.Principal principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.PrincipalOrBuilder getPrincipalOrBuilder() { + if (principalBuilder_ != null) { + return principalBuilder_.getMessageOrBuilder(); + } else { + return principal_ == null + ? com.google.cloud.vmwareengine.v1.Principal.getDefaultInstance() + : principal_; + } + } + /** + * + * + *
    +     * Required. The consumer provided user/service account which needs to be
    +     * granted permission to bind with the intranet VPC corresponding to the
    +     * consumer project.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.Principal principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Principal, + com.google.cloud.vmwareengine.v1.Principal.Builder, + com.google.cloud.vmwareengine.v1.PrincipalOrBuilder> + getPrincipalFieldBuilder() { + if (principalBuilder_ == null) { + principalBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Principal, + com.google.cloud.vmwareengine.v1.Principal.Builder, + com.google.cloud.vmwareengine.v1.PrincipalOrBuilder>( + getPrincipal(), getParentForChildren(), isClean()); + principal_ = null; + } + return principalBuilder_; + } + + 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.GrantDnsBindPermissionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest) + private static final com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest(); + } + + public static com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GrantDnsBindPermissionRequest 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.GrantDnsBindPermissionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GrantDnsBindPermissionRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GrantDnsBindPermissionRequestOrBuilder.java new file mode 100644 index 000000000000..ea8c7ba4743f --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GrantDnsBindPermissionRequestOrBuilder.java @@ -0,0 +1,162 @@ +/* + * 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 GrantDnsBindPermissionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the resource which stores the users/service accounts
    +   * having the permission to bind to the corresponding intranet VPC of the
    +   * consumer project. DnsBindPermission is a global 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/global/dnsBindPermission`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. The name of the resource which stores the users/service accounts
    +   * having the permission to bind to the corresponding intranet VPC of the
    +   * consumer project. DnsBindPermission is a global 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/global/dnsBindPermission`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Required. The consumer provided user/service account which needs to be
    +   * granted permission to bind with the intranet VPC corresponding to the
    +   * consumer project.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.Principal principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the principal field is set. + */ + boolean hasPrincipal(); + /** + * + * + *
    +   * Required. The consumer provided user/service account which needs to be
    +   * granted permission to bind with the intranet VPC corresponding to the
    +   * consumer project.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.Principal principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The principal. + */ + com.google.cloud.vmwareengine.v1.Principal getPrincipal(); + /** + * + * + *
    +   * Required. The consumer provided user/service account which needs to be
    +   * granted permission to bind with the intranet VPC corresponding to the
    +   * consumer project.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.Principal principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmwareengine.v1.PrincipalOrBuilder getPrincipalOrBuilder(); + + /** + * + * + *
    +   * 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/ListExternalAccessRulesRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListExternalAccessRulesRequest.java new file mode 100644 index 000000000000..4f4a1d31d499 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListExternalAccessRulesRequest.java @@ -0,0 +1,1559 @@ +/* + * 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.ListExternalAccessRules][google.cloud.vmwareengine.v1.VmwareEngine.ListExternalAccessRules]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest} + */ +public final class ListExternalAccessRulesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest) + ListExternalAccessRulesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListExternalAccessRulesRequest.newBuilder() to construct. + private ListExternalAccessRulesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListExternalAccessRulesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListExternalAccessRulesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListExternalAccessRulesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListExternalAccessRulesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest.class, + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
    +   * Required. The resource name of the network policy to query for external
    +   * access firewall rules. 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/networkPolicies/my-policy`
    +   * 
    + * + * + * 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 network policy to query for external
    +   * access firewall rules. 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/networkPolicies/my-policy`
    +   * 
    + * + * + * 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 external access rules 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 `ListExternalAccessRulesRequest`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `ListExternalAccessRulesRequest` 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 `ListExternalAccessRulesRequest`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `ListExternalAccessRulesRequest` 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 external access rules, you can
    +   * exclude the ones named `example-rule` by specifying
    +   * `name != "example-rule"`.
    +   *
    +   * To filter on multiple expressions, provide each separate expression within
    +   * parentheses. For example:
    +   * ```
    +   * (name = "example-rule")
    +   * (createTime > "2021-04-12T08:15:10.40Z")
    +   * ```
    +   *
    +   * By default, each expression is an `AND` expression. However, you
    +   * can include `AND` and `OR` expressions explicitly.
    +   * For example:
    +   * ```
    +   * (name = "example-rule-1") AND
    +   * (createTime > "2021-04-12T08:15:10.40Z") OR
    +   * (name = "example-rule-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 external access rules, you can
    +   * exclude the ones named `example-rule` by specifying
    +   * `name != "example-rule"`.
    +   *
    +   * To filter on multiple expressions, provide each separate expression within
    +   * parentheses. For example:
    +   * ```
    +   * (name = "example-rule")
    +   * (createTime > "2021-04-12T08:15:10.40Z")
    +   * ```
    +   *
    +   * By default, each expression is an `AND` expression. However, you
    +   * can include `AND` and `OR` expressions explicitly.
    +   * For example:
    +   * ```
    +   * (name = "example-rule-1") AND
    +   * (createTime > "2021-04-12T08:15:10.40Z") OR
    +   * (name = "example-rule-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.ListExternalAccessRulesRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest other = + (com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest) 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.ListExternalAccessRulesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest 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.ListExternalAccessRulesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest 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.ListExternalAccessRulesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest 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.ListExternalAccessRulesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest 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.ListExternalAccessRulesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest 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.ListExternalAccessRulesRequest 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.ListExternalAccessRulesRequest 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.ListExternalAccessRulesRequest 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.ListExternalAccessRules][google.cloud.vmwareengine.v1.VmwareEngine.ListExternalAccessRules]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest) + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListExternalAccessRulesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListExternalAccessRulesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest.class, + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest.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_ListExternalAccessRulesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest build() { + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest buildPartial() { + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest result = + new com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest 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.ListExternalAccessRulesRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest.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 network policy to query for external
    +     * access firewall rules. 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/networkPolicies/my-policy`
    +     * 
    + * + * + * 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 network policy to query for external
    +     * access firewall rules. 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/networkPolicies/my-policy`
    +     * 
    + * + * + * 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 network policy to query for external
    +     * access firewall rules. 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/networkPolicies/my-policy`
    +     * 
    + * + * + * 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 network policy to query for external
    +     * access firewall rules. 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/networkPolicies/my-policy`
    +     * 
    + * + * + * 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 network policy to query for external
    +     * access firewall rules. 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/networkPolicies/my-policy`
    +     * 
    + * + * + * 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 external access rules 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 external access rules 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 external access rules 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 `ListExternalAccessRulesRequest`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListExternalAccessRulesRequest` 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 `ListExternalAccessRulesRequest`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListExternalAccessRulesRequest` 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 `ListExternalAccessRulesRequest`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListExternalAccessRulesRequest` 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 `ListExternalAccessRulesRequest`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListExternalAccessRulesRequest` 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 `ListExternalAccessRulesRequest`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListExternalAccessRulesRequest` 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 external access rules, you can
    +     * exclude the ones named `example-rule` by specifying
    +     * `name != "example-rule"`.
    +     *
    +     * To filter on multiple expressions, provide each separate expression within
    +     * parentheses. For example:
    +     * ```
    +     * (name = "example-rule")
    +     * (createTime > "2021-04-12T08:15:10.40Z")
    +     * ```
    +     *
    +     * By default, each expression is an `AND` expression. However, you
    +     * can include `AND` and `OR` expressions explicitly.
    +     * For example:
    +     * ```
    +     * (name = "example-rule-1") AND
    +     * (createTime > "2021-04-12T08:15:10.40Z") OR
    +     * (name = "example-rule-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 external access rules, you can
    +     * exclude the ones named `example-rule` by specifying
    +     * `name != "example-rule"`.
    +     *
    +     * To filter on multiple expressions, provide each separate expression within
    +     * parentheses. For example:
    +     * ```
    +     * (name = "example-rule")
    +     * (createTime > "2021-04-12T08:15:10.40Z")
    +     * ```
    +     *
    +     * By default, each expression is an `AND` expression. However, you
    +     * can include `AND` and `OR` expressions explicitly.
    +     * For example:
    +     * ```
    +     * (name = "example-rule-1") AND
    +     * (createTime > "2021-04-12T08:15:10.40Z") OR
    +     * (name = "example-rule-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 external access rules, you can
    +     * exclude the ones named `example-rule` by specifying
    +     * `name != "example-rule"`.
    +     *
    +     * To filter on multiple expressions, provide each separate expression within
    +     * parentheses. For example:
    +     * ```
    +     * (name = "example-rule")
    +     * (createTime > "2021-04-12T08:15:10.40Z")
    +     * ```
    +     *
    +     * By default, each expression is an `AND` expression. However, you
    +     * can include `AND` and `OR` expressions explicitly.
    +     * For example:
    +     * ```
    +     * (name = "example-rule-1") AND
    +     * (createTime > "2021-04-12T08:15:10.40Z") OR
    +     * (name = "example-rule-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 external access rules, you can
    +     * exclude the ones named `example-rule` by specifying
    +     * `name != "example-rule"`.
    +     *
    +     * To filter on multiple expressions, provide each separate expression within
    +     * parentheses. For example:
    +     * ```
    +     * (name = "example-rule")
    +     * (createTime > "2021-04-12T08:15:10.40Z")
    +     * ```
    +     *
    +     * By default, each expression is an `AND` expression. However, you
    +     * can include `AND` and `OR` expressions explicitly.
    +     * For example:
    +     * ```
    +     * (name = "example-rule-1") AND
    +     * (createTime > "2021-04-12T08:15:10.40Z") OR
    +     * (name = "example-rule-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 external access rules, you can
    +     * exclude the ones named `example-rule` by specifying
    +     * `name != "example-rule"`.
    +     *
    +     * To filter on multiple expressions, provide each separate expression within
    +     * parentheses. For example:
    +     * ```
    +     * (name = "example-rule")
    +     * (createTime > "2021-04-12T08:15:10.40Z")
    +     * ```
    +     *
    +     * By default, each expression is an `AND` expression. However, you
    +     * can include `AND` and `OR` expressions explicitly.
    +     * For example:
    +     * ```
    +     * (name = "example-rule-1") AND
    +     * (createTime > "2021-04-12T08:15:10.40Z") OR
    +     * (name = "example-rule-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.ListExternalAccessRulesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest) + private static final com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest(); + } + + public static com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExternalAccessRulesRequest 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.ListExternalAccessRulesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListExternalAccessRulesRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListExternalAccessRulesRequestOrBuilder.java new file mode 100644 index 000000000000..3710cadbf34c --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListExternalAccessRulesRequestOrBuilder.java @@ -0,0 +1,219 @@ +/* + * 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 ListExternalAccessRulesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the network policy to query for external
    +   * access firewall rules. 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/networkPolicies/my-policy`
    +   * 
    + * + * + * 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 network policy to query for external
    +   * access firewall rules. 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/networkPolicies/my-policy`
    +   * 
    + * + * + * 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 external access rules 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 `ListExternalAccessRulesRequest`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `ListExternalAccessRulesRequest` 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 `ListExternalAccessRulesRequest`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `ListExternalAccessRulesRequest` 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 external access rules, you can
    +   * exclude the ones named `example-rule` by specifying
    +   * `name != "example-rule"`.
    +   *
    +   * To filter on multiple expressions, provide each separate expression within
    +   * parentheses. For example:
    +   * ```
    +   * (name = "example-rule")
    +   * (createTime > "2021-04-12T08:15:10.40Z")
    +   * ```
    +   *
    +   * By default, each expression is an `AND` expression. However, you
    +   * can include `AND` and `OR` expressions explicitly.
    +   * For example:
    +   * ```
    +   * (name = "example-rule-1") AND
    +   * (createTime > "2021-04-12T08:15:10.40Z") OR
    +   * (name = "example-rule-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 external access rules, you can
    +   * exclude the ones named `example-rule` by specifying
    +   * `name != "example-rule"`.
    +   *
    +   * To filter on multiple expressions, provide each separate expression within
    +   * parentheses. For example:
    +   * ```
    +   * (name = "example-rule")
    +   * (createTime > "2021-04-12T08:15:10.40Z")
    +   * ```
    +   *
    +   * By default, each expression is an `AND` expression. However, you
    +   * can include `AND` and `OR` expressions explicitly.
    +   * For example:
    +   * ```
    +   * (name = "example-rule-1") AND
    +   * (createTime > "2021-04-12T08:15:10.40Z") OR
    +   * (name = "example-rule-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/ListExternalAccessRulesResponse.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListExternalAccessRulesResponse.java new file mode 100644 index 000000000000..f4d335b9f7e5 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListExternalAccessRulesResponse.java @@ -0,0 +1,1467 @@ +/* + * 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.ListExternalAccessRules][google.cloud.vmwareengine.v1.VmwareEngine.ListExternalAccessRules]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse} + */ +public final class ListExternalAccessRulesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse) + ListExternalAccessRulesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListExternalAccessRulesResponse.newBuilder() to construct. + private ListExternalAccessRulesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListExternalAccessRulesResponse() { + externalAccessRules_ = 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 ListExternalAccessRulesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListExternalAccessRulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListExternalAccessRulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse.class, + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse.Builder.class); + } + + public static final int EXTERNAL_ACCESS_RULES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List externalAccessRules_; + /** + * + * + *
    +   * A list of external access firewall rules.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rules = 1; + * + */ + @java.lang.Override + public java.util.List + getExternalAccessRulesList() { + return externalAccessRules_; + } + /** + * + * + *
    +   * A list of external access firewall rules.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rules = 1; + * + */ + @java.lang.Override + public java.util.List + getExternalAccessRulesOrBuilderList() { + return externalAccessRules_; + } + /** + * + * + *
    +   * A list of external access firewall rules.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rules = 1; + * + */ + @java.lang.Override + public int getExternalAccessRulesCount() { + return externalAccessRules_.size(); + } + /** + * + * + *
    +   * A list of external access firewall rules.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rules = 1; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ExternalAccessRule getExternalAccessRules(int index) { + return externalAccessRules_.get(index); + } + /** + * + * + *
    +   * A list of external access firewall rules.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rules = 1; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ExternalAccessRuleOrBuilder + getExternalAccessRulesOrBuilder(int index) { + return externalAccessRules_.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(); + /** + * + * + *
    +   * 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 + 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 < externalAccessRules_.size(); i++) { + output.writeMessage(1, externalAccessRules_.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 < externalAccessRules_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, externalAccessRules_.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.ListExternalAccessRulesResponse)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse other = + (com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse) obj; + + if (!getExternalAccessRulesList().equals(other.getExternalAccessRulesList())) 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 (getExternalAccessRulesCount() > 0) { + hash = (37 * hash) + EXTERNAL_ACCESS_RULES_FIELD_NUMBER; + hash = (53 * hash) + getExternalAccessRulesList().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.ListExternalAccessRulesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse 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.ListExternalAccessRulesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse 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.ListExternalAccessRulesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse 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.ListExternalAccessRulesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse 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.ListExternalAccessRulesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse 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.ListExternalAccessRulesResponse 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.ListExternalAccessRulesResponse 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.ListExternalAccessRulesResponse 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.ListExternalAccessRules][google.cloud.vmwareengine.v1.VmwareEngine.ListExternalAccessRules]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse) + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListExternalAccessRulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListExternalAccessRulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse.class, + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (externalAccessRulesBuilder_ == null) { + externalAccessRules_ = java.util.Collections.emptyList(); + } else { + externalAccessRules_ = null; + externalAccessRulesBuilder_.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_ListExternalAccessRulesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse build() { + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse buildPartial() { + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse result = + new com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse result) { + if (externalAccessRulesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + externalAccessRules_ = java.util.Collections.unmodifiableList(externalAccessRules_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.externalAccessRules_ = externalAccessRules_; + } else { + result.externalAccessRules_ = externalAccessRulesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse 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.ListExternalAccessRulesResponse) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse other) { + if (other + == com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse.getDefaultInstance()) + return this; + if (externalAccessRulesBuilder_ == null) { + if (!other.externalAccessRules_.isEmpty()) { + if (externalAccessRules_.isEmpty()) { + externalAccessRules_ = other.externalAccessRules_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureExternalAccessRulesIsMutable(); + externalAccessRules_.addAll(other.externalAccessRules_); + } + onChanged(); + } + } else { + if (!other.externalAccessRules_.isEmpty()) { + if (externalAccessRulesBuilder_.isEmpty()) { + externalAccessRulesBuilder_.dispose(); + externalAccessRulesBuilder_ = null; + externalAccessRules_ = other.externalAccessRules_; + bitField0_ = (bitField0_ & ~0x00000001); + externalAccessRulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getExternalAccessRulesFieldBuilder() + : null; + } else { + externalAccessRulesBuilder_.addAllMessages(other.externalAccessRules_); + } + } + } + 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.ExternalAccessRule m = + input.readMessage( + com.google.cloud.vmwareengine.v1.ExternalAccessRule.parser(), + extensionRegistry); + if (externalAccessRulesBuilder_ == null) { + ensureExternalAccessRulesIsMutable(); + externalAccessRules_.add(m); + } else { + externalAccessRulesBuilder_.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 + externalAccessRules_ = java.util.Collections.emptyList(); + + private void ensureExternalAccessRulesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + externalAccessRules_ = + new java.util.ArrayList( + externalAccessRules_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ExternalAccessRule, + com.google.cloud.vmwareengine.v1.ExternalAccessRule.Builder, + com.google.cloud.vmwareengine.v1.ExternalAccessRuleOrBuilder> + externalAccessRulesBuilder_; + + /** + * + * + *
    +     * A list of external access firewall rules.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rules = 1; + * + */ + public java.util.List + getExternalAccessRulesList() { + if (externalAccessRulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(externalAccessRules_); + } else { + return externalAccessRulesBuilder_.getMessageList(); + } + } + /** + * + * + *
    +     * A list of external access firewall rules.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rules = 1; + * + */ + public int getExternalAccessRulesCount() { + if (externalAccessRulesBuilder_ == null) { + return externalAccessRules_.size(); + } else { + return externalAccessRulesBuilder_.getCount(); + } + } + /** + * + * + *
    +     * A list of external access firewall rules.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rules = 1; + * + */ + public com.google.cloud.vmwareengine.v1.ExternalAccessRule getExternalAccessRules(int index) { + if (externalAccessRulesBuilder_ == null) { + return externalAccessRules_.get(index); + } else { + return externalAccessRulesBuilder_.getMessage(index); + } + } + /** + * + * + *
    +     * A list of external access firewall rules.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rules = 1; + * + */ + public Builder setExternalAccessRules( + int index, com.google.cloud.vmwareengine.v1.ExternalAccessRule value) { + if (externalAccessRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExternalAccessRulesIsMutable(); + externalAccessRules_.set(index, value); + onChanged(); + } else { + externalAccessRulesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * A list of external access firewall rules.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rules = 1; + * + */ + public Builder setExternalAccessRules( + int index, com.google.cloud.vmwareengine.v1.ExternalAccessRule.Builder builderForValue) { + if (externalAccessRulesBuilder_ == null) { + ensureExternalAccessRulesIsMutable(); + externalAccessRules_.set(index, builderForValue.build()); + onChanged(); + } else { + externalAccessRulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A list of external access firewall rules.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rules = 1; + * + */ + public Builder addExternalAccessRules( + com.google.cloud.vmwareengine.v1.ExternalAccessRule value) { + if (externalAccessRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExternalAccessRulesIsMutable(); + externalAccessRules_.add(value); + onChanged(); + } else { + externalAccessRulesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +     * A list of external access firewall rules.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rules = 1; + * + */ + public Builder addExternalAccessRules( + int index, com.google.cloud.vmwareengine.v1.ExternalAccessRule value) { + if (externalAccessRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExternalAccessRulesIsMutable(); + externalAccessRules_.add(index, value); + onChanged(); + } else { + externalAccessRulesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * A list of external access firewall rules.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rules = 1; + * + */ + public Builder addExternalAccessRules( + com.google.cloud.vmwareengine.v1.ExternalAccessRule.Builder builderForValue) { + if (externalAccessRulesBuilder_ == null) { + ensureExternalAccessRulesIsMutable(); + externalAccessRules_.add(builderForValue.build()); + onChanged(); + } else { + externalAccessRulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A list of external access firewall rules.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rules = 1; + * + */ + public Builder addExternalAccessRules( + int index, com.google.cloud.vmwareengine.v1.ExternalAccessRule.Builder builderForValue) { + if (externalAccessRulesBuilder_ == null) { + ensureExternalAccessRulesIsMutable(); + externalAccessRules_.add(index, builderForValue.build()); + onChanged(); + } else { + externalAccessRulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A list of external access firewall rules.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rules = 1; + * + */ + public Builder addAllExternalAccessRules( + java.lang.Iterable values) { + if (externalAccessRulesBuilder_ == null) { + ensureExternalAccessRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, externalAccessRules_); + onChanged(); + } else { + externalAccessRulesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +     * A list of external access firewall rules.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rules = 1; + * + */ + public Builder clearExternalAccessRules() { + if (externalAccessRulesBuilder_ == null) { + externalAccessRules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + externalAccessRulesBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * A list of external access firewall rules.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rules = 1; + * + */ + public Builder removeExternalAccessRules(int index) { + if (externalAccessRulesBuilder_ == null) { + ensureExternalAccessRulesIsMutable(); + externalAccessRules_.remove(index); + onChanged(); + } else { + externalAccessRulesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +     * A list of external access firewall rules.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rules = 1; + * + */ + public com.google.cloud.vmwareengine.v1.ExternalAccessRule.Builder + getExternalAccessRulesBuilder(int index) { + return getExternalAccessRulesFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +     * A list of external access firewall rules.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rules = 1; + * + */ + public com.google.cloud.vmwareengine.v1.ExternalAccessRuleOrBuilder + getExternalAccessRulesOrBuilder(int index) { + if (externalAccessRulesBuilder_ == null) { + return externalAccessRules_.get(index); + } else { + return externalAccessRulesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +     * A list of external access firewall rules.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rules = 1; + * + */ + public java.util.List + getExternalAccessRulesOrBuilderList() { + if (externalAccessRulesBuilder_ != null) { + return externalAccessRulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(externalAccessRules_); + } + } + /** + * + * + *
    +     * A list of external access firewall rules.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rules = 1; + * + */ + public com.google.cloud.vmwareengine.v1.ExternalAccessRule.Builder + addExternalAccessRulesBuilder() { + return getExternalAccessRulesFieldBuilder() + .addBuilder(com.google.cloud.vmwareengine.v1.ExternalAccessRule.getDefaultInstance()); + } + /** + * + * + *
    +     * A list of external access firewall rules.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rules = 1; + * + */ + public com.google.cloud.vmwareengine.v1.ExternalAccessRule.Builder + addExternalAccessRulesBuilder(int index) { + return getExternalAccessRulesFieldBuilder() + .addBuilder( + index, com.google.cloud.vmwareengine.v1.ExternalAccessRule.getDefaultInstance()); + } + /** + * + * + *
    +     * A list of external access firewall rules.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rules = 1; + * + */ + public java.util.List + getExternalAccessRulesBuilderList() { + return getExternalAccessRulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ExternalAccessRule, + com.google.cloud.vmwareengine.v1.ExternalAccessRule.Builder, + com.google.cloud.vmwareengine.v1.ExternalAccessRuleOrBuilder> + getExternalAccessRulesFieldBuilder() { + if (externalAccessRulesBuilder_ == null) { + externalAccessRulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ExternalAccessRule, + com.google.cloud.vmwareengine.v1.ExternalAccessRule.Builder, + com.google.cloud.vmwareengine.v1.ExternalAccessRuleOrBuilder>( + externalAccessRules_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + externalAccessRules_ = null; + } + return externalAccessRulesBuilder_; + } + + 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; + } + /** + * + * + *
    +     * 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); + } + + @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.ListExternalAccessRulesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse) + private static final com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse(); + } + + public static com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExternalAccessRulesResponse 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.ListExternalAccessRulesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListExternalAccessRulesResponseOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListExternalAccessRulesResponseOrBuilder.java new file mode 100644 index 000000000000..04b75d2cf807 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListExternalAccessRulesResponseOrBuilder.java @@ -0,0 +1,165 @@ +/* + * 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 ListExternalAccessRulesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * A list of external access firewall rules.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rules = 1; + * + */ + java.util.List getExternalAccessRulesList(); + /** + * + * + *
    +   * A list of external access firewall rules.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rules = 1; + * + */ + com.google.cloud.vmwareengine.v1.ExternalAccessRule getExternalAccessRules(int index); + /** + * + * + *
    +   * A list of external access firewall rules.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rules = 1; + * + */ + int getExternalAccessRulesCount(); + /** + * + * + *
    +   * A list of external access firewall rules.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rules = 1; + * + */ + java.util.List + getExternalAccessRulesOrBuilderList(); + /** + * + * + *
    +   * A list of external access firewall rules.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rules = 1; + * + */ + com.google.cloud.vmwareengine.v1.ExternalAccessRuleOrBuilder getExternalAccessRulesOrBuilder( + 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(); + + /** + * + * + *
    +   * 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/ListExternalAddressesRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListExternalAddressesRequest.java new file mode 100644 index 000000000000..353ccc6ece4f --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListExternalAddressesRequest.java @@ -0,0 +1,1555 @@ +/* + * 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.ListExternalAddresses][google.cloud.vmwareengine.v1.VmwareEngine.ListExternalAddresses]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListExternalAddressesRequest} + */ +public final class ListExternalAddressesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ListExternalAddressesRequest) + ListExternalAddressesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListExternalAddressesRequest.newBuilder() to construct. + private ListExternalAddressesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListExternalAddressesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListExternalAddressesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListExternalAddressesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListExternalAddressesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest.class, + com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest.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 cloud to be queried for
    +   * external IP addresses.
    +   * 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`
    +   * 
    + * + * + * 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 cloud to be queried for
    +   * external IP addresses.
    +   * 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`
    +   * 
    + * + * + * 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 external IP addresses 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 `ListExternalAddresses` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `ListExternalAddresses` 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 `ListExternalAddresses` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `ListExternalAddresses` 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 IP addresses, you can
    +   * exclude the ones named `example-ip` by specifying
    +   * `name != "example-ip"`.
    +   *
    +   * To filter on multiple expressions, provide each separate expression within
    +   * parentheses. For example:
    +   * ```
    +   * (name = "example-ip")
    +   * (createTime > "2021-04-12T08:15:10.40Z")
    +   * ```
    +   *
    +   * By default, each expression is an `AND` expression. However, you
    +   * can include `AND` and `OR` expressions explicitly.
    +   * For example:
    +   * ```
    +   * (name = "example-ip-1") AND
    +   * (createTime > "2021-04-12T08:15:10.40Z") OR
    +   * (name = "example-ip-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 IP addresses, you can
    +   * exclude the ones named `example-ip` by specifying
    +   * `name != "example-ip"`.
    +   *
    +   * To filter on multiple expressions, provide each separate expression within
    +   * parentheses. For example:
    +   * ```
    +   * (name = "example-ip")
    +   * (createTime > "2021-04-12T08:15:10.40Z")
    +   * ```
    +   *
    +   * By default, each expression is an `AND` expression. However, you
    +   * can include `AND` and `OR` expressions explicitly.
    +   * For example:
    +   * ```
    +   * (name = "example-ip-1") AND
    +   * (createTime > "2021-04-12T08:15:10.40Z") OR
    +   * (name = "example-ip-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.ListExternalAddressesRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest other = + (com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest) 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.ListExternalAddressesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest 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.ListExternalAddressesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest 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.ListExternalAddressesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest 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.ListExternalAddressesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest 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.ListExternalAddressesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest 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.ListExternalAddressesRequest 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.ListExternalAddressesRequest 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.ListExternalAddressesRequest 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.ListExternalAddresses][google.cloud.vmwareengine.v1.VmwareEngine.ListExternalAddresses]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListExternalAddressesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ListExternalAddressesRequest) + com.google.cloud.vmwareengine.v1.ListExternalAddressesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListExternalAddressesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListExternalAddressesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest.class, + com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest.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_ListExternalAddressesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest build() { + com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest buildPartial() { + com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest result = + new com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest 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.ListExternalAddressesRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest.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 private cloud to be queried for
    +     * external IP addresses.
    +     * 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`
    +     * 
    + * + * + * 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 cloud to be queried for
    +     * external IP addresses.
    +     * 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`
    +     * 
    + * + * + * 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 cloud to be queried for
    +     * external IP addresses.
    +     * 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`
    +     * 
    + * + * + * 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 cloud to be queried for
    +     * external IP addresses.
    +     * 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`
    +     * 
    + * + * + * 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 cloud to be queried for
    +     * external IP addresses.
    +     * 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`
    +     * 
    + * + * + * 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 external IP addresses 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 external IP addresses 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 external IP addresses 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 `ListExternalAddresses` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListExternalAddresses` 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 `ListExternalAddresses` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListExternalAddresses` 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 `ListExternalAddresses` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListExternalAddresses` 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 `ListExternalAddresses` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListExternalAddresses` 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 `ListExternalAddresses` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListExternalAddresses` 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 IP addresses, you can
    +     * exclude the ones named `example-ip` by specifying
    +     * `name != "example-ip"`.
    +     *
    +     * To filter on multiple expressions, provide each separate expression within
    +     * parentheses. For example:
    +     * ```
    +     * (name = "example-ip")
    +     * (createTime > "2021-04-12T08:15:10.40Z")
    +     * ```
    +     *
    +     * By default, each expression is an `AND` expression. However, you
    +     * can include `AND` and `OR` expressions explicitly.
    +     * For example:
    +     * ```
    +     * (name = "example-ip-1") AND
    +     * (createTime > "2021-04-12T08:15:10.40Z") OR
    +     * (name = "example-ip-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 IP addresses, you can
    +     * exclude the ones named `example-ip` by specifying
    +     * `name != "example-ip"`.
    +     *
    +     * To filter on multiple expressions, provide each separate expression within
    +     * parentheses. For example:
    +     * ```
    +     * (name = "example-ip")
    +     * (createTime > "2021-04-12T08:15:10.40Z")
    +     * ```
    +     *
    +     * By default, each expression is an `AND` expression. However, you
    +     * can include `AND` and `OR` expressions explicitly.
    +     * For example:
    +     * ```
    +     * (name = "example-ip-1") AND
    +     * (createTime > "2021-04-12T08:15:10.40Z") OR
    +     * (name = "example-ip-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 IP addresses, you can
    +     * exclude the ones named `example-ip` by specifying
    +     * `name != "example-ip"`.
    +     *
    +     * To filter on multiple expressions, provide each separate expression within
    +     * parentheses. For example:
    +     * ```
    +     * (name = "example-ip")
    +     * (createTime > "2021-04-12T08:15:10.40Z")
    +     * ```
    +     *
    +     * By default, each expression is an `AND` expression. However, you
    +     * can include `AND` and `OR` expressions explicitly.
    +     * For example:
    +     * ```
    +     * (name = "example-ip-1") AND
    +     * (createTime > "2021-04-12T08:15:10.40Z") OR
    +     * (name = "example-ip-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 IP addresses, you can
    +     * exclude the ones named `example-ip` by specifying
    +     * `name != "example-ip"`.
    +     *
    +     * To filter on multiple expressions, provide each separate expression within
    +     * parentheses. For example:
    +     * ```
    +     * (name = "example-ip")
    +     * (createTime > "2021-04-12T08:15:10.40Z")
    +     * ```
    +     *
    +     * By default, each expression is an `AND` expression. However, you
    +     * can include `AND` and `OR` expressions explicitly.
    +     * For example:
    +     * ```
    +     * (name = "example-ip-1") AND
    +     * (createTime > "2021-04-12T08:15:10.40Z") OR
    +     * (name = "example-ip-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 IP addresses, you can
    +     * exclude the ones named `example-ip` by specifying
    +     * `name != "example-ip"`.
    +     *
    +     * To filter on multiple expressions, provide each separate expression within
    +     * parentheses. For example:
    +     * ```
    +     * (name = "example-ip")
    +     * (createTime > "2021-04-12T08:15:10.40Z")
    +     * ```
    +     *
    +     * By default, each expression is an `AND` expression. However, you
    +     * can include `AND` and `OR` expressions explicitly.
    +     * For example:
    +     * ```
    +     * (name = "example-ip-1") AND
    +     * (createTime > "2021-04-12T08:15:10.40Z") OR
    +     * (name = "example-ip-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.ListExternalAddressesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ListExternalAddressesRequest) + private static final com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest(); + } + + public static com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExternalAddressesRequest 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.ListExternalAddressesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListExternalAddressesRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListExternalAddressesRequestOrBuilder.java new file mode 100644 index 000000000000..8cd6c157b786 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListExternalAddressesRequestOrBuilder.java @@ -0,0 +1,219 @@ +/* + * 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 ListExternalAddressesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ListExternalAddressesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the private cloud to be queried for
    +   * external IP addresses.
    +   * 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`
    +   * 
    + * + * + * 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 cloud to be queried for
    +   * external IP addresses.
    +   * 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`
    +   * 
    + * + * + * 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 external IP addresses 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 `ListExternalAddresses` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `ListExternalAddresses` 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 `ListExternalAddresses` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `ListExternalAddresses` 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 IP addresses, you can
    +   * exclude the ones named `example-ip` by specifying
    +   * `name != "example-ip"`.
    +   *
    +   * To filter on multiple expressions, provide each separate expression within
    +   * parentheses. For example:
    +   * ```
    +   * (name = "example-ip")
    +   * (createTime > "2021-04-12T08:15:10.40Z")
    +   * ```
    +   *
    +   * By default, each expression is an `AND` expression. However, you
    +   * can include `AND` and `OR` expressions explicitly.
    +   * For example:
    +   * ```
    +   * (name = "example-ip-1") AND
    +   * (createTime > "2021-04-12T08:15:10.40Z") OR
    +   * (name = "example-ip-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 IP addresses, you can
    +   * exclude the ones named `example-ip` by specifying
    +   * `name != "example-ip"`.
    +   *
    +   * To filter on multiple expressions, provide each separate expression within
    +   * parentheses. For example:
    +   * ```
    +   * (name = "example-ip")
    +   * (createTime > "2021-04-12T08:15:10.40Z")
    +   * ```
    +   *
    +   * By default, each expression is an `AND` expression. However, you
    +   * can include `AND` and `OR` expressions explicitly.
    +   * For example:
    +   * ```
    +   * (name = "example-ip-1") AND
    +   * (createTime > "2021-04-12T08:15:10.40Z") OR
    +   * (name = "example-ip-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/ListExternalAddressesResponse.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListExternalAddressesResponse.java new file mode 100644 index 000000000000..c5c80dd22bf4 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListExternalAddressesResponse.java @@ -0,0 +1,1439 @@ +/* + * 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.ListExternalAddresses][google.cloud.vmwareengine.v1.VmwareEngine.ListExternalAddresses]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListExternalAddressesResponse} + */ +public final class ListExternalAddressesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ListExternalAddressesResponse) + ListExternalAddressesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListExternalAddressesResponse.newBuilder() to construct. + private ListExternalAddressesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListExternalAddressesResponse() { + externalAddresses_ = 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 ListExternalAddressesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListExternalAddressesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListExternalAddressesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse.class, + com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse.Builder.class); + } + + public static final int EXTERNAL_ADDRESSES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List externalAddresses_; + /** + * + * + *
    +   * A list of external IP addresses.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + @java.lang.Override + public java.util.List + getExternalAddressesList() { + return externalAddresses_; + } + /** + * + * + *
    +   * A list of external IP addresses.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + @java.lang.Override + public java.util.List + getExternalAddressesOrBuilderList() { + return externalAddresses_; + } + /** + * + * + *
    +   * A list of external IP addresses.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + @java.lang.Override + public int getExternalAddressesCount() { + return externalAddresses_.size(); + } + /** + * + * + *
    +   * A list of external IP addresses.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ExternalAddress getExternalAddresses(int index) { + return externalAddresses_.get(index); + } + /** + * + * + *
    +   * A list of external IP addresses.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ExternalAddressOrBuilder getExternalAddressesOrBuilder( + int index) { + return externalAddresses_.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(); + /** + * + * + *
    +   * 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 + 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 < externalAddresses_.size(); i++) { + output.writeMessage(1, externalAddresses_.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 < externalAddresses_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, externalAddresses_.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.ListExternalAddressesResponse)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse other = + (com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse) obj; + + if (!getExternalAddressesList().equals(other.getExternalAddressesList())) 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 (getExternalAddressesCount() > 0) { + hash = (37 * hash) + EXTERNAL_ADDRESSES_FIELD_NUMBER; + hash = (53 * hash) + getExternalAddressesList().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.ListExternalAddressesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse 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.ListExternalAddressesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse 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.ListExternalAddressesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse 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.ListExternalAddressesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse 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.ListExternalAddressesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse 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.ListExternalAddressesResponse 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.ListExternalAddressesResponse 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.ListExternalAddressesResponse 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.ListExternalAddresses][google.cloud.vmwareengine.v1.VmwareEngine.ListExternalAddresses]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListExternalAddressesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ListExternalAddressesResponse) + com.google.cloud.vmwareengine.v1.ListExternalAddressesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListExternalAddressesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListExternalAddressesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse.class, + com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (externalAddressesBuilder_ == null) { + externalAddresses_ = java.util.Collections.emptyList(); + } else { + externalAddresses_ = null; + externalAddressesBuilder_.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_ListExternalAddressesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse build() { + com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse buildPartial() { + com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse result = + new com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse result) { + if (externalAddressesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + externalAddresses_ = java.util.Collections.unmodifiableList(externalAddresses_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.externalAddresses_ = externalAddresses_; + } else { + result.externalAddresses_ = externalAddressesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse 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.ListExternalAddressesResponse) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse other) { + if (other + == com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse.getDefaultInstance()) + return this; + if (externalAddressesBuilder_ == null) { + if (!other.externalAddresses_.isEmpty()) { + if (externalAddresses_.isEmpty()) { + externalAddresses_ = other.externalAddresses_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureExternalAddressesIsMutable(); + externalAddresses_.addAll(other.externalAddresses_); + } + onChanged(); + } + } else { + if (!other.externalAddresses_.isEmpty()) { + if (externalAddressesBuilder_.isEmpty()) { + externalAddressesBuilder_.dispose(); + externalAddressesBuilder_ = null; + externalAddresses_ = other.externalAddresses_; + bitField0_ = (bitField0_ & ~0x00000001); + externalAddressesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getExternalAddressesFieldBuilder() + : null; + } else { + externalAddressesBuilder_.addAllMessages(other.externalAddresses_); + } + } + } + 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.ExternalAddress m = + input.readMessage( + com.google.cloud.vmwareengine.v1.ExternalAddress.parser(), + extensionRegistry); + if (externalAddressesBuilder_ == null) { + ensureExternalAddressesIsMutable(); + externalAddresses_.add(m); + } else { + externalAddressesBuilder_.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 externalAddresses_ = + java.util.Collections.emptyList(); + + private void ensureExternalAddressesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + externalAddresses_ = + new java.util.ArrayList( + externalAddresses_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ExternalAddress, + com.google.cloud.vmwareengine.v1.ExternalAddress.Builder, + com.google.cloud.vmwareengine.v1.ExternalAddressOrBuilder> + externalAddressesBuilder_; + + /** + * + * + *
    +     * A list of external IP addresses.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public java.util.List + getExternalAddressesList() { + if (externalAddressesBuilder_ == null) { + return java.util.Collections.unmodifiableList(externalAddresses_); + } else { + return externalAddressesBuilder_.getMessageList(); + } + } + /** + * + * + *
    +     * A list of external IP addresses.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public int getExternalAddressesCount() { + if (externalAddressesBuilder_ == null) { + return externalAddresses_.size(); + } else { + return externalAddressesBuilder_.getCount(); + } + } + /** + * + * + *
    +     * A list of external IP addresses.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public com.google.cloud.vmwareengine.v1.ExternalAddress getExternalAddresses(int index) { + if (externalAddressesBuilder_ == null) { + return externalAddresses_.get(index); + } else { + return externalAddressesBuilder_.getMessage(index); + } + } + /** + * + * + *
    +     * A list of external IP addresses.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public Builder setExternalAddresses( + int index, com.google.cloud.vmwareengine.v1.ExternalAddress value) { + if (externalAddressesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExternalAddressesIsMutable(); + externalAddresses_.set(index, value); + onChanged(); + } else { + externalAddressesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * A list of external IP addresses.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public Builder setExternalAddresses( + int index, com.google.cloud.vmwareengine.v1.ExternalAddress.Builder builderForValue) { + if (externalAddressesBuilder_ == null) { + ensureExternalAddressesIsMutable(); + externalAddresses_.set(index, builderForValue.build()); + onChanged(); + } else { + externalAddressesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A list of external IP addresses.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public Builder addExternalAddresses(com.google.cloud.vmwareengine.v1.ExternalAddress value) { + if (externalAddressesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExternalAddressesIsMutable(); + externalAddresses_.add(value); + onChanged(); + } else { + externalAddressesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +     * A list of external IP addresses.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public Builder addExternalAddresses( + int index, com.google.cloud.vmwareengine.v1.ExternalAddress value) { + if (externalAddressesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExternalAddressesIsMutable(); + externalAddresses_.add(index, value); + onChanged(); + } else { + externalAddressesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * A list of external IP addresses.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public Builder addExternalAddresses( + com.google.cloud.vmwareengine.v1.ExternalAddress.Builder builderForValue) { + if (externalAddressesBuilder_ == null) { + ensureExternalAddressesIsMutable(); + externalAddresses_.add(builderForValue.build()); + onChanged(); + } else { + externalAddressesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A list of external IP addresses.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public Builder addExternalAddresses( + int index, com.google.cloud.vmwareengine.v1.ExternalAddress.Builder builderForValue) { + if (externalAddressesBuilder_ == null) { + ensureExternalAddressesIsMutable(); + externalAddresses_.add(index, builderForValue.build()); + onChanged(); + } else { + externalAddressesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A list of external IP addresses.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public Builder addAllExternalAddresses( + java.lang.Iterable values) { + if (externalAddressesBuilder_ == null) { + ensureExternalAddressesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, externalAddresses_); + onChanged(); + } else { + externalAddressesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +     * A list of external IP addresses.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public Builder clearExternalAddresses() { + if (externalAddressesBuilder_ == null) { + externalAddresses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + externalAddressesBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * A list of external IP addresses.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public Builder removeExternalAddresses(int index) { + if (externalAddressesBuilder_ == null) { + ensureExternalAddressesIsMutable(); + externalAddresses_.remove(index); + onChanged(); + } else { + externalAddressesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +     * A list of external IP addresses.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public com.google.cloud.vmwareengine.v1.ExternalAddress.Builder getExternalAddressesBuilder( + int index) { + return getExternalAddressesFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +     * A list of external IP addresses.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public com.google.cloud.vmwareengine.v1.ExternalAddressOrBuilder getExternalAddressesOrBuilder( + int index) { + if (externalAddressesBuilder_ == null) { + return externalAddresses_.get(index); + } else { + return externalAddressesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +     * A list of external IP addresses.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public java.util.List + getExternalAddressesOrBuilderList() { + if (externalAddressesBuilder_ != null) { + return externalAddressesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(externalAddresses_); + } + } + /** + * + * + *
    +     * A list of external IP addresses.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public com.google.cloud.vmwareengine.v1.ExternalAddress.Builder addExternalAddressesBuilder() { + return getExternalAddressesFieldBuilder() + .addBuilder(com.google.cloud.vmwareengine.v1.ExternalAddress.getDefaultInstance()); + } + /** + * + * + *
    +     * A list of external IP addresses.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public com.google.cloud.vmwareengine.v1.ExternalAddress.Builder addExternalAddressesBuilder( + int index) { + return getExternalAddressesFieldBuilder() + .addBuilder(index, com.google.cloud.vmwareengine.v1.ExternalAddress.getDefaultInstance()); + } + /** + * + * + *
    +     * A list of external IP addresses.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + public java.util.List + getExternalAddressesBuilderList() { + return getExternalAddressesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ExternalAddress, + com.google.cloud.vmwareengine.v1.ExternalAddress.Builder, + com.google.cloud.vmwareengine.v1.ExternalAddressOrBuilder> + getExternalAddressesFieldBuilder() { + if (externalAddressesBuilder_ == null) { + externalAddressesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ExternalAddress, + com.google.cloud.vmwareengine.v1.ExternalAddress.Builder, + com.google.cloud.vmwareengine.v1.ExternalAddressOrBuilder>( + externalAddresses_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + externalAddresses_ = null; + } + return externalAddressesBuilder_; + } + + 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; + } + /** + * + * + *
    +     * 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); + } + + @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.ListExternalAddressesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ListExternalAddressesResponse) + private static final com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse(); + } + + public static com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExternalAddressesResponse 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.ListExternalAddressesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListExternalAddressesResponseOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListExternalAddressesResponseOrBuilder.java new file mode 100644 index 000000000000..3312ad5a6cce --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListExternalAddressesResponseOrBuilder.java @@ -0,0 +1,160 @@ +/* + * 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 ListExternalAddressesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ListExternalAddressesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * A list of external IP addresses.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + java.util.List getExternalAddressesList(); + /** + * + * + *
    +   * A list of external IP addresses.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + com.google.cloud.vmwareengine.v1.ExternalAddress getExternalAddresses(int index); + /** + * + * + *
    +   * A list of external IP addresses.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + int getExternalAddressesCount(); + /** + * + * + *
    +   * A list of external IP addresses.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + java.util.List + getExternalAddressesOrBuilderList(); + /** + * + * + *
    +   * A list of external IP addresses.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.ExternalAddress external_addresses = 1; + */ + com.google.cloud.vmwareengine.v1.ExternalAddressOrBuilder getExternalAddressesOrBuilder( + 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(); + + /** + * + * + *
    +   * 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/ListLoggingServersRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListLoggingServersRequest.java new file mode 100644 index 000000000000..1c282a05922c --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListLoggingServersRequest.java @@ -0,0 +1,1558 @@ +/* + * 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.ListLoggingServers][google.cloud.vmwareengine.v1.VmwareEngine.ListLoggingServers]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListLoggingServersRequest} + */ +public final class ListLoggingServersRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ListLoggingServersRequest) + ListLoggingServersRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListLoggingServersRequest.newBuilder() to construct. + private ListLoggingServersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListLoggingServersRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListLoggingServersRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListLoggingServersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListLoggingServersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListLoggingServersRequest.class, + com.google.cloud.vmwareengine.v1.ListLoggingServersRequest.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 cloud to be queried for
    +   * logging servers.
    +   * 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`
    +   * 
    + * + * + * 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 cloud to be queried for
    +   * logging servers.
    +   * 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`
    +   * 
    + * + * + * 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 logging servers 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 `ListLoggingServersRequest` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `ListLoggingServersRequest` 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 `ListLoggingServersRequest` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `ListLoggingServersRequest` 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 logging servers, you can
    +   * exclude the ones named `example-server` by specifying
    +   * `name != "example-server"`.
    +   *
    +   * To filter on multiple expressions, provide each separate expression within
    +   * parentheses. For example:
    +   * ```
    +   * (name = "example-server")
    +   * (createTime > "2021-04-12T08:15:10.40Z")
    +   * ```
    +   *
    +   * By default, each expression is an `AND` expression. However, you
    +   * can include `AND` and `OR` expressions explicitly.
    +   * For example:
    +   * ```
    +   * (name = "example-server-1") AND
    +   * (createTime > "2021-04-12T08:15:10.40Z") OR
    +   * (name = "example-server-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 logging servers, you can
    +   * exclude the ones named `example-server` by specifying
    +   * `name != "example-server"`.
    +   *
    +   * To filter on multiple expressions, provide each separate expression within
    +   * parentheses. For example:
    +   * ```
    +   * (name = "example-server")
    +   * (createTime > "2021-04-12T08:15:10.40Z")
    +   * ```
    +   *
    +   * By default, each expression is an `AND` expression. However, you
    +   * can include `AND` and `OR` expressions explicitly.
    +   * For example:
    +   * ```
    +   * (name = "example-server-1") AND
    +   * (createTime > "2021-04-12T08:15:10.40Z") OR
    +   * (name = "example-server-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.ListLoggingServersRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ListLoggingServersRequest other = + (com.google.cloud.vmwareengine.v1.ListLoggingServersRequest) 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.ListLoggingServersRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListLoggingServersRequest 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.ListLoggingServersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListLoggingServersRequest 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.ListLoggingServersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListLoggingServersRequest 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.ListLoggingServersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListLoggingServersRequest 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.ListLoggingServersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListLoggingServersRequest 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.ListLoggingServersRequest 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.ListLoggingServersRequest 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.ListLoggingServersRequest 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.ListLoggingServers][google.cloud.vmwareengine.v1.VmwareEngine.ListLoggingServers]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListLoggingServersRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ListLoggingServersRequest) + com.google.cloud.vmwareengine.v1.ListLoggingServersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListLoggingServersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListLoggingServersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListLoggingServersRequest.class, + com.google.cloud.vmwareengine.v1.ListLoggingServersRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.ListLoggingServersRequest.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_ListLoggingServersRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListLoggingServersRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ListLoggingServersRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListLoggingServersRequest build() { + com.google.cloud.vmwareengine.v1.ListLoggingServersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListLoggingServersRequest buildPartial() { + com.google.cloud.vmwareengine.v1.ListLoggingServersRequest result = + new com.google.cloud.vmwareengine.v1.ListLoggingServersRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmwareengine.v1.ListLoggingServersRequest 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.ListLoggingServersRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ListLoggingServersRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.ListLoggingServersRequest other) { + if (other == com.google.cloud.vmwareengine.v1.ListLoggingServersRequest.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 private cloud to be queried for
    +     * logging servers.
    +     * 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`
    +     * 
    + * + * + * 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 cloud to be queried for
    +     * logging servers.
    +     * 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`
    +     * 
    + * + * + * 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 cloud to be queried for
    +     * logging servers.
    +     * 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`
    +     * 
    + * + * + * 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 cloud to be queried for
    +     * logging servers.
    +     * 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`
    +     * 
    + * + * + * 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 cloud to be queried for
    +     * logging servers.
    +     * 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`
    +     * 
    + * + * + * 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 logging servers 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 logging servers 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 logging servers 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 `ListLoggingServersRequest` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListLoggingServersRequest` 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 `ListLoggingServersRequest` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListLoggingServersRequest` 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 `ListLoggingServersRequest` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListLoggingServersRequest` 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 `ListLoggingServersRequest` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListLoggingServersRequest` 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 `ListLoggingServersRequest` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListLoggingServersRequest` 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 logging servers, you can
    +     * exclude the ones named `example-server` by specifying
    +     * `name != "example-server"`.
    +     *
    +     * To filter on multiple expressions, provide each separate expression within
    +     * parentheses. For example:
    +     * ```
    +     * (name = "example-server")
    +     * (createTime > "2021-04-12T08:15:10.40Z")
    +     * ```
    +     *
    +     * By default, each expression is an `AND` expression. However, you
    +     * can include `AND` and `OR` expressions explicitly.
    +     * For example:
    +     * ```
    +     * (name = "example-server-1") AND
    +     * (createTime > "2021-04-12T08:15:10.40Z") OR
    +     * (name = "example-server-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 logging servers, you can
    +     * exclude the ones named `example-server` by specifying
    +     * `name != "example-server"`.
    +     *
    +     * To filter on multiple expressions, provide each separate expression within
    +     * parentheses. For example:
    +     * ```
    +     * (name = "example-server")
    +     * (createTime > "2021-04-12T08:15:10.40Z")
    +     * ```
    +     *
    +     * By default, each expression is an `AND` expression. However, you
    +     * can include `AND` and `OR` expressions explicitly.
    +     * For example:
    +     * ```
    +     * (name = "example-server-1") AND
    +     * (createTime > "2021-04-12T08:15:10.40Z") OR
    +     * (name = "example-server-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 logging servers, you can
    +     * exclude the ones named `example-server` by specifying
    +     * `name != "example-server"`.
    +     *
    +     * To filter on multiple expressions, provide each separate expression within
    +     * parentheses. For example:
    +     * ```
    +     * (name = "example-server")
    +     * (createTime > "2021-04-12T08:15:10.40Z")
    +     * ```
    +     *
    +     * By default, each expression is an `AND` expression. However, you
    +     * can include `AND` and `OR` expressions explicitly.
    +     * For example:
    +     * ```
    +     * (name = "example-server-1") AND
    +     * (createTime > "2021-04-12T08:15:10.40Z") OR
    +     * (name = "example-server-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 logging servers, you can
    +     * exclude the ones named `example-server` by specifying
    +     * `name != "example-server"`.
    +     *
    +     * To filter on multiple expressions, provide each separate expression within
    +     * parentheses. For example:
    +     * ```
    +     * (name = "example-server")
    +     * (createTime > "2021-04-12T08:15:10.40Z")
    +     * ```
    +     *
    +     * By default, each expression is an `AND` expression. However, you
    +     * can include `AND` and `OR` expressions explicitly.
    +     * For example:
    +     * ```
    +     * (name = "example-server-1") AND
    +     * (createTime > "2021-04-12T08:15:10.40Z") OR
    +     * (name = "example-server-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 logging servers, you can
    +     * exclude the ones named `example-server` by specifying
    +     * `name != "example-server"`.
    +     *
    +     * To filter on multiple expressions, provide each separate expression within
    +     * parentheses. For example:
    +     * ```
    +     * (name = "example-server")
    +     * (createTime > "2021-04-12T08:15:10.40Z")
    +     * ```
    +     *
    +     * By default, each expression is an `AND` expression. However, you
    +     * can include `AND` and `OR` expressions explicitly.
    +     * For example:
    +     * ```
    +     * (name = "example-server-1") AND
    +     * (createTime > "2021-04-12T08:15:10.40Z") OR
    +     * (name = "example-server-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.ListLoggingServersRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ListLoggingServersRequest) + private static final com.google.cloud.vmwareengine.v1.ListLoggingServersRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ListLoggingServersRequest(); + } + + public static com.google.cloud.vmwareengine.v1.ListLoggingServersRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLoggingServersRequest 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.ListLoggingServersRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListLoggingServersRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListLoggingServersRequestOrBuilder.java new file mode 100644 index 000000000000..c976c1d16d2f --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListLoggingServersRequestOrBuilder.java @@ -0,0 +1,221 @@ +/* + * 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 ListLoggingServersRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ListLoggingServersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the private cloud to be queried for
    +   * logging servers.
    +   * 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`
    +   * 
    + * + * + * 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 cloud to be queried for
    +   * logging servers.
    +   * 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`
    +   * 
    + * + * + * 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 logging servers 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 `ListLoggingServersRequest` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `ListLoggingServersRequest` 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 `ListLoggingServersRequest` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `ListLoggingServersRequest` 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 logging servers, you can
    +   * exclude the ones named `example-server` by specifying
    +   * `name != "example-server"`.
    +   *
    +   * To filter on multiple expressions, provide each separate expression within
    +   * parentheses. For example:
    +   * ```
    +   * (name = "example-server")
    +   * (createTime > "2021-04-12T08:15:10.40Z")
    +   * ```
    +   *
    +   * By default, each expression is an `AND` expression. However, you
    +   * can include `AND` and `OR` expressions explicitly.
    +   * For example:
    +   * ```
    +   * (name = "example-server-1") AND
    +   * (createTime > "2021-04-12T08:15:10.40Z") OR
    +   * (name = "example-server-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 logging servers, you can
    +   * exclude the ones named `example-server` by specifying
    +   * `name != "example-server"`.
    +   *
    +   * To filter on multiple expressions, provide each separate expression within
    +   * parentheses. For example:
    +   * ```
    +   * (name = "example-server")
    +   * (createTime > "2021-04-12T08:15:10.40Z")
    +   * ```
    +   *
    +   * By default, each expression is an `AND` expression. However, you
    +   * can include `AND` and `OR` expressions explicitly.
    +   * For example:
    +   * ```
    +   * (name = "example-server-1") AND
    +   * (createTime > "2021-04-12T08:15:10.40Z") OR
    +   * (name = "example-server-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/ListLoggingServersResponse.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListLoggingServersResponse.java new file mode 100644 index 000000000000..ead3f20b25cb --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListLoggingServersResponse.java @@ -0,0 +1,1429 @@ +/* + * 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.ListLoggingServers][google.cloud.vmwareengine.v1.VmwareEngine.ListLoggingServers]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListLoggingServersResponse} + */ +public final class ListLoggingServersResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ListLoggingServersResponse) + ListLoggingServersResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListLoggingServersResponse.newBuilder() to construct. + private ListLoggingServersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListLoggingServersResponse() { + loggingServers_ = 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 ListLoggingServersResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListLoggingServersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListLoggingServersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListLoggingServersResponse.class, + com.google.cloud.vmwareengine.v1.ListLoggingServersResponse.Builder.class); + } + + public static final int LOGGING_SERVERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List loggingServers_; + /** + * + * + *
    +   * A list of Logging Servers.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.LoggingServer logging_servers = 1; + */ + @java.lang.Override + public java.util.List getLoggingServersList() { + return loggingServers_; + } + /** + * + * + *
    +   * A list of Logging Servers.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.LoggingServer logging_servers = 1; + */ + @java.lang.Override + public java.util.List + getLoggingServersOrBuilderList() { + return loggingServers_; + } + /** + * + * + *
    +   * A list of Logging Servers.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.LoggingServer logging_servers = 1; + */ + @java.lang.Override + public int getLoggingServersCount() { + return loggingServers_.size(); + } + /** + * + * + *
    +   * A list of Logging Servers.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.LoggingServer logging_servers = 1; + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.LoggingServer getLoggingServers(int index) { + return loggingServers_.get(index); + } + /** + * + * + *
    +   * A list of Logging Servers.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.LoggingServer logging_servers = 1; + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.LoggingServerOrBuilder getLoggingServersOrBuilder( + int index) { + return loggingServers_.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 send 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 send 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(); + /** + * + * + *
    +   * 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 + 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 < loggingServers_.size(); i++) { + output.writeMessage(1, loggingServers_.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 < loggingServers_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, loggingServers_.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.ListLoggingServersResponse)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ListLoggingServersResponse other = + (com.google.cloud.vmwareengine.v1.ListLoggingServersResponse) obj; + + if (!getLoggingServersList().equals(other.getLoggingServersList())) 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 (getLoggingServersCount() > 0) { + hash = (37 * hash) + LOGGING_SERVERS_FIELD_NUMBER; + hash = (53 * hash) + getLoggingServersList().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.ListLoggingServersResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListLoggingServersResponse 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.ListLoggingServersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListLoggingServersResponse 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.ListLoggingServersResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListLoggingServersResponse 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.ListLoggingServersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListLoggingServersResponse 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.ListLoggingServersResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListLoggingServersResponse 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.ListLoggingServersResponse 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.ListLoggingServersResponse 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.ListLoggingServersResponse 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.ListLoggingServers][google.cloud.vmwareengine.v1.VmwareEngine.ListLoggingServers]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListLoggingServersResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ListLoggingServersResponse) + com.google.cloud.vmwareengine.v1.ListLoggingServersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListLoggingServersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListLoggingServersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListLoggingServersResponse.class, + com.google.cloud.vmwareengine.v1.ListLoggingServersResponse.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.ListLoggingServersResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (loggingServersBuilder_ == null) { + loggingServers_ = java.util.Collections.emptyList(); + } else { + loggingServers_ = null; + loggingServersBuilder_.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_ListLoggingServersResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListLoggingServersResponse getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ListLoggingServersResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListLoggingServersResponse build() { + com.google.cloud.vmwareengine.v1.ListLoggingServersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListLoggingServersResponse buildPartial() { + com.google.cloud.vmwareengine.v1.ListLoggingServersResponse result = + new com.google.cloud.vmwareengine.v1.ListLoggingServersResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.vmwareengine.v1.ListLoggingServersResponse result) { + if (loggingServersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + loggingServers_ = java.util.Collections.unmodifiableList(loggingServers_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.loggingServers_ = loggingServers_; + } else { + result.loggingServers_ = loggingServersBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.vmwareengine.v1.ListLoggingServersResponse 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.ListLoggingServersResponse) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ListLoggingServersResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.ListLoggingServersResponse other) { + if (other == com.google.cloud.vmwareengine.v1.ListLoggingServersResponse.getDefaultInstance()) + return this; + if (loggingServersBuilder_ == null) { + if (!other.loggingServers_.isEmpty()) { + if (loggingServers_.isEmpty()) { + loggingServers_ = other.loggingServers_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLoggingServersIsMutable(); + loggingServers_.addAll(other.loggingServers_); + } + onChanged(); + } + } else { + if (!other.loggingServers_.isEmpty()) { + if (loggingServersBuilder_.isEmpty()) { + loggingServersBuilder_.dispose(); + loggingServersBuilder_ = null; + loggingServers_ = other.loggingServers_; + bitField0_ = (bitField0_ & ~0x00000001); + loggingServersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLoggingServersFieldBuilder() + : null; + } else { + loggingServersBuilder_.addAllMessages(other.loggingServers_); + } + } + } + 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.LoggingServer m = + input.readMessage( + com.google.cloud.vmwareengine.v1.LoggingServer.parser(), extensionRegistry); + if (loggingServersBuilder_ == null) { + ensureLoggingServersIsMutable(); + loggingServers_.add(m); + } else { + loggingServersBuilder_.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 loggingServers_ = + java.util.Collections.emptyList(); + + private void ensureLoggingServersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + loggingServers_ = + new java.util.ArrayList( + loggingServers_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.LoggingServer, + com.google.cloud.vmwareengine.v1.LoggingServer.Builder, + com.google.cloud.vmwareengine.v1.LoggingServerOrBuilder> + loggingServersBuilder_; + + /** + * + * + *
    +     * A list of Logging Servers.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.LoggingServer logging_servers = 1; + */ + public java.util.List getLoggingServersList() { + if (loggingServersBuilder_ == null) { + return java.util.Collections.unmodifiableList(loggingServers_); + } else { + return loggingServersBuilder_.getMessageList(); + } + } + /** + * + * + *
    +     * A list of Logging Servers.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.LoggingServer logging_servers = 1; + */ + public int getLoggingServersCount() { + if (loggingServersBuilder_ == null) { + return loggingServers_.size(); + } else { + return loggingServersBuilder_.getCount(); + } + } + /** + * + * + *
    +     * A list of Logging Servers.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.LoggingServer logging_servers = 1; + */ + public com.google.cloud.vmwareengine.v1.LoggingServer getLoggingServers(int index) { + if (loggingServersBuilder_ == null) { + return loggingServers_.get(index); + } else { + return loggingServersBuilder_.getMessage(index); + } + } + /** + * + * + *
    +     * A list of Logging Servers.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.LoggingServer logging_servers = 1; + */ + public Builder setLoggingServers( + int index, com.google.cloud.vmwareengine.v1.LoggingServer value) { + if (loggingServersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLoggingServersIsMutable(); + loggingServers_.set(index, value); + onChanged(); + } else { + loggingServersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * A list of Logging Servers.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.LoggingServer logging_servers = 1; + */ + public Builder setLoggingServers( + int index, com.google.cloud.vmwareengine.v1.LoggingServer.Builder builderForValue) { + if (loggingServersBuilder_ == null) { + ensureLoggingServersIsMutable(); + loggingServers_.set(index, builderForValue.build()); + onChanged(); + } else { + loggingServersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A list of Logging Servers.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.LoggingServer logging_servers = 1; + */ + public Builder addLoggingServers(com.google.cloud.vmwareengine.v1.LoggingServer value) { + if (loggingServersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLoggingServersIsMutable(); + loggingServers_.add(value); + onChanged(); + } else { + loggingServersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +     * A list of Logging Servers.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.LoggingServer logging_servers = 1; + */ + public Builder addLoggingServers( + int index, com.google.cloud.vmwareengine.v1.LoggingServer value) { + if (loggingServersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLoggingServersIsMutable(); + loggingServers_.add(index, value); + onChanged(); + } else { + loggingServersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * A list of Logging Servers.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.LoggingServer logging_servers = 1; + */ + public Builder addLoggingServers( + com.google.cloud.vmwareengine.v1.LoggingServer.Builder builderForValue) { + if (loggingServersBuilder_ == null) { + ensureLoggingServersIsMutable(); + loggingServers_.add(builderForValue.build()); + onChanged(); + } else { + loggingServersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A list of Logging Servers.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.LoggingServer logging_servers = 1; + */ + public Builder addLoggingServers( + int index, com.google.cloud.vmwareengine.v1.LoggingServer.Builder builderForValue) { + if (loggingServersBuilder_ == null) { + ensureLoggingServersIsMutable(); + loggingServers_.add(index, builderForValue.build()); + onChanged(); + } else { + loggingServersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A list of Logging Servers.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.LoggingServer logging_servers = 1; + */ + public Builder addAllLoggingServers( + java.lang.Iterable values) { + if (loggingServersBuilder_ == null) { + ensureLoggingServersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, loggingServers_); + onChanged(); + } else { + loggingServersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +     * A list of Logging Servers.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.LoggingServer logging_servers = 1; + */ + public Builder clearLoggingServers() { + if (loggingServersBuilder_ == null) { + loggingServers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + loggingServersBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * A list of Logging Servers.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.LoggingServer logging_servers = 1; + */ + public Builder removeLoggingServers(int index) { + if (loggingServersBuilder_ == null) { + ensureLoggingServersIsMutable(); + loggingServers_.remove(index); + onChanged(); + } else { + loggingServersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +     * A list of Logging Servers.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.LoggingServer logging_servers = 1; + */ + public com.google.cloud.vmwareengine.v1.LoggingServer.Builder getLoggingServersBuilder( + int index) { + return getLoggingServersFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +     * A list of Logging Servers.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.LoggingServer logging_servers = 1; + */ + public com.google.cloud.vmwareengine.v1.LoggingServerOrBuilder getLoggingServersOrBuilder( + int index) { + if (loggingServersBuilder_ == null) { + return loggingServers_.get(index); + } else { + return loggingServersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +     * A list of Logging Servers.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.LoggingServer logging_servers = 1; + */ + public java.util.List + getLoggingServersOrBuilderList() { + if (loggingServersBuilder_ != null) { + return loggingServersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(loggingServers_); + } + } + /** + * + * + *
    +     * A list of Logging Servers.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.LoggingServer logging_servers = 1; + */ + public com.google.cloud.vmwareengine.v1.LoggingServer.Builder addLoggingServersBuilder() { + return getLoggingServersFieldBuilder() + .addBuilder(com.google.cloud.vmwareengine.v1.LoggingServer.getDefaultInstance()); + } + /** + * + * + *
    +     * A list of Logging Servers.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.LoggingServer logging_servers = 1; + */ + public com.google.cloud.vmwareengine.v1.LoggingServer.Builder addLoggingServersBuilder( + int index) { + return getLoggingServersFieldBuilder() + .addBuilder(index, com.google.cloud.vmwareengine.v1.LoggingServer.getDefaultInstance()); + } + /** + * + * + *
    +     * A list of Logging Servers.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.LoggingServer logging_servers = 1; + */ + public java.util.List + getLoggingServersBuilderList() { + return getLoggingServersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.LoggingServer, + com.google.cloud.vmwareengine.v1.LoggingServer.Builder, + com.google.cloud.vmwareengine.v1.LoggingServerOrBuilder> + getLoggingServersFieldBuilder() { + if (loggingServersBuilder_ == null) { + loggingServersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.LoggingServer, + com.google.cloud.vmwareengine.v1.LoggingServer.Builder, + com.google.cloud.vmwareengine.v1.LoggingServerOrBuilder>( + loggingServers_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + loggingServers_ = null; + } + return loggingServersBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
    +     * A token, which can be send 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 send 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 send 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 send 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 send 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; + } + /** + * + * + *
    +     * 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); + } + + @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.ListLoggingServersResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ListLoggingServersResponse) + private static final com.google.cloud.vmwareengine.v1.ListLoggingServersResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ListLoggingServersResponse(); + } + + public static com.google.cloud.vmwareengine.v1.ListLoggingServersResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLoggingServersResponse 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.ListLoggingServersResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListLoggingServersResponseOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListLoggingServersResponseOrBuilder.java new file mode 100644 index 000000000000..37fd904e3377 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListLoggingServersResponseOrBuilder.java @@ -0,0 +1,159 @@ +/* + * 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 ListLoggingServersResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ListLoggingServersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * A list of Logging Servers.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.LoggingServer logging_servers = 1; + */ + java.util.List getLoggingServersList(); + /** + * + * + *
    +   * A list of Logging Servers.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.LoggingServer logging_servers = 1; + */ + com.google.cloud.vmwareengine.v1.LoggingServer getLoggingServers(int index); + /** + * + * + *
    +   * A list of Logging Servers.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.LoggingServer logging_servers = 1; + */ + int getLoggingServersCount(); + /** + * + * + *
    +   * A list of Logging Servers.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.LoggingServer logging_servers = 1; + */ + java.util.List + getLoggingServersOrBuilderList(); + /** + * + * + *
    +   * A list of Logging Servers.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.LoggingServer logging_servers = 1; + */ + com.google.cloud.vmwareengine.v1.LoggingServerOrBuilder getLoggingServersOrBuilder(int index); + + /** + * + * + *
    +   * A token, which can be send 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 send 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(); + + /** + * + * + *
    +   * 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/ListManagementDnsZoneBindingsRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListManagementDnsZoneBindingsRequest.java new file mode 100644 index 000000000000..ce072da009fe --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListManagementDnsZoneBindingsRequest.java @@ -0,0 +1,1571 @@ +/* + * 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.ListManagementDnsZoneBindings][google.cloud.vmwareengine.v1.VmwareEngine.ListManagementDnsZoneBindings]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest} + */ +public final class ListManagementDnsZoneBindingsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest) + ListManagementDnsZoneBindingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListManagementDnsZoneBindingsRequest.newBuilder() to construct. + private ListManagementDnsZoneBindingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListManagementDnsZoneBindingsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListManagementDnsZoneBindingsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListManagementDnsZoneBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListManagementDnsZoneBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest.class, + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest.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 cloud to be queried for
    +   * management DNS zone bindings.
    +   * 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`
    +   * 
    + * + * + * 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 cloud to be queried for
    +   * management DNS zone bindings.
    +   * 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`
    +   * 
    + * + * + * 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 management DNS zone bindings 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 `ListManagementDnsZoneBindings`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `ListManagementDnsZoneBindings` 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 `ListManagementDnsZoneBindings`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `ListManagementDnsZoneBindings` 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 Management DNS Zone Bindings,
    +   * you can exclude the ones named `example-management-dns-zone-binding` by
    +   * specifying `name != "example-management-dns-zone-binding"`.
    +   *
    +   * To filter on multiple expressions, provide each separate expression within
    +   * parentheses. For example:
    +   * ```
    +   * (name = "example-management-dns-zone-binding")
    +   * (createTime > "2021-04-12T08:15:10.40Z")
    +   * ```
    +   *
    +   * By default, each expression is an `AND` expression. However, you
    +   * can include `AND` and `OR` expressions explicitly.
    +   * For example:
    +   * ```
    +   * (name = "example-management-dns-zone-binding-1") AND
    +   * (createTime > "2021-04-12T08:15:10.40Z") OR
    +   * (name = "example-management-dns-zone-binding-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 Management DNS Zone Bindings,
    +   * you can exclude the ones named `example-management-dns-zone-binding` by
    +   * specifying `name != "example-management-dns-zone-binding"`.
    +   *
    +   * To filter on multiple expressions, provide each separate expression within
    +   * parentheses. For example:
    +   * ```
    +   * (name = "example-management-dns-zone-binding")
    +   * (createTime > "2021-04-12T08:15:10.40Z")
    +   * ```
    +   *
    +   * By default, each expression is an `AND` expression. However, you
    +   * can include `AND` and `OR` expressions explicitly.
    +   * For example:
    +   * ```
    +   * (name = "example-management-dns-zone-binding-1") AND
    +   * (createTime > "2021-04-12T08:15:10.40Z") OR
    +   * (name = "example-management-dns-zone-binding-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.ListManagementDnsZoneBindingsRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest other = + (com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest) 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.ListManagementDnsZoneBindingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest 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.ListManagementDnsZoneBindingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest 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.ListManagementDnsZoneBindingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest 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.ListManagementDnsZoneBindingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest 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.ListManagementDnsZoneBindingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest + 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.ListManagementDnsZoneBindingsRequest 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.ListManagementDnsZoneBindingsRequest 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.ListManagementDnsZoneBindingsRequest 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.ListManagementDnsZoneBindings][google.cloud.vmwareengine.v1.VmwareEngine.ListManagementDnsZoneBindings]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest) + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListManagementDnsZoneBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListManagementDnsZoneBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest.class, + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest.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_ListManagementDnsZoneBindingsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest build() { + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest buildPartial() { + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest result = + new com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest 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.ListManagementDnsZoneBindingsRequest) { + return mergeFrom( + (com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest + .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 private cloud to be queried for
    +     * management DNS zone bindings.
    +     * 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`
    +     * 
    + * + * + * 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 cloud to be queried for
    +     * management DNS zone bindings.
    +     * 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`
    +     * 
    + * + * + * 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 cloud to be queried for
    +     * management DNS zone bindings.
    +     * 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`
    +     * 
    + * + * + * 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 cloud to be queried for
    +     * management DNS zone bindings.
    +     * 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`
    +     * 
    + * + * + * 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 cloud to be queried for
    +     * management DNS zone bindings.
    +     * 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`
    +     * 
    + * + * + * 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 management DNS zone bindings 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 management DNS zone bindings 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 management DNS zone bindings 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 `ListManagementDnsZoneBindings`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListManagementDnsZoneBindings` 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 `ListManagementDnsZoneBindings`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListManagementDnsZoneBindings` 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 `ListManagementDnsZoneBindings`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListManagementDnsZoneBindings` 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 `ListManagementDnsZoneBindings`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListManagementDnsZoneBindings` 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 `ListManagementDnsZoneBindings`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListManagementDnsZoneBindings` 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 Management DNS Zone Bindings,
    +     * you can exclude the ones named `example-management-dns-zone-binding` by
    +     * specifying `name != "example-management-dns-zone-binding"`.
    +     *
    +     * To filter on multiple expressions, provide each separate expression within
    +     * parentheses. For example:
    +     * ```
    +     * (name = "example-management-dns-zone-binding")
    +     * (createTime > "2021-04-12T08:15:10.40Z")
    +     * ```
    +     *
    +     * By default, each expression is an `AND` expression. However, you
    +     * can include `AND` and `OR` expressions explicitly.
    +     * For example:
    +     * ```
    +     * (name = "example-management-dns-zone-binding-1") AND
    +     * (createTime > "2021-04-12T08:15:10.40Z") OR
    +     * (name = "example-management-dns-zone-binding-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 Management DNS Zone Bindings,
    +     * you can exclude the ones named `example-management-dns-zone-binding` by
    +     * specifying `name != "example-management-dns-zone-binding"`.
    +     *
    +     * To filter on multiple expressions, provide each separate expression within
    +     * parentheses. For example:
    +     * ```
    +     * (name = "example-management-dns-zone-binding")
    +     * (createTime > "2021-04-12T08:15:10.40Z")
    +     * ```
    +     *
    +     * By default, each expression is an `AND` expression. However, you
    +     * can include `AND` and `OR` expressions explicitly.
    +     * For example:
    +     * ```
    +     * (name = "example-management-dns-zone-binding-1") AND
    +     * (createTime > "2021-04-12T08:15:10.40Z") OR
    +     * (name = "example-management-dns-zone-binding-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 Management DNS Zone Bindings,
    +     * you can exclude the ones named `example-management-dns-zone-binding` by
    +     * specifying `name != "example-management-dns-zone-binding"`.
    +     *
    +     * To filter on multiple expressions, provide each separate expression within
    +     * parentheses. For example:
    +     * ```
    +     * (name = "example-management-dns-zone-binding")
    +     * (createTime > "2021-04-12T08:15:10.40Z")
    +     * ```
    +     *
    +     * By default, each expression is an `AND` expression. However, you
    +     * can include `AND` and `OR` expressions explicitly.
    +     * For example:
    +     * ```
    +     * (name = "example-management-dns-zone-binding-1") AND
    +     * (createTime > "2021-04-12T08:15:10.40Z") OR
    +     * (name = "example-management-dns-zone-binding-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 Management DNS Zone Bindings,
    +     * you can exclude the ones named `example-management-dns-zone-binding` by
    +     * specifying `name != "example-management-dns-zone-binding"`.
    +     *
    +     * To filter on multiple expressions, provide each separate expression within
    +     * parentheses. For example:
    +     * ```
    +     * (name = "example-management-dns-zone-binding")
    +     * (createTime > "2021-04-12T08:15:10.40Z")
    +     * ```
    +     *
    +     * By default, each expression is an `AND` expression. However, you
    +     * can include `AND` and `OR` expressions explicitly.
    +     * For example:
    +     * ```
    +     * (name = "example-management-dns-zone-binding-1") AND
    +     * (createTime > "2021-04-12T08:15:10.40Z") OR
    +     * (name = "example-management-dns-zone-binding-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 Management DNS Zone Bindings,
    +     * you can exclude the ones named `example-management-dns-zone-binding` by
    +     * specifying `name != "example-management-dns-zone-binding"`.
    +     *
    +     * To filter on multiple expressions, provide each separate expression within
    +     * parentheses. For example:
    +     * ```
    +     * (name = "example-management-dns-zone-binding")
    +     * (createTime > "2021-04-12T08:15:10.40Z")
    +     * ```
    +     *
    +     * By default, each expression is an `AND` expression. However, you
    +     * can include `AND` and `OR` expressions explicitly.
    +     * For example:
    +     * ```
    +     * (name = "example-management-dns-zone-binding-1") AND
    +     * (createTime > "2021-04-12T08:15:10.40Z") OR
    +     * (name = "example-management-dns-zone-binding-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.ListManagementDnsZoneBindingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest) + private static final com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest(); + } + + public static com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListManagementDnsZoneBindingsRequest 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.ListManagementDnsZoneBindingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListManagementDnsZoneBindingsRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListManagementDnsZoneBindingsRequestOrBuilder.java new file mode 100644 index 000000000000..ce2daf2259cc --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListManagementDnsZoneBindingsRequestOrBuilder.java @@ -0,0 +1,221 @@ +/* + * 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 ListManagementDnsZoneBindingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the private cloud to be queried for
    +   * management DNS zone bindings.
    +   * 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`
    +   * 
    + * + * + * 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 cloud to be queried for
    +   * management DNS zone bindings.
    +   * 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`
    +   * 
    + * + * + * 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 management DNS zone bindings 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 `ListManagementDnsZoneBindings`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `ListManagementDnsZoneBindings` 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 `ListManagementDnsZoneBindings`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `ListManagementDnsZoneBindings` 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 Management DNS Zone Bindings,
    +   * you can exclude the ones named `example-management-dns-zone-binding` by
    +   * specifying `name != "example-management-dns-zone-binding"`.
    +   *
    +   * To filter on multiple expressions, provide each separate expression within
    +   * parentheses. For example:
    +   * ```
    +   * (name = "example-management-dns-zone-binding")
    +   * (createTime > "2021-04-12T08:15:10.40Z")
    +   * ```
    +   *
    +   * By default, each expression is an `AND` expression. However, you
    +   * can include `AND` and `OR` expressions explicitly.
    +   * For example:
    +   * ```
    +   * (name = "example-management-dns-zone-binding-1") AND
    +   * (createTime > "2021-04-12T08:15:10.40Z") OR
    +   * (name = "example-management-dns-zone-binding-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 Management DNS Zone Bindings,
    +   * you can exclude the ones named `example-management-dns-zone-binding` by
    +   * specifying `name != "example-management-dns-zone-binding"`.
    +   *
    +   * To filter on multiple expressions, provide each separate expression within
    +   * parentheses. For example:
    +   * ```
    +   * (name = "example-management-dns-zone-binding")
    +   * (createTime > "2021-04-12T08:15:10.40Z")
    +   * ```
    +   *
    +   * By default, each expression is an `AND` expression. However, you
    +   * can include `AND` and `OR` expressions explicitly.
    +   * For example:
    +   * ```
    +   * (name = "example-management-dns-zone-binding-1") AND
    +   * (createTime > "2021-04-12T08:15:10.40Z") OR
    +   * (name = "example-management-dns-zone-binding-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/ListManagementDnsZoneBindingsResponse.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListManagementDnsZoneBindingsResponse.java new file mode 100644 index 000000000000..a8fad4de5b53 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListManagementDnsZoneBindingsResponse.java @@ -0,0 +1,1509 @@ +/* + * 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.ListManagementDnsZoneBindings][google.cloud.vmwareengine.v1.VmwareEngine.ListManagementDnsZoneBindings]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse} + */ +public final class ListManagementDnsZoneBindingsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse) + ListManagementDnsZoneBindingsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListManagementDnsZoneBindingsResponse.newBuilder() to construct. + private ListManagementDnsZoneBindingsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListManagementDnsZoneBindingsResponse() { + managementDnsZoneBindings_ = 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 ListManagementDnsZoneBindingsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListManagementDnsZoneBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListManagementDnsZoneBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse.class, + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse.Builder.class); + } + + public static final int MANAGEMENT_DNS_ZONE_BINDINGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + managementDnsZoneBindings_; + /** + * + * + *
    +   * A list of management DNS zone bindings.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_bindings = 1; + * + */ + @java.lang.Override + public java.util.List + getManagementDnsZoneBindingsList() { + return managementDnsZoneBindings_; + } + /** + * + * + *
    +   * A list of management DNS zone bindings.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_bindings = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.vmwareengine.v1.ManagementDnsZoneBindingOrBuilder> + getManagementDnsZoneBindingsOrBuilderList() { + return managementDnsZoneBindings_; + } + /** + * + * + *
    +   * A list of management DNS zone bindings.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_bindings = 1; + * + */ + @java.lang.Override + public int getManagementDnsZoneBindingsCount() { + return managementDnsZoneBindings_.size(); + } + /** + * + * + *
    +   * A list of management DNS zone bindings.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_bindings = 1; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding getManagementDnsZoneBindings( + int index) { + return managementDnsZoneBindings_.get(index); + } + /** + * + * + *
    +   * A list of management DNS zone bindings.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_bindings = 1; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ManagementDnsZoneBindingOrBuilder + getManagementDnsZoneBindingsOrBuilder(int index) { + return managementDnsZoneBindings_.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(); + /** + * + * + *
    +   * 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 + 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 < managementDnsZoneBindings_.size(); i++) { + output.writeMessage(1, managementDnsZoneBindings_.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 < managementDnsZoneBindings_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, managementDnsZoneBindings_.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.ListManagementDnsZoneBindingsResponse)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse other = + (com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse) obj; + + if (!getManagementDnsZoneBindingsList().equals(other.getManagementDnsZoneBindingsList())) + 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 (getManagementDnsZoneBindingsCount() > 0) { + hash = (37 * hash) + MANAGEMENT_DNS_ZONE_BINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getManagementDnsZoneBindingsList().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.ListManagementDnsZoneBindingsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse 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.ListManagementDnsZoneBindingsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse 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.ListManagementDnsZoneBindingsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse 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.ListManagementDnsZoneBindingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse 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.ListManagementDnsZoneBindingsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse + 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.ListManagementDnsZoneBindingsResponse 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.ListManagementDnsZoneBindingsResponse 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.ListManagementDnsZoneBindingsResponse 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.ListManagementDnsZoneBindings][google.cloud.vmwareengine.v1.VmwareEngine.ListManagementDnsZoneBindings]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse) + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListManagementDnsZoneBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListManagementDnsZoneBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse.class, + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (managementDnsZoneBindingsBuilder_ == null) { + managementDnsZoneBindings_ = java.util.Collections.emptyList(); + } else { + managementDnsZoneBindings_ = null; + managementDnsZoneBindingsBuilder_.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_ListManagementDnsZoneBindingsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse build() { + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse buildPartial() { + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse result = + new com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse result) { + if (managementDnsZoneBindingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + managementDnsZoneBindings_ = + java.util.Collections.unmodifiableList(managementDnsZoneBindings_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.managementDnsZoneBindings_ = managementDnsZoneBindings_; + } else { + result.managementDnsZoneBindings_ = managementDnsZoneBindingsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse 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.ListManagementDnsZoneBindingsResponse) { + return mergeFrom( + (com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse other) { + if (other + == com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse + .getDefaultInstance()) return this; + if (managementDnsZoneBindingsBuilder_ == null) { + if (!other.managementDnsZoneBindings_.isEmpty()) { + if (managementDnsZoneBindings_.isEmpty()) { + managementDnsZoneBindings_ = other.managementDnsZoneBindings_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureManagementDnsZoneBindingsIsMutable(); + managementDnsZoneBindings_.addAll(other.managementDnsZoneBindings_); + } + onChanged(); + } + } else { + if (!other.managementDnsZoneBindings_.isEmpty()) { + if (managementDnsZoneBindingsBuilder_.isEmpty()) { + managementDnsZoneBindingsBuilder_.dispose(); + managementDnsZoneBindingsBuilder_ = null; + managementDnsZoneBindings_ = other.managementDnsZoneBindings_; + bitField0_ = (bitField0_ & ~0x00000001); + managementDnsZoneBindingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getManagementDnsZoneBindingsFieldBuilder() + : null; + } else { + managementDnsZoneBindingsBuilder_.addAllMessages(other.managementDnsZoneBindings_); + } + } + } + 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.ManagementDnsZoneBinding m = + input.readMessage( + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.parser(), + extensionRegistry); + if (managementDnsZoneBindingsBuilder_ == null) { + ensureManagementDnsZoneBindingsIsMutable(); + managementDnsZoneBindings_.add(m); + } else { + managementDnsZoneBindingsBuilder_.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 + managementDnsZoneBindings_ = java.util.Collections.emptyList(); + + private void ensureManagementDnsZoneBindingsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + managementDnsZoneBindings_ = + new java.util.ArrayList( + managementDnsZoneBindings_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding, + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.Builder, + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBindingOrBuilder> + managementDnsZoneBindingsBuilder_; + + /** + * + * + *
    +     * A list of management DNS zone bindings.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_bindings = 1; + * + */ + public java.util.List + getManagementDnsZoneBindingsList() { + if (managementDnsZoneBindingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(managementDnsZoneBindings_); + } else { + return managementDnsZoneBindingsBuilder_.getMessageList(); + } + } + /** + * + * + *
    +     * A list of management DNS zone bindings.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_bindings = 1; + * + */ + public int getManagementDnsZoneBindingsCount() { + if (managementDnsZoneBindingsBuilder_ == null) { + return managementDnsZoneBindings_.size(); + } else { + return managementDnsZoneBindingsBuilder_.getCount(); + } + } + /** + * + * + *
    +     * A list of management DNS zone bindings.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_bindings = 1; + * + */ + public com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding getManagementDnsZoneBindings( + int index) { + if (managementDnsZoneBindingsBuilder_ == null) { + return managementDnsZoneBindings_.get(index); + } else { + return managementDnsZoneBindingsBuilder_.getMessage(index); + } + } + /** + * + * + *
    +     * A list of management DNS zone bindings.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_bindings = 1; + * + */ + public Builder setManagementDnsZoneBindings( + int index, com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding value) { + if (managementDnsZoneBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureManagementDnsZoneBindingsIsMutable(); + managementDnsZoneBindings_.set(index, value); + onChanged(); + } else { + managementDnsZoneBindingsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * A list of management DNS zone bindings.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_bindings = 1; + * + */ + public Builder setManagementDnsZoneBindings( + int index, + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.Builder builderForValue) { + if (managementDnsZoneBindingsBuilder_ == null) { + ensureManagementDnsZoneBindingsIsMutable(); + managementDnsZoneBindings_.set(index, builderForValue.build()); + onChanged(); + } else { + managementDnsZoneBindingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A list of management DNS zone bindings.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_bindings = 1; + * + */ + public Builder addManagementDnsZoneBindings( + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding value) { + if (managementDnsZoneBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureManagementDnsZoneBindingsIsMutable(); + managementDnsZoneBindings_.add(value); + onChanged(); + } else { + managementDnsZoneBindingsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +     * A list of management DNS zone bindings.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_bindings = 1; + * + */ + public Builder addManagementDnsZoneBindings( + int index, com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding value) { + if (managementDnsZoneBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureManagementDnsZoneBindingsIsMutable(); + managementDnsZoneBindings_.add(index, value); + onChanged(); + } else { + managementDnsZoneBindingsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * A list of management DNS zone bindings.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_bindings = 1; + * + */ + public Builder addManagementDnsZoneBindings( + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.Builder builderForValue) { + if (managementDnsZoneBindingsBuilder_ == null) { + ensureManagementDnsZoneBindingsIsMutable(); + managementDnsZoneBindings_.add(builderForValue.build()); + onChanged(); + } else { + managementDnsZoneBindingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A list of management DNS zone bindings.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_bindings = 1; + * + */ + public Builder addManagementDnsZoneBindings( + int index, + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.Builder builderForValue) { + if (managementDnsZoneBindingsBuilder_ == null) { + ensureManagementDnsZoneBindingsIsMutable(); + managementDnsZoneBindings_.add(index, builderForValue.build()); + onChanged(); + } else { + managementDnsZoneBindingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A list of management DNS zone bindings.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_bindings = 1; + * + */ + public Builder addAllManagementDnsZoneBindings( + java.lang.Iterable + values) { + if (managementDnsZoneBindingsBuilder_ == null) { + ensureManagementDnsZoneBindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, managementDnsZoneBindings_); + onChanged(); + } else { + managementDnsZoneBindingsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +     * A list of management DNS zone bindings.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_bindings = 1; + * + */ + public Builder clearManagementDnsZoneBindings() { + if (managementDnsZoneBindingsBuilder_ == null) { + managementDnsZoneBindings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + managementDnsZoneBindingsBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * A list of management DNS zone bindings.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_bindings = 1; + * + */ + public Builder removeManagementDnsZoneBindings(int index) { + if (managementDnsZoneBindingsBuilder_ == null) { + ensureManagementDnsZoneBindingsIsMutable(); + managementDnsZoneBindings_.remove(index); + onChanged(); + } else { + managementDnsZoneBindingsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +     * A list of management DNS zone bindings.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_bindings = 1; + * + */ + public com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.Builder + getManagementDnsZoneBindingsBuilder(int index) { + return getManagementDnsZoneBindingsFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +     * A list of management DNS zone bindings.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_bindings = 1; + * + */ + public com.google.cloud.vmwareengine.v1.ManagementDnsZoneBindingOrBuilder + getManagementDnsZoneBindingsOrBuilder(int index) { + if (managementDnsZoneBindingsBuilder_ == null) { + return managementDnsZoneBindings_.get(index); + } else { + return managementDnsZoneBindingsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +     * A list of management DNS zone bindings.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_bindings = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.vmwareengine.v1.ManagementDnsZoneBindingOrBuilder> + getManagementDnsZoneBindingsOrBuilderList() { + if (managementDnsZoneBindingsBuilder_ != null) { + return managementDnsZoneBindingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(managementDnsZoneBindings_); + } + } + /** + * + * + *
    +     * A list of management DNS zone bindings.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_bindings = 1; + * + */ + public com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.Builder + addManagementDnsZoneBindingsBuilder() { + return getManagementDnsZoneBindingsFieldBuilder() + .addBuilder( + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.getDefaultInstance()); + } + /** + * + * + *
    +     * A list of management DNS zone bindings.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_bindings = 1; + * + */ + public com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.Builder + addManagementDnsZoneBindingsBuilder(int index) { + return getManagementDnsZoneBindingsFieldBuilder() + .addBuilder( + index, + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.getDefaultInstance()); + } + /** + * + * + *
    +     * A list of management DNS zone bindings.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_bindings = 1; + * + */ + public java.util.List + getManagementDnsZoneBindingsBuilderList() { + return getManagementDnsZoneBindingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding, + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.Builder, + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBindingOrBuilder> + getManagementDnsZoneBindingsFieldBuilder() { + if (managementDnsZoneBindingsBuilder_ == null) { + managementDnsZoneBindingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding, + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.Builder, + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBindingOrBuilder>( + managementDnsZoneBindings_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + managementDnsZoneBindings_ = null; + } + return managementDnsZoneBindingsBuilder_; + } + + 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; + } + /** + * + * + *
    +     * 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); + } + + @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.ListManagementDnsZoneBindingsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse) + private static final com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse(); + } + + public static com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListManagementDnsZoneBindingsResponse 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.ListManagementDnsZoneBindingsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListManagementDnsZoneBindingsResponseOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListManagementDnsZoneBindingsResponseOrBuilder.java new file mode 100644 index 000000000000..6e9077c10dc7 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListManagementDnsZoneBindingsResponseOrBuilder.java @@ -0,0 +1,171 @@ +/* + * 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 ListManagementDnsZoneBindingsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * A list of management DNS zone bindings.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_bindings = 1; + * + */ + java.util.List + getManagementDnsZoneBindingsList(); + /** + * + * + *
    +   * A list of management DNS zone bindings.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_bindings = 1; + * + */ + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding getManagementDnsZoneBindings(int index); + /** + * + * + *
    +   * A list of management DNS zone bindings.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_bindings = 1; + * + */ + int getManagementDnsZoneBindingsCount(); + /** + * + * + *
    +   * A list of management DNS zone bindings.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_bindings = 1; + * + */ + java.util.List + getManagementDnsZoneBindingsOrBuilderList(); + /** + * + * + *
    +   * A list of management DNS zone bindings.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_bindings = 1; + * + */ + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBindingOrBuilder + getManagementDnsZoneBindingsOrBuilder(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(); + + /** + * + * + *
    +   * 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/ListNetworkPeeringsRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNetworkPeeringsRequest.java new file mode 100644 index 000000000000..b0e47910c946 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNetworkPeeringsRequest.java @@ -0,0 +1,1540 @@ +/* + * 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.ListNetworkPeerings][google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPeerings]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest} + */ +public final class ListNetworkPeeringsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest) + ListNetworkPeeringsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListNetworkPeeringsRequest.newBuilder() to construct. + private ListNetworkPeeringsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListNetworkPeeringsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListNetworkPeeringsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNetworkPeeringsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNetworkPeeringsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest.class, + com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest.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 (global) to query for
    +   * network peerings. Resource names are schemeless URIs that follow the
    +   * conventions in https://cloud.google.com/apis/design/resource_names. For
    +   * example: `projects/my-project/locations/global`
    +   * 
    + * + * + * 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 (global) to query for
    +   * network peerings. Resource names are schemeless URIs that follow the
    +   * conventions in https://cloud.google.com/apis/design/resource_names. For
    +   * example: `projects/my-project/locations/global`
    +   * 
    + * + * + * 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 network peerings 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 `ListNetworkPeerings` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `ListNetworkPeerings` 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 `ListNetworkPeerings` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `ListNetworkPeerings` 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 network peerings, you can
    +   * exclude the ones named `example-peering` by specifying
    +   * `name != "example-peering"`.
    +   *
    +   * To filter on multiple expressions, provide each separate expression within
    +   * parentheses. For example:
    +   * ```
    +   * (name = "example-peering")
    +   * (createTime > "2021-04-12T08:15:10.40Z")
    +   * ```
    +   *
    +   * By default, each expression is an `AND` expression. However, you
    +   * can include `AND` and `OR` expressions explicitly.
    +   * For example:
    +   * ```
    +   * (name = "example-peering-1") AND
    +   * (createTime > "2021-04-12T08:15:10.40Z") OR
    +   * (name = "example-peering-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 network peerings, you can
    +   * exclude the ones named `example-peering` by specifying
    +   * `name != "example-peering"`.
    +   *
    +   * To filter on multiple expressions, provide each separate expression within
    +   * parentheses. For example:
    +   * ```
    +   * (name = "example-peering")
    +   * (createTime > "2021-04-12T08:15:10.40Z")
    +   * ```
    +   *
    +   * By default, each expression is an `AND` expression. However, you
    +   * can include `AND` and `OR` expressions explicitly.
    +   * For example:
    +   * ```
    +   * (name = "example-peering-1") AND
    +   * (createTime > "2021-04-12T08:15:10.40Z") OR
    +   * (name = "example-peering-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.ListNetworkPeeringsRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest other = + (com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest) 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.ListNetworkPeeringsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest 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.ListNetworkPeeringsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest 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.ListNetworkPeeringsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest 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.ListNetworkPeeringsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest 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.ListNetworkPeeringsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest 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.ListNetworkPeeringsRequest 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.ListNetworkPeeringsRequest 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.ListNetworkPeeringsRequest 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.ListNetworkPeerings][google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPeerings]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest) + com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNetworkPeeringsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNetworkPeeringsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest.class, + com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest.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_ListNetworkPeeringsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest build() { + com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest buildPartial() { + com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest result = + new com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest 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.ListNetworkPeeringsRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest other) { + if (other == com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest.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 (global) to query for
    +     * network peerings. Resource names are schemeless URIs that follow the
    +     * conventions in https://cloud.google.com/apis/design/resource_names. For
    +     * example: `projects/my-project/locations/global`
    +     * 
    + * + * + * 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 (global) to query for
    +     * network peerings. Resource names are schemeless URIs that follow the
    +     * conventions in https://cloud.google.com/apis/design/resource_names. For
    +     * example: `projects/my-project/locations/global`
    +     * 
    + * + * + * 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 (global) to query for
    +     * network peerings. Resource names are schemeless URIs that follow the
    +     * conventions in https://cloud.google.com/apis/design/resource_names. For
    +     * example: `projects/my-project/locations/global`
    +     * 
    + * + * + * 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 (global) to query for
    +     * network peerings. Resource names are schemeless URIs that follow the
    +     * conventions in https://cloud.google.com/apis/design/resource_names. For
    +     * example: `projects/my-project/locations/global`
    +     * 
    + * + * + * 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 (global) to query for
    +     * network peerings. Resource names are schemeless URIs that follow the
    +     * conventions in https://cloud.google.com/apis/design/resource_names. For
    +     * example: `projects/my-project/locations/global`
    +     * 
    + * + * + * 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 network peerings 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 network peerings 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 network peerings 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 `ListNetworkPeerings` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListNetworkPeerings` 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 `ListNetworkPeerings` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListNetworkPeerings` 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 `ListNetworkPeerings` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListNetworkPeerings` 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 `ListNetworkPeerings` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListNetworkPeerings` 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 `ListNetworkPeerings` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListNetworkPeerings` 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 network peerings, you can
    +     * exclude the ones named `example-peering` by specifying
    +     * `name != "example-peering"`.
    +     *
    +     * To filter on multiple expressions, provide each separate expression within
    +     * parentheses. For example:
    +     * ```
    +     * (name = "example-peering")
    +     * (createTime > "2021-04-12T08:15:10.40Z")
    +     * ```
    +     *
    +     * By default, each expression is an `AND` expression. However, you
    +     * can include `AND` and `OR` expressions explicitly.
    +     * For example:
    +     * ```
    +     * (name = "example-peering-1") AND
    +     * (createTime > "2021-04-12T08:15:10.40Z") OR
    +     * (name = "example-peering-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 network peerings, you can
    +     * exclude the ones named `example-peering` by specifying
    +     * `name != "example-peering"`.
    +     *
    +     * To filter on multiple expressions, provide each separate expression within
    +     * parentheses. For example:
    +     * ```
    +     * (name = "example-peering")
    +     * (createTime > "2021-04-12T08:15:10.40Z")
    +     * ```
    +     *
    +     * By default, each expression is an `AND` expression. However, you
    +     * can include `AND` and `OR` expressions explicitly.
    +     * For example:
    +     * ```
    +     * (name = "example-peering-1") AND
    +     * (createTime > "2021-04-12T08:15:10.40Z") OR
    +     * (name = "example-peering-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 network peerings, you can
    +     * exclude the ones named `example-peering` by specifying
    +     * `name != "example-peering"`.
    +     *
    +     * To filter on multiple expressions, provide each separate expression within
    +     * parentheses. For example:
    +     * ```
    +     * (name = "example-peering")
    +     * (createTime > "2021-04-12T08:15:10.40Z")
    +     * ```
    +     *
    +     * By default, each expression is an `AND` expression. However, you
    +     * can include `AND` and `OR` expressions explicitly.
    +     * For example:
    +     * ```
    +     * (name = "example-peering-1") AND
    +     * (createTime > "2021-04-12T08:15:10.40Z") OR
    +     * (name = "example-peering-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 network peerings, you can
    +     * exclude the ones named `example-peering` by specifying
    +     * `name != "example-peering"`.
    +     *
    +     * To filter on multiple expressions, provide each separate expression within
    +     * parentheses. For example:
    +     * ```
    +     * (name = "example-peering")
    +     * (createTime > "2021-04-12T08:15:10.40Z")
    +     * ```
    +     *
    +     * By default, each expression is an `AND` expression. However, you
    +     * can include `AND` and `OR` expressions explicitly.
    +     * For example:
    +     * ```
    +     * (name = "example-peering-1") AND
    +     * (createTime > "2021-04-12T08:15:10.40Z") OR
    +     * (name = "example-peering-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 network peerings, you can
    +     * exclude the ones named `example-peering` by specifying
    +     * `name != "example-peering"`.
    +     *
    +     * To filter on multiple expressions, provide each separate expression within
    +     * parentheses. For example:
    +     * ```
    +     * (name = "example-peering")
    +     * (createTime > "2021-04-12T08:15:10.40Z")
    +     * ```
    +     *
    +     * By default, each expression is an `AND` expression. However, you
    +     * can include `AND` and `OR` expressions explicitly.
    +     * For example:
    +     * ```
    +     * (name = "example-peering-1") AND
    +     * (createTime > "2021-04-12T08:15:10.40Z") OR
    +     * (name = "example-peering-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.ListNetworkPeeringsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest) + private static final com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest(); + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNetworkPeeringsRequest 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.ListNetworkPeeringsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNetworkPeeringsRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNetworkPeeringsRequestOrBuilder.java new file mode 100644 index 000000000000..1d9257957308 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNetworkPeeringsRequestOrBuilder.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 ListNetworkPeeringsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the location (global) to query for
    +   * network peerings. Resource names are schemeless URIs that follow the
    +   * conventions in https://cloud.google.com/apis/design/resource_names. For
    +   * example: `projects/my-project/locations/global`
    +   * 
    + * + * + * 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 (global) to query for
    +   * network peerings. Resource names are schemeless URIs that follow the
    +   * conventions in https://cloud.google.com/apis/design/resource_names. For
    +   * example: `projects/my-project/locations/global`
    +   * 
    + * + * + * 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 network peerings 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 `ListNetworkPeerings` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `ListNetworkPeerings` 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 `ListNetworkPeerings` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `ListNetworkPeerings` 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 network peerings, you can
    +   * exclude the ones named `example-peering` by specifying
    +   * `name != "example-peering"`.
    +   *
    +   * To filter on multiple expressions, provide each separate expression within
    +   * parentheses. For example:
    +   * ```
    +   * (name = "example-peering")
    +   * (createTime > "2021-04-12T08:15:10.40Z")
    +   * ```
    +   *
    +   * By default, each expression is an `AND` expression. However, you
    +   * can include `AND` and `OR` expressions explicitly.
    +   * For example:
    +   * ```
    +   * (name = "example-peering-1") AND
    +   * (createTime > "2021-04-12T08:15:10.40Z") OR
    +   * (name = "example-peering-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 network peerings, you can
    +   * exclude the ones named `example-peering` by specifying
    +   * `name != "example-peering"`.
    +   *
    +   * To filter on multiple expressions, provide each separate expression within
    +   * parentheses. For example:
    +   * ```
    +   * (name = "example-peering")
    +   * (createTime > "2021-04-12T08:15:10.40Z")
    +   * ```
    +   *
    +   * By default, each expression is an `AND` expression. However, you
    +   * can include `AND` and `OR` expressions explicitly.
    +   * For example:
    +   * ```
    +   * (name = "example-peering-1") AND
    +   * (createTime > "2021-04-12T08:15:10.40Z") OR
    +   * (name = "example-peering-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/ListNetworkPeeringsResponse.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNetworkPeeringsResponse.java new file mode 100644 index 000000000000..c7e57576110e --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNetworkPeeringsResponse.java @@ -0,0 +1,1422 @@ +/* + * 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.ListNetworkPeerings][google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPeerings]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse} + */ +public final class ListNetworkPeeringsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse) + ListNetworkPeeringsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListNetworkPeeringsResponse.newBuilder() to construct. + private ListNetworkPeeringsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListNetworkPeeringsResponse() { + networkPeerings_ = 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 ListNetworkPeeringsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNetworkPeeringsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNetworkPeeringsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse.class, + com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse.Builder.class); + } + + public static final int NETWORK_PEERINGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List networkPeerings_; + /** + * + * + *
    +   * A list of network peerings.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.NetworkPeering network_peerings = 1; + */ + @java.lang.Override + public java.util.List getNetworkPeeringsList() { + return networkPeerings_; + } + /** + * + * + *
    +   * A list of network peerings.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.NetworkPeering network_peerings = 1; + */ + @java.lang.Override + public java.util.List + getNetworkPeeringsOrBuilderList() { + return networkPeerings_; + } + /** + * + * + *
    +   * A list of network peerings.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.NetworkPeering network_peerings = 1; + */ + @java.lang.Override + public int getNetworkPeeringsCount() { + return networkPeerings_.size(); + } + /** + * + * + *
    +   * A list of network peerings.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.NetworkPeering network_peerings = 1; + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkPeering getNetworkPeerings(int index) { + return networkPeerings_.get(index); + } + /** + * + * + *
    +   * A list of network peerings.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.NetworkPeering network_peerings = 1; + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkPeeringOrBuilder getNetworkPeeringsOrBuilder( + int index) { + return networkPeerings_.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 < networkPeerings_.size(); i++) { + output.writeMessage(1, networkPeerings_.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 < networkPeerings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, networkPeerings_.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.ListNetworkPeeringsResponse)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse other = + (com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse) obj; + + if (!getNetworkPeeringsList().equals(other.getNetworkPeeringsList())) 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 (getNetworkPeeringsCount() > 0) { + hash = (37 * hash) + NETWORK_PEERINGS_FIELD_NUMBER; + hash = (53 * hash) + getNetworkPeeringsList().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.ListNetworkPeeringsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse 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.ListNetworkPeeringsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse 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.ListNetworkPeeringsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse 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.ListNetworkPeeringsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse 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.ListNetworkPeeringsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse 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.ListNetworkPeeringsResponse 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.ListNetworkPeeringsResponse 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.ListNetworkPeeringsResponse 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.ListNetworkPeerings][google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPeerings]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse) + com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNetworkPeeringsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNetworkPeeringsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse.class, + com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (networkPeeringsBuilder_ == null) { + networkPeerings_ = java.util.Collections.emptyList(); + } else { + networkPeerings_ = null; + networkPeeringsBuilder_.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_ListNetworkPeeringsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse build() { + com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse buildPartial() { + com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse result = + new com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse result) { + if (networkPeeringsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + networkPeerings_ = java.util.Collections.unmodifiableList(networkPeerings_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.networkPeerings_ = networkPeerings_; + } else { + result.networkPeerings_ = networkPeeringsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse 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.ListNetworkPeeringsResponse) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse other) { + if (other + == com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse.getDefaultInstance()) + return this; + if (networkPeeringsBuilder_ == null) { + if (!other.networkPeerings_.isEmpty()) { + if (networkPeerings_.isEmpty()) { + networkPeerings_ = other.networkPeerings_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNetworkPeeringsIsMutable(); + networkPeerings_.addAll(other.networkPeerings_); + } + onChanged(); + } + } else { + if (!other.networkPeerings_.isEmpty()) { + if (networkPeeringsBuilder_.isEmpty()) { + networkPeeringsBuilder_.dispose(); + networkPeeringsBuilder_ = null; + networkPeerings_ = other.networkPeerings_; + bitField0_ = (bitField0_ & ~0x00000001); + networkPeeringsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNetworkPeeringsFieldBuilder() + : null; + } else { + networkPeeringsBuilder_.addAllMessages(other.networkPeerings_); + } + } + } + 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.NetworkPeering m = + input.readMessage( + com.google.cloud.vmwareengine.v1.NetworkPeering.parser(), + extensionRegistry); + if (networkPeeringsBuilder_ == null) { + ensureNetworkPeeringsIsMutable(); + networkPeerings_.add(m); + } else { + networkPeeringsBuilder_.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 networkPeerings_ = + java.util.Collections.emptyList(); + + private void ensureNetworkPeeringsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + networkPeerings_ = + new java.util.ArrayList( + networkPeerings_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.NetworkPeering, + com.google.cloud.vmwareengine.v1.NetworkPeering.Builder, + com.google.cloud.vmwareengine.v1.NetworkPeeringOrBuilder> + networkPeeringsBuilder_; + + /** + * + * + *
    +     * A list of network peerings.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.NetworkPeering network_peerings = 1; + */ + public java.util.List + getNetworkPeeringsList() { + if (networkPeeringsBuilder_ == null) { + return java.util.Collections.unmodifiableList(networkPeerings_); + } else { + return networkPeeringsBuilder_.getMessageList(); + } + } + /** + * + * + *
    +     * A list of network peerings.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.NetworkPeering network_peerings = 1; + */ + public int getNetworkPeeringsCount() { + if (networkPeeringsBuilder_ == null) { + return networkPeerings_.size(); + } else { + return networkPeeringsBuilder_.getCount(); + } + } + /** + * + * + *
    +     * A list of network peerings.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.NetworkPeering network_peerings = 1; + */ + public com.google.cloud.vmwareengine.v1.NetworkPeering getNetworkPeerings(int index) { + if (networkPeeringsBuilder_ == null) { + return networkPeerings_.get(index); + } else { + return networkPeeringsBuilder_.getMessage(index); + } + } + /** + * + * + *
    +     * A list of network peerings.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.NetworkPeering network_peerings = 1; + */ + public Builder setNetworkPeerings( + int index, com.google.cloud.vmwareengine.v1.NetworkPeering value) { + if (networkPeeringsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNetworkPeeringsIsMutable(); + networkPeerings_.set(index, value); + onChanged(); + } else { + networkPeeringsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * A list of network peerings.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.NetworkPeering network_peerings = 1; + */ + public Builder setNetworkPeerings( + int index, com.google.cloud.vmwareengine.v1.NetworkPeering.Builder builderForValue) { + if (networkPeeringsBuilder_ == null) { + ensureNetworkPeeringsIsMutable(); + networkPeerings_.set(index, builderForValue.build()); + onChanged(); + } else { + networkPeeringsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A list of network peerings.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.NetworkPeering network_peerings = 1; + */ + public Builder addNetworkPeerings(com.google.cloud.vmwareengine.v1.NetworkPeering value) { + if (networkPeeringsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNetworkPeeringsIsMutable(); + networkPeerings_.add(value); + onChanged(); + } else { + networkPeeringsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +     * A list of network peerings.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.NetworkPeering network_peerings = 1; + */ + public Builder addNetworkPeerings( + int index, com.google.cloud.vmwareengine.v1.NetworkPeering value) { + if (networkPeeringsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNetworkPeeringsIsMutable(); + networkPeerings_.add(index, value); + onChanged(); + } else { + networkPeeringsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * A list of network peerings.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.NetworkPeering network_peerings = 1; + */ + public Builder addNetworkPeerings( + com.google.cloud.vmwareengine.v1.NetworkPeering.Builder builderForValue) { + if (networkPeeringsBuilder_ == null) { + ensureNetworkPeeringsIsMutable(); + networkPeerings_.add(builderForValue.build()); + onChanged(); + } else { + networkPeeringsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A list of network peerings.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.NetworkPeering network_peerings = 1; + */ + public Builder addNetworkPeerings( + int index, com.google.cloud.vmwareengine.v1.NetworkPeering.Builder builderForValue) { + if (networkPeeringsBuilder_ == null) { + ensureNetworkPeeringsIsMutable(); + networkPeerings_.add(index, builderForValue.build()); + onChanged(); + } else { + networkPeeringsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A list of network peerings.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.NetworkPeering network_peerings = 1; + */ + public Builder addAllNetworkPeerings( + java.lang.Iterable values) { + if (networkPeeringsBuilder_ == null) { + ensureNetworkPeeringsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networkPeerings_); + onChanged(); + } else { + networkPeeringsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +     * A list of network peerings.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.NetworkPeering network_peerings = 1; + */ + public Builder clearNetworkPeerings() { + if (networkPeeringsBuilder_ == null) { + networkPeerings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + networkPeeringsBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * A list of network peerings.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.NetworkPeering network_peerings = 1; + */ + public Builder removeNetworkPeerings(int index) { + if (networkPeeringsBuilder_ == null) { + ensureNetworkPeeringsIsMutable(); + networkPeerings_.remove(index); + onChanged(); + } else { + networkPeeringsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +     * A list of network peerings.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.NetworkPeering network_peerings = 1; + */ + public com.google.cloud.vmwareengine.v1.NetworkPeering.Builder getNetworkPeeringsBuilder( + int index) { + return getNetworkPeeringsFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +     * A list of network peerings.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.NetworkPeering network_peerings = 1; + */ + public com.google.cloud.vmwareengine.v1.NetworkPeeringOrBuilder getNetworkPeeringsOrBuilder( + int index) { + if (networkPeeringsBuilder_ == null) { + return networkPeerings_.get(index); + } else { + return networkPeeringsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +     * A list of network peerings.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.NetworkPeering network_peerings = 1; + */ + public java.util.List + getNetworkPeeringsOrBuilderList() { + if (networkPeeringsBuilder_ != null) { + return networkPeeringsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(networkPeerings_); + } + } + /** + * + * + *
    +     * A list of network peerings.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.NetworkPeering network_peerings = 1; + */ + public com.google.cloud.vmwareengine.v1.NetworkPeering.Builder addNetworkPeeringsBuilder() { + return getNetworkPeeringsFieldBuilder() + .addBuilder(com.google.cloud.vmwareengine.v1.NetworkPeering.getDefaultInstance()); + } + /** + * + * + *
    +     * A list of network peerings.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.NetworkPeering network_peerings = 1; + */ + public com.google.cloud.vmwareengine.v1.NetworkPeering.Builder addNetworkPeeringsBuilder( + int index) { + return getNetworkPeeringsFieldBuilder() + .addBuilder(index, com.google.cloud.vmwareengine.v1.NetworkPeering.getDefaultInstance()); + } + /** + * + * + *
    +     * A list of network peerings.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.NetworkPeering network_peerings = 1; + */ + public java.util.List + getNetworkPeeringsBuilderList() { + return getNetworkPeeringsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.NetworkPeering, + com.google.cloud.vmwareengine.v1.NetworkPeering.Builder, + com.google.cloud.vmwareengine.v1.NetworkPeeringOrBuilder> + getNetworkPeeringsFieldBuilder() { + if (networkPeeringsBuilder_ == null) { + networkPeeringsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.NetworkPeering, + com.google.cloud.vmwareengine.v1.NetworkPeering.Builder, + com.google.cloud.vmwareengine.v1.NetworkPeeringOrBuilder>( + networkPeerings_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + networkPeerings_ = null; + } + return networkPeeringsBuilder_; + } + + 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.ListNetworkPeeringsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse) + private static final com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse(); + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNetworkPeeringsResponse 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.ListNetworkPeeringsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNetworkPeeringsResponseOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNetworkPeeringsResponseOrBuilder.java new file mode 100644 index 000000000000..32341c58b7c9 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNetworkPeeringsResponseOrBuilder.java @@ -0,0 +1,155 @@ +/* + * 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 ListNetworkPeeringsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * A list of network peerings.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.NetworkPeering network_peerings = 1; + */ + java.util.List getNetworkPeeringsList(); + /** + * + * + *
    +   * A list of network peerings.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.NetworkPeering network_peerings = 1; + */ + com.google.cloud.vmwareengine.v1.NetworkPeering getNetworkPeerings(int index); + /** + * + * + *
    +   * A list of network peerings.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.NetworkPeering network_peerings = 1; + */ + int getNetworkPeeringsCount(); + /** + * + * + *
    +   * A list of network peerings.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.NetworkPeering network_peerings = 1; + */ + java.util.List + getNetworkPeeringsOrBuilderList(); + /** + * + * + *
    +   * A list of network peerings.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.NetworkPeering network_peerings = 1; + */ + com.google.cloud.vmwareengine.v1.NetworkPeeringOrBuilder getNetworkPeeringsOrBuilder(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/ListNodesRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNodesRequest.java new file mode 100644 index 000000000000..1f22312eebd5 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNodesRequest.java @@ -0,0 +1,990 @@ +/* + * 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.ListNodes][google.cloud.vmwareengine.v1.VmwareEngine.ListNodes]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListNodesRequest} + */ +public final class ListNodesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ListNodesRequest) + ListNodesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListNodesRequest.newBuilder() to construct. + private ListNodesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListNodesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListNodesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNodesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNodesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListNodesRequest.class, + com.google.cloud.vmwareengine.v1.ListNodesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
    +   * Required. The resource name of the cluster to be queried for nodes.
    +   * 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/clusters/my-cluster`
    +   * 
    + * + * + * 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 cluster to be queried for nodes.
    +   * 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/clusters/my-cluster`
    +   * 
    + * + * + * 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 nodes 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 `ListNodes` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `ListNodes` 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 `ListNodes` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `ListNodes` 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.ListNodesRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ListNodesRequest other = + (com.google.cloud.vmwareengine.v1.ListNodesRequest) 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.ListNodesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListNodesRequest 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.ListNodesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListNodesRequest 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.ListNodesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListNodesRequest 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.ListNodesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListNodesRequest 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.ListNodesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListNodesRequest 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.ListNodesRequest 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.ListNodesRequest 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.ListNodesRequest 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.ListNodes][google.cloud.vmwareengine.v1.VmwareEngine.ListNodes]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListNodesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ListNodesRequest) + com.google.cloud.vmwareengine.v1.ListNodesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNodesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNodesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListNodesRequest.class, + com.google.cloud.vmwareengine.v1.ListNodesRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.ListNodesRequest.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_ListNodesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListNodesRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ListNodesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListNodesRequest build() { + com.google.cloud.vmwareengine.v1.ListNodesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListNodesRequest buildPartial() { + com.google.cloud.vmwareengine.v1.ListNodesRequest result = + new com.google.cloud.vmwareengine.v1.ListNodesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmwareengine.v1.ListNodesRequest 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.ListNodesRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ListNodesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.ListNodesRequest other) { + if (other == com.google.cloud.vmwareengine.v1.ListNodesRequest.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 cluster to be queried for nodes.
    +     * 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/clusters/my-cluster`
    +     * 
    + * + * + * 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 cluster to be queried for nodes.
    +     * 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/clusters/my-cluster`
    +     * 
    + * + * + * 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 cluster to be queried for nodes.
    +     * 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/clusters/my-cluster`
    +     * 
    + * + * + * 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 cluster to be queried for nodes.
    +     * 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/clusters/my-cluster`
    +     * 
    + * + * + * 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 cluster to be queried for nodes.
    +     * 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/clusters/my-cluster`
    +     * 
    + * + * + * 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 nodes 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 nodes 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 nodes 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 `ListNodes` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListNodes` 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 `ListNodes` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListNodes` 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 `ListNodes` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListNodes` 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 `ListNodes` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListNodes` 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 `ListNodes` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListNodes` 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.ListNodesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ListNodesRequest) + private static final com.google.cloud.vmwareengine.v1.ListNodesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ListNodesRequest(); + } + + public static com.google.cloud.vmwareengine.v1.ListNodesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNodesRequest 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.ListNodesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNodesRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNodesRequestOrBuilder.java new file mode 100644 index 000000000000..5f2eabc738aa --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNodesRequestOrBuilder.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 ListNodesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ListNodesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the cluster to be queried for nodes.
    +   * 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/clusters/my-cluster`
    +   * 
    + * + * + * 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 cluster to be queried for nodes.
    +   * 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/clusters/my-cluster`
    +   * 
    + * + * + * 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 nodes 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 `ListNodes` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `ListNodes` 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 `ListNodes` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `ListNodes` 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/ListNodesResponse.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNodesResponse.java new file mode 100644 index 000000000000..681d87d43e48 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNodesResponse.java @@ -0,0 +1,1125 @@ +/* + * 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.ListNodes][google.cloud.vmwareengine.v1.VmwareEngine.ListNodes]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListNodesResponse} + */ +public final class ListNodesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ListNodesResponse) + ListNodesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListNodesResponse.newBuilder() to construct. + private ListNodesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListNodesResponse() { + nodes_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListNodesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNodesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNodesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListNodesResponse.class, + com.google.cloud.vmwareengine.v1.ListNodesResponse.Builder.class); + } + + public static final int NODES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List nodes_; + /** + * + * + *
    +   * The nodes.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.Node nodes = 1; + */ + @java.lang.Override + public java.util.List getNodesList() { + return nodes_; + } + /** + * + * + *
    +   * The nodes.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.Node nodes = 1; + */ + @java.lang.Override + public java.util.List + getNodesOrBuilderList() { + return nodes_; + } + /** + * + * + *
    +   * The nodes.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.Node nodes = 1; + */ + @java.lang.Override + public int getNodesCount() { + return nodes_.size(); + } + /** + * + * + *
    +   * The nodes.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.Node nodes = 1; + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Node getNodes(int index) { + return nodes_.get(index); + } + /** + * + * + *
    +   * The nodes.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.Node nodes = 1; + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NodeOrBuilder getNodesOrBuilder(int index) { + return nodes_.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 < nodes_.size(); i++) { + output.writeMessage(1, nodes_.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 < nodes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, nodes_.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.ListNodesResponse)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ListNodesResponse other = + (com.google.cloud.vmwareengine.v1.ListNodesResponse) obj; + + if (!getNodesList().equals(other.getNodesList())) 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 (getNodesCount() > 0) { + hash = (37 * hash) + NODES_FIELD_NUMBER; + hash = (53 * hash) + getNodesList().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.ListNodesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListNodesResponse 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.ListNodesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListNodesResponse 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.ListNodesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListNodesResponse 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.ListNodesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListNodesResponse 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.ListNodesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListNodesResponse 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.ListNodesResponse 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.ListNodesResponse 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.ListNodesResponse 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.ListNodes][google.cloud.vmwareengine.v1.VmwareEngine.ListNodes]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListNodesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ListNodesResponse) + com.google.cloud.vmwareengine.v1.ListNodesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNodesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNodesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListNodesResponse.class, + com.google.cloud.vmwareengine.v1.ListNodesResponse.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.ListNodesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (nodesBuilder_ == null) { + nodes_ = java.util.Collections.emptyList(); + } else { + nodes_ = null; + nodesBuilder_.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_ListNodesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListNodesResponse getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ListNodesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListNodesResponse build() { + com.google.cloud.vmwareengine.v1.ListNodesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListNodesResponse buildPartial() { + com.google.cloud.vmwareengine.v1.ListNodesResponse result = + new com.google.cloud.vmwareengine.v1.ListNodesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.vmwareengine.v1.ListNodesResponse result) { + if (nodesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + nodes_ = java.util.Collections.unmodifiableList(nodes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.nodes_ = nodes_; + } else { + result.nodes_ = nodesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.vmwareengine.v1.ListNodesResponse 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.ListNodesResponse) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ListNodesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.ListNodesResponse other) { + if (other == com.google.cloud.vmwareengine.v1.ListNodesResponse.getDefaultInstance()) + return this; + if (nodesBuilder_ == null) { + if (!other.nodes_.isEmpty()) { + if (nodes_.isEmpty()) { + nodes_ = other.nodes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNodesIsMutable(); + nodes_.addAll(other.nodes_); + } + onChanged(); + } + } else { + if (!other.nodes_.isEmpty()) { + if (nodesBuilder_.isEmpty()) { + nodesBuilder_.dispose(); + nodesBuilder_ = null; + nodes_ = other.nodes_; + bitField0_ = (bitField0_ & ~0x00000001); + nodesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNodesFieldBuilder() + : null; + } else { + nodesBuilder_.addAllMessages(other.nodes_); + } + } + } + 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.Node m = + input.readMessage( + com.google.cloud.vmwareengine.v1.Node.parser(), extensionRegistry); + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(m); + } else { + nodesBuilder_.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 nodes_ = + java.util.Collections.emptyList(); + + private void ensureNodesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + nodes_ = new java.util.ArrayList(nodes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Node, + com.google.cloud.vmwareengine.v1.Node.Builder, + com.google.cloud.vmwareengine.v1.NodeOrBuilder> + nodesBuilder_; + + /** + * + * + *
    +     * The nodes.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.Node nodes = 1; + */ + public java.util.List getNodesList() { + if (nodesBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodes_); + } else { + return nodesBuilder_.getMessageList(); + } + } + /** + * + * + *
    +     * The nodes.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.Node nodes = 1; + */ + public int getNodesCount() { + if (nodesBuilder_ == null) { + return nodes_.size(); + } else { + return nodesBuilder_.getCount(); + } + } + /** + * + * + *
    +     * The nodes.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.Node nodes = 1; + */ + public com.google.cloud.vmwareengine.v1.Node getNodes(int index) { + if (nodesBuilder_ == null) { + return nodes_.get(index); + } else { + return nodesBuilder_.getMessage(index); + } + } + /** + * + * + *
    +     * The nodes.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.Node nodes = 1; + */ + public Builder setNodes(int index, com.google.cloud.vmwareengine.v1.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.set(index, value); + onChanged(); + } else { + nodesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * The nodes.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.Node nodes = 1; + */ + public Builder setNodes( + int index, com.google.cloud.vmwareengine.v1.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.set(index, builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * The nodes.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.Node nodes = 1; + */ + public Builder addNodes(com.google.cloud.vmwareengine.v1.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.add(value); + onChanged(); + } else { + nodesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +     * The nodes.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.Node nodes = 1; + */ + public Builder addNodes(int index, com.google.cloud.vmwareengine.v1.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.add(index, value); + onChanged(); + } else { + nodesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * The nodes.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.Node nodes = 1; + */ + public Builder addNodes(com.google.cloud.vmwareengine.v1.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * The nodes.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.Node nodes = 1; + */ + public Builder addNodes( + int index, com.google.cloud.vmwareengine.v1.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(index, builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * The nodes.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.Node nodes = 1; + */ + public Builder addAllNodes( + java.lang.Iterable values) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodes_); + onChanged(); + } else { + nodesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +     * The nodes.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.Node nodes = 1; + */ + public Builder clearNodes() { + if (nodesBuilder_ == null) { + nodes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + nodesBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * The nodes.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.Node nodes = 1; + */ + public Builder removeNodes(int index) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.remove(index); + onChanged(); + } else { + nodesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +     * The nodes.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.Node nodes = 1; + */ + public com.google.cloud.vmwareengine.v1.Node.Builder getNodesBuilder(int index) { + return getNodesFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +     * The nodes.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.Node nodes = 1; + */ + public com.google.cloud.vmwareengine.v1.NodeOrBuilder getNodesOrBuilder(int index) { + if (nodesBuilder_ == null) { + return nodes_.get(index); + } else { + return nodesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +     * The nodes.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.Node nodes = 1; + */ + public java.util.List + getNodesOrBuilderList() { + if (nodesBuilder_ != null) { + return nodesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodes_); + } + } + /** + * + * + *
    +     * The nodes.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.Node nodes = 1; + */ + public com.google.cloud.vmwareengine.v1.Node.Builder addNodesBuilder() { + return getNodesFieldBuilder() + .addBuilder(com.google.cloud.vmwareengine.v1.Node.getDefaultInstance()); + } + /** + * + * + *
    +     * The nodes.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.Node nodes = 1; + */ + public com.google.cloud.vmwareengine.v1.Node.Builder addNodesBuilder(int index) { + return getNodesFieldBuilder() + .addBuilder(index, com.google.cloud.vmwareengine.v1.Node.getDefaultInstance()); + } + /** + * + * + *
    +     * The nodes.
    +     * 
    + * + * repeated .google.cloud.vmwareengine.v1.Node nodes = 1; + */ + public java.util.List getNodesBuilderList() { + return getNodesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Node, + com.google.cloud.vmwareengine.v1.Node.Builder, + com.google.cloud.vmwareengine.v1.NodeOrBuilder> + getNodesFieldBuilder() { + if (nodesBuilder_ == null) { + nodesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Node, + com.google.cloud.vmwareengine.v1.Node.Builder, + com.google.cloud.vmwareengine.v1.NodeOrBuilder>( + nodes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + nodes_ = null; + } + return nodesBuilder_; + } + + 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.ListNodesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ListNodesResponse) + private static final com.google.cloud.vmwareengine.v1.ListNodesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ListNodesResponse(); + } + + public static com.google.cloud.vmwareengine.v1.ListNodesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNodesResponse 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.ListNodesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNodesResponseOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNodesResponseOrBuilder.java new file mode 100644 index 000000000000..5c5a0c0ff0ed --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNodesResponseOrBuilder.java @@ -0,0 +1,103 @@ +/* + * 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 ListNodesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ListNodesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The nodes.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.Node nodes = 1; + */ + java.util.List getNodesList(); + /** + * + * + *
    +   * The nodes.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.Node nodes = 1; + */ + com.google.cloud.vmwareengine.v1.Node getNodes(int index); + /** + * + * + *
    +   * The nodes.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.Node nodes = 1; + */ + int getNodesCount(); + /** + * + * + *
    +   * The nodes.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.Node nodes = 1; + */ + java.util.List getNodesOrBuilderList(); + /** + * + * + *
    +   * The nodes.
    +   * 
    + * + * repeated .google.cloud.vmwareengine.v1.Node nodes = 1; + */ + com.google.cloud.vmwareengine.v1.NodeOrBuilder getNodesOrBuilder(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/ListPeeringRoutesRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPeeringRoutesRequest.java new file mode 100644 index 000000000000..4a5d77f24dfe --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPeeringRoutesRequest.java @@ -0,0 +1,1180 @@ +/* + * 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.ListPeeringRoutes][google.cloud.vmwareengine.v1.VmwareEngine.ListPeeringRoutes]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListPeeringRoutesRequest} + */ +public final class ListPeeringRoutesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ListPeeringRoutesRequest) + ListPeeringRoutesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListPeeringRoutesRequest.newBuilder() to construct. + private ListPeeringRoutesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListPeeringRoutesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListPeeringRoutesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPeeringRoutesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPeeringRoutesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest.class, + com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
    +   * Required. The resource name of the network peering 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/global/networkPeerings/my-peering`
    +   * 
    + * + * + * 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 network peering 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/global/networkPeerings/my-peering`
    +   * 
    + * + * + * 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 `ListPeeringRoutes` call.
    +   * Provide this to retrieve the subsequent page.
    +   * When paginating, all other parameters provided to `ListPeeringRoutes` 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 `ListPeeringRoutes` call.
    +   * Provide this to retrieve the subsequent page.
    +   * When paginating, all other parameters provided to `ListPeeringRoutes` 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 = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
    +   * A filter expression that matches resources returned in the response.
    +   * Currently, only filtering on the `direction` field is supported. To return
    +   * routes imported from the peer network, provide "direction=INCOMING". To
    +   * return routes exported from the VMware Engine network, provide
    +   * "direction=OUTGOING". Other filter expressions return an error.
    +   * 
    + * + * string filter = 6; + * + * @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.
    +   * Currently, only filtering on the `direction` field is supported. To return
    +   * routes imported from the peer network, provide "direction=INCOMING". To
    +   * return routes exported from the VMware Engine network, provide
    +   * "direction=OUTGOING". Other filter expressions return an error.
    +   * 
    + * + * string filter = 6; + * + * @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; + } + } + + 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, 6, filter_); + } + 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(6, filter_); + } + 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.ListPeeringRoutesRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest other = + (com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest) 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 (!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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest 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.ListPeeringRoutesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest 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.ListPeeringRoutesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest 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.ListPeeringRoutesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest 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.ListPeeringRoutesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest 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.ListPeeringRoutesRequest 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.ListPeeringRoutesRequest 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.ListPeeringRoutesRequest 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.ListPeeringRoutes][google.cloud.vmwareengine.v1.VmwareEngine.ListPeeringRoutes]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListPeeringRoutesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ListPeeringRoutesRequest) + com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPeeringRoutesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPeeringRoutesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest.class, + com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest.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_ = ""; + 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_ListPeeringRoutesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest build() { + com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest buildPartial() { + com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest result = + new com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest 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_; + } + } + + @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.ListPeeringRoutesRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest other) { + if (other == com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest.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(); + } + 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 50: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 50 + 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 network peering 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/global/networkPeerings/my-peering`
    +     * 
    + * + * + * 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 network peering 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/global/networkPeerings/my-peering`
    +     * 
    + * + * + * 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 network peering 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/global/networkPeerings/my-peering`
    +     * 
    + * + * + * 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 network peering 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/global/networkPeerings/my-peering`
    +     * 
    + * + * + * 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 network peering 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/global/networkPeerings/my-peering`
    +     * 
    + * + * + * 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 `ListPeeringRoutes` call.
    +     * Provide this to retrieve the subsequent page.
    +     * When paginating, all other parameters provided to `ListPeeringRoutes` 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 `ListPeeringRoutes` call.
    +     * Provide this to retrieve the subsequent page.
    +     * When paginating, all other parameters provided to `ListPeeringRoutes` 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 `ListPeeringRoutes` call.
    +     * Provide this to retrieve the subsequent page.
    +     * When paginating, all other parameters provided to `ListPeeringRoutes` 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 `ListPeeringRoutes` call.
    +     * Provide this to retrieve the subsequent page.
    +     * When paginating, all other parameters provided to `ListPeeringRoutes` 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 `ListPeeringRoutes` call.
    +     * Provide this to retrieve the subsequent page.
    +     * When paginating, all other parameters provided to `ListPeeringRoutes` 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.
    +     * Currently, only filtering on the `direction` field is supported. To return
    +     * routes imported from the peer network, provide "direction=INCOMING". To
    +     * return routes exported from the VMware Engine network, provide
    +     * "direction=OUTGOING". Other filter expressions return an error.
    +     * 
    + * + * string filter = 6; + * + * @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.
    +     * Currently, only filtering on the `direction` field is supported. To return
    +     * routes imported from the peer network, provide "direction=INCOMING". To
    +     * return routes exported from the VMware Engine network, provide
    +     * "direction=OUTGOING". Other filter expressions return an error.
    +     * 
    + * + * string filter = 6; + * + * @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.
    +     * Currently, only filtering on the `direction` field is supported. To return
    +     * routes imported from the peer network, provide "direction=INCOMING". To
    +     * return routes exported from the VMware Engine network, provide
    +     * "direction=OUTGOING". Other filter expressions return an error.
    +     * 
    + * + * string filter = 6; + * + * @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.
    +     * Currently, only filtering on the `direction` field is supported. To return
    +     * routes imported from the peer network, provide "direction=INCOMING". To
    +     * return routes exported from the VMware Engine network, provide
    +     * "direction=OUTGOING". Other filter expressions return an error.
    +     * 
    + * + * string filter = 6; + * + * @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.
    +     * Currently, only filtering on the `direction` field is supported. To return
    +     * routes imported from the peer network, provide "direction=INCOMING". To
    +     * return routes exported from the VMware Engine network, provide
    +     * "direction=OUTGOING". Other filter expressions return an error.
    +     * 
    + * + * string filter = 6; + * + * @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; + } + + @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.ListPeeringRoutesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ListPeeringRoutesRequest) + private static final com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest(); + } + + public static com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPeeringRoutesRequest 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.ListPeeringRoutesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPeeringRoutesRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPeeringRoutesRequestOrBuilder.java new file mode 100644 index 000000000000..940ae95c950a --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPeeringRoutesRequestOrBuilder.java @@ -0,0 +1,140 @@ +/* + * 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 ListPeeringRoutesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ListPeeringRoutesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the network peering 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/global/networkPeerings/my-peering`
    +   * 
    + * + * + * 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 network peering 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/global/networkPeerings/my-peering`
    +   * 
    + * + * + * 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 `ListPeeringRoutes` call.
    +   * Provide this to retrieve the subsequent page.
    +   * When paginating, all other parameters provided to `ListPeeringRoutes` 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 `ListPeeringRoutes` call.
    +   * Provide this to retrieve the subsequent page.
    +   * When paginating, all other parameters provided to `ListPeeringRoutes` 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.
    +   * Currently, only filtering on the `direction` field is supported. To return
    +   * routes imported from the peer network, provide "direction=INCOMING". To
    +   * return routes exported from the VMware Engine network, provide
    +   * "direction=OUTGOING". Other filter expressions return an error.
    +   * 
    + * + * string filter = 6; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
    +   * A filter expression that matches resources returned in the response.
    +   * Currently, only filtering on the `direction` field is supported. To return
    +   * routes imported from the peer network, provide "direction=INCOMING". To
    +   * return routes exported from the VMware Engine network, provide
    +   * "direction=OUTGOING". Other filter expressions return an error.
    +   * 
    + * + * string filter = 6; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPeeringRoutesResponse.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPeeringRoutesResponse.java new file mode 100644 index 000000000000..fc0ed0a150c3 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPeeringRoutesResponse.java @@ -0,0 +1,1138 @@ +/* + * 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.ListPeeringRoutes][google.cloud.vmwareengine.v1.VmwareEngine.ListPeeringRoutes]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListPeeringRoutesResponse} + */ +public final class ListPeeringRoutesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ListPeeringRoutesResponse) + ListPeeringRoutesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListPeeringRoutesResponse.newBuilder() to construct. + private ListPeeringRoutesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListPeeringRoutesResponse() { + peeringRoutes_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListPeeringRoutesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPeeringRoutesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPeeringRoutesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse.class, + com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse.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.ListPeeringRoutesResponse)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse other = + (com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse) 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.ListPeeringRoutesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse 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.ListPeeringRoutesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse 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.ListPeeringRoutesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse 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.ListPeeringRoutesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse 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.ListPeeringRoutesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse 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.ListPeeringRoutesResponse 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.ListPeeringRoutesResponse 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.ListPeeringRoutesResponse 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.ListPeeringRoutes][google.cloud.vmwareengine.v1.VmwareEngine.ListPeeringRoutes]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListPeeringRoutesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ListPeeringRoutesResponse) + com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPeeringRoutesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPeeringRoutesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse.class, + com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse.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_ListPeeringRoutesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse build() { + com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse buildPartial() { + com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse result = + new com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse 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.ListPeeringRoutesResponse 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.ListPeeringRoutesResponse) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse other) { + if (other == com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse.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.ListPeeringRoutesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ListPeeringRoutesResponse) + private static final com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse(); + } + + public static com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPeeringRoutesResponse 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.ListPeeringRoutesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPeeringRoutesResponseOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPeeringRoutesResponseOrBuilder.java new file mode 100644 index 000000000000..7ca25732437b --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPeeringRoutesResponseOrBuilder.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 ListPeeringRoutesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ListPeeringRoutesResponse) + 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/LocationMetadata.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/LocationMetadata.java new file mode 100644 index 000000000000..cdcfc9f97d58 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/LocationMetadata.java @@ -0,0 +1,1014 @@ +/* + * 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; + +/** + * + * + *
    + * VmwareEngine specific metadata for the given
    + * [google.cloud.location.Location][google.cloud.location.Location]. It is
    + * returned as a content of the `google.cloud.location.Location.metadata` field.
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.LocationMetadata} + */ +public final class LocationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.LocationMetadata) + LocationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use LocationMetadata.newBuilder() to construct. + private LocationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LocationMetadata() { + capabilities_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LocationMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_LocationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_LocationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.LocationMetadata.class, + com.google.cloud.vmwareengine.v1.LocationMetadata.Builder.class); + } + + /** + * + * + *
    +   * Capability of a location.
    +   * 
    + * + * Protobuf enum {@code google.cloud.vmwareengine.v1.LocationMetadata.Capability} + */ + public enum Capability implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * The default value. This value is used if the capability is omitted or
    +     * unknown.
    +     * 
    + * + * CAPABILITY_UNSPECIFIED = 0; + */ + CAPABILITY_UNSPECIFIED(0), + /** + * + * + *
    +     * Stretch clusters are supported in this location.
    +     * 
    + * + * STRETCHED_CLUSTERS = 1; + */ + STRETCHED_CLUSTERS(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * The default value. This value is used if the capability is omitted or
    +     * unknown.
    +     * 
    + * + * CAPABILITY_UNSPECIFIED = 0; + */ + public static final int CAPABILITY_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +     * Stretch clusters are supported in this location.
    +     * 
    + * + * STRETCHED_CLUSTERS = 1; + */ + public static final int STRETCHED_CLUSTERS_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 Capability 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 Capability forNumber(int value) { + switch (value) { + case 0: + return CAPABILITY_UNSPECIFIED; + case 1: + return STRETCHED_CLUSTERS; + 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 Capability findValueByNumber(int number) { + return Capability.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.LocationMetadata.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Capability[] VALUES = values(); + + public static Capability 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 Capability(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmwareengine.v1.LocationMetadata.Capability) + } + + public static final int CAPABILITIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List capabilities_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.vmwareengine.v1.LocationMetadata.Capability> + capabilities_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.vmwareengine.v1.LocationMetadata.Capability>() { + public com.google.cloud.vmwareengine.v1.LocationMetadata.Capability convert( + java.lang.Integer from) { + com.google.cloud.vmwareengine.v1.LocationMetadata.Capability result = + com.google.cloud.vmwareengine.v1.LocationMetadata.Capability.forNumber(from); + return result == null + ? com.google.cloud.vmwareengine.v1.LocationMetadata.Capability.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
    +   * Output only. Capabilities of this location.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.LocationMetadata.Capability capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the capabilities. + */ + @java.lang.Override + public java.util.List + getCapabilitiesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.vmwareengine.v1.LocationMetadata.Capability>( + capabilities_, capabilities_converter_); + } + /** + * + * + *
    +   * Output only. Capabilities of this location.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.LocationMetadata.Capability capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of capabilities. + */ + @java.lang.Override + public int getCapabilitiesCount() { + return capabilities_.size(); + } + /** + * + * + *
    +   * Output only. Capabilities of this location.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.LocationMetadata.Capability capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The capabilities at the given index. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.LocationMetadata.Capability getCapabilities(int index) { + return capabilities_converter_.convert(capabilities_.get(index)); + } + /** + * + * + *
    +   * Output only. Capabilities of this location.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.LocationMetadata.Capability capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enum numeric values on the wire for capabilities. + */ + @java.lang.Override + public java.util.List getCapabilitiesValueList() { + return capabilities_; + } + /** + * + * + *
    +   * Output only. Capabilities of this location.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.LocationMetadata.Capability capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of capabilities at the given index. + */ + @java.lang.Override + public int getCapabilitiesValue(int index) { + return capabilities_.get(index); + } + + private int capabilitiesMemoizedSerializedSize; + + 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 { + getSerializedSize(); + if (getCapabilitiesList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(capabilitiesMemoizedSerializedSize); + } + for (int i = 0; i < capabilities_.size(); i++) { + output.writeEnumNoTag(capabilities_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < capabilities_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(capabilities_.get(i)); + } + size += dataSize; + if (!getCapabilitiesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + capabilitiesMemoizedSerializedSize = dataSize; + } + 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.LocationMetadata)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.LocationMetadata other = + (com.google.cloud.vmwareengine.v1.LocationMetadata) obj; + + if (!capabilities_.equals(other.capabilities_)) 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 (getCapabilitiesCount() > 0) { + hash = (37 * hash) + CAPABILITIES_FIELD_NUMBER; + hash = (53 * hash) + capabilities_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.LocationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.LocationMetadata 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.LocationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.LocationMetadata 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.LocationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.LocationMetadata 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.LocationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.LocationMetadata 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.LocationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.LocationMetadata 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.LocationMetadata 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.LocationMetadata 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.LocationMetadata 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; + } + /** + * + * + *
    +   * VmwareEngine specific metadata for the given
    +   * [google.cloud.location.Location][google.cloud.location.Location]. It is
    +   * returned as a content of the `google.cloud.location.Location.metadata` field.
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.LocationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.LocationMetadata) + com.google.cloud.vmwareengine.v1.LocationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_LocationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_LocationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.LocationMetadata.class, + com.google.cloud.vmwareengine.v1.LocationMetadata.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.LocationMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + capabilities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + 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_LocationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.LocationMetadata getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.LocationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.LocationMetadata build() { + com.google.cloud.vmwareengine.v1.LocationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.LocationMetadata buildPartial() { + com.google.cloud.vmwareengine.v1.LocationMetadata result = + new com.google.cloud.vmwareengine.v1.LocationMetadata(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.vmwareengine.v1.LocationMetadata result) { + if (((bitField0_ & 0x00000001) != 0)) { + capabilities_ = java.util.Collections.unmodifiableList(capabilities_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.capabilities_ = capabilities_; + } + + private void buildPartial0(com.google.cloud.vmwareengine.v1.LocationMetadata result) { + int from_bitField0_ = bitField0_; + } + + @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.LocationMetadata) { + return mergeFrom((com.google.cloud.vmwareengine.v1.LocationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.LocationMetadata other) { + if (other == com.google.cloud.vmwareengine.v1.LocationMetadata.getDefaultInstance()) + return this; + if (!other.capabilities_.isEmpty()) { + if (capabilities_.isEmpty()) { + capabilities_ = other.capabilities_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCapabilitiesIsMutable(); + capabilities_.addAll(other.capabilities_); + } + 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 8: + { + int tmpRaw = input.readEnum(); + ensureCapabilitiesIsMutable(); + capabilities_.add(tmpRaw); + break; + } // case 8 + case 10: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureCapabilitiesIsMutable(); + capabilities_.add(tmpRaw); + } + input.popLimit(oldLimit); + 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.util.List capabilities_ = java.util.Collections.emptyList(); + + private void ensureCapabilitiesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + capabilities_ = new java.util.ArrayList(capabilities_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
    +     * Output only. Capabilities of this location.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.LocationMetadata.Capability capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the capabilities. + */ + public java.util.List + getCapabilitiesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.vmwareengine.v1.LocationMetadata.Capability>( + capabilities_, capabilities_converter_); + } + /** + * + * + *
    +     * Output only. Capabilities of this location.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.LocationMetadata.Capability capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of capabilities. + */ + public int getCapabilitiesCount() { + return capabilities_.size(); + } + /** + * + * + *
    +     * Output only. Capabilities of this location.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.LocationMetadata.Capability capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The capabilities at the given index. + */ + public com.google.cloud.vmwareengine.v1.LocationMetadata.Capability getCapabilities(int index) { + return capabilities_converter_.convert(capabilities_.get(index)); + } + /** + * + * + *
    +     * Output only. Capabilities of this location.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.LocationMetadata.Capability capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The capabilities to set. + * @return This builder for chaining. + */ + public Builder setCapabilities( + int index, com.google.cloud.vmwareengine.v1.LocationMetadata.Capability value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCapabilitiesIsMutable(); + capabilities_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Capabilities of this location.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.LocationMetadata.Capability capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The capabilities to add. + * @return This builder for chaining. + */ + public Builder addCapabilities( + com.google.cloud.vmwareengine.v1.LocationMetadata.Capability value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCapabilitiesIsMutable(); + capabilities_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Capabilities of this location.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.LocationMetadata.Capability capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The capabilities to add. + * @return This builder for chaining. + */ + public Builder addAllCapabilities( + java.lang.Iterable + values) { + ensureCapabilitiesIsMutable(); + for (com.google.cloud.vmwareengine.v1.LocationMetadata.Capability value : values) { + capabilities_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Capabilities of this location.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.LocationMetadata.Capability capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCapabilities() { + capabilities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Capabilities of this location.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.LocationMetadata.Capability capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enum numeric values on the wire for capabilities. + */ + public java.util.List getCapabilitiesValueList() { + return java.util.Collections.unmodifiableList(capabilities_); + } + /** + * + * + *
    +     * Output only. Capabilities of this location.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.LocationMetadata.Capability capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of capabilities at the given index. + */ + public int getCapabilitiesValue(int index) { + return capabilities_.get(index); + } + /** + * + * + *
    +     * Output only. Capabilities of this location.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.LocationMetadata.Capability capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for capabilities to set. + * @return This builder for chaining. + */ + public Builder setCapabilitiesValue(int index, int value) { + ensureCapabilitiesIsMutable(); + capabilities_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Capabilities of this location.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.LocationMetadata.Capability capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for capabilities to add. + * @return This builder for chaining. + */ + public Builder addCapabilitiesValue(int value) { + ensureCapabilitiesIsMutable(); + capabilities_.add(value); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Capabilities of this location.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.LocationMetadata.Capability capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The enum numeric values on the wire for capabilities to add. + * @return This builder for chaining. + */ + public Builder addAllCapabilitiesValue(java.lang.Iterable values) { + ensureCapabilitiesIsMutable(); + for (int value : values) { + capabilities_.add(value); + } + 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.LocationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.LocationMetadata) + private static final com.google.cloud.vmwareengine.v1.LocationMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.LocationMetadata(); + } + + public static com.google.cloud.vmwareengine.v1.LocationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationMetadata 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.LocationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/LocationMetadataOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/LocationMetadataOrBuilder.java new file mode 100644 index 000000000000..59aefc48079c --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/LocationMetadataOrBuilder.java @@ -0,0 +1,99 @@ +/* + * 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 LocationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.LocationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Output only. Capabilities of this location.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.LocationMetadata.Capability capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the capabilities. + */ + java.util.List + getCapabilitiesList(); + /** + * + * + *
    +   * Output only. Capabilities of this location.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.LocationMetadata.Capability capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of capabilities. + */ + int getCapabilitiesCount(); + /** + * + * + *
    +   * Output only. Capabilities of this location.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.LocationMetadata.Capability capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The capabilities at the given index. + */ + com.google.cloud.vmwareengine.v1.LocationMetadata.Capability getCapabilities(int index); + /** + * + * + *
    +   * Output only. Capabilities of this location.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.LocationMetadata.Capability capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enum numeric values on the wire for capabilities. + */ + java.util.List getCapabilitiesValueList(); + /** + * + * + *
    +   * Output only. Capabilities of this location.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.LocationMetadata.Capability capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of capabilities at the given index. + */ + int getCapabilitiesValue(int index); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/LoggingServer.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/LoggingServer.java new file mode 100644 index 000000000000..3c56c5ed8dc9 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/LoggingServer.java @@ -0,0 +1,2339 @@ +/* + * 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; + +/** + * + * + *
    + * Logging server to receive vCenter or ESXi logs.
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.LoggingServer} + */ +public final class LoggingServer extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.LoggingServer) + LoggingServerOrBuilder { + private static final long serialVersionUID = 0L; + // Use LoggingServer.newBuilder() to construct. + private LoggingServer(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LoggingServer() { + name_ = ""; + hostname_ = ""; + protocol_ = 0; + sourceType_ = 0; + uid_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LoggingServer(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_LoggingServer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_LoggingServer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.LoggingServer.class, + com.google.cloud.vmwareengine.v1.LoggingServer.Builder.class); + } + + /** + * + * + *
    +   * Defines possible protocols used to send logs to
    +   * a logging server.
    +   * 
    + * + * Protobuf enum {@code google.cloud.vmwareengine.v1.LoggingServer.Protocol} + */ + public enum Protocol implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Unspecified communications protocol. This is the default value.
    +     * 
    + * + * PROTOCOL_UNSPECIFIED = 0; + */ + PROTOCOL_UNSPECIFIED(0), + /** + * + * + *
    +     * UDP
    +     * 
    + * + * UDP = 1; + */ + UDP(1), + /** + * + * + *
    +     * TCP
    +     * 
    + * + * TCP = 2; + */ + TCP(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Unspecified communications protocol. This is the default value.
    +     * 
    + * + * PROTOCOL_UNSPECIFIED = 0; + */ + public static final int PROTOCOL_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +     * UDP
    +     * 
    + * + * UDP = 1; + */ + public static final int UDP_VALUE = 1; + /** + * + * + *
    +     * TCP
    +     * 
    + * + * TCP = 2; + */ + public static final int TCP_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 Protocol 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 Protocol forNumber(int value) { + switch (value) { + case 0: + return PROTOCOL_UNSPECIFIED; + case 1: + return UDP; + case 2: + return TCP; + 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 Protocol findValueByNumber(int number) { + return Protocol.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.LoggingServer.getDescriptor().getEnumTypes().get(0); + } + + private static final Protocol[] VALUES = values(); + + public static Protocol 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 Protocol(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmwareengine.v1.LoggingServer.Protocol) + } + + /** + * + * + *
    +   * Defines possible types of component that produces logs.
    +   * 
    + * + * Protobuf enum {@code google.cloud.vmwareengine.v1.LoggingServer.SourceType} + */ + public enum SourceType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * The default value. This value should never be used.
    +     * 
    + * + * SOURCE_TYPE_UNSPECIFIED = 0; + */ + SOURCE_TYPE_UNSPECIFIED(0), + /** + * + * + *
    +     * Logs produced by ESXI hosts
    +     * 
    + * + * ESXI = 1; + */ + ESXI(1), + /** + * + * + *
    +     * Logs produced by vCenter server
    +     * 
    + * + * VCSA = 2; + */ + VCSA(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * The default value. This value should never be used.
    +     * 
    + * + * SOURCE_TYPE_UNSPECIFIED = 0; + */ + public static final int SOURCE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +     * Logs produced by ESXI hosts
    +     * 
    + * + * ESXI = 1; + */ + public static final int ESXI_VALUE = 1; + /** + * + * + *
    +     * Logs produced by vCenter server
    +     * 
    + * + * VCSA = 2; + */ + public static final int VCSA_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 SourceType 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 SourceType forNumber(int value) { + switch (value) { + case 0: + return SOURCE_TYPE_UNSPECIFIED; + case 1: + return ESXI; + case 2: + return VCSA; + 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 SourceType findValueByNumber(int number) { + return SourceType.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.LoggingServer.getDescriptor().getEnumTypes().get(1); + } + + private static final SourceType[] VALUES = values(); + + public static SourceType 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 SourceType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmwareengine.v1.LoggingServer.SourceType) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Output only. The resource name of this logging server.
    +   * 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/loggingServers/my-logging-server`
    +   * 
    + * + * 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 this logging server.
    +   * 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/loggingServers/my-logging-server`
    +   * 
    + * + * 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 HOSTNAME_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object hostname_ = ""; + /** + * + * + *
    +   * Required. Fully-qualified domain name (FQDN) or IP Address of the logging
    +   * server.
    +   * 
    + * + * string hostname = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hostname. + */ + @java.lang.Override + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + 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(); + hostname_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. Fully-qualified domain name (FQDN) or IP Address of the logging
    +   * server.
    +   * 
    + * + * string hostname = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hostname. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHostnameBytes() { + java.lang.Object ref = hostname_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PORT_FIELD_NUMBER = 7; + private int port_ = 0; + /** + * + * + *
    +   * Required. Port number at which the logging server receives logs.
    +   * 
    + * + * int32 port = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + + public static final int PROTOCOL_FIELD_NUMBER = 6; + private int protocol_ = 0; + /** + * + * + *
    +   * Required. Protocol used by vCenter to send logs to a logging server.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer.Protocol protocol = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for protocol. + */ + @java.lang.Override + public int getProtocolValue() { + return protocol_; + } + /** + * + * + *
    +   * Required. Protocol used by vCenter to send logs to a logging server.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer.Protocol protocol = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The protocol. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.LoggingServer.Protocol getProtocol() { + com.google.cloud.vmwareengine.v1.LoggingServer.Protocol result = + com.google.cloud.vmwareengine.v1.LoggingServer.Protocol.forNumber(protocol_); + return result == null + ? com.google.cloud.vmwareengine.v1.LoggingServer.Protocol.UNRECOGNIZED + : result; + } + + public static final int SOURCE_TYPE_FIELD_NUMBER = 10; + private int sourceType_ = 0; + /** + * + * + *
    +   * Required. The type of component that produces logs that will be forwarded
    +   * to this logging server.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer.SourceType source_type = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for sourceType. + */ + @java.lang.Override + public int getSourceTypeValue() { + return sourceType_; + } + /** + * + * + *
    +   * Required. The type of component that produces logs that will be forwarded
    +   * to this logging server.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer.SourceType source_type = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sourceType. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.LoggingServer.SourceType getSourceType() { + com.google.cloud.vmwareengine.v1.LoggingServer.SourceType result = + com.google.cloud.vmwareengine.v1.LoggingServer.SourceType.forNumber(sourceType_); + return result == null + ? com.google.cloud.vmwareengine.v1.LoggingServer.SourceType.UNRECOGNIZED + : result; + } + + public static final int UID_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + /** + * + * + *
    +   * Output only. System-generated unique identifier for the resource.
    +   * 
    + * + * string uid = 8 [(.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 = 8 [(.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; + } + } + + 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(hostname_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, hostname_); + } + if (protocol_ + != com.google.cloud.vmwareengine.v1.LoggingServer.Protocol.PROTOCOL_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, protocol_); + } + if (port_ != 0) { + output.writeInt32(7, port_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, uid_); + } + if (sourceType_ + != com.google.cloud.vmwareengine.v1.LoggingServer.SourceType.SOURCE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(10, sourceType_); + } + 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(hostname_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, hostname_); + } + if (protocol_ + != com.google.cloud.vmwareengine.v1.LoggingServer.Protocol.PROTOCOL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, protocol_); + } + if (port_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, port_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, uid_); + } + if (sourceType_ + != com.google.cloud.vmwareengine.v1.LoggingServer.SourceType.SOURCE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, sourceType_); + } + 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.LoggingServer)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.LoggingServer other = + (com.google.cloud.vmwareengine.v1.LoggingServer) 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 (!getHostname().equals(other.getHostname())) return false; + if (getPort() != other.getPort()) return false; + if (protocol_ != other.protocol_) return false; + if (sourceType_ != other.sourceType_) return false; + if (!getUid().equals(other.getUid())) 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) + HOSTNAME_FIELD_NUMBER; + hash = (53 * hash) + getHostname().hashCode(); + hash = (37 * hash) + PORT_FIELD_NUMBER; + hash = (53 * hash) + getPort(); + hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; + hash = (53 * hash) + protocol_; + hash = (37 * hash) + SOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + sourceType_; + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.LoggingServer parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.LoggingServer 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.LoggingServer parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.LoggingServer 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.LoggingServer parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.LoggingServer 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.LoggingServer parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.LoggingServer 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.LoggingServer parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.LoggingServer 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.LoggingServer 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.LoggingServer 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.LoggingServer 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; + } + /** + * + * + *
    +   * Logging server to receive vCenter or ESXi logs.
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.LoggingServer} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.LoggingServer) + com.google.cloud.vmwareengine.v1.LoggingServerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_LoggingServer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_LoggingServer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.LoggingServer.class, + com.google.cloud.vmwareengine.v1.LoggingServer.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.LoggingServer.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; + } + hostname_ = ""; + port_ = 0; + protocol_ = 0; + sourceType_ = 0; + uid_ = ""; + 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_LoggingServer_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.LoggingServer getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.LoggingServer.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.LoggingServer build() { + com.google.cloud.vmwareengine.v1.LoggingServer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.LoggingServer buildPartial() { + com.google.cloud.vmwareengine.v1.LoggingServer result = + new com.google.cloud.vmwareengine.v1.LoggingServer(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmwareengine.v1.LoggingServer 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.hostname_ = hostname_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.port_ = port_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.protocol_ = protocol_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.sourceType_ = sourceType_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.uid_ = uid_; + } + } + + @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.LoggingServer) { + return mergeFrom((com.google.cloud.vmwareengine.v1.LoggingServer) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.LoggingServer other) { + if (other == com.google.cloud.vmwareengine.v1.LoggingServer.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.getHostname().isEmpty()) { + hostname_ = other.hostname_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.getPort() != 0) { + setPort(other.getPort()); + } + if (other.protocol_ != 0) { + setProtocolValue(other.getProtocolValue()); + } + if (other.sourceType_ != 0) { + setSourceTypeValue(other.getSourceTypeValue()); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000080; + 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: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: + { + hostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 48: + { + protocol_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + port_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 56 + case 66: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 80: + { + sourceType_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 80 + 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 this logging server.
    +     * 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/loggingServers/my-logging-server`
    +     * 
    + * + * 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 this logging server.
    +     * 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/loggingServers/my-logging-server`
    +     * 
    + * + * 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 this logging server.
    +     * 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/loggingServers/my-logging-server`
    +     * 
    + * + * 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 this logging server.
    +     * 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/loggingServers/my-logging-server`
    +     * 
    + * + * 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 this logging server.
    +     * 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/loggingServers/my-logging-server`
    +     * 
    + * + * 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 hostname_ = ""; + /** + * + * + *
    +     * Required. Fully-qualified domain name (FQDN) or IP Address of the logging
    +     * server.
    +     * 
    + * + * string hostname = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hostname. + */ + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostname_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. Fully-qualified domain name (FQDN) or IP Address of the logging
    +     * server.
    +     * 
    + * + * string hostname = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hostname. + */ + public com.google.protobuf.ByteString getHostnameBytes() { + java.lang.Object ref = hostname_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. Fully-qualified domain name (FQDN) or IP Address of the logging
    +     * server.
    +     * 
    + * + * string hostname = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The hostname to set. + * @return This builder for chaining. + */ + public Builder setHostname(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + hostname_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Fully-qualified domain name (FQDN) or IP Address of the logging
    +     * server.
    +     * 
    + * + * string hostname = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearHostname() { + hostname_ = getDefaultInstance().getHostname(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Fully-qualified domain name (FQDN) or IP Address of the logging
    +     * server.
    +     * 
    + * + * string hostname = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for hostname to set. + * @return This builder for chaining. + */ + public Builder setHostnameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hostname_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private int port_; + /** + * + * + *
    +     * Required. Port number at which the logging server receives logs.
    +     * 
    + * + * int32 port = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + /** + * + * + *
    +     * Required. Port number at which the logging server receives logs.
    +     * 
    + * + * int32 port = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The port to set. + * @return This builder for chaining. + */ + public Builder setPort(int value) { + + port_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Port number at which the logging server receives logs.
    +     * 
    + * + * int32 port = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPort() { + bitField0_ = (bitField0_ & ~0x00000010); + port_ = 0; + onChanged(); + return this; + } + + private int protocol_ = 0; + /** + * + * + *
    +     * Required. Protocol used by vCenter to send logs to a logging server.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer.Protocol protocol = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for protocol. + */ + @java.lang.Override + public int getProtocolValue() { + return protocol_; + } + /** + * + * + *
    +     * Required. Protocol used by vCenter to send logs to a logging server.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer.Protocol protocol = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for protocol to set. + * @return This builder for chaining. + */ + public Builder setProtocolValue(int value) { + protocol_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Protocol used by vCenter to send logs to a logging server.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer.Protocol protocol = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The protocol. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.LoggingServer.Protocol getProtocol() { + com.google.cloud.vmwareengine.v1.LoggingServer.Protocol result = + com.google.cloud.vmwareengine.v1.LoggingServer.Protocol.forNumber(protocol_); + return result == null + ? com.google.cloud.vmwareengine.v1.LoggingServer.Protocol.UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * Required. Protocol used by vCenter to send logs to a logging server.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer.Protocol protocol = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The protocol to set. + * @return This builder for chaining. + */ + public Builder setProtocol(com.google.cloud.vmwareengine.v1.LoggingServer.Protocol value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + protocol_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Protocol used by vCenter to send logs to a logging server.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer.Protocol protocol = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearProtocol() { + bitField0_ = (bitField0_ & ~0x00000020); + protocol_ = 0; + onChanged(); + return this; + } + + private int sourceType_ = 0; + /** + * + * + *
    +     * Required. The type of component that produces logs that will be forwarded
    +     * to this logging server.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer.SourceType source_type = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for sourceType. + */ + @java.lang.Override + public int getSourceTypeValue() { + return sourceType_; + } + /** + * + * + *
    +     * Required. The type of component that produces logs that will be forwarded
    +     * to this logging server.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer.SourceType source_type = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for sourceType to set. + * @return This builder for chaining. + */ + public Builder setSourceTypeValue(int value) { + sourceType_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The type of component that produces logs that will be forwarded
    +     * to this logging server.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer.SourceType source_type = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sourceType. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.LoggingServer.SourceType getSourceType() { + com.google.cloud.vmwareengine.v1.LoggingServer.SourceType result = + com.google.cloud.vmwareengine.v1.LoggingServer.SourceType.forNumber(sourceType_); + return result == null + ? com.google.cloud.vmwareengine.v1.LoggingServer.SourceType.UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * Required. The type of component that produces logs that will be forwarded
    +     * to this logging server.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer.SourceType source_type = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The sourceType to set. + * @return This builder for chaining. + */ + public Builder setSourceType(com.google.cloud.vmwareengine.v1.LoggingServer.SourceType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + sourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The type of component that produces logs that will be forwarded
    +     * to this logging server.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer.SourceType source_type = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearSourceType() { + bitField0_ = (bitField0_ & ~0x00000040); + sourceType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object uid_ = ""; + /** + * + * + *
    +     * Output only. System-generated unique identifier for the resource.
    +     * 
    + * + * string uid = 8 [(.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 = 8 [(.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 = 8 [(.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_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. System-generated unique identifier for the resource.
    +     * 
    + * + * string uid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. System-generated unique identifier for the resource.
    +     * 
    + * + * string uid = 8 [(.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_ |= 0x00000080; + 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.LoggingServer) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.LoggingServer) + private static final com.google.cloud.vmwareengine.v1.LoggingServer DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.LoggingServer(); + } + + public static com.google.cloud.vmwareengine.v1.LoggingServer getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LoggingServer 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.LoggingServer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/LoggingServerName.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/LoggingServerName.java new file mode 100644 index 000000000000..e725913c1633 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/LoggingServerName.java @@ -0,0 +1,269 @@ +/* + * 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 LoggingServerName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_PRIVATE_CLOUD_LOGGING_SERVER = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/privateClouds/{private_cloud}/loggingServers/{logging_server}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String privateCloud; + private final String loggingServer; + + @Deprecated + protected LoggingServerName() { + project = null; + location = null; + privateCloud = null; + loggingServer = null; + } + + private LoggingServerName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + privateCloud = Preconditions.checkNotNull(builder.getPrivateCloud()); + loggingServer = Preconditions.checkNotNull(builder.getLoggingServer()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPrivateCloud() { + return privateCloud; + } + + public String getLoggingServer() { + return loggingServer; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static LoggingServerName of( + String project, String location, String privateCloud, String loggingServer) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPrivateCloud(privateCloud) + .setLoggingServer(loggingServer) + .build(); + } + + public static String format( + String project, String location, String privateCloud, String loggingServer) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPrivateCloud(privateCloud) + .setLoggingServer(loggingServer) + .build() + .toString(); + } + + public static LoggingServerName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_PRIVATE_CLOUD_LOGGING_SERVER.validatedMatch( + formattedString, "LoggingServerName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("private_cloud"), + matchMap.get("logging_server")); + } + + 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 (LoggingServerName 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_LOGGING_SERVER.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 (loggingServer != null) { + fieldMapBuilder.put("logging_server", loggingServer); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_PRIVATE_CLOUD_LOGGING_SERVER.instantiate( + "project", + project, + "location", + location, + "private_cloud", + privateCloud, + "logging_server", + loggingServer); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + LoggingServerName that = ((LoggingServerName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.privateCloud, that.privateCloud) + && Objects.equals(this.loggingServer, that.loggingServer); + } + 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(loggingServer); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/privateClouds/{private_cloud}/loggingServers/{logging_server}. + */ + public static class Builder { + private String project; + private String location; + private String privateCloud; + private String loggingServer; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPrivateCloud() { + return privateCloud; + } + + public String getLoggingServer() { + return loggingServer; + } + + 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 setLoggingServer(String loggingServer) { + this.loggingServer = loggingServer; + return this; + } + + private Builder(LoggingServerName loggingServerName) { + this.project = loggingServerName.project; + this.location = loggingServerName.location; + this.privateCloud = loggingServerName.privateCloud; + this.loggingServer = loggingServerName.loggingServer; + } + + public LoggingServerName build() { + return new LoggingServerName(this); + } + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/LoggingServerOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/LoggingServerOrBuilder.java new file mode 100644 index 000000000000..7daf24026360 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/LoggingServerOrBuilder.java @@ -0,0 +1,259 @@ +/* + * 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 LoggingServerOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.LoggingServer) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Output only. The resource name of this logging server.
    +   * 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/loggingServers/my-logging-server`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Output only. The resource name of this logging server.
    +   * 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/loggingServers/my-logging-server`
    +   * 
    + * + * 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(); + + /** + * + * + *
    +   * Required. Fully-qualified domain name (FQDN) or IP Address of the logging
    +   * server.
    +   * 
    + * + * string hostname = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hostname. + */ + java.lang.String getHostname(); + /** + * + * + *
    +   * Required. Fully-qualified domain name (FQDN) or IP Address of the logging
    +   * server.
    +   * 
    + * + * string hostname = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hostname. + */ + com.google.protobuf.ByteString getHostnameBytes(); + + /** + * + * + *
    +   * Required. Port number at which the logging server receives logs.
    +   * 
    + * + * int32 port = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The port. + */ + int getPort(); + + /** + * + * + *
    +   * Required. Protocol used by vCenter to send logs to a logging server.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer.Protocol protocol = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for protocol. + */ + int getProtocolValue(); + /** + * + * + *
    +   * Required. Protocol used by vCenter to send logs to a logging server.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer.Protocol protocol = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The protocol. + */ + com.google.cloud.vmwareengine.v1.LoggingServer.Protocol getProtocol(); + + /** + * + * + *
    +   * Required. The type of component that produces logs that will be forwarded
    +   * to this logging server.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer.SourceType source_type = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for sourceType. + */ + int getSourceTypeValue(); + /** + * + * + *
    +   * Required. The type of component that produces logs that will be forwarded
    +   * to this logging server.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer.SourceType source_type = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sourceType. + */ + com.google.cloud.vmwareengine.v1.LoggingServer.SourceType getSourceType(); + + /** + * + * + *
    +   * Output only. System-generated unique identifier for the resource.
    +   * 
    + * + * string uid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + java.lang.String getUid(); + /** + * + * + *
    +   * Output only. System-generated unique identifier for the resource.
    +   * 
    + * + * string uid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ManagementDnsZoneBinding.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ManagementDnsZoneBinding.java new file mode 100644 index 000000000000..685a46f2a951 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ManagementDnsZoneBinding.java @@ -0,0 +1,2586 @@ +/* + * 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; + +/** + * + * + *
    + * Represents a binding between a network and the management DNS zone.
    + * A management DNS zone is the Cloud DNS cross-project binding zone that
    + * VMware Engine creates for each private cloud. It contains FQDNs and
    + * corresponding IP addresses for the private cloud's ESXi hosts and management
    + * VM appliances like vCenter and NSX Manager.
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ManagementDnsZoneBinding} + */ +public final class ManagementDnsZoneBinding extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ManagementDnsZoneBinding) + ManagementDnsZoneBindingOrBuilder { + private static final long serialVersionUID = 0L; + // Use ManagementDnsZoneBinding.newBuilder() to construct. + private ManagementDnsZoneBinding(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ManagementDnsZoneBinding() { + name_ = ""; + state_ = 0; + description_ = ""; + uid_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ManagementDnsZoneBinding(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_ManagementDnsZoneBinding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_ManagementDnsZoneBinding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.class, + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.Builder.class); + } + + /** + * + * + *
    +   * Enum State defines possible states of binding between the consumer VPC
    +   * network and the management DNS zone.
    +   * 
    + * + * Protobuf enum {@code google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * The default value. This value should never be used.
    +     * 
    + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
    +     * The binding is ready.
    +     * 
    + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
    +     * The binding is being created.
    +     * 
    + * + * CREATING = 2; + */ + CREATING(2), + /** + * + * + *
    +     * The binding is being updated.
    +     * 
    + * + * UPDATING = 3; + */ + UPDATING(3), + /** + * + * + *
    +     * The binding is being deleted.
    +     * 
    + * + * DELETING = 4; + */ + DELETING(4), + /** + * + * + *
    +     * The binding has failed.
    +     * 
    + * + * FAILED = 5; + */ + FAILED(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * The default value. This value should never be used.
    +     * 
    + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +     * The binding is ready.
    +     * 
    + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + /** + * + * + *
    +     * The binding is being created.
    +     * 
    + * + * CREATING = 2; + */ + public static final int CREATING_VALUE = 2; + /** + * + * + *
    +     * The binding is being updated.
    +     * 
    + * + * UPDATING = 3; + */ + public static final int UPDATING_VALUE = 3; + /** + * + * + *
    +     * The binding is being deleted.
    +     * 
    + * + * DELETING = 4; + */ + public static final int DELETING_VALUE = 4; + /** + * + * + *
    +     * The binding has failed.
    +     * 
    + * + * FAILED = 5; + */ + public static final int FAILED_VALUE = 5; + + 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 ACTIVE; + case 2: + return CREATING; + case 3: + return UPDATING; + case 4: + return DELETING; + case 5: + 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.ManagementDnsZoneBinding.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.ManagementDnsZoneBinding.State) + } + + private int bindNetworkCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object bindNetwork_; + + public enum BindNetworkCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + VPC_NETWORK(14), + VMWARE_ENGINE_NETWORK(15), + BINDNETWORK_NOT_SET(0); + private final int value; + + private BindNetworkCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static BindNetworkCase valueOf(int value) { + return forNumber(value); + } + + public static BindNetworkCase forNumber(int value) { + switch (value) { + case 14: + return VPC_NETWORK; + case 15: + return VMWARE_ENGINE_NETWORK; + case 0: + return BINDNETWORK_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public BindNetworkCase getBindNetworkCase() { + return BindNetworkCase.forNumber(bindNetworkCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Output only. The resource name of this binding.
    +   * 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +   * 
    + * + * 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 this binding.
    +   * 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +   * 
    + * + * 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 STATE_FIELD_NUMBER = 8; + private int state_ = 0; + /** + * + * + *
    +   * Output only. The state of the resource.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.State state = 8 [(.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. The state of the resource.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.State getState() { + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.State result = + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.State.forNumber(state_); + return result == null + ? com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.State.UNRECOGNIZED + : result; + } + + public static final int DESCRIPTION_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * + * + *
    +   * User-provided description for this resource.
    +   * 
    + * + * string description = 13; + * + * @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; + } + } + /** + * + * + *
    +   * User-provided description for this resource.
    +   * 
    + * + * string description = 13; + * + * @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 VPC_NETWORK_FIELD_NUMBER = 14; + /** + * + * + *
    +   * Network to bind is a standard consumer VPC.
    +   * Specify the name in the following form for consumer
    +   * VPC network: `projects/{project}/global/networks/{network_id}`.
    +   * `{project}` can either be a project number or a project ID.
    +   * 
    + * + * string vpc_network = 14 [(.google.api.resource_reference) = { ... } + * + * @return Whether the vpcNetwork field is set. + */ + public boolean hasVpcNetwork() { + return bindNetworkCase_ == 14; + } + /** + * + * + *
    +   * Network to bind is a standard consumer VPC.
    +   * Specify the name in the following form for consumer
    +   * VPC network: `projects/{project}/global/networks/{network_id}`.
    +   * `{project}` can either be a project number or a project ID.
    +   * 
    + * + * string vpc_network = 14 [(.google.api.resource_reference) = { ... } + * + * @return The vpcNetwork. + */ + public java.lang.String getVpcNetwork() { + java.lang.Object ref = ""; + if (bindNetworkCase_ == 14) { + ref = bindNetwork_; + } + 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(); + if (bindNetworkCase_ == 14) { + bindNetwork_ = s; + } + return s; + } + } + /** + * + * + *
    +   * Network to bind is a standard consumer VPC.
    +   * Specify the name in the following form for consumer
    +   * VPC network: `projects/{project}/global/networks/{network_id}`.
    +   * `{project}` can either be a project number or a project ID.
    +   * 
    + * + * string vpc_network = 14 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for vpcNetwork. + */ + public com.google.protobuf.ByteString getVpcNetworkBytes() { + java.lang.Object ref = ""; + if (bindNetworkCase_ == 14) { + ref = bindNetwork_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (bindNetworkCase_ == 14) { + bindNetwork_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VMWARE_ENGINE_NETWORK_FIELD_NUMBER = 15; + /** + * + * + *
    +   * Network to bind is a VMware Engine network.
    +   * Specify the name in the following form for VMware engine network:
    +   * `projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}`.
    +   * `{project}` can either be a project number or a project ID.
    +   * 
    + * + * string vmware_engine_network = 15 [(.google.api.resource_reference) = { ... } + * + * @return Whether the vmwareEngineNetwork field is set. + */ + public boolean hasVmwareEngineNetwork() { + return bindNetworkCase_ == 15; + } + /** + * + * + *
    +   * Network to bind is a VMware Engine network.
    +   * Specify the name in the following form for VMware engine network:
    +   * `projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}`.
    +   * `{project}` can either be a project number or a project ID.
    +   * 
    + * + * string vmware_engine_network = 15 [(.google.api.resource_reference) = { ... } + * + * @return The vmwareEngineNetwork. + */ + public java.lang.String getVmwareEngineNetwork() { + java.lang.Object ref = ""; + if (bindNetworkCase_ == 15) { + ref = bindNetwork_; + } + 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(); + if (bindNetworkCase_ == 15) { + bindNetwork_ = s; + } + return s; + } + } + /** + * + * + *
    +   * Network to bind is a VMware Engine network.
    +   * Specify the name in the following form for VMware engine network:
    +   * `projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}`.
    +   * `{project}` can either be a project number or a project ID.
    +   * 
    + * + * string vmware_engine_network = 15 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for vmwareEngineNetwork. + */ + public com.google.protobuf.ByteString getVmwareEngineNetworkBytes() { + java.lang.Object ref = ""; + if (bindNetworkCase_ == 15) { + ref = bindNetwork_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (bindNetworkCase_ == 15) { + bindNetwork_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UID_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + /** + * + * + *
    +   * Output only. System-generated unique identifier for the resource.
    +   * 
    + * + * string uid = 9 [(.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 = 9 [(.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; + } + } + + 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 (state_ + != com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, description_); + } + if (bindNetworkCase_ == 14) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, bindNetwork_); + } + if (bindNetworkCase_ == 15) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, bindNetwork_); + } + 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 (state_ + != com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, description_); + } + if (bindNetworkCase_ == 14) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, bindNetwork_); + } + if (bindNetworkCase_ == 15) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, bindNetwork_); + } + 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.ManagementDnsZoneBinding)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding other = + (com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding) 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 (state_ != other.state_) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getUid().equals(other.getUid())) return false; + if (!getBindNetworkCase().equals(other.getBindNetworkCase())) return false; + switch (bindNetworkCase_) { + case 14: + if (!getVpcNetwork().equals(other.getVpcNetwork())) return false; + break; + case 15: + if (!getVmwareEngineNetwork().equals(other.getVmwareEngineNetwork())) return false; + break; + case 0: + default: + } + 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) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + switch (bindNetworkCase_) { + case 14: + hash = (37 * hash) + VPC_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getVpcNetwork().hashCode(); + break; + case 15: + hash = (37 * hash) + VMWARE_ENGINE_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getVmwareEngineNetwork().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding 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.ManagementDnsZoneBinding parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding 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.ManagementDnsZoneBinding parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding 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.ManagementDnsZoneBinding parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding 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.ManagementDnsZoneBinding parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding 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.ManagementDnsZoneBinding 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.ManagementDnsZoneBinding 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.ManagementDnsZoneBinding 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; + } + /** + * + * + *
    +   * Represents a binding between a network and the management DNS zone.
    +   * A management DNS zone is the Cloud DNS cross-project binding zone that
    +   * VMware Engine creates for each private cloud. It contains FQDNs and
    +   * corresponding IP addresses for the private cloud's ESXi hosts and management
    +   * VM appliances like vCenter and NSX Manager.
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.ManagementDnsZoneBinding} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ManagementDnsZoneBinding) + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBindingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_ManagementDnsZoneBinding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_ManagementDnsZoneBinding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.class, + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.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; + } + state_ = 0; + description_ = ""; + uid_ = ""; + bindNetworkCase_ = 0; + bindNetwork_ = null; + 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_ManagementDnsZoneBinding_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding build() { + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding buildPartial() { + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding result = + new com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding 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.state_ = state_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.uid_ = uid_; + } + } + + private void buildPartialOneofs( + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding result) { + result.bindNetworkCase_ = bindNetworkCase_; + result.bindNetwork_ = this.bindNetwork_; + } + + @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.ManagementDnsZoneBinding) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding other) { + if (other == com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.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.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000080; + onChanged(); + } + switch (other.getBindNetworkCase()) { + case VPC_NETWORK: + { + bindNetworkCase_ = 14; + bindNetwork_ = other.bindNetwork_; + onChanged(); + break; + } + case VMWARE_ENGINE_NETWORK: + { + bindNetworkCase_ = 15; + bindNetwork_ = other.bindNetwork_; + onChanged(); + break; + } + case BINDNETWORK_NOT_SET: + { + break; + } + } + 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 64: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 64 + case 74: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 74 + case 106: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 106 + case 114: + { + java.lang.String s = input.readStringRequireUtf8(); + bindNetworkCase_ = 14; + bindNetwork_ = s; + break; + } // case 114 + case 122: + { + java.lang.String s = input.readStringRequireUtf8(); + bindNetworkCase_ = 15; + bindNetwork_ = s; + break; + } // case 122 + 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 bindNetworkCase_ = 0; + private java.lang.Object bindNetwork_; + + public BindNetworkCase getBindNetworkCase() { + return BindNetworkCase.forNumber(bindNetworkCase_); + } + + public Builder clearBindNetwork() { + bindNetworkCase_ = 0; + bindNetwork_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
    +     * Output only. The resource name of this binding.
    +     * 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +     * 
    + * + * 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 this binding.
    +     * 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +     * 
    + * + * 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 this binding.
    +     * 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +     * 
    + * + * 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 this binding.
    +     * 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +     * 
    + * + * 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 this binding.
    +     * 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +     * 
    + * + * 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 int state_ = 0; + /** + * + * + *
    +     * Output only. The state of the resource.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.State state = 8 [(.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. The state of the resource.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.State state = 8 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The state of the resource.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.State getState() { + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.State result = + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.State.forNumber(state_); + return result == null + ? com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.State.UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * Output only. The state of the resource.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.State state = 8 [(.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.ManagementDnsZoneBinding.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The state of the resource.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000008); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
    +     * User-provided description for this resource.
    +     * 
    + * + * string description = 13; + * + * @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; + } + } + /** + * + * + *
    +     * User-provided description for this resource.
    +     * 
    + * + * string description = 13; + * + * @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; + } + } + /** + * + * + *
    +     * User-provided description for this resource.
    +     * 
    + * + * string description = 13; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +     * User-provided description for this resource.
    +     * 
    + * + * string description = 13; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
    +     * User-provided description for this resource.
    +     * 
    + * + * string description = 13; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Network to bind is a standard consumer VPC.
    +     * Specify the name in the following form for consumer
    +     * VPC network: `projects/{project}/global/networks/{network_id}`.
    +     * `{project}` can either be a project number or a project ID.
    +     * 
    + * + * string vpc_network = 14 [(.google.api.resource_reference) = { ... } + * + * @return Whether the vpcNetwork field is set. + */ + @java.lang.Override + public boolean hasVpcNetwork() { + return bindNetworkCase_ == 14; + } + /** + * + * + *
    +     * Network to bind is a standard consumer VPC.
    +     * Specify the name in the following form for consumer
    +     * VPC network: `projects/{project}/global/networks/{network_id}`.
    +     * `{project}` can either be a project number or a project ID.
    +     * 
    + * + * string vpc_network = 14 [(.google.api.resource_reference) = { ... } + * + * @return The vpcNetwork. + */ + @java.lang.Override + public java.lang.String getVpcNetwork() { + java.lang.Object ref = ""; + if (bindNetworkCase_ == 14) { + ref = bindNetwork_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bindNetworkCase_ == 14) { + bindNetwork_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Network to bind is a standard consumer VPC.
    +     * Specify the name in the following form for consumer
    +     * VPC network: `projects/{project}/global/networks/{network_id}`.
    +     * `{project}` can either be a project number or a project ID.
    +     * 
    + * + * string vpc_network = 14 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for vpcNetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVpcNetworkBytes() { + java.lang.Object ref = ""; + if (bindNetworkCase_ == 14) { + ref = bindNetwork_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (bindNetworkCase_ == 14) { + bindNetwork_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Network to bind is a standard consumer VPC.
    +     * Specify the name in the following form for consumer
    +     * VPC network: `projects/{project}/global/networks/{network_id}`.
    +     * `{project}` can either be a project number or a project ID.
    +     * 
    + * + * string vpc_network = 14 [(.google.api.resource_reference) = { ... } + * + * @param value The vpcNetwork to set. + * @return This builder for chaining. + */ + public Builder setVpcNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bindNetworkCase_ = 14; + bindNetwork_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * Network to bind is a standard consumer VPC.
    +     * Specify the name in the following form for consumer
    +     * VPC network: `projects/{project}/global/networks/{network_id}`.
    +     * `{project}` can either be a project number or a project ID.
    +     * 
    + * + * string vpc_network = 14 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearVpcNetwork() { + if (bindNetworkCase_ == 14) { + bindNetworkCase_ = 0; + bindNetwork_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Network to bind is a standard consumer VPC.
    +     * Specify the name in the following form for consumer
    +     * VPC network: `projects/{project}/global/networks/{network_id}`.
    +     * `{project}` can either be a project number or a project ID.
    +     * 
    + * + * string vpc_network = 14 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for vpcNetwork to set. + * @return This builder for chaining. + */ + public Builder setVpcNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bindNetworkCase_ = 14; + bindNetwork_ = value; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Network to bind is a VMware Engine network.
    +     * Specify the name in the following form for VMware engine network:
    +     * `projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}`.
    +     * `{project}` can either be a project number or a project ID.
    +     * 
    + * + * string vmware_engine_network = 15 [(.google.api.resource_reference) = { ... } + * + * @return Whether the vmwareEngineNetwork field is set. + */ + @java.lang.Override + public boolean hasVmwareEngineNetwork() { + return bindNetworkCase_ == 15; + } + /** + * + * + *
    +     * Network to bind is a VMware Engine network.
    +     * Specify the name in the following form for VMware engine network:
    +     * `projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}`.
    +     * `{project}` can either be a project number or a project ID.
    +     * 
    + * + * string vmware_engine_network = 15 [(.google.api.resource_reference) = { ... } + * + * @return The vmwareEngineNetwork. + */ + @java.lang.Override + public java.lang.String getVmwareEngineNetwork() { + java.lang.Object ref = ""; + if (bindNetworkCase_ == 15) { + ref = bindNetwork_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bindNetworkCase_ == 15) { + bindNetwork_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Network to bind is a VMware Engine network.
    +     * Specify the name in the following form for VMware engine network:
    +     * `projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}`.
    +     * `{project}` can either be a project number or a project ID.
    +     * 
    + * + * string vmware_engine_network = 15 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for vmwareEngineNetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVmwareEngineNetworkBytes() { + java.lang.Object ref = ""; + if (bindNetworkCase_ == 15) { + ref = bindNetwork_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (bindNetworkCase_ == 15) { + bindNetwork_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Network to bind is a VMware Engine network.
    +     * Specify the name in the following form for VMware engine network:
    +     * `projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}`.
    +     * `{project}` can either be a project number or a project ID.
    +     * 
    + * + * string vmware_engine_network = 15 [(.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(); + } + bindNetworkCase_ = 15; + bindNetwork_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * Network to bind is a VMware Engine network.
    +     * Specify the name in the following form for VMware engine network:
    +     * `projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}`.
    +     * `{project}` can either be a project number or a project ID.
    +     * 
    + * + * string vmware_engine_network = 15 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearVmwareEngineNetwork() { + if (bindNetworkCase_ == 15) { + bindNetworkCase_ = 0; + bindNetwork_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Network to bind is a VMware Engine network.
    +     * Specify the name in the following form for VMware engine network:
    +     * `projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}`.
    +     * `{project}` can either be a project number or a project ID.
    +     * 
    + * + * string vmware_engine_network = 15 [(.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); + bindNetworkCase_ = 15; + bindNetwork_ = value; + onChanged(); + return this; + } + + private java.lang.Object uid_ = ""; + /** + * + * + *
    +     * Output only. System-generated unique identifier for the resource.
    +     * 
    + * + * string uid = 9 [(.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 = 9 [(.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 = 9 [(.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_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. System-generated unique identifier for the resource.
    +     * 
    + * + * string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. System-generated unique identifier for the resource.
    +     * 
    + * + * string uid = 9 [(.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_ |= 0x00000080; + 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.ManagementDnsZoneBinding) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ManagementDnsZoneBinding) + private static final com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding(); + } + + public static com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ManagementDnsZoneBinding 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.ManagementDnsZoneBinding getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ManagementDnsZoneBindingName.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ManagementDnsZoneBindingName.java new file mode 100644 index 000000000000..ee41db8d8dcf --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ManagementDnsZoneBindingName.java @@ -0,0 +1,270 @@ +/* + * 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 ManagementDnsZoneBindingName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_PRIVATE_CLOUD_MANAGEMENT_DNS_ZONE_BINDING = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/privateClouds/{private_cloud}/managementDnsZoneBindings/{management_dns_zone_binding}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String privateCloud; + private final String managementDnsZoneBinding; + + @Deprecated + protected ManagementDnsZoneBindingName() { + project = null; + location = null; + privateCloud = null; + managementDnsZoneBinding = null; + } + + private ManagementDnsZoneBindingName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + privateCloud = Preconditions.checkNotNull(builder.getPrivateCloud()); + managementDnsZoneBinding = Preconditions.checkNotNull(builder.getManagementDnsZoneBinding()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPrivateCloud() { + return privateCloud; + } + + public String getManagementDnsZoneBinding() { + return managementDnsZoneBinding; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ManagementDnsZoneBindingName of( + String project, String location, String privateCloud, String managementDnsZoneBinding) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPrivateCloud(privateCloud) + .setManagementDnsZoneBinding(managementDnsZoneBinding) + .build(); + } + + public static String format( + String project, String location, String privateCloud, String managementDnsZoneBinding) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPrivateCloud(privateCloud) + .setManagementDnsZoneBinding(managementDnsZoneBinding) + .build() + .toString(); + } + + public static ManagementDnsZoneBindingName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_PRIVATE_CLOUD_MANAGEMENT_DNS_ZONE_BINDING.validatedMatch( + formattedString, + "ManagementDnsZoneBindingName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("private_cloud"), + matchMap.get("management_dns_zone_binding")); + } + + 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 (ManagementDnsZoneBindingName 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_MANAGEMENT_DNS_ZONE_BINDING.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 (managementDnsZoneBinding != null) { + fieldMapBuilder.put("management_dns_zone_binding", managementDnsZoneBinding); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_PRIVATE_CLOUD_MANAGEMENT_DNS_ZONE_BINDING.instantiate( + "project", + project, + "location", + location, + "private_cloud", + privateCloud, + "management_dns_zone_binding", + managementDnsZoneBinding); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ManagementDnsZoneBindingName that = ((ManagementDnsZoneBindingName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.privateCloud, that.privateCloud) + && Objects.equals(this.managementDnsZoneBinding, that.managementDnsZoneBinding); + } + 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(managementDnsZoneBinding); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/privateClouds/{private_cloud}/managementDnsZoneBindings/{management_dns_zone_binding}. + */ + public static class Builder { + private String project; + private String location; + private String privateCloud; + private String managementDnsZoneBinding; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPrivateCloud() { + return privateCloud; + } + + public String getManagementDnsZoneBinding() { + return managementDnsZoneBinding; + } + + 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 setManagementDnsZoneBinding(String managementDnsZoneBinding) { + this.managementDnsZoneBinding = managementDnsZoneBinding; + return this; + } + + private Builder(ManagementDnsZoneBindingName managementDnsZoneBindingName) { + this.project = managementDnsZoneBindingName.project; + this.location = managementDnsZoneBindingName.location; + this.privateCloud = managementDnsZoneBindingName.privateCloud; + this.managementDnsZoneBinding = managementDnsZoneBindingName.managementDnsZoneBinding; + } + + public ManagementDnsZoneBindingName build() { + return new ManagementDnsZoneBindingName(this); + } + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ManagementDnsZoneBindingOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ManagementDnsZoneBindingOrBuilder.java new file mode 100644 index 000000000000..4ad4c92d2044 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ManagementDnsZoneBindingOrBuilder.java @@ -0,0 +1,307 @@ +/* + * 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 ManagementDnsZoneBindingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ManagementDnsZoneBinding) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Output only. The resource name of this binding.
    +   * 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Output only. The resource name of this binding.
    +   * 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +   * 
    + * + * 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(); + + /** + * + * + *
    +   * Output only. The state of the resource.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
    +   * Output only. The state of the resource.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.State getState(); + + /** + * + * + *
    +   * User-provided description for this resource.
    +   * 
    + * + * string description = 13; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
    +   * User-provided description for this resource.
    +   * 
    + * + * string description = 13; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
    +   * Network to bind is a standard consumer VPC.
    +   * Specify the name in the following form for consumer
    +   * VPC network: `projects/{project}/global/networks/{network_id}`.
    +   * `{project}` can either be a project number or a project ID.
    +   * 
    + * + * string vpc_network = 14 [(.google.api.resource_reference) = { ... } + * + * @return Whether the vpcNetwork field is set. + */ + boolean hasVpcNetwork(); + /** + * + * + *
    +   * Network to bind is a standard consumer VPC.
    +   * Specify the name in the following form for consumer
    +   * VPC network: `projects/{project}/global/networks/{network_id}`.
    +   * `{project}` can either be a project number or a project ID.
    +   * 
    + * + * string vpc_network = 14 [(.google.api.resource_reference) = { ... } + * + * @return The vpcNetwork. + */ + java.lang.String getVpcNetwork(); + /** + * + * + *
    +   * Network to bind is a standard consumer VPC.
    +   * Specify the name in the following form for consumer
    +   * VPC network: `projects/{project}/global/networks/{network_id}`.
    +   * `{project}` can either be a project number or a project ID.
    +   * 
    + * + * string vpc_network = 14 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for vpcNetwork. + */ + com.google.protobuf.ByteString getVpcNetworkBytes(); + + /** + * + * + *
    +   * Network to bind is a VMware Engine network.
    +   * Specify the name in the following form for VMware engine network:
    +   * `projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}`.
    +   * `{project}` can either be a project number or a project ID.
    +   * 
    + * + * string vmware_engine_network = 15 [(.google.api.resource_reference) = { ... } + * + * @return Whether the vmwareEngineNetwork field is set. + */ + boolean hasVmwareEngineNetwork(); + /** + * + * + *
    +   * Network to bind is a VMware Engine network.
    +   * Specify the name in the following form for VMware engine network:
    +   * `projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}`.
    +   * `{project}` can either be a project number or a project ID.
    +   * 
    + * + * string vmware_engine_network = 15 [(.google.api.resource_reference) = { ... } + * + * @return The vmwareEngineNetwork. + */ + java.lang.String getVmwareEngineNetwork(); + /** + * + * + *
    +   * Network to bind is a VMware Engine network.
    +   * Specify the name in the following form for VMware engine network:
    +   * `projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}`.
    +   * `{project}` can either be a project number or a project ID.
    +   * 
    + * + * string vmware_engine_network = 15 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for vmwareEngineNetwork. + */ + com.google.protobuf.ByteString getVmwareEngineNetworkBytes(); + + /** + * + * + *
    +   * Output only. System-generated unique identifier for the resource.
    +   * 
    + * + * string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + java.lang.String getUid(); + /** + * + * + *
    +   * Output only. System-generated unique identifier for the resource.
    +   * 
    + * + * string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.BindNetworkCase getBindNetworkCase(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkConfig.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkConfig.java index 8d2a064e9b0a..5e742e30a81d 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkConfig.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkConfig.java @@ -42,6 +42,7 @@ private NetworkConfig() { managementCidr_ = ""; vmwareEngineNetwork_ = ""; vmwareEngineNetworkCanonical_ = ""; + dnsServerIp_ = ""; } @java.lang.Override @@ -261,6 +262,63 @@ public int getManagementIpAddressLayoutVersion() { return managementIpAddressLayoutVersion_; } + public static final int DNS_SERVER_IP_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object dnsServerIp_ = ""; + /** + * + * + *
    +   * Output only. DNS Server IP of the Private Cloud.
    +   * All DNS queries can be forwarded to this address for name resolution of
    +   * Private Cloud's management entities like vCenter, NSX-T Manager and
    +   * ESXi hosts.
    +   * 
    + * + * string dns_server_ip = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dnsServerIp. + */ + @java.lang.Override + public java.lang.String getDnsServerIp() { + java.lang.Object ref = dnsServerIp_; + 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(); + dnsServerIp_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. DNS Server IP of the Private Cloud.
    +   * All DNS queries can be forwarded to this address for name resolution of
    +   * Private Cloud's management entities like vCenter, NSX-T Manager and
    +   * ESXi hosts.
    +   * 
    + * + * string dns_server_ip = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for dnsServerIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDnsServerIpBytes() { + java.lang.Object ref = dnsServerIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dnsServerIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -287,6 +345,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (managementIpAddressLayoutVersion_ != 0) { output.writeInt32(8, managementIpAddressLayoutVersion_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsServerIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, dnsServerIp_); + } getUnknownFields().writeTo(output); } @@ -312,6 +373,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeInt32Size( 8, managementIpAddressLayoutVersion_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsServerIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, dnsServerIp_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -334,6 +398,7 @@ public boolean equals(final java.lang.Object obj) { return false; if (getManagementIpAddressLayoutVersion() != other.getManagementIpAddressLayoutVersion()) return false; + if (!getDnsServerIp().equals(other.getDnsServerIp())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -353,6 +418,8 @@ public int hashCode() { hash = (53 * hash) + getVmwareEngineNetworkCanonical().hashCode(); hash = (37 * hash) + MANAGEMENT_IP_ADDRESS_LAYOUT_VERSION_FIELD_NUMBER; hash = (53 * hash) + getManagementIpAddressLayoutVersion(); + hash = (37 * hash) + DNS_SERVER_IP_FIELD_NUMBER; + hash = (53 * hash) + getDnsServerIp().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -497,6 +564,7 @@ public Builder clear() { vmwareEngineNetwork_ = ""; vmwareEngineNetworkCanonical_ = ""; managementIpAddressLayoutVersion_ = 0; + dnsServerIp_ = ""; return this; } @@ -545,6 +613,9 @@ private void buildPartial0(com.google.cloud.vmwareengine.v1.NetworkConfig result if (((from_bitField0_ & 0x00000008) != 0)) { result.managementIpAddressLayoutVersion_ = managementIpAddressLayoutVersion_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.dnsServerIp_ = dnsServerIp_; + } } @java.lang.Override @@ -610,6 +681,11 @@ public Builder mergeFrom(com.google.cloud.vmwareengine.v1.NetworkConfig other) { if (other.getManagementIpAddressLayoutVersion() != 0) { setManagementIpAddressLayoutVersion(other.getManagementIpAddressLayoutVersion()); } + if (!other.getDnsServerIp().isEmpty()) { + dnsServerIp_ = other.dnsServerIp_; + bitField0_ |= 0x00000010; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -660,6 +736,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 64 + case 74: + { + dnsServerIp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1117,6 +1199,127 @@ public Builder clearManagementIpAddressLayoutVersion() { return this; } + private java.lang.Object dnsServerIp_ = ""; + /** + * + * + *
    +     * Output only. DNS Server IP of the Private Cloud.
    +     * All DNS queries can be forwarded to this address for name resolution of
    +     * Private Cloud's management entities like vCenter, NSX-T Manager and
    +     * ESXi hosts.
    +     * 
    + * + * string dns_server_ip = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dnsServerIp. + */ + public java.lang.String getDnsServerIp() { + java.lang.Object ref = dnsServerIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dnsServerIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. DNS Server IP of the Private Cloud.
    +     * All DNS queries can be forwarded to this address for name resolution of
    +     * Private Cloud's management entities like vCenter, NSX-T Manager and
    +     * ESXi hosts.
    +     * 
    + * + * string dns_server_ip = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for dnsServerIp. + */ + public com.google.protobuf.ByteString getDnsServerIpBytes() { + java.lang.Object ref = dnsServerIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dnsServerIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. DNS Server IP of the Private Cloud.
    +     * All DNS queries can be forwarded to this address for name resolution of
    +     * Private Cloud's management entities like vCenter, NSX-T Manager and
    +     * ESXi hosts.
    +     * 
    + * + * string dns_server_ip = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The dnsServerIp to set. + * @return This builder for chaining. + */ + public Builder setDnsServerIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dnsServerIp_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. DNS Server IP of the Private Cloud.
    +     * All DNS queries can be forwarded to this address for name resolution of
    +     * Private Cloud's management entities like vCenter, NSX-T Manager and
    +     * ESXi hosts.
    +     * 
    + * + * string dns_server_ip = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDnsServerIp() { + dnsServerIp_ = getDefaultInstance().getDnsServerIp(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. DNS Server IP of the Private Cloud.
    +     * All DNS queries can be forwarded to this address for name resolution of
    +     * Private Cloud's management entities like vCenter, NSX-T Manager and
    +     * ESXi hosts.
    +     * 
    + * + * string dns_server_ip = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for dnsServerIp to set. + * @return This builder for chaining. + */ + public Builder setDnsServerIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dnsServerIp_ = value; + bitField0_ |= 0x00000010; + 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/NetworkConfigOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkConfigOrBuilder.java index eee24cfc7d3c..9d09ac658de4 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkConfigOrBuilder.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkConfigOrBuilder.java @@ -135,4 +135,35 @@ public interface NetworkConfigOrBuilder * @return The managementIpAddressLayoutVersion. */ int getManagementIpAddressLayoutVersion(); + + /** + * + * + *
    +   * Output only. DNS Server IP of the Private Cloud.
    +   * All DNS queries can be forwarded to this address for name resolution of
    +   * Private Cloud's management entities like vCenter, NSX-T Manager and
    +   * ESXi hosts.
    +   * 
    + * + * string dns_server_ip = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dnsServerIp. + */ + java.lang.String getDnsServerIp(); + /** + * + * + *
    +   * Output only. DNS Server IP of the Private Cloud.
    +   * All DNS queries can be forwarded to this address for name resolution of
    +   * Private Cloud's management entities like vCenter, NSX-T Manager and
    +   * ESXi hosts.
    +   * 
    + * + * string dns_server_ip = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for dnsServerIp. + */ + com.google.protobuf.ByteString getDnsServerIpBytes(); } diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkPeering.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkPeering.java new file mode 100644 index 000000000000..64d355890bf5 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkPeering.java @@ -0,0 +1,3907 @@ +/* + * 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; + +/** + * + * + *
    + * Details of a network peering.
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.NetworkPeering} + */ +public final class NetworkPeering extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.NetworkPeering) + NetworkPeeringOrBuilder { + private static final long serialVersionUID = 0L; + // Use NetworkPeering.newBuilder() to construct. + private NetworkPeering(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NetworkPeering() { + name_ = ""; + peerNetwork_ = ""; + state_ = 0; + stateDetails_ = ""; + peerNetworkType_ = 0; + uid_ = ""; + vmwareEngineNetwork_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NetworkPeering(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_NetworkPeering_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_NetworkPeering_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.NetworkPeering.class, + com.google.cloud.vmwareengine.v1.NetworkPeering.Builder.class); + } + + /** + * + * + *
    +   * Possible states of a network peering.
    +   * 
    + * + * Protobuf enum {@code google.cloud.vmwareengine.v1.NetworkPeering.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Unspecified network peering state. This is the default value.
    +     * 
    + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
    +     * The peering is not active.
    +     * 
    + * + * INACTIVE = 1; + */ + INACTIVE(1), + /** + * + * + *
    +     * The peering is active.
    +     * 
    + * + * ACTIVE = 2; + */ + ACTIVE(2), + /** + * + * + *
    +     * The peering is being created.
    +     * 
    + * + * CREATING = 3; + */ + CREATING(3), + /** + * + * + *
    +     * The peering is being deleted.
    +     * 
    + * + * DELETING = 4; + */ + DELETING(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Unspecified network peering state. This is the default value.
    +     * 
    + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +     * The peering is not active.
    +     * 
    + * + * INACTIVE = 1; + */ + public static final int INACTIVE_VALUE = 1; + /** + * + * + *
    +     * The peering is active.
    +     * 
    + * + * ACTIVE = 2; + */ + public static final int ACTIVE_VALUE = 2; + /** + * + * + *
    +     * The peering is being created.
    +     * 
    + * + * CREATING = 3; + */ + public static final int CREATING_VALUE = 3; + /** + * + * + *
    +     * The peering is being deleted.
    +     * 
    + * + * DELETING = 4; + */ + public static final int DELETING_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 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 INACTIVE; + case 2: + return ACTIVE; + case 3: + return CREATING; + case 4: + return DELETING; + 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.NetworkPeering.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.NetworkPeering.State) + } + + /** + * + * + *
    +   * Type or purpose of the network peering connection.
    +   * 
    + * + * Protobuf enum {@code google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType} + */ + public enum PeerNetworkType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Unspecified
    +     * 
    + * + * PEER_NETWORK_TYPE_UNSPECIFIED = 0; + */ + PEER_NETWORK_TYPE_UNSPECIFIED(0), + /** + * + * + *
    +     * Peering connection used for connecting to another VPC network established
    +     * by the same user. For example, a peering connection to another VPC
    +     * network in the same project or to an on-premises network.
    +     * 
    + * + * STANDARD = 1; + */ + STANDARD(1), + /** + * + * + *
    +     * Peering connection used for connecting to another VMware Engine network.
    +     * 
    + * + * VMWARE_ENGINE_NETWORK = 2; + */ + VMWARE_ENGINE_NETWORK(2), + /** + * + * + *
    +     * Peering connection used for establishing [private services
    +     * access](https://cloud.google.com/vpc/docs/private-services-access).
    +     * 
    + * + * PRIVATE_SERVICES_ACCESS = 3; + */ + PRIVATE_SERVICES_ACCESS(3), + /** + * + * + *
    +     * Peering connection used for connecting to NetApp Cloud Volumes.
    +     * 
    + * + * NETAPP_CLOUD_VOLUMES = 4; + */ + NETAPP_CLOUD_VOLUMES(4), + /** + * + * + *
    +     * Peering connection used for connecting to third-party services. Most
    +     * third-party services require manual setup of reverse peering on the VPC
    +     * network associated with the third-party service.
    +     * 
    + * + * THIRD_PARTY_SERVICE = 5; + */ + THIRD_PARTY_SERVICE(5), + /** + * + * + *
    +     * Peering connection used for connecting to Dell PowerScale Filers
    +     * 
    + * + * DELL_POWERSCALE = 6; + */ + DELL_POWERSCALE(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Unspecified
    +     * 
    + * + * PEER_NETWORK_TYPE_UNSPECIFIED = 0; + */ + public static final int PEER_NETWORK_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +     * Peering connection used for connecting to another VPC network established
    +     * by the same user. For example, a peering connection to another VPC
    +     * network in the same project or to an on-premises network.
    +     * 
    + * + * STANDARD = 1; + */ + public static final int STANDARD_VALUE = 1; + /** + * + * + *
    +     * Peering connection used for connecting to another VMware Engine network.
    +     * 
    + * + * VMWARE_ENGINE_NETWORK = 2; + */ + public static final int VMWARE_ENGINE_NETWORK_VALUE = 2; + /** + * + * + *
    +     * Peering connection used for establishing [private services
    +     * access](https://cloud.google.com/vpc/docs/private-services-access).
    +     * 
    + * + * PRIVATE_SERVICES_ACCESS = 3; + */ + public static final int PRIVATE_SERVICES_ACCESS_VALUE = 3; + /** + * + * + *
    +     * Peering connection used for connecting to NetApp Cloud Volumes.
    +     * 
    + * + * NETAPP_CLOUD_VOLUMES = 4; + */ + public static final int NETAPP_CLOUD_VOLUMES_VALUE = 4; + /** + * + * + *
    +     * Peering connection used for connecting to third-party services. Most
    +     * third-party services require manual setup of reverse peering on the VPC
    +     * network associated with the third-party service.
    +     * 
    + * + * THIRD_PARTY_SERVICE = 5; + */ + public static final int THIRD_PARTY_SERVICE_VALUE = 5; + /** + * + * + *
    +     * Peering connection used for connecting to Dell PowerScale Filers
    +     * 
    + * + * DELL_POWERSCALE = 6; + */ + public static final int DELL_POWERSCALE_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 PeerNetworkType 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 PeerNetworkType forNumber(int value) { + switch (value) { + case 0: + return PEER_NETWORK_TYPE_UNSPECIFIED; + case 1: + return STANDARD; + case 2: + return VMWARE_ENGINE_NETWORK; + case 3: + return PRIVATE_SERVICES_ACCESS; + case 4: + return NETAPP_CLOUD_VOLUMES; + case 5: + return THIRD_PARTY_SERVICE; + case 6: + return DELL_POWERSCALE; + 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 PeerNetworkType findValueByNumber(int number) { + return PeerNetworkType.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.NetworkPeering.getDescriptor().getEnumTypes().get(1); + } + + private static final PeerNetworkType[] VALUES = values(); + + public static PeerNetworkType 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 PeerNetworkType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Output only. The resource name of the network peering. NetworkPeering is a
    +   * global resource and location can only be global. Resource names are
    +   * scheme-less URIs that follow the conventions in
    +   * https://cloud.google.com/apis/design/resource_names.
    +   * For example:
    +   * `projects/my-project/locations/global/networkPeerings/my-peering`
    +   * 
    + * + * 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 network peering. NetworkPeering is a
    +   * global resource and location can only be global. Resource names are
    +   * scheme-less URIs that follow the conventions in
    +   * https://cloud.google.com/apis/design/resource_names.
    +   * For example:
    +   * `projects/my-project/locations/global/networkPeerings/my-peering`
    +   * 
    + * + * 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 PEER_NETWORK_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object peerNetwork_ = ""; + /** + * + * + *
    +   * Required. The relative resource name of the network to peer with
    +   * a standard VMware Engine network. The provided network can be a
    +   * consumer VPC network or another standard VMware Engine network. If the
    +   * `peer_network_type` is VMWARE_ENGINE_NETWORK, specify the name in the form:
    +   * `projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}`.
    +   * Otherwise specify the name in the form:
    +   * `projects/{project}/global/networks/{network_id}`, where
    +   * `{project}` can either be a project number or a project ID.
    +   * 
    + * + * string peer_network = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The peerNetwork. + */ + @java.lang.Override + public java.lang.String getPeerNetwork() { + java.lang.Object ref = peerNetwork_; + 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(); + peerNetwork_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The relative resource name of the network to peer with
    +   * a standard VMware Engine network. The provided network can be a
    +   * consumer VPC network or another standard VMware Engine network. If the
    +   * `peer_network_type` is VMWARE_ENGINE_NETWORK, specify the name in the form:
    +   * `projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}`.
    +   * Otherwise specify the name in the form:
    +   * `projects/{project}/global/networks/{network_id}`, where
    +   * `{project}` can either be a project number or a project ID.
    +   * 
    + * + * string peer_network = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for peerNetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPeerNetworkBytes() { + java.lang.Object ref = peerNetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peerNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPORT_CUSTOM_ROUTES_FIELD_NUMBER = 8; + private boolean exportCustomRoutes_ = false; + /** + * + * + *
    +   * Optional. True if custom routes are exported to the peered network;
    +   * false otherwise. The default value is true.
    +   * 
    + * + * optional bool export_custom_routes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the exportCustomRoutes field is set. + */ + @java.lang.Override + public boolean hasExportCustomRoutes() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * Optional. True if custom routes are exported to the peered network;
    +   * false otherwise. The default value is true.
    +   * 
    + * + * optional bool export_custom_routes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The exportCustomRoutes. + */ + @java.lang.Override + public boolean getExportCustomRoutes() { + return exportCustomRoutes_; + } + + public static final int IMPORT_CUSTOM_ROUTES_FIELD_NUMBER = 9; + private boolean importCustomRoutes_ = false; + /** + * + * + *
    +   * Optional. True if custom routes are imported from the peered network;
    +   * false otherwise. The default value is true.
    +   * 
    + * + * optional bool import_custom_routes = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the importCustomRoutes field is set. + */ + @java.lang.Override + public boolean hasImportCustomRoutes() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +   * Optional. True if custom routes are imported from the peered network;
    +   * false otherwise. The default value is true.
    +   * 
    + * + * optional bool import_custom_routes = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The importCustomRoutes. + */ + @java.lang.Override + public boolean getImportCustomRoutes() { + return importCustomRoutes_; + } + + public static final int EXCHANGE_SUBNET_ROUTES_FIELD_NUMBER = 10; + private boolean exchangeSubnetRoutes_ = false; + /** + * + * + *
    +   * Optional. True if full mesh connectivity is created and managed
    +   * automatically between peered networks; false otherwise. Currently this
    +   * field is always true because Google Compute Engine automatically creates
    +   * and manages subnetwork routes between two VPC networks when peering state
    +   * is 'ACTIVE'.
    +   * 
    + * + * optional bool exchange_subnet_routes = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the exchangeSubnetRoutes field is set. + */ + @java.lang.Override + public boolean hasExchangeSubnetRoutes() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +   * Optional. True if full mesh connectivity is created and managed
    +   * automatically between peered networks; false otherwise. Currently this
    +   * field is always true because Google Compute Engine automatically creates
    +   * and manages subnetwork routes between two VPC networks when peering state
    +   * is 'ACTIVE'.
    +   * 
    + * + * optional bool exchange_subnet_routes = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exchangeSubnetRoutes. + */ + @java.lang.Override + public boolean getExchangeSubnetRoutes() { + return exchangeSubnetRoutes_; + } + + public static final int EXPORT_CUSTOM_ROUTES_WITH_PUBLIC_IP_FIELD_NUMBER = 11; + private boolean exportCustomRoutesWithPublicIp_ = false; + /** + * + * + *
    +   * Optional. True if all subnet routes with a public IP address range are
    +   * exported; false otherwise. The default value is true. IPv4 special-use
    +   * ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always
    +   * exported to peers and are not controlled by this field.
    +   * 
    + * + * + * optional bool export_custom_routes_with_public_ip = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the exportCustomRoutesWithPublicIp field is set. + */ + @java.lang.Override + public boolean hasExportCustomRoutesWithPublicIp() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
    +   * Optional. True if all subnet routes with a public IP address range are
    +   * exported; false otherwise. The default value is true. IPv4 special-use
    +   * ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always
    +   * exported to peers and are not controlled by this field.
    +   * 
    + * + * + * optional bool export_custom_routes_with_public_ip = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exportCustomRoutesWithPublicIp. + */ + @java.lang.Override + public boolean getExportCustomRoutesWithPublicIp() { + return exportCustomRoutesWithPublicIp_; + } + + public static final int IMPORT_CUSTOM_ROUTES_WITH_PUBLIC_IP_FIELD_NUMBER = 12; + private boolean importCustomRoutesWithPublicIp_ = false; + /** + * + * + *
    +   * Optional. True if all subnet routes with public IP address range are
    +   * imported; false otherwise. The default value is true. IPv4 special-use
    +   * ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always
    +   * imported to peers and are not controlled by this field.
    +   * 
    + * + * + * optional bool import_custom_routes_with_public_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the importCustomRoutesWithPublicIp field is set. + */ + @java.lang.Override + public boolean hasImportCustomRoutesWithPublicIp() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
    +   * Optional. True if all subnet routes with public IP address range are
    +   * imported; false otherwise. The default value is true. IPv4 special-use
    +   * ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always
    +   * imported to peers and are not controlled by this field.
    +   * 
    + * + * + * optional bool import_custom_routes_with_public_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The importCustomRoutesWithPublicIp. + */ + @java.lang.Override + public boolean getImportCustomRoutesWithPublicIp() { + return importCustomRoutesWithPublicIp_; + } + + public static final int STATE_FIELD_NUMBER = 13; + private int state_ = 0; + /** + * + * + *
    +   * Output only. State of the network peering. This field
    +   * has a value of 'ACTIVE' when there's a matching configuration in the peer
    +   * network. New values may be added to this enum when appropriate.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering.State state = 13 [(.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 network peering. This field
    +   * has a value of 'ACTIVE' when there's a matching configuration in the peer
    +   * network. New values may be added to this enum when appropriate.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkPeering.State getState() { + com.google.cloud.vmwareengine.v1.NetworkPeering.State result = + com.google.cloud.vmwareengine.v1.NetworkPeering.State.forNumber(state_); + return result == null + ? com.google.cloud.vmwareengine.v1.NetworkPeering.State.UNRECOGNIZED + : result; + } + + public static final int STATE_DETAILS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object stateDetails_ = ""; + /** + * + * + *
    +   * Output only. Output Only. Details about the current state of the network
    +   * peering.
    +   * 
    + * + * string state_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The stateDetails. + */ + @java.lang.Override + public java.lang.String getStateDetails() { + java.lang.Object ref = stateDetails_; + 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(); + stateDetails_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. Output Only. Details about the current state of the network
    +   * peering.
    +   * 
    + * + * string state_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for stateDetails. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStateDetailsBytes() { + java.lang.Object ref = stateDetails_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + stateDetails_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PEER_MTU_FIELD_NUMBER = 14; + private int peerMtu_ = 0; + /** + * + * + *
    +   * Optional. Maximum transmission unit (MTU) in bytes.
    +   * The default value is `1500`. If a value of `0` is provided for this field,
    +   * VMware Engine uses the default value instead.
    +   * 
    + * + * int32 peer_mtu = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The peerMtu. + */ + @java.lang.Override + public int getPeerMtu() { + return peerMtu_; + } + + public static final int PEER_NETWORK_TYPE_FIELD_NUMBER = 16; + private int peerNetworkType_ = 0; + /** + * + * + *
    +   * Required. The type of the network to peer with the VMware Engine network.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType peer_network_type = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for peerNetworkType. + */ + @java.lang.Override + public int getPeerNetworkTypeValue() { + return peerNetworkType_; + } + /** + * + * + *
    +   * Required. The type of the network to peer with the VMware Engine network.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType peer_network_type = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The peerNetworkType. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType getPeerNetworkType() { + com.google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType result = + com.google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType.forNumber(peerNetworkType_); + return result == null + ? com.google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType.UNRECOGNIZED + : result; + } + + public static final int UID_FIELD_NUMBER = 17; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + /** + * + * + *
    +   * Output only. System-generated unique identifier for the resource.
    +   * 
    + * + * string uid = 17 [(.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 = 17 [(.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 VMWARE_ENGINE_NETWORK_FIELD_NUMBER = 20; + + @SuppressWarnings("serial") + private volatile java.lang.Object vmwareEngineNetwork_ = ""; + /** + * + * + *
    +   * Required. The relative resource name of the VMware Engine network.
    +   * Specify the name in the following form:
    +   * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
    +   * where `{project}` can either be a project number or a project ID.
    +   * 
    + * + * + * string vmware_engine_network = 20 [(.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 the VMware Engine network.
    +   * Specify the name in the following form:
    +   * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
    +   * where `{project}` can either be a project number or a project ID.
    +   * 
    + * + * + * string vmware_engine_network = 20 [(.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 DESCRIPTION_FIELD_NUMBER = 21; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * + * + *
    +   * Optional. User-provided description for this network peering.
    +   * 
    + * + * string description = 21 [(.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 network peering.
    +   * 
    + * + * string description = 21 [(.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; + } + } + + 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(peerNetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, peerNetwork_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateDetails_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, stateDetails_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(8, exportCustomRoutes_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(9, importCustomRoutes_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeBool(10, exchangeSubnetRoutes_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeBool(11, exportCustomRoutesWithPublicIp_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeBool(12, importCustomRoutesWithPublicIp_); + } + if (state_ + != com.google.cloud.vmwareengine.v1.NetworkPeering.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(13, state_); + } + if (peerMtu_ != 0) { + output.writeInt32(14, peerMtu_); + } + if (peerNetworkType_ + != com.google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType + .PEER_NETWORK_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(16, peerNetworkType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 17, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmwareEngineNetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 20, vmwareEngineNetwork_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 21, description_); + } + 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(peerNetwork_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, peerNetwork_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateDetails_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, stateDetails_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, exportCustomRoutes_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, importCustomRoutes_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, exchangeSubnetRoutes_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 11, exportCustomRoutesWithPublicIp_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 12, importCustomRoutesWithPublicIp_); + } + if (state_ + != com.google.cloud.vmwareengine.v1.NetworkPeering.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, state_); + } + if (peerMtu_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(14, peerMtu_); + } + if (peerNetworkType_ + != com.google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType + .PEER_NETWORK_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(16, peerNetworkType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmwareEngineNetwork_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, vmwareEngineNetwork_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, description_); + } + 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.NetworkPeering)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.NetworkPeering other = + (com.google.cloud.vmwareengine.v1.NetworkPeering) 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 (!getPeerNetwork().equals(other.getPeerNetwork())) return false; + if (hasExportCustomRoutes() != other.hasExportCustomRoutes()) return false; + if (hasExportCustomRoutes()) { + if (getExportCustomRoutes() != other.getExportCustomRoutes()) return false; + } + if (hasImportCustomRoutes() != other.hasImportCustomRoutes()) return false; + if (hasImportCustomRoutes()) { + if (getImportCustomRoutes() != other.getImportCustomRoutes()) return false; + } + if (hasExchangeSubnetRoutes() != other.hasExchangeSubnetRoutes()) return false; + if (hasExchangeSubnetRoutes()) { + if (getExchangeSubnetRoutes() != other.getExchangeSubnetRoutes()) return false; + } + if (hasExportCustomRoutesWithPublicIp() != other.hasExportCustomRoutesWithPublicIp()) + return false; + if (hasExportCustomRoutesWithPublicIp()) { + if (getExportCustomRoutesWithPublicIp() != other.getExportCustomRoutesWithPublicIp()) + return false; + } + if (hasImportCustomRoutesWithPublicIp() != other.hasImportCustomRoutesWithPublicIp()) + return false; + if (hasImportCustomRoutesWithPublicIp()) { + if (getImportCustomRoutesWithPublicIp() != other.getImportCustomRoutesWithPublicIp()) + return false; + } + if (state_ != other.state_) return false; + if (!getStateDetails().equals(other.getStateDetails())) return false; + if (getPeerMtu() != other.getPeerMtu()) return false; + if (peerNetworkType_ != other.peerNetworkType_) return false; + if (!getUid().equals(other.getUid())) return false; + if (!getVmwareEngineNetwork().equals(other.getVmwareEngineNetwork())) return false; + if (!getDescription().equals(other.getDescription())) 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) + PEER_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getPeerNetwork().hashCode(); + if (hasExportCustomRoutes()) { + hash = (37 * hash) + EXPORT_CUSTOM_ROUTES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExportCustomRoutes()); + } + if (hasImportCustomRoutes()) { + hash = (37 * hash) + IMPORT_CUSTOM_ROUTES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getImportCustomRoutes()); + } + if (hasExchangeSubnetRoutes()) { + hash = (37 * hash) + EXCHANGE_SUBNET_ROUTES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExchangeSubnetRoutes()); + } + if (hasExportCustomRoutesWithPublicIp()) { + hash = (37 * hash) + EXPORT_CUSTOM_ROUTES_WITH_PUBLIC_IP_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getExportCustomRoutesWithPublicIp()); + } + if (hasImportCustomRoutesWithPublicIp()) { + hash = (37 * hash) + IMPORT_CUSTOM_ROUTES_WITH_PUBLIC_IP_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getImportCustomRoutesWithPublicIp()); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + STATE_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getStateDetails().hashCode(); + hash = (37 * hash) + PEER_MTU_FIELD_NUMBER; + hash = (53 * hash) + getPeerMtu(); + hash = (37 * hash) + PEER_NETWORK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + peerNetworkType_; + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (37 * hash) + VMWARE_ENGINE_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getVmwareEngineNetwork().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.NetworkPeering parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.NetworkPeering 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.NetworkPeering parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.NetworkPeering 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.NetworkPeering parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.NetworkPeering 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.NetworkPeering parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.NetworkPeering 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.NetworkPeering parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.NetworkPeering 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.NetworkPeering 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.NetworkPeering 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.NetworkPeering 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; + } + /** + * + * + *
    +   * Details of a network peering.
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.NetworkPeering} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.NetworkPeering) + com.google.cloud.vmwareengine.v1.NetworkPeeringOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_NetworkPeering_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_NetworkPeering_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.NetworkPeering.class, + com.google.cloud.vmwareengine.v1.NetworkPeering.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.NetworkPeering.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; + } + peerNetwork_ = ""; + exportCustomRoutes_ = false; + importCustomRoutes_ = false; + exchangeSubnetRoutes_ = false; + exportCustomRoutesWithPublicIp_ = false; + importCustomRoutesWithPublicIp_ = false; + state_ = 0; + stateDetails_ = ""; + peerMtu_ = 0; + peerNetworkType_ = 0; + uid_ = ""; + vmwareEngineNetwork_ = ""; + description_ = ""; + 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_NetworkPeering_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkPeering getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.NetworkPeering.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkPeering build() { + com.google.cloud.vmwareengine.v1.NetworkPeering result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkPeering buildPartial() { + com.google.cloud.vmwareengine.v1.NetworkPeering result = + new com.google.cloud.vmwareengine.v1.NetworkPeering(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmwareengine.v1.NetworkPeering 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.peerNetwork_ = peerNetwork_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.exportCustomRoutes_ = exportCustomRoutes_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.importCustomRoutes_ = importCustomRoutes_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.exchangeSubnetRoutes_ = exchangeSubnetRoutes_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.exportCustomRoutesWithPublicIp_ = exportCustomRoutesWithPublicIp_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.importCustomRoutesWithPublicIp_ = importCustomRoutesWithPublicIp_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.stateDetails_ = stateDetails_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.peerMtu_ = peerMtu_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.peerNetworkType_ = peerNetworkType_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.uid_ = uid_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.vmwareEngineNetwork_ = vmwareEngineNetwork_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.description_ = description_; + } + result.bitField0_ |= to_bitField0_; + } + + @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.NetworkPeering) { + return mergeFrom((com.google.cloud.vmwareengine.v1.NetworkPeering) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.NetworkPeering other) { + if (other == com.google.cloud.vmwareengine.v1.NetworkPeering.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.getPeerNetwork().isEmpty()) { + peerNetwork_ = other.peerNetwork_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasExportCustomRoutes()) { + setExportCustomRoutes(other.getExportCustomRoutes()); + } + if (other.hasImportCustomRoutes()) { + setImportCustomRoutes(other.getImportCustomRoutes()); + } + if (other.hasExchangeSubnetRoutes()) { + setExchangeSubnetRoutes(other.getExchangeSubnetRoutes()); + } + if (other.hasExportCustomRoutesWithPublicIp()) { + setExportCustomRoutesWithPublicIp(other.getExportCustomRoutesWithPublicIp()); + } + if (other.hasImportCustomRoutesWithPublicIp()) { + setImportCustomRoutesWithPublicIp(other.getImportCustomRoutesWithPublicIp()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getStateDetails().isEmpty()) { + stateDetails_ = other.stateDetails_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (other.getPeerMtu() != 0) { + setPeerMtu(other.getPeerMtu()); + } + if (other.peerNetworkType_ != 0) { + setPeerNetworkTypeValue(other.getPeerNetworkTypeValue()); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00002000; + onChanged(); + } + if (!other.getVmwareEngineNetwork().isEmpty()) { + vmwareEngineNetwork_ = other.vmwareEngineNetwork_; + bitField0_ |= 0x00004000; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00008000; + 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: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: + { + peerNetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 58: + { + stateDetails_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 58 + case 64: + { + exportCustomRoutes_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 64 + case 72: + { + importCustomRoutes_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 72 + case 80: + { + exchangeSubnetRoutes_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 80 + case 88: + { + exportCustomRoutesWithPublicIp_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 88 + case 96: + { + importCustomRoutesWithPublicIp_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 96 + case 104: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 104 + case 112: + { + peerMtu_ = input.readInt32(); + bitField0_ |= 0x00000800; + break; + } // case 112 + case 128: + { + peerNetworkType_ = input.readEnum(); + bitField0_ |= 0x00001000; + break; + } // case 128 + case 138: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00002000; + break; + } // case 138 + case 162: + { + vmwareEngineNetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00004000; + break; + } // case 162 + case 170: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00008000; + break; + } // case 170 + 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 network peering. NetworkPeering is a
    +     * global resource and location can only be global. Resource names are
    +     * scheme-less URIs that follow the conventions in
    +     * https://cloud.google.com/apis/design/resource_names.
    +     * For example:
    +     * `projects/my-project/locations/global/networkPeerings/my-peering`
    +     * 
    + * + * 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 network peering. NetworkPeering is a
    +     * global resource and location can only be global. Resource names are
    +     * scheme-less URIs that follow the conventions in
    +     * https://cloud.google.com/apis/design/resource_names.
    +     * For example:
    +     * `projects/my-project/locations/global/networkPeerings/my-peering`
    +     * 
    + * + * 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 network peering. NetworkPeering is a
    +     * global resource and location can only be global. Resource names are
    +     * scheme-less URIs that follow the conventions in
    +     * https://cloud.google.com/apis/design/resource_names.
    +     * For example:
    +     * `projects/my-project/locations/global/networkPeerings/my-peering`
    +     * 
    + * + * 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 network peering. NetworkPeering is a
    +     * global resource and location can only be global. Resource names are
    +     * scheme-less URIs that follow the conventions in
    +     * https://cloud.google.com/apis/design/resource_names.
    +     * For example:
    +     * `projects/my-project/locations/global/networkPeerings/my-peering`
    +     * 
    + * + * 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 network peering. NetworkPeering is a
    +     * global resource and location can only be global. Resource names are
    +     * scheme-less URIs that follow the conventions in
    +     * https://cloud.google.com/apis/design/resource_names.
    +     * For example:
    +     * `projects/my-project/locations/global/networkPeerings/my-peering`
    +     * 
    + * + * 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 peerNetwork_ = ""; + /** + * + * + *
    +     * Required. The relative resource name of the network to peer with
    +     * a standard VMware Engine network. The provided network can be a
    +     * consumer VPC network or another standard VMware Engine network. If the
    +     * `peer_network_type` is VMWARE_ENGINE_NETWORK, specify the name in the form:
    +     * `projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}`.
    +     * Otherwise specify the name in the form:
    +     * `projects/{project}/global/networks/{network_id}`, where
    +     * `{project}` can either be a project number or a project ID.
    +     * 
    + * + * string peer_network = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The peerNetwork. + */ + public java.lang.String getPeerNetwork() { + java.lang.Object ref = peerNetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + peerNetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The relative resource name of the network to peer with
    +     * a standard VMware Engine network. The provided network can be a
    +     * consumer VPC network or another standard VMware Engine network. If the
    +     * `peer_network_type` is VMWARE_ENGINE_NETWORK, specify the name in the form:
    +     * `projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}`.
    +     * Otherwise specify the name in the form:
    +     * `projects/{project}/global/networks/{network_id}`, where
    +     * `{project}` can either be a project number or a project ID.
    +     * 
    + * + * string peer_network = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for peerNetwork. + */ + public com.google.protobuf.ByteString getPeerNetworkBytes() { + java.lang.Object ref = peerNetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peerNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The relative resource name of the network to peer with
    +     * a standard VMware Engine network. The provided network can be a
    +     * consumer VPC network or another standard VMware Engine network. If the
    +     * `peer_network_type` is VMWARE_ENGINE_NETWORK, specify the name in the form:
    +     * `projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}`.
    +     * Otherwise specify the name in the form:
    +     * `projects/{project}/global/networks/{network_id}`, where
    +     * `{project}` can either be a project number or a project ID.
    +     * 
    + * + * string peer_network = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The peerNetwork to set. + * @return This builder for chaining. + */ + public Builder setPeerNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + peerNetwork_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The relative resource name of the network to peer with
    +     * a standard VMware Engine network. The provided network can be a
    +     * consumer VPC network or another standard VMware Engine network. If the
    +     * `peer_network_type` is VMWARE_ENGINE_NETWORK, specify the name in the form:
    +     * `projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}`.
    +     * Otherwise specify the name in the form:
    +     * `projects/{project}/global/networks/{network_id}`, where
    +     * `{project}` can either be a project number or a project ID.
    +     * 
    + * + * string peer_network = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPeerNetwork() { + peerNetwork_ = getDefaultInstance().getPeerNetwork(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The relative resource name of the network to peer with
    +     * a standard VMware Engine network. The provided network can be a
    +     * consumer VPC network or another standard VMware Engine network. If the
    +     * `peer_network_type` is VMWARE_ENGINE_NETWORK, specify the name in the form:
    +     * `projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}`.
    +     * Otherwise specify the name in the form:
    +     * `projects/{project}/global/networks/{network_id}`, where
    +     * `{project}` can either be a project number or a project ID.
    +     * 
    + * + * string peer_network = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for peerNetwork to set. + * @return This builder for chaining. + */ + public Builder setPeerNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + peerNetwork_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private boolean exportCustomRoutes_; + /** + * + * + *
    +     * Optional. True if custom routes are exported to the peered network;
    +     * false otherwise. The default value is true.
    +     * 
    + * + * optional bool export_custom_routes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the exportCustomRoutes field is set. + */ + @java.lang.Override + public boolean hasExportCustomRoutes() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
    +     * Optional. True if custom routes are exported to the peered network;
    +     * false otherwise. The default value is true.
    +     * 
    + * + * optional bool export_custom_routes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exportCustomRoutes. + */ + @java.lang.Override + public boolean getExportCustomRoutes() { + return exportCustomRoutes_; + } + /** + * + * + *
    +     * Optional. True if custom routes are exported to the peered network;
    +     * false otherwise. The default value is true.
    +     * 
    + * + * optional bool export_custom_routes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The exportCustomRoutes to set. + * @return This builder for chaining. + */ + public Builder setExportCustomRoutes(boolean value) { + + exportCustomRoutes_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. True if custom routes are exported to the peered network;
    +     * false otherwise. The default value is true.
    +     * 
    + * + * optional bool export_custom_routes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearExportCustomRoutes() { + bitField0_ = (bitField0_ & ~0x00000010); + exportCustomRoutes_ = false; + onChanged(); + return this; + } + + private boolean importCustomRoutes_; + /** + * + * + *
    +     * Optional. True if custom routes are imported from the peered network;
    +     * false otherwise. The default value is true.
    +     * 
    + * + * optional bool import_custom_routes = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the importCustomRoutes field is set. + */ + @java.lang.Override + public boolean hasImportCustomRoutes() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
    +     * Optional. True if custom routes are imported from the peered network;
    +     * false otherwise. The default value is true.
    +     * 
    + * + * optional bool import_custom_routes = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The importCustomRoutes. + */ + @java.lang.Override + public boolean getImportCustomRoutes() { + return importCustomRoutes_; + } + /** + * + * + *
    +     * Optional. True if custom routes are imported from the peered network;
    +     * false otherwise. The default value is true.
    +     * 
    + * + * optional bool import_custom_routes = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The importCustomRoutes to set. + * @return This builder for chaining. + */ + public Builder setImportCustomRoutes(boolean value) { + + importCustomRoutes_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. True if custom routes are imported from the peered network;
    +     * false otherwise. The default value is true.
    +     * 
    + * + * optional bool import_custom_routes = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearImportCustomRoutes() { + bitField0_ = (bitField0_ & ~0x00000020); + importCustomRoutes_ = false; + onChanged(); + return this; + } + + private boolean exchangeSubnetRoutes_; + /** + * + * + *
    +     * Optional. True if full mesh connectivity is created and managed
    +     * automatically between peered networks; false otherwise. Currently this
    +     * field is always true because Google Compute Engine automatically creates
    +     * and manages subnetwork routes between two VPC networks when peering state
    +     * is 'ACTIVE'.
    +     * 
    + * + * optional bool exchange_subnet_routes = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the exchangeSubnetRoutes field is set. + */ + @java.lang.Override + public boolean hasExchangeSubnetRoutes() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
    +     * Optional. True if full mesh connectivity is created and managed
    +     * automatically between peered networks; false otherwise. Currently this
    +     * field is always true because Google Compute Engine automatically creates
    +     * and manages subnetwork routes between two VPC networks when peering state
    +     * is 'ACTIVE'.
    +     * 
    + * + * optional bool exchange_subnet_routes = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exchangeSubnetRoutes. + */ + @java.lang.Override + public boolean getExchangeSubnetRoutes() { + return exchangeSubnetRoutes_; + } + /** + * + * + *
    +     * Optional. True if full mesh connectivity is created and managed
    +     * automatically between peered networks; false otherwise. Currently this
    +     * field is always true because Google Compute Engine automatically creates
    +     * and manages subnetwork routes between two VPC networks when peering state
    +     * is 'ACTIVE'.
    +     * 
    + * + * optional bool exchange_subnet_routes = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The exchangeSubnetRoutes to set. + * @return This builder for chaining. + */ + public Builder setExchangeSubnetRoutes(boolean value) { + + exchangeSubnetRoutes_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. True if full mesh connectivity is created and managed
    +     * automatically between peered networks; false otherwise. Currently this
    +     * field is always true because Google Compute Engine automatically creates
    +     * and manages subnetwork routes between two VPC networks when peering state
    +     * is 'ACTIVE'.
    +     * 
    + * + * optional bool exchange_subnet_routes = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearExchangeSubnetRoutes() { + bitField0_ = (bitField0_ & ~0x00000040); + exchangeSubnetRoutes_ = false; + onChanged(); + return this; + } + + private boolean exportCustomRoutesWithPublicIp_; + /** + * + * + *
    +     * Optional. True if all subnet routes with a public IP address range are
    +     * exported; false otherwise. The default value is true. IPv4 special-use
    +     * ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always
    +     * exported to peers and are not controlled by this field.
    +     * 
    + * + * + * optional bool export_custom_routes_with_public_ip = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the exportCustomRoutesWithPublicIp field is set. + */ + @java.lang.Override + public boolean hasExportCustomRoutesWithPublicIp() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
    +     * Optional. True if all subnet routes with a public IP address range are
    +     * exported; false otherwise. The default value is true. IPv4 special-use
    +     * ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always
    +     * exported to peers and are not controlled by this field.
    +     * 
    + * + * + * optional bool export_custom_routes_with_public_ip = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exportCustomRoutesWithPublicIp. + */ + @java.lang.Override + public boolean getExportCustomRoutesWithPublicIp() { + return exportCustomRoutesWithPublicIp_; + } + /** + * + * + *
    +     * Optional. True if all subnet routes with a public IP address range are
    +     * exported; false otherwise. The default value is true. IPv4 special-use
    +     * ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always
    +     * exported to peers and are not controlled by this field.
    +     * 
    + * + * + * optional bool export_custom_routes_with_public_ip = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The exportCustomRoutesWithPublicIp to set. + * @return This builder for chaining. + */ + public Builder setExportCustomRoutesWithPublicIp(boolean value) { + + exportCustomRoutesWithPublicIp_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. True if all subnet routes with a public IP address range are
    +     * exported; false otherwise. The default value is true. IPv4 special-use
    +     * ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always
    +     * exported to peers and are not controlled by this field.
    +     * 
    + * + * + * optional bool export_custom_routes_with_public_ip = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearExportCustomRoutesWithPublicIp() { + bitField0_ = (bitField0_ & ~0x00000080); + exportCustomRoutesWithPublicIp_ = false; + onChanged(); + return this; + } + + private boolean importCustomRoutesWithPublicIp_; + /** + * + * + *
    +     * Optional. True if all subnet routes with public IP address range are
    +     * imported; false otherwise. The default value is true. IPv4 special-use
    +     * ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always
    +     * imported to peers and are not controlled by this field.
    +     * 
    + * + * + * optional bool import_custom_routes_with_public_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the importCustomRoutesWithPublicIp field is set. + */ + @java.lang.Override + public boolean hasImportCustomRoutesWithPublicIp() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
    +     * Optional. True if all subnet routes with public IP address range are
    +     * imported; false otherwise. The default value is true. IPv4 special-use
    +     * ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always
    +     * imported to peers and are not controlled by this field.
    +     * 
    + * + * + * optional bool import_custom_routes_with_public_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The importCustomRoutesWithPublicIp. + */ + @java.lang.Override + public boolean getImportCustomRoutesWithPublicIp() { + return importCustomRoutesWithPublicIp_; + } + /** + * + * + *
    +     * Optional. True if all subnet routes with public IP address range are
    +     * imported; false otherwise. The default value is true. IPv4 special-use
    +     * ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always
    +     * imported to peers and are not controlled by this field.
    +     * 
    + * + * + * optional bool import_custom_routes_with_public_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The importCustomRoutesWithPublicIp to set. + * @return This builder for chaining. + */ + public Builder setImportCustomRoutesWithPublicIp(boolean value) { + + importCustomRoutesWithPublicIp_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. True if all subnet routes with public IP address range are
    +     * imported; false otherwise. The default value is true. IPv4 special-use
    +     * ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always
    +     * imported to peers and are not controlled by this field.
    +     * 
    + * + * + * optional bool import_custom_routes_with_public_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearImportCustomRoutesWithPublicIp() { + bitField0_ = (bitField0_ & ~0x00000100); + importCustomRoutesWithPublicIp_ = false; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
    +     * Output only. State of the network peering. This field
    +     * has a value of 'ACTIVE' when there's a matching configuration in the peer
    +     * network. New values may be added to this enum when appropriate.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering.State state = 13 [(.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 network peering. This field
    +     * has a value of 'ACTIVE' when there's a matching configuration in the peer
    +     * network. New values may be added to this enum when appropriate.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering.State state = 13 [(.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_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. State of the network peering. This field
    +     * has a value of 'ACTIVE' when there's a matching configuration in the peer
    +     * network. New values may be added to this enum when appropriate.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkPeering.State getState() { + com.google.cloud.vmwareengine.v1.NetworkPeering.State result = + com.google.cloud.vmwareengine.v1.NetworkPeering.State.forNumber(state_); + return result == null + ? com.google.cloud.vmwareengine.v1.NetworkPeering.State.UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * Output only. State of the network peering. This field
    +     * has a value of 'ACTIVE' when there's a matching configuration in the peer
    +     * network. New values may be added to this enum when appropriate.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering.State state = 13 [(.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.NetworkPeering.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. State of the network peering. This field
    +     * has a value of 'ACTIVE' when there's a matching configuration in the peer
    +     * network. New values may be added to this enum when appropriate.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000200); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object stateDetails_ = ""; + /** + * + * + *
    +     * Output only. Output Only. Details about the current state of the network
    +     * peering.
    +     * 
    + * + * string state_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The stateDetails. + */ + public java.lang.String getStateDetails() { + java.lang.Object ref = stateDetails_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + stateDetails_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. Output Only. Details about the current state of the network
    +     * peering.
    +     * 
    + * + * string state_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for stateDetails. + */ + public com.google.protobuf.ByteString getStateDetailsBytes() { + java.lang.Object ref = stateDetails_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + stateDetails_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. Output Only. Details about the current state of the network
    +     * peering.
    +     * 
    + * + * string state_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The stateDetails to set. + * @return This builder for chaining. + */ + public Builder setStateDetails(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + stateDetails_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Output Only. Details about the current state of the network
    +     * peering.
    +     * 
    + * + * string state_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearStateDetails() { + stateDetails_ = getDefaultInstance().getStateDetails(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Output Only. Details about the current state of the network
    +     * peering.
    +     * 
    + * + * string state_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for stateDetails to set. + * @return This builder for chaining. + */ + public Builder setStateDetailsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + stateDetails_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private int peerMtu_; + /** + * + * + *
    +     * Optional. Maximum transmission unit (MTU) in bytes.
    +     * The default value is `1500`. If a value of `0` is provided for this field,
    +     * VMware Engine uses the default value instead.
    +     * 
    + * + * int32 peer_mtu = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The peerMtu. + */ + @java.lang.Override + public int getPeerMtu() { + return peerMtu_; + } + /** + * + * + *
    +     * Optional. Maximum transmission unit (MTU) in bytes.
    +     * The default value is `1500`. If a value of `0` is provided for this field,
    +     * VMware Engine uses the default value instead.
    +     * 
    + * + * int32 peer_mtu = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The peerMtu to set. + * @return This builder for chaining. + */ + public Builder setPeerMtu(int value) { + + peerMtu_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. Maximum transmission unit (MTU) in bytes.
    +     * The default value is `1500`. If a value of `0` is provided for this field,
    +     * VMware Engine uses the default value instead.
    +     * 
    + * + * int32 peer_mtu = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPeerMtu() { + bitField0_ = (bitField0_ & ~0x00000800); + peerMtu_ = 0; + onChanged(); + return this; + } + + private int peerNetworkType_ = 0; + /** + * + * + *
    +     * Required. The type of the network to peer with the VMware Engine network.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType peer_network_type = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for peerNetworkType. + */ + @java.lang.Override + public int getPeerNetworkTypeValue() { + return peerNetworkType_; + } + /** + * + * + *
    +     * Required. The type of the network to peer with the VMware Engine network.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType peer_network_type = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for peerNetworkType to set. + * @return This builder for chaining. + */ + public Builder setPeerNetworkTypeValue(int value) { + peerNetworkType_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The type of the network to peer with the VMware Engine network.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType peer_network_type = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The peerNetworkType. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType getPeerNetworkType() { + com.google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType result = + com.google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType.forNumber( + peerNetworkType_); + return result == null + ? com.google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType.UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * Required. The type of the network to peer with the VMware Engine network.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType peer_network_type = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The peerNetworkType to set. + * @return This builder for chaining. + */ + public Builder setPeerNetworkType( + com.google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; + peerNetworkType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The type of the network to peer with the VMware Engine network.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType peer_network_type = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearPeerNetworkType() { + bitField0_ = (bitField0_ & ~0x00001000); + peerNetworkType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object uid_ = ""; + /** + * + * + *
    +     * Output only. System-generated unique identifier for the resource.
    +     * 
    + * + * string uid = 17 [(.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 = 17 [(.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 = 17 [(.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_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. System-generated unique identifier for the resource.
    +     * 
    + * + * string uid = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. System-generated unique identifier for the resource.
    +     * 
    + * + * string uid = 17 [(.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_ |= 0x00002000; + onChanged(); + return this; + } + + private java.lang.Object vmwareEngineNetwork_ = ""; + /** + * + * + *
    +     * Required. The relative resource name of the VMware Engine network.
    +     * Specify the name in the following form:
    +     * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
    +     * where `{project}` can either be a project number or a project ID.
    +     * 
    + * + * + * string vmware_engine_network = 20 [(.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 the VMware Engine network.
    +     * Specify the name in the following form:
    +     * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
    +     * where `{project}` can either be a project number or a project ID.
    +     * 
    + * + * + * string vmware_engine_network = 20 [(.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 the VMware Engine network.
    +     * Specify the name in the following form:
    +     * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
    +     * where `{project}` can either be a project number or a project ID.
    +     * 
    + * + * + * string vmware_engine_network = 20 [(.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_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The relative resource name of the VMware Engine network.
    +     * Specify the name in the following form:
    +     * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
    +     * where `{project}` can either be a project number or a project ID.
    +     * 
    + * + * + * string vmware_engine_network = 20 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearVmwareEngineNetwork() { + vmwareEngineNetwork_ = getDefaultInstance().getVmwareEngineNetwork(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The relative resource name of the VMware Engine network.
    +     * Specify the name in the following form:
    +     * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
    +     * where `{project}` can either be a project number or a project ID.
    +     * 
    + * + * + * string vmware_engine_network = 20 [(.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_ |= 0x00004000; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
    +     * Optional. User-provided description for this network peering.
    +     * 
    + * + * string description = 21 [(.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 network peering.
    +     * 
    + * + * string description = 21 [(.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 network peering.
    +     * 
    + * + * string description = 21 [(.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_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. User-provided description for this network peering.
    +     * 
    + * + * string description = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00008000); + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. User-provided description for this network peering.
    +     * 
    + * + * string description = 21 [(.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_ |= 0x00008000; + 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.NetworkPeering) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.NetworkPeering) + private static final com.google.cloud.vmwareengine.v1.NetworkPeering DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.NetworkPeering(); + } + + public static com.google.cloud.vmwareengine.v1.NetworkPeering getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkPeering 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.NetworkPeering getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkPeeringName.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkPeeringName.java new file mode 100644 index 000000000000..573381db724f --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkPeeringName.java @@ -0,0 +1,227 @@ +/* + * 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 NetworkPeeringName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_NETWORK_PEERING = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/networkPeerings/{network_peering}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String networkPeering; + + @Deprecated + protected NetworkPeeringName() { + project = null; + location = null; + networkPeering = null; + } + + private NetworkPeeringName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + networkPeering = Preconditions.checkNotNull(builder.getNetworkPeering()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getNetworkPeering() { + return networkPeering; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static NetworkPeeringName of(String project, String location, String networkPeering) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setNetworkPeering(networkPeering) + .build(); + } + + public static String format(String project, String location, String networkPeering) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setNetworkPeering(networkPeering) + .build() + .toString(); + } + + public static NetworkPeeringName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_NETWORK_PEERING.validatedMatch( + formattedString, "NetworkPeeringName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("network_peering")); + } + + 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 (NetworkPeeringName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_NETWORK_PEERING.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 (networkPeering != null) { + fieldMapBuilder.put("network_peering", networkPeering); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_NETWORK_PEERING.instantiate( + "project", project, "location", location, "network_peering", networkPeering); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + NetworkPeeringName that = ((NetworkPeeringName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.networkPeering, that.networkPeering); + } + 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(networkPeering); + return h; + } + + /** Builder for projects/{project}/locations/{location}/networkPeerings/{network_peering}. */ + public static class Builder { + private String project; + private String location; + private String networkPeering; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getNetworkPeering() { + return networkPeering; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setNetworkPeering(String networkPeering) { + this.networkPeering = networkPeering; + return this; + } + + private Builder(NetworkPeeringName networkPeeringName) { + this.project = networkPeeringName.project; + this.location = networkPeeringName.location; + this.networkPeering = networkPeeringName.networkPeering; + } + + public NetworkPeeringName build() { + return new NetworkPeeringName(this); + } + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkPeeringOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkPeeringOrBuilder.java new file mode 100644 index 000000000000..533f76dba439 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkPeeringOrBuilder.java @@ -0,0 +1,523 @@ +/* + * 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 NetworkPeeringOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.NetworkPeering) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Output only. The resource name of the network peering. NetworkPeering is a
    +   * global resource and location can only be global. Resource names are
    +   * scheme-less URIs that follow the conventions in
    +   * https://cloud.google.com/apis/design/resource_names.
    +   * For example:
    +   * `projects/my-project/locations/global/networkPeerings/my-peering`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Output only. The resource name of the network peering. NetworkPeering is a
    +   * global resource and location can only be global. Resource names are
    +   * scheme-less URIs that follow the conventions in
    +   * https://cloud.google.com/apis/design/resource_names.
    +   * For example:
    +   * `projects/my-project/locations/global/networkPeerings/my-peering`
    +   * 
    + * + * 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(); + + /** + * + * + *
    +   * Required. The relative resource name of the network to peer with
    +   * a standard VMware Engine network. The provided network can be a
    +   * consumer VPC network or another standard VMware Engine network. If the
    +   * `peer_network_type` is VMWARE_ENGINE_NETWORK, specify the name in the form:
    +   * `projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}`.
    +   * Otherwise specify the name in the form:
    +   * `projects/{project}/global/networks/{network_id}`, where
    +   * `{project}` can either be a project number or a project ID.
    +   * 
    + * + * string peer_network = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The peerNetwork. + */ + java.lang.String getPeerNetwork(); + /** + * + * + *
    +   * Required. The relative resource name of the network to peer with
    +   * a standard VMware Engine network. The provided network can be a
    +   * consumer VPC network or another standard VMware Engine network. If the
    +   * `peer_network_type` is VMWARE_ENGINE_NETWORK, specify the name in the form:
    +   * `projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}`.
    +   * Otherwise specify the name in the form:
    +   * `projects/{project}/global/networks/{network_id}`, where
    +   * `{project}` can either be a project number or a project ID.
    +   * 
    + * + * string peer_network = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for peerNetwork. + */ + com.google.protobuf.ByteString getPeerNetworkBytes(); + + /** + * + * + *
    +   * Optional. True if custom routes are exported to the peered network;
    +   * false otherwise. The default value is true.
    +   * 
    + * + * optional bool export_custom_routes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the exportCustomRoutes field is set. + */ + boolean hasExportCustomRoutes(); + /** + * + * + *
    +   * Optional. True if custom routes are exported to the peered network;
    +   * false otherwise. The default value is true.
    +   * 
    + * + * optional bool export_custom_routes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The exportCustomRoutes. + */ + boolean getExportCustomRoutes(); + + /** + * + * + *
    +   * Optional. True if custom routes are imported from the peered network;
    +   * false otherwise. The default value is true.
    +   * 
    + * + * optional bool import_custom_routes = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the importCustomRoutes field is set. + */ + boolean hasImportCustomRoutes(); + /** + * + * + *
    +   * Optional. True if custom routes are imported from the peered network;
    +   * false otherwise. The default value is true.
    +   * 
    + * + * optional bool import_custom_routes = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The importCustomRoutes. + */ + boolean getImportCustomRoutes(); + + /** + * + * + *
    +   * Optional. True if full mesh connectivity is created and managed
    +   * automatically between peered networks; false otherwise. Currently this
    +   * field is always true because Google Compute Engine automatically creates
    +   * and manages subnetwork routes between two VPC networks when peering state
    +   * is 'ACTIVE'.
    +   * 
    + * + * optional bool exchange_subnet_routes = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the exchangeSubnetRoutes field is set. + */ + boolean hasExchangeSubnetRoutes(); + /** + * + * + *
    +   * Optional. True if full mesh connectivity is created and managed
    +   * automatically between peered networks; false otherwise. Currently this
    +   * field is always true because Google Compute Engine automatically creates
    +   * and manages subnetwork routes between two VPC networks when peering state
    +   * is 'ACTIVE'.
    +   * 
    + * + * optional bool exchange_subnet_routes = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exchangeSubnetRoutes. + */ + boolean getExchangeSubnetRoutes(); + + /** + * + * + *
    +   * Optional. True if all subnet routes with a public IP address range are
    +   * exported; false otherwise. The default value is true. IPv4 special-use
    +   * ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always
    +   * exported to peers and are not controlled by this field.
    +   * 
    + * + * + * optional bool export_custom_routes_with_public_ip = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the exportCustomRoutesWithPublicIp field is set. + */ + boolean hasExportCustomRoutesWithPublicIp(); + /** + * + * + *
    +   * Optional. True if all subnet routes with a public IP address range are
    +   * exported; false otherwise. The default value is true. IPv4 special-use
    +   * ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always
    +   * exported to peers and are not controlled by this field.
    +   * 
    + * + * + * optional bool export_custom_routes_with_public_ip = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exportCustomRoutesWithPublicIp. + */ + boolean getExportCustomRoutesWithPublicIp(); + + /** + * + * + *
    +   * Optional. True if all subnet routes with public IP address range are
    +   * imported; false otherwise. The default value is true. IPv4 special-use
    +   * ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always
    +   * imported to peers and are not controlled by this field.
    +   * 
    + * + * + * optional bool import_custom_routes_with_public_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the importCustomRoutesWithPublicIp field is set. + */ + boolean hasImportCustomRoutesWithPublicIp(); + /** + * + * + *
    +   * Optional. True if all subnet routes with public IP address range are
    +   * imported; false otherwise. The default value is true. IPv4 special-use
    +   * ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always
    +   * imported to peers and are not controlled by this field.
    +   * 
    + * + * + * optional bool import_custom_routes_with_public_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The importCustomRoutesWithPublicIp. + */ + boolean getImportCustomRoutesWithPublicIp(); + + /** + * + * + *
    +   * Output only. State of the network peering. This field
    +   * has a value of 'ACTIVE' when there's a matching configuration in the peer
    +   * network. New values may be added to this enum when appropriate.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
    +   * Output only. State of the network peering. This field
    +   * has a value of 'ACTIVE' when there's a matching configuration in the peer
    +   * network. New values may be added to this enum when appropriate.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.vmwareengine.v1.NetworkPeering.State getState(); + + /** + * + * + *
    +   * Output only. Output Only. Details about the current state of the network
    +   * peering.
    +   * 
    + * + * string state_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The stateDetails. + */ + java.lang.String getStateDetails(); + /** + * + * + *
    +   * Output only. Output Only. Details about the current state of the network
    +   * peering.
    +   * 
    + * + * string state_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for stateDetails. + */ + com.google.protobuf.ByteString getStateDetailsBytes(); + + /** + * + * + *
    +   * Optional. Maximum transmission unit (MTU) in bytes.
    +   * The default value is `1500`. If a value of `0` is provided for this field,
    +   * VMware Engine uses the default value instead.
    +   * 
    + * + * int32 peer_mtu = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The peerMtu. + */ + int getPeerMtu(); + + /** + * + * + *
    +   * Required. The type of the network to peer with the VMware Engine network.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType peer_network_type = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for peerNetworkType. + */ + int getPeerNetworkTypeValue(); + /** + * + * + *
    +   * Required. The type of the network to peer with the VMware Engine network.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType peer_network_type = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The peerNetworkType. + */ + com.google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType getPeerNetworkType(); + + /** + * + * + *
    +   * Output only. System-generated unique identifier for the resource.
    +   * 
    + * + * string uid = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + java.lang.String getUid(); + /** + * + * + *
    +   * Output only. System-generated unique identifier for the resource.
    +   * 
    + * + * string uid = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
    +   * Required. The relative resource name of the VMware Engine network.
    +   * Specify the name in the following form:
    +   * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
    +   * where `{project}` can either be a project number or a project ID.
    +   * 
    + * + * + * string vmware_engine_network = 20 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The vmwareEngineNetwork. + */ + java.lang.String getVmwareEngineNetwork(); + /** + * + * + *
    +   * Required. The relative resource name of the VMware Engine network.
    +   * Specify the name in the following form:
    +   * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
    +   * where `{project}` can either be a project number or a project ID.
    +   * 
    + * + * + * string vmware_engine_network = 20 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for vmwareEngineNetwork. + */ + com.google.protobuf.ByteString getVmwareEngineNetworkBytes(); + + /** + * + * + *
    +   * Optional. User-provided description for this network peering.
    +   * 
    + * + * string description = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
    +   * Optional. User-provided description for this network peering.
    +   * 
    + * + * string description = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Node.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Node.java new file mode 100644 index 000000000000..7b9ec923d9b8 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Node.java @@ -0,0 +1,1854 @@ +/* + * 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; + +/** + * + * + *
    + * Node in a cluster.
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.Node} + */ +public final class Node extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.Node) + NodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use Node.newBuilder() to construct. + private Node(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Node() { + name_ = ""; + fqdn_ = ""; + internalIp_ = ""; + nodeTypeId_ = ""; + version_ = ""; + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Node(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_Node_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_Node_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.Node.class, + com.google.cloud.vmwareengine.v1.Node.Builder.class); + } + + /** + * + * + *
    +   * Enum State defines possible states of a node in a cluster.
    +   * 
    + * + * Protobuf enum {@code google.cloud.vmwareengine.v1.Node.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * The default value. This value should never be used.
    +     * 
    + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
    +     * Node is operational and can be used by the user.
    +     * 
    + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
    +     * Node is being provisioned.
    +     * 
    + * + * CREATING = 2; + */ + CREATING(2), + /** + * + * + *
    +     * Node is in a failed state.
    +     * 
    + * + * FAILED = 3; + */ + FAILED(3), + /** + * + * + *
    +     * Node is undergoing maintenance, e.g.: during private cloud upgrade.
    +     * 
    + * + * UPGRADING = 4; + */ + UPGRADING(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * The default value. This value should never be used.
    +     * 
    + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +     * Node is operational and can be used by the user.
    +     * 
    + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + /** + * + * + *
    +     * Node is being provisioned.
    +     * 
    + * + * CREATING = 2; + */ + public static final int CREATING_VALUE = 2; + /** + * + * + *
    +     * Node is in a failed state.
    +     * 
    + * + * FAILED = 3; + */ + public static final int FAILED_VALUE = 3; + /** + * + * + *
    +     * Node is undergoing maintenance, e.g.: during private cloud upgrade.
    +     * 
    + * + * UPGRADING = 4; + */ + public static final int UPGRADING_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 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 ACTIVE; + case 2: + return CREATING; + case 3: + return FAILED; + case 4: + return UPGRADING; + 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.Node.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.Node.State) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Output only. The resource name of this node.
    +   * 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/clusters/my-cluster/nodes/my-node
    +   * 
    + * + * 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 this node.
    +   * 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/clusters/my-cluster/nodes/my-node
    +   * 
    + * + * 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 FQDN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object fqdn_ = ""; + /** + * + * + *
    +   * Output only. Fully qualified domain name of the node.
    +   * 
    + * + * string fqdn = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The fqdn. + */ + @java.lang.Override + public java.lang.String getFqdn() { + java.lang.Object ref = fqdn_; + 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(); + fqdn_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. Fully qualified domain name of the node.
    +   * 
    + * + * string fqdn = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for fqdn. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFqdnBytes() { + java.lang.Object ref = fqdn_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fqdn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INTERNAL_IP_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object internalIp_ = ""; + /** + * + * + *
    +   * Output only. Internal IP address of the node.
    +   * 
    + * + * string internal_ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The internalIp. + */ + @java.lang.Override + public java.lang.String getInternalIp() { + java.lang.Object ref = internalIp_; + 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(); + internalIp_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. Internal IP address of the node.
    +   * 
    + * + * string internal_ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for internalIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInternalIpBytes() { + java.lang.Object ref = internalIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + internalIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_TYPE_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object nodeTypeId_ = ""; + /** + * + * + *
    +   * Output only. The canonical identifier of the node type (corresponds to the
    +   * `NodeType`).
    +   * For example: standard-72.
    +   * 
    + * + * string node_type_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The nodeTypeId. + */ + @java.lang.Override + public java.lang.String getNodeTypeId() { + java.lang.Object ref = nodeTypeId_; + 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(); + nodeTypeId_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. The canonical identifier of the node type (corresponds to the
    +   * `NodeType`).
    +   * For example: standard-72.
    +   * 
    + * + * string node_type_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nodeTypeId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNodeTypeIdBytes() { + java.lang.Object ref = nodeTypeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeTypeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; + /** + * + * + *
    +   * Output only. The version number of the VMware ESXi
    +   * management component in this cluster.
    +   * 
    + * + * string version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + 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(); + version_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. The version number of the VMware ESXi
    +   * management component in this cluster.
    +   * 
    + * + * string version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_CORE_COUNT_FIELD_NUMBER = 6; + private long customCoreCount_ = 0L; + /** + * + * + *
    +   * Output only. Customized number of cores
    +   * 
    + * + * int64 custom_core_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The customCoreCount. + */ + @java.lang.Override + public long getCustomCoreCount() { + return customCoreCount_; + } + + public static final int STATE_FIELD_NUMBER = 7; + private int state_ = 0; + /** + * + * + *
    +   * Output only. The state of the appliance.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.Node.State state = 7 [(.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. The state of the appliance.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.Node.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Node.State getState() { + com.google.cloud.vmwareengine.v1.Node.State result = + com.google.cloud.vmwareengine.v1.Node.State.forNumber(state_); + return result == null ? com.google.cloud.vmwareengine.v1.Node.State.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fqdn_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fqdn_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(internalIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, internalIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeTypeId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodeTypeId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, version_); + } + if (customCoreCount_ != 0L) { + output.writeInt64(6, customCoreCount_); + } + if (state_ != com.google.cloud.vmwareengine.v1.Node.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(7, state_); + } + 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(fqdn_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fqdn_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(internalIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, internalIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeTypeId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodeTypeId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, version_); + } + if (customCoreCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, customCoreCount_); + } + if (state_ != com.google.cloud.vmwareengine.v1.Node.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); + } + 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.Node)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.Node other = (com.google.cloud.vmwareengine.v1.Node) obj; + + if (!getName().equals(other.getName())) return false; + if (!getFqdn().equals(other.getFqdn())) return false; + if (!getInternalIp().equals(other.getInternalIp())) return false; + if (!getNodeTypeId().equals(other.getNodeTypeId())) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (getCustomCoreCount() != other.getCustomCoreCount()) return false; + if (state_ != other.state_) 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) + FQDN_FIELD_NUMBER; + hash = (53 * hash) + getFqdn().hashCode(); + hash = (37 * hash) + INTERNAL_IP_FIELD_NUMBER; + hash = (53 * hash) + getInternalIp().hashCode(); + hash = (37 * hash) + NODE_TYPE_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodeTypeId().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + CUSTOM_CORE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCustomCoreCount()); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.Node parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.Node 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.Node parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.Node 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.Node parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.Node 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.Node parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.Node 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.Node parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.Node 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.Node 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.Node 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.Node 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; + } + /** + * + * + *
    +   * Node in a cluster.
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.Node} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.Node) + com.google.cloud.vmwareengine.v1.NodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_Node_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_Node_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.Node.class, + com.google.cloud.vmwareengine.v1.Node.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.Node.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + fqdn_ = ""; + internalIp_ = ""; + nodeTypeId_ = ""; + version_ = ""; + customCoreCount_ = 0L; + state_ = 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_Node_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Node getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.Node.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Node build() { + com.google.cloud.vmwareengine.v1.Node result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Node buildPartial() { + com.google.cloud.vmwareengine.v1.Node result = + new com.google.cloud.vmwareengine.v1.Node(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmwareengine.v1.Node result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.fqdn_ = fqdn_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.internalIp_ = internalIp_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.nodeTypeId_ = nodeTypeId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.version_ = version_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.customCoreCount_ = customCoreCount_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.state_ = state_; + } + } + + @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.Node) { + return mergeFrom((com.google.cloud.vmwareengine.v1.Node) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.Node other) { + if (other == com.google.cloud.vmwareengine.v1.Node.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFqdn().isEmpty()) { + fqdn_ = other.fqdn_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getInternalIp().isEmpty()) { + internalIp_ = other.internalIp_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getNodeTypeId().isEmpty()) { + nodeTypeId_ = other.nodeTypeId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getCustomCoreCount() != 0L) { + setCustomCoreCount(other.getCustomCoreCount()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + 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: + { + fqdn_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + internalIp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + nodeTypeId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + version_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + customCoreCount_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 + 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 this node.
    +     * 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/clusters/my-cluster/nodes/my-node
    +     * 
    + * + * 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 this node.
    +     * 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/clusters/my-cluster/nodes/my-node
    +     * 
    + * + * 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 this node.
    +     * 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/clusters/my-cluster/nodes/my-node
    +     * 
    + * + * 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 this node.
    +     * 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/clusters/my-cluster/nodes/my-node
    +     * 
    + * + * 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 this node.
    +     * 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/clusters/my-cluster/nodes/my-node
    +     * 
    + * + * 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 java.lang.Object fqdn_ = ""; + /** + * + * + *
    +     * Output only. Fully qualified domain name of the node.
    +     * 
    + * + * string fqdn = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The fqdn. + */ + public java.lang.String getFqdn() { + java.lang.Object ref = fqdn_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fqdn_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. Fully qualified domain name of the node.
    +     * 
    + * + * string fqdn = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for fqdn. + */ + public com.google.protobuf.ByteString getFqdnBytes() { + java.lang.Object ref = fqdn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fqdn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. Fully qualified domain name of the node.
    +     * 
    + * + * string fqdn = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The fqdn to set. + * @return This builder for chaining. + */ + public Builder setFqdn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fqdn_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Fully qualified domain name of the node.
    +     * 
    + * + * string fqdn = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearFqdn() { + fqdn_ = getDefaultInstance().getFqdn(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Fully qualified domain name of the node.
    +     * 
    + * + * string fqdn = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for fqdn to set. + * @return This builder for chaining. + */ + public Builder setFqdnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fqdn_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object internalIp_ = ""; + /** + * + * + *
    +     * Output only. Internal IP address of the node.
    +     * 
    + * + * string internal_ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The internalIp. + */ + public java.lang.String getInternalIp() { + java.lang.Object ref = internalIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + internalIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. Internal IP address of the node.
    +     * 
    + * + * string internal_ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for internalIp. + */ + public com.google.protobuf.ByteString getInternalIpBytes() { + java.lang.Object ref = internalIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + internalIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. Internal IP address of the node.
    +     * 
    + * + * string internal_ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The internalIp to set. + * @return This builder for chaining. + */ + public Builder setInternalIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + internalIp_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Internal IP address of the node.
    +     * 
    + * + * string internal_ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearInternalIp() { + internalIp_ = getDefaultInstance().getInternalIp(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Internal IP address of the node.
    +     * 
    + * + * string internal_ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for internalIp to set. + * @return This builder for chaining. + */ + public Builder setInternalIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + internalIp_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object nodeTypeId_ = ""; + /** + * + * + *
    +     * Output only. The canonical identifier of the node type (corresponds to the
    +     * `NodeType`).
    +     * For example: standard-72.
    +     * 
    + * + * string node_type_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The nodeTypeId. + */ + public java.lang.String getNodeTypeId() { + java.lang.Object ref = nodeTypeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeTypeId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. The canonical identifier of the node type (corresponds to the
    +     * `NodeType`).
    +     * For example: standard-72.
    +     * 
    + * + * string node_type_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nodeTypeId. + */ + public com.google.protobuf.ByteString getNodeTypeIdBytes() { + java.lang.Object ref = nodeTypeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeTypeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. The canonical identifier of the node type (corresponds to the
    +     * `NodeType`).
    +     * For example: standard-72.
    +     * 
    + * + * string node_type_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The nodeTypeId to set. + * @return This builder for chaining. + */ + public Builder setNodeTypeId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nodeTypeId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The canonical identifier of the node type (corresponds to the
    +     * `NodeType`).
    +     * For example: standard-72.
    +     * 
    + * + * string node_type_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearNodeTypeId() { + nodeTypeId_ = getDefaultInstance().getNodeTypeId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The canonical identifier of the node type (corresponds to the
    +     * `NodeType`).
    +     * For example: standard-72.
    +     * 
    + * + * string node_type_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for nodeTypeId to set. + * @return This builder for chaining. + */ + public Builder setNodeTypeIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nodeTypeId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + /** + * + * + *
    +     * Output only. The version number of the VMware ESXi
    +     * management component in this cluster.
    +     * 
    + * + * string version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. The version number of the VMware ESXi
    +     * management component in this cluster.
    +     * 
    + * + * string version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for version. + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. The version number of the VMware ESXi
    +     * management component in this cluster.
    +     * 
    + * + * string version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + version_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The version number of the VMware ESXi
    +     * management component in this cluster.
    +     * 
    + * + * string version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The version number of the VMware ESXi
    +     * management component in this cluster.
    +     * 
    + * + * string version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private long customCoreCount_; + /** + * + * + *
    +     * Output only. Customized number of cores
    +     * 
    + * + * int64 custom_core_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The customCoreCount. + */ + @java.lang.Override + public long getCustomCoreCount() { + return customCoreCount_; + } + /** + * + * + *
    +     * Output only. Customized number of cores
    +     * 
    + * + * int64 custom_core_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The customCoreCount to set. + * @return This builder for chaining. + */ + public Builder setCustomCoreCount(long value) { + + customCoreCount_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Customized number of cores
    +     * 
    + * + * int64 custom_core_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCustomCoreCount() { + bitField0_ = (bitField0_ & ~0x00000020); + customCoreCount_ = 0L; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
    +     * Output only. The state of the appliance.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.Node.State state = 7 [(.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. The state of the appliance.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.Node.State state = 7 [(.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_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The state of the appliance.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.Node.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Node.State getState() { + com.google.cloud.vmwareengine.v1.Node.State result = + com.google.cloud.vmwareengine.v1.Node.State.forNumber(state_); + return result == null ? com.google.cloud.vmwareengine.v1.Node.State.UNRECOGNIZED : result; + } + /** + * + * + *
    +     * Output only. The state of the appliance.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.Node.State state = 7 [(.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.Node.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The state of the appliance.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.Node.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000040); + state_ = 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.Node) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.Node) + private static final com.google.cloud.vmwareengine.v1.Node DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.Node(); + } + + public static com.google.cloud.vmwareengine.v1.Node getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Node 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.Node getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeName.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeName.java new file mode 100644 index 000000000000..14ff18767697 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeName.java @@ -0,0 +1,298 @@ +/* + * 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 NodeName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_PRIVATE_CLOUD_CLUSTER_NODE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}/nodes/{node}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String privateCloud; + private final String cluster; + private final String node; + + @Deprecated + protected NodeName() { + project = null; + location = null; + privateCloud = null; + cluster = null; + node = null; + } + + private NodeName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + privateCloud = Preconditions.checkNotNull(builder.getPrivateCloud()); + cluster = Preconditions.checkNotNull(builder.getCluster()); + node = Preconditions.checkNotNull(builder.getNode()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPrivateCloud() { + return privateCloud; + } + + public String getCluster() { + return cluster; + } + + public String getNode() { + return node; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static NodeName of( + String project, String location, String privateCloud, String cluster, String node) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPrivateCloud(privateCloud) + .setCluster(cluster) + .setNode(node) + .build(); + } + + public static String format( + String project, String location, String privateCloud, String cluster, String node) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPrivateCloud(privateCloud) + .setCluster(cluster) + .setNode(node) + .build() + .toString(); + } + + public static NodeName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_PRIVATE_CLOUD_CLUSTER_NODE.validatedMatch( + formattedString, "NodeName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("private_cloud"), + matchMap.get("cluster"), + matchMap.get("node")); + } + + 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 (NodeName 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_CLUSTER_NODE.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 (cluster != null) { + fieldMapBuilder.put("cluster", cluster); + } + if (node != null) { + fieldMapBuilder.put("node", node); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_PRIVATE_CLOUD_CLUSTER_NODE.instantiate( + "project", + project, + "location", + location, + "private_cloud", + privateCloud, + "cluster", + cluster, + "node", + node); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + NodeName that = ((NodeName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.privateCloud, that.privateCloud) + && Objects.equals(this.cluster, that.cluster) + && Objects.equals(this.node, that.node); + } + 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(cluster); + h *= 1000003; + h ^= Objects.hashCode(node); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}/nodes/{node}. + */ + public static class Builder { + private String project; + private String location; + private String privateCloud; + private String cluster; + private String node; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPrivateCloud() { + return privateCloud; + } + + public String getCluster() { + return cluster; + } + + public String getNode() { + return node; + } + + 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 setCluster(String cluster) { + this.cluster = cluster; + return this; + } + + public Builder setNode(String node) { + this.node = node; + return this; + } + + private Builder(NodeName nodeName) { + this.project = nodeName.project; + this.location = nodeName.location; + this.privateCloud = nodeName.privateCloud; + this.cluster = nodeName.cluster; + this.node = nodeName.node; + } + + public NodeName build() { + return new NodeName(this); + } + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeOrBuilder.java new file mode 100644 index 000000000000..7c0defe9f50d --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeOrBuilder.java @@ -0,0 +1,206 @@ +/* + * 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 NodeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.Node) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Output only. The resource name of this node.
    +   * 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/clusters/my-cluster/nodes/my-node
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Output only. The resource name of this node.
    +   * 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/clusters/my-cluster/nodes/my-node
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Output only. Fully qualified domain name of the node.
    +   * 
    + * + * string fqdn = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The fqdn. + */ + java.lang.String getFqdn(); + /** + * + * + *
    +   * Output only. Fully qualified domain name of the node.
    +   * 
    + * + * string fqdn = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for fqdn. + */ + com.google.protobuf.ByteString getFqdnBytes(); + + /** + * + * + *
    +   * Output only. Internal IP address of the node.
    +   * 
    + * + * string internal_ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The internalIp. + */ + java.lang.String getInternalIp(); + /** + * + * + *
    +   * Output only. Internal IP address of the node.
    +   * 
    + * + * string internal_ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for internalIp. + */ + com.google.protobuf.ByteString getInternalIpBytes(); + + /** + * + * + *
    +   * Output only. The canonical identifier of the node type (corresponds to the
    +   * `NodeType`).
    +   * For example: standard-72.
    +   * 
    + * + * string node_type_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The nodeTypeId. + */ + java.lang.String getNodeTypeId(); + /** + * + * + *
    +   * Output only. The canonical identifier of the node type (corresponds to the
    +   * `NodeType`).
    +   * For example: standard-72.
    +   * 
    + * + * string node_type_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nodeTypeId. + */ + com.google.protobuf.ByteString getNodeTypeIdBytes(); + + /** + * + * + *
    +   * Output only. The version number of the VMware ESXi
    +   * management component in this cluster.
    +   * 
    + * + * string version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The version. + */ + java.lang.String getVersion(); + /** + * + * + *
    +   * Output only. The version number of the VMware ESXi
    +   * management component in this cluster.
    +   * 
    + * + * string version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); + + /** + * + * + *
    +   * Output only. Customized number of cores
    +   * 
    + * + * int64 custom_core_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The customCoreCount. + */ + long getCustomCoreCount(); + + /** + * + * + *
    +   * Output only. The state of the appliance.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.Node.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
    +   * Output only. The state of the appliance.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.Node.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.vmwareengine.v1.Node.State getState(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeType.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeType.java index 1946e634ef6d..db47a7c5364f 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeType.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeType.java @@ -42,6 +42,9 @@ private NodeType() { nodeTypeId_ = ""; displayName_ = ""; availableCustomCoreCounts_ = emptyIntList(); + kind_ = 0; + families_ = com.google.protobuf.LazyStringArrayList.emptyList(); + capabilities_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -65,6 +68,300 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.vmwareengine.v1.NodeType.Builder.class); } + /** + * + * + *
    +   * Enum Kind defines possible types of a NodeType.
    +   * 
    + * + * Protobuf enum {@code google.cloud.vmwareengine.v1.NodeType.Kind} + */ + public enum Kind implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * The default value. This value should never be used.
    +     * 
    + * + * KIND_UNSPECIFIED = 0; + */ + KIND_UNSPECIFIED(0), + /** + * + * + *
    +     * Standard HCI node.
    +     * 
    + * + * STANDARD = 1; + */ + STANDARD(1), + /** + * + * + *
    +     * Storage only Node.
    +     * 
    + * + * STORAGE_ONLY = 2; + */ + STORAGE_ONLY(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * The default value. This value should never be used.
    +     * 
    + * + * KIND_UNSPECIFIED = 0; + */ + public static final int KIND_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +     * Standard HCI node.
    +     * 
    + * + * STANDARD = 1; + */ + public static final int STANDARD_VALUE = 1; + /** + * + * + *
    +     * Storage only Node.
    +     * 
    + * + * STORAGE_ONLY = 2; + */ + public static final int STORAGE_ONLY_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 Kind 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 Kind forNumber(int value) { + switch (value) { + case 0: + return KIND_UNSPECIFIED; + case 1: + return STANDARD; + case 2: + return STORAGE_ONLY; + 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 Kind findValueByNumber(int number) { + return Kind.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.NodeType.getDescriptor().getEnumTypes().get(0); + } + + private static final Kind[] VALUES = values(); + + public static Kind 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 Kind(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmwareengine.v1.NodeType.Kind) + } + + /** + * + * + *
    +   * Capability of a node type.
    +   * 
    + * + * Protobuf enum {@code google.cloud.vmwareengine.v1.NodeType.Capability} + */ + public enum Capability implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * The default value. This value is used if the capability is omitted or
    +     * unknown.
    +     * 
    + * + * CAPABILITY_UNSPECIFIED = 0; + */ + CAPABILITY_UNSPECIFIED(0), + /** + * + * + *
    +     * This node type supports stretch clusters.
    +     * 
    + * + * STRETCHED_CLUSTERS = 1; + */ + STRETCHED_CLUSTERS(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * The default value. This value is used if the capability is omitted or
    +     * unknown.
    +     * 
    + * + * CAPABILITY_UNSPECIFIED = 0; + */ + public static final int CAPABILITY_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +     * This node type supports stretch clusters.
    +     * 
    + * + * STRETCHED_CLUSTERS = 1; + */ + public static final int STRETCHED_CLUSTERS_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 Capability 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 Capability forNumber(int value) { + switch (value) { + case 0: + return CAPABILITY_UNSPECIFIED; + case 1: + return STRETCHED_CLUSTERS; + 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 Capability findValueByNumber(int number) { + return Capability.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.NodeType.getDescriptor().getEnumTypes().get(1); + } + + private static final Capability[] VALUES = values(); + + public static Capability 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 Capability(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmwareengine.v1.NodeType.Capability) + } + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -359,94 +656,354 @@ public int getAvailableCustomCoreCounts(int index) { private int availableCustomCoreCountsMemoizedSerializedSize = -1; - private byte memoizedIsInitialized = -1; - + public static final int KIND_FIELD_NUMBER = 12; + private int kind_ = 0; + /** + * + * + *
    +   * Output only. The type of the resource.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.NodeType.Kind kind = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for kind. + */ @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; + public int getKindValue() { + return kind_; } - + /** + * + * + *
    +   * Output only. The type of the resource.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.NodeType.Kind kind = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The kind. + */ @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeTypeId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nodeTypeId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); - } - if (virtualCpuCount_ != 0) { - output.writeInt32(4, virtualCpuCount_); - } - if (totalCoreCount_ != 0) { - output.writeInt32(5, totalCoreCount_); - } - if (memoryGb_ != 0) { - output.writeInt32(7, memoryGb_); - } - if (diskSizeGb_ != 0) { - output.writeInt32(8, diskSizeGb_); - } - if (getAvailableCustomCoreCountsList().size() > 0) { - output.writeUInt32NoTag(90); - output.writeUInt32NoTag(availableCustomCoreCountsMemoizedSerializedSize); - } - for (int i = 0; i < availableCustomCoreCounts_.size(); i++) { - output.writeInt32NoTag(availableCustomCoreCounts_.getInt(i)); - } - getUnknownFields().writeTo(output); + public com.google.cloud.vmwareengine.v1.NodeType.Kind getKind() { + com.google.cloud.vmwareengine.v1.NodeType.Kind result = + com.google.cloud.vmwareengine.v1.NodeType.Kind.forNumber(kind_); + return result == null ? com.google.cloud.vmwareengine.v1.NodeType.Kind.UNRECOGNIZED : result; } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public static final int FAMILIES_FIELD_NUMBER = 13; - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeTypeId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nodeTypeId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); - } - if (virtualCpuCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, virtualCpuCount_); - } - if (totalCoreCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, totalCoreCount_); - } - if (memoryGb_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, memoryGb_); - } - if (diskSizeGb_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, diskSizeGb_); - } - { - int dataSize = 0; - for (int i = 0; i < availableCustomCoreCounts_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag( - availableCustomCoreCounts_.getInt(i)); - } - size += dataSize; - if (!getAvailableCustomCoreCountsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); - } - availableCustomCoreCountsMemoizedSerializedSize = dataSize; - } - size += getUnknownFields().getSerializedSize(); + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList families_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
    +   * Output only. Families of the node type.
    +   * For node types to be in the same cluster
    +   * they must share at least one element in the `families`.
    +   * 
    + * + * repeated string families = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the families. + */ + public com.google.protobuf.ProtocolStringList getFamiliesList() { + return families_; + } + /** + * + * + *
    +   * Output only. Families of the node type.
    +   * For node types to be in the same cluster
    +   * they must share at least one element in the `families`.
    +   * 
    + * + * repeated string families = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of families. + */ + public int getFamiliesCount() { + return families_.size(); + } + /** + * + * + *
    +   * Output only. Families of the node type.
    +   * For node types to be in the same cluster
    +   * they must share at least one element in the `families`.
    +   * 
    + * + * repeated string families = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The families at the given index. + */ + public java.lang.String getFamilies(int index) { + return families_.get(index); + } + /** + * + * + *
    +   * Output only. Families of the node type.
    +   * For node types to be in the same cluster
    +   * they must share at least one element in the `families`.
    +   * 
    + * + * repeated string families = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the families at the given index. + */ + public com.google.protobuf.ByteString getFamiliesBytes(int index) { + return families_.getByteString(index); + } + + public static final int CAPABILITIES_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private java.util.List capabilities_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.vmwareengine.v1.NodeType.Capability> + capabilities_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.vmwareengine.v1.NodeType.Capability>() { + public com.google.cloud.vmwareengine.v1.NodeType.Capability convert( + java.lang.Integer from) { + com.google.cloud.vmwareengine.v1.NodeType.Capability result = + com.google.cloud.vmwareengine.v1.NodeType.Capability.forNumber(from); + return result == null + ? com.google.cloud.vmwareengine.v1.NodeType.Capability.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
    +   * Output only. Capabilities of this node type.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.NodeType.Capability capabilities = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the capabilities. + */ + @java.lang.Override + public java.util.List + getCapabilitiesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.vmwareengine.v1.NodeType.Capability>( + capabilities_, capabilities_converter_); + } + /** + * + * + *
    +   * Output only. Capabilities of this node type.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.NodeType.Capability capabilities = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of capabilities. + */ + @java.lang.Override + public int getCapabilitiesCount() { + return capabilities_.size(); + } + /** + * + * + *
    +   * Output only. Capabilities of this node type.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.NodeType.Capability capabilities = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The capabilities at the given index. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NodeType.Capability getCapabilities(int index) { + return capabilities_converter_.convert(capabilities_.get(index)); + } + /** + * + * + *
    +   * Output only. Capabilities of this node type.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.NodeType.Capability capabilities = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enum numeric values on the wire for capabilities. + */ + @java.lang.Override + public java.util.List getCapabilitiesValueList() { + return capabilities_; + } + /** + * + * + *
    +   * Output only. Capabilities of this node type.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.NodeType.Capability capabilities = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of capabilities at the given index. + */ + @java.lang.Override + public int getCapabilitiesValue(int index) { + return capabilities_.get(index); + } + + private int capabilitiesMemoizedSerializedSize; + + 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 { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeTypeId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nodeTypeId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); + } + if (virtualCpuCount_ != 0) { + output.writeInt32(4, virtualCpuCount_); + } + if (totalCoreCount_ != 0) { + output.writeInt32(5, totalCoreCount_); + } + if (memoryGb_ != 0) { + output.writeInt32(7, memoryGb_); + } + if (diskSizeGb_ != 0) { + output.writeInt32(8, diskSizeGb_); + } + if (getAvailableCustomCoreCountsList().size() > 0) { + output.writeUInt32NoTag(90); + output.writeUInt32NoTag(availableCustomCoreCountsMemoizedSerializedSize); + } + for (int i = 0; i < availableCustomCoreCounts_.size(); i++) { + output.writeInt32NoTag(availableCustomCoreCounts_.getInt(i)); + } + if (kind_ != com.google.cloud.vmwareengine.v1.NodeType.Kind.KIND_UNSPECIFIED.getNumber()) { + output.writeEnum(12, kind_); + } + for (int i = 0; i < families_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, families_.getRaw(i)); + } + if (getCapabilitiesList().size() > 0) { + output.writeUInt32NoTag(114); + output.writeUInt32NoTag(capabilitiesMemoizedSerializedSize); + } + for (int i = 0; i < capabilities_.size(); i++) { + output.writeEnumNoTag(capabilities_.get(i)); + } + 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(nodeTypeId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nodeTypeId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); + } + if (virtualCpuCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, virtualCpuCount_); + } + if (totalCoreCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, totalCoreCount_); + } + if (memoryGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, memoryGb_); + } + if (diskSizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, diskSizeGb_); + } + { + int dataSize = 0; + for (int i = 0; i < availableCustomCoreCounts_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag( + availableCustomCoreCounts_.getInt(i)); + } + size += dataSize; + if (!getAvailableCustomCoreCountsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + availableCustomCoreCountsMemoizedSerializedSize = dataSize; + } + if (kind_ != com.google.cloud.vmwareengine.v1.NodeType.Kind.KIND_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, kind_); + } + { + int dataSize = 0; + for (int i = 0; i < families_.size(); i++) { + dataSize += computeStringSizeNoTag(families_.getRaw(i)); + } + size += dataSize; + size += 1 * getFamiliesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < capabilities_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(capabilities_.get(i)); + } + size += dataSize; + if (!getCapabilitiesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + capabilitiesMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -471,6 +1028,9 @@ public boolean equals(final java.lang.Object obj) { if (getDiskSizeGb() != other.getDiskSizeGb()) return false; if (!getAvailableCustomCoreCountsList().equals(other.getAvailableCustomCoreCountsList())) return false; + if (kind_ != other.kind_) return false; + if (!getFamiliesList().equals(other.getFamiliesList())) return false; + if (!capabilities_.equals(other.capabilities_)) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -500,6 +1060,16 @@ public int hashCode() { hash = (37 * hash) + AVAILABLE_CUSTOM_CORE_COUNTS_FIELD_NUMBER; hash = (53 * hash) + getAvailableCustomCoreCountsList().hashCode(); } + hash = (37 * hash) + KIND_FIELD_NUMBER; + hash = (53 * hash) + kind_; + if (getFamiliesCount() > 0) { + hash = (37 * hash) + FAMILIES_FIELD_NUMBER; + hash = (53 * hash) + getFamiliesList().hashCode(); + } + if (getCapabilitiesCount() > 0) { + hash = (37 * hash) + CAPABILITIES_FIELD_NUMBER; + hash = (53 * hash) + capabilities_.hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -647,6 +1217,10 @@ public Builder clear() { memoryGb_ = 0; diskSizeGb_ = 0; availableCustomCoreCounts_ = emptyIntList(); + kind_ = 0; + families_ = com.google.protobuf.LazyStringArrayList.emptyList(); + capabilities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); return this; } @@ -688,6 +1262,11 @@ private void buildPartialRepeatedFields(com.google.cloud.vmwareengine.v1.NodeTyp bitField0_ = (bitField0_ & ~0x00000080); } result.availableCustomCoreCounts_ = availableCustomCoreCounts_; + if (((bitField0_ & 0x00000400) != 0)) { + capabilities_ = java.util.Collections.unmodifiableList(capabilities_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.capabilities_ = capabilities_; } private void buildPartial0(com.google.cloud.vmwareengine.v1.NodeType result) { @@ -713,6 +1292,13 @@ private void buildPartial0(com.google.cloud.vmwareengine.v1.NodeType result) { if (((from_bitField0_ & 0x00000040) != 0)) { result.diskSizeGb_ = diskSizeGb_; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.kind_ = kind_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + families_.makeImmutable(); + result.families_ = families_; + } } @java.lang.Override @@ -797,6 +1383,29 @@ public Builder mergeFrom(com.google.cloud.vmwareengine.v1.NodeType other) { } onChanged(); } + if (other.kind_ != 0) { + setKindValue(other.getKindValue()); + } + if (!other.families_.isEmpty()) { + if (families_.isEmpty()) { + families_ = other.families_; + bitField0_ |= 0x00000200; + } else { + ensureFamiliesIsMutable(); + families_.addAll(other.families_); + } + onChanged(); + } + if (!other.capabilities_.isEmpty()) { + if (capabilities_.isEmpty()) { + capabilities_ = other.capabilities_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureCapabilitiesIsMutable(); + capabilities_.addAll(other.capabilities_); + } + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -883,6 +1492,38 @@ public Builder mergeFrom( input.popLimit(limit); break; } // case 90 + case 96: + { + kind_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 96 + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureFamiliesIsMutable(); + families_.add(s); + break; + } // case 106 + case 112: + { + int tmpRaw = input.readEnum(); + ensureCapabilitiesIsMutable(); + capabilities_.add(tmpRaw); + break; + } // case 112 + case 114: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureCapabilitiesIsMutable(); + capabilities_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 114 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1605,6 +2246,545 @@ public Builder clearAvailableCustomCoreCounts() { return this; } + private int kind_ = 0; + /** + * + * + *
    +     * Output only. The type of the resource.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.NodeType.Kind kind = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for kind. + */ + @java.lang.Override + public int getKindValue() { + return kind_; + } + /** + * + * + *
    +     * Output only. The type of the resource.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.NodeType.Kind kind = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for kind to set. + * @return This builder for chaining. + */ + public Builder setKindValue(int value) { + kind_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The type of the resource.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.NodeType.Kind kind = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The kind. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NodeType.Kind getKind() { + com.google.cloud.vmwareengine.v1.NodeType.Kind result = + com.google.cloud.vmwareengine.v1.NodeType.Kind.forNumber(kind_); + return result == null ? com.google.cloud.vmwareengine.v1.NodeType.Kind.UNRECOGNIZED : result; + } + /** + * + * + *
    +     * Output only. The type of the resource.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.NodeType.Kind kind = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The kind to set. + * @return This builder for chaining. + */ + public Builder setKind(com.google.cloud.vmwareengine.v1.NodeType.Kind value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + kind_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The type of the resource.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.NodeType.Kind kind = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearKind() { + bitField0_ = (bitField0_ & ~0x00000100); + kind_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList families_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureFamiliesIsMutable() { + if (!families_.isModifiable()) { + families_ = new com.google.protobuf.LazyStringArrayList(families_); + } + bitField0_ |= 0x00000200; + } + /** + * + * + *
    +     * Output only. Families of the node type.
    +     * For node types to be in the same cluster
    +     * they must share at least one element in the `families`.
    +     * 
    + * + * repeated string families = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the families. + */ + public com.google.protobuf.ProtocolStringList getFamiliesList() { + families_.makeImmutable(); + return families_; + } + /** + * + * + *
    +     * Output only. Families of the node type.
    +     * For node types to be in the same cluster
    +     * they must share at least one element in the `families`.
    +     * 
    + * + * repeated string families = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of families. + */ + public int getFamiliesCount() { + return families_.size(); + } + /** + * + * + *
    +     * Output only. Families of the node type.
    +     * For node types to be in the same cluster
    +     * they must share at least one element in the `families`.
    +     * 
    + * + * repeated string families = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The families at the given index. + */ + public java.lang.String getFamilies(int index) { + return families_.get(index); + } + /** + * + * + *
    +     * Output only. Families of the node type.
    +     * For node types to be in the same cluster
    +     * they must share at least one element in the `families`.
    +     * 
    + * + * repeated string families = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the families at the given index. + */ + public com.google.protobuf.ByteString getFamiliesBytes(int index) { + return families_.getByteString(index); + } + /** + * + * + *
    +     * Output only. Families of the node type.
    +     * For node types to be in the same cluster
    +     * they must share at least one element in the `families`.
    +     * 
    + * + * repeated string families = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The families to set. + * @return This builder for chaining. + */ + public Builder setFamilies(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFamiliesIsMutable(); + families_.set(index, value); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Families of the node type.
    +     * For node types to be in the same cluster
    +     * they must share at least one element in the `families`.
    +     * 
    + * + * repeated string families = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The families to add. + * @return This builder for chaining. + */ + public Builder addFamilies(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFamiliesIsMutable(); + families_.add(value); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Families of the node type.
    +     * For node types to be in the same cluster
    +     * they must share at least one element in the `families`.
    +     * 
    + * + * repeated string families = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The families to add. + * @return This builder for chaining. + */ + public Builder addAllFamilies(java.lang.Iterable values) { + ensureFamiliesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, families_); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Families of the node type.
    +     * For node types to be in the same cluster
    +     * they must share at least one element in the `families`.
    +     * 
    + * + * repeated string families = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearFamilies() { + families_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + ; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Families of the node type.
    +     * For node types to be in the same cluster
    +     * they must share at least one element in the `families`.
    +     * 
    + * + * repeated string families = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the families to add. + * @return This builder for chaining. + */ + public Builder addFamiliesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureFamiliesIsMutable(); + families_.add(value); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.util.List capabilities_ = java.util.Collections.emptyList(); + + private void ensureCapabilitiesIsMutable() { + if (!((bitField0_ & 0x00000400) != 0)) { + capabilities_ = new java.util.ArrayList(capabilities_); + bitField0_ |= 0x00000400; + } + } + /** + * + * + *
    +     * Output only. Capabilities of this node type.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.NodeType.Capability capabilities = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the capabilities. + */ + public java.util.List + getCapabilitiesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.vmwareengine.v1.NodeType.Capability>( + capabilities_, capabilities_converter_); + } + /** + * + * + *
    +     * Output only. Capabilities of this node type.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.NodeType.Capability capabilities = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of capabilities. + */ + public int getCapabilitiesCount() { + return capabilities_.size(); + } + /** + * + * + *
    +     * Output only. Capabilities of this node type.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.NodeType.Capability capabilities = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The capabilities at the given index. + */ + public com.google.cloud.vmwareengine.v1.NodeType.Capability getCapabilities(int index) { + return capabilities_converter_.convert(capabilities_.get(index)); + } + /** + * + * + *
    +     * Output only. Capabilities of this node type.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.NodeType.Capability capabilities = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The capabilities to set. + * @return This builder for chaining. + */ + public Builder setCapabilities( + int index, com.google.cloud.vmwareengine.v1.NodeType.Capability value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCapabilitiesIsMutable(); + capabilities_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Capabilities of this node type.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.NodeType.Capability capabilities = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The capabilities to add. + * @return This builder for chaining. + */ + public Builder addCapabilities(com.google.cloud.vmwareengine.v1.NodeType.Capability value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCapabilitiesIsMutable(); + capabilities_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Capabilities of this node type.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.NodeType.Capability capabilities = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The capabilities to add. + * @return This builder for chaining. + */ + public Builder addAllCapabilities( + java.lang.Iterable values) { + ensureCapabilitiesIsMutable(); + for (com.google.cloud.vmwareengine.v1.NodeType.Capability value : values) { + capabilities_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Capabilities of this node type.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.NodeType.Capability capabilities = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCapabilities() { + capabilities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Capabilities of this node type.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.NodeType.Capability capabilities = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enum numeric values on the wire for capabilities. + */ + public java.util.List getCapabilitiesValueList() { + return java.util.Collections.unmodifiableList(capabilities_); + } + /** + * + * + *
    +     * Output only. Capabilities of this node type.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.NodeType.Capability capabilities = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of capabilities at the given index. + */ + public int getCapabilitiesValue(int index) { + return capabilities_.get(index); + } + /** + * + * + *
    +     * Output only. Capabilities of this node type.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.NodeType.Capability capabilities = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for capabilities to set. + * @return This builder for chaining. + */ + public Builder setCapabilitiesValue(int index, int value) { + ensureCapabilitiesIsMutable(); + capabilities_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Capabilities of this node type.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.NodeType.Capability capabilities = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for capabilities to add. + * @return This builder for chaining. + */ + public Builder addCapabilitiesValue(int value) { + ensureCapabilitiesIsMutable(); + capabilities_.add(value); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Capabilities of this node type.
    +     * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.NodeType.Capability capabilities = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The enum numeric values on the wire for capabilities to add. + * @return This builder for chaining. + */ + public Builder addAllCapabilitiesValue(java.lang.Iterable values) { + ensureCapabilitiesIsMutable(); + for (int value : values) { + capabilities_.add(value); + } + 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/NodeTypeOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeTypeOrBuilder.java index ecf9dee1fad1..d61e8ab425e1 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeTypeOrBuilder.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeTypeOrBuilder.java @@ -205,4 +205,165 @@ public interface NodeTypeOrBuilder * @return The availableCustomCoreCounts at the given index. */ int getAvailableCustomCoreCounts(int index); + + /** + * + * + *
    +   * Output only. The type of the resource.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.NodeType.Kind kind = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for kind. + */ + int getKindValue(); + /** + * + * + *
    +   * Output only. The type of the resource.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.NodeType.Kind kind = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The kind. + */ + com.google.cloud.vmwareengine.v1.NodeType.Kind getKind(); + + /** + * + * + *
    +   * Output only. Families of the node type.
    +   * For node types to be in the same cluster
    +   * they must share at least one element in the `families`.
    +   * 
    + * + * repeated string families = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the families. + */ + java.util.List getFamiliesList(); + /** + * + * + *
    +   * Output only. Families of the node type.
    +   * For node types to be in the same cluster
    +   * they must share at least one element in the `families`.
    +   * 
    + * + * repeated string families = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of families. + */ + int getFamiliesCount(); + /** + * + * + *
    +   * Output only. Families of the node type.
    +   * For node types to be in the same cluster
    +   * they must share at least one element in the `families`.
    +   * 
    + * + * repeated string families = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The families at the given index. + */ + java.lang.String getFamilies(int index); + /** + * + * + *
    +   * Output only. Families of the node type.
    +   * For node types to be in the same cluster
    +   * they must share at least one element in the `families`.
    +   * 
    + * + * repeated string families = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the families at the given index. + */ + com.google.protobuf.ByteString getFamiliesBytes(int index); + + /** + * + * + *
    +   * Output only. Capabilities of this node type.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.NodeType.Capability capabilities = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the capabilities. + */ + java.util.List getCapabilitiesList(); + /** + * + * + *
    +   * Output only. Capabilities of this node type.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.NodeType.Capability capabilities = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of capabilities. + */ + int getCapabilitiesCount(); + /** + * + * + *
    +   * Output only. Capabilities of this node type.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.NodeType.Capability capabilities = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The capabilities at the given index. + */ + com.google.cloud.vmwareengine.v1.NodeType.Capability getCapabilities(int index); + /** + * + * + *
    +   * Output only. Capabilities of this node type.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.NodeType.Capability capabilities = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enum numeric values on the wire for capabilities. + */ + java.util.List getCapabilitiesValueList(); + /** + * + * + *
    +   * Output only. Capabilities of this node type.
    +   * 
    + * + * + * repeated .google.cloud.vmwareengine.v1.NodeType.Capability capabilities = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of capabilities at the given index. + */ + int getCapabilitiesValue(int index); } diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Principal.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Principal.java new file mode 100644 index 000000000000..91368bf522c8 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Principal.java @@ -0,0 +1,990 @@ +/* + * 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; + +/** + * + * + *
    + * Users/Service accounts which have access for DNS binding on the intranet
    + * VPC corresponding to the consumer project.
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.Principal} + */ +public final class Principal extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.Principal) + PrincipalOrBuilder { + private static final long serialVersionUID = 0L; + // Use Principal.newBuilder() to construct. + private Principal(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Principal() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Principal(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_Principal_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_Principal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.Principal.class, + com.google.cloud.vmwareengine.v1.Principal.Builder.class); + } + + private int principalCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object principal_; + + public enum PrincipalCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + USER(1), + SERVICE_ACCOUNT(2), + PRINCIPAL_NOT_SET(0); + private final int value; + + private PrincipalCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PrincipalCase valueOf(int value) { + return forNumber(value); + } + + public static PrincipalCase forNumber(int value) { + switch (value) { + case 1: + return USER; + case 2: + return SERVICE_ACCOUNT; + case 0: + return PRINCIPAL_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public PrincipalCase getPrincipalCase() { + return PrincipalCase.forNumber(principalCase_); + } + + public static final int USER_FIELD_NUMBER = 1; + /** + * + * + *
    +   * The user who needs to be granted permission.
    +   * 
    + * + * string user = 1; + * + * @return Whether the user field is set. + */ + public boolean hasUser() { + return principalCase_ == 1; + } + /** + * + * + *
    +   * The user who needs to be granted permission.
    +   * 
    + * + * string user = 1; + * + * @return The user. + */ + public java.lang.String getUser() { + java.lang.Object ref = ""; + if (principalCase_ == 1) { + ref = principal_; + } + 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(); + if (principalCase_ == 1) { + principal_ = s; + } + return s; + } + } + /** + * + * + *
    +   * The user who needs to be granted permission.
    +   * 
    + * + * string user = 1; + * + * @return The bytes for user. + */ + public com.google.protobuf.ByteString getUserBytes() { + java.lang.Object ref = ""; + if (principalCase_ == 1) { + ref = principal_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (principalCase_ == 1) { + principal_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 2; + /** + * + * + *
    +   * The service account which needs to be granted the permission.
    +   * 
    + * + * string service_account = 2; + * + * @return Whether the serviceAccount field is set. + */ + public boolean hasServiceAccount() { + return principalCase_ == 2; + } + /** + * + * + *
    +   * The service account which needs to be granted the permission.
    +   * 
    + * + * string service_account = 2; + * + * @return The serviceAccount. + */ + public java.lang.String getServiceAccount() { + java.lang.Object ref = ""; + if (principalCase_ == 2) { + ref = principal_; + } + 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(); + if (principalCase_ == 2) { + principal_ = s; + } + return s; + } + } + /** + * + * + *
    +   * The service account which needs to be granted the permission.
    +   * 
    + * + * string service_account = 2; + * + * @return The bytes for serviceAccount. + */ + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = ""; + if (principalCase_ == 2) { + ref = principal_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (principalCase_ == 2) { + principal_ = 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 (principalCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, principal_); + } + if (principalCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, principal_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (principalCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, principal_); + } + if (principalCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, principal_); + } + 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.Principal)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.Principal other = + (com.google.cloud.vmwareengine.v1.Principal) obj; + + if (!getPrincipalCase().equals(other.getPrincipalCase())) return false; + switch (principalCase_) { + case 1: + if (!getUser().equals(other.getUser())) return false; + break; + case 2: + if (!getServiceAccount().equals(other.getServiceAccount())) return false; + break; + case 0: + default: + } + 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(); + switch (principalCase_) { + case 1: + hash = (37 * hash) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUser().hashCode(); + break; + case 2: + hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccount().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.Principal parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.Principal 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.Principal parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.Principal 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.Principal parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.Principal 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.Principal parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.Principal 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.Principal parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.Principal 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.Principal 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.Principal 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.Principal 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; + } + /** + * + * + *
    +   * Users/Service accounts which have access for DNS binding on the intranet
    +   * VPC corresponding to the consumer project.
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.Principal} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.Principal) + com.google.cloud.vmwareengine.v1.PrincipalOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_Principal_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_Principal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.Principal.class, + com.google.cloud.vmwareengine.v1.Principal.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.Principal.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + principalCase_ = 0; + principal_ = null; + 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_Principal_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Principal getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.Principal.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Principal build() { + com.google.cloud.vmwareengine.v1.Principal result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Principal buildPartial() { + com.google.cloud.vmwareengine.v1.Principal result = + new com.google.cloud.vmwareengine.v1.Principal(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmwareengine.v1.Principal result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.vmwareengine.v1.Principal result) { + result.principalCase_ = principalCase_; + result.principal_ = this.principal_; + } + + @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.Principal) { + return mergeFrom((com.google.cloud.vmwareengine.v1.Principal) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.Principal other) { + if (other == com.google.cloud.vmwareengine.v1.Principal.getDefaultInstance()) return this; + switch (other.getPrincipalCase()) { + case USER: + { + principalCase_ = 1; + principal_ = other.principal_; + onChanged(); + break; + } + case SERVICE_ACCOUNT: + { + principalCase_ = 2; + principal_ = other.principal_; + onChanged(); + break; + } + case PRINCIPAL_NOT_SET: + { + break; + } + } + 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: + { + java.lang.String s = input.readStringRequireUtf8(); + principalCase_ = 1; + principal_ = s; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + principalCase_ = 2; + principal_ = s; + 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 principalCase_ = 0; + private java.lang.Object principal_; + + public PrincipalCase getPrincipalCase() { + return PrincipalCase.forNumber(principalCase_); + } + + public Builder clearPrincipal() { + principalCase_ = 0; + principal_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
    +     * The user who needs to be granted permission.
    +     * 
    + * + * string user = 1; + * + * @return Whether the user field is set. + */ + @java.lang.Override + public boolean hasUser() { + return principalCase_ == 1; + } + /** + * + * + *
    +     * The user who needs to be granted permission.
    +     * 
    + * + * string user = 1; + * + * @return The user. + */ + @java.lang.Override + public java.lang.String getUser() { + java.lang.Object ref = ""; + if (principalCase_ == 1) { + ref = principal_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (principalCase_ == 1) { + principal_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * The user who needs to be granted permission.
    +     * 
    + * + * string user = 1; + * + * @return The bytes for user. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserBytes() { + java.lang.Object ref = ""; + if (principalCase_ == 1) { + ref = principal_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (principalCase_ == 1) { + principal_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * The user who needs to be granted permission.
    +     * 
    + * + * string user = 1; + * + * @param value The user to set. + * @return This builder for chaining. + */ + public Builder setUser(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + principalCase_ = 1; + principal_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * The user who needs to be granted permission.
    +     * 
    + * + * string user = 1; + * + * @return This builder for chaining. + */ + public Builder clearUser() { + if (principalCase_ == 1) { + principalCase_ = 0; + principal_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * The user who needs to be granted permission.
    +     * 
    + * + * string user = 1; + * + * @param value The bytes for user to set. + * @return This builder for chaining. + */ + public Builder setUserBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + principalCase_ = 1; + principal_ = value; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The service account which needs to be granted the permission.
    +     * 
    + * + * string service_account = 2; + * + * @return Whether the serviceAccount field is set. + */ + @java.lang.Override + public boolean hasServiceAccount() { + return principalCase_ == 2; + } + /** + * + * + *
    +     * The service account which needs to be granted the permission.
    +     * 
    + * + * string service_account = 2; + * + * @return The serviceAccount. + */ + @java.lang.Override + public java.lang.String getServiceAccount() { + java.lang.Object ref = ""; + if (principalCase_ == 2) { + ref = principal_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (principalCase_ == 2) { + principal_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * The service account which needs to be granted the permission.
    +     * 
    + * + * string service_account = 2; + * + * @return The bytes for serviceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = ""; + if (principalCase_ == 2) { + ref = principal_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (principalCase_ == 2) { + principal_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * The service account which needs to be granted the permission.
    +     * 
    + * + * string service_account = 2; + * + * @param value The serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + principalCase_ = 2; + principal_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * The service account which needs to be granted the permission.
    +     * 
    + * + * string service_account = 2; + * + * @return This builder for chaining. + */ + public Builder clearServiceAccount() { + if (principalCase_ == 2) { + principalCase_ = 0; + principal_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * The service account which needs to be granted the permission.
    +     * 
    + * + * string service_account = 2; + * + * @param value The bytes for serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + principalCase_ = 2; + principal_ = value; + 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.Principal) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.Principal) + private static final com.google.cloud.vmwareengine.v1.Principal DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.Principal(); + } + + public static com.google.cloud.vmwareengine.v1.Principal getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Principal 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.Principal getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrincipalOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrincipalOrBuilder.java new file mode 100644 index 000000000000..c96eed33f68b --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrincipalOrBuilder.java @@ -0,0 +1,101 @@ +/* + * 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 PrincipalOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.Principal) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The user who needs to be granted permission.
    +   * 
    + * + * string user = 1; + * + * @return Whether the user field is set. + */ + boolean hasUser(); + /** + * + * + *
    +   * The user who needs to be granted permission.
    +   * 
    + * + * string user = 1; + * + * @return The user. + */ + java.lang.String getUser(); + /** + * + * + *
    +   * The user who needs to be granted permission.
    +   * 
    + * + * string user = 1; + * + * @return The bytes for user. + */ + com.google.protobuf.ByteString getUserBytes(); + + /** + * + * + *
    +   * The service account which needs to be granted the permission.
    +   * 
    + * + * string service_account = 2; + * + * @return Whether the serviceAccount field is set. + */ + boolean hasServiceAccount(); + /** + * + * + *
    +   * The service account which needs to be granted the permission.
    +   * 
    + * + * string service_account = 2; + * + * @return The serviceAccount. + */ + java.lang.String getServiceAccount(); + /** + * + * + *
    +   * The service account which needs to be granted the permission.
    +   * 
    + * + * string service_account = 2; + * + * @return The bytes for serviceAccount. + */ + com.google.protobuf.ByteString getServiceAccountBytes(); + + com.google.cloud.vmwareengine.v1.Principal.PrincipalCase getPrincipalCase(); +} 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 54ae115fa94a..5bbfbf620c1d 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 @@ -22,7 +22,9 @@ * * *
    - * Represents a private cloud resource. Private clouds are zonal resources.
    + * Represents a private cloud resource. Private clouds of type `STANDARD` and
    + * `TIME_LIMITED` are zonal resources, `STRETCHED` private clouds are
    + * regional.
      * 
    * * Protobuf type {@code google.cloud.vmwareengine.v1.PrivateCloud} @@ -348,6 +350,17 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * TIME_LIMITED = 1; */ TIME_LIMITED(1), + /** + * + * + *
    +     * Stretched private cloud is a regional resource with redundancy,
    +     * with a minimum of 6 nodes, nodes count has to be even.
    +     * 
    + * + * STRETCHED = 2; + */ + STRETCHED(2), UNRECOGNIZED(-1), ; @@ -374,6 +387,17 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * TIME_LIMITED = 1; */ public static final int TIME_LIMITED_VALUE = 1; + /** + * + * + *
    +     * Stretched private cloud is a regional resource with redundancy,
    +     * with a minimum of 6 nodes, nodes count has to be even.
    +     * 
    + * + * STRETCHED = 2; + */ + public static final int STRETCHED_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -403,6 +427,8 @@ public static Type forNumber(int value) { return STANDARD; case 1: return TIME_LIMITED; + case 2: + return STRETCHED; default: return null; } @@ -576,6 +602,51 @@ com.google.cloud.vmwareengine.v1.NodeTypeConfig getNodeTypeConfigsOrDefault( * */ com.google.cloud.vmwareengine.v1.NodeTypeConfig getNodeTypeConfigsOrThrow(java.lang.String key); + + /** + * + * + *
    +     * Optional. Configuration of a stretched cluster. Required for STRETCHED
    +     * private clouds.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the stretchedClusterConfig field is set. + */ + boolean hasStretchedClusterConfig(); + /** + * + * + *
    +     * Optional. Configuration of a stretched cluster. Required for STRETCHED
    +     * private clouds.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The stretchedClusterConfig. + */ + com.google.cloud.vmwareengine.v1.StretchedClusterConfig getStretchedClusterConfig(); + /** + * + * + *
    +     * Optional. Configuration of a stretched cluster. Required for STRETCHED
    +     * private clouds.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vmwareengine.v1.StretchedClusterConfigOrBuilder + getStretchedClusterConfigOrBuilder(); } /** * @@ -828,6 +899,66 @@ public com.google.cloud.vmwareengine.v1.NodeTypeConfig getNodeTypeConfigsOrThrow return map.get(key); } + public static final int STRETCHED_CLUSTER_CONFIG_FIELD_NUMBER = 8; + private com.google.cloud.vmwareengine.v1.StretchedClusterConfig stretchedClusterConfig_; + /** + * + * + *
    +     * Optional. Configuration of a stretched cluster. Required for STRETCHED
    +     * private clouds.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the stretchedClusterConfig field is set. + */ + @java.lang.Override + public boolean hasStretchedClusterConfig() { + return stretchedClusterConfig_ != null; + } + /** + * + * + *
    +     * Optional. Configuration of a stretched cluster. Required for STRETCHED
    +     * private clouds.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The stretchedClusterConfig. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.StretchedClusterConfig getStretchedClusterConfig() { + return stretchedClusterConfig_ == null + ? com.google.cloud.vmwareengine.v1.StretchedClusterConfig.getDefaultInstance() + : stretchedClusterConfig_; + } + /** + * + * + *
    +     * Optional. Configuration of a stretched cluster. Required for STRETCHED
    +     * private clouds.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.StretchedClusterConfigOrBuilder + getStretchedClusterConfigOrBuilder() { + return stretchedClusterConfig_ == null + ? com.google.cloud.vmwareengine.v1.StretchedClusterConfig.getDefaultInstance() + : stretchedClusterConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -847,6 +978,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetNodeTypeConfigs(), NodeTypeConfigsDefaultEntryHolder.defaultEntry, 7); + if (stretchedClusterConfig_ != null) { + output.writeMessage(8, getStretchedClusterConfig()); + } getUnknownFields().writeTo(output); } @@ -871,6 +1005,11 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, nodeTypeConfigs__); } + if (stretchedClusterConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, getStretchedClusterConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -889,6 +1028,10 @@ public boolean equals(final java.lang.Object obj) { if (!getClusterId().equals(other.getClusterId())) return false; if (!internalGetNodeTypeConfigs().equals(other.internalGetNodeTypeConfigs())) return false; + if (hasStretchedClusterConfig() != other.hasStretchedClusterConfig()) return false; + if (hasStretchedClusterConfig()) { + if (!getStretchedClusterConfig().equals(other.getStretchedClusterConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -906,6 +1049,10 @@ public int hashCode() { hash = (37 * hash) + NODE_TYPE_CONFIGS_FIELD_NUMBER; hash = (53 * hash) + internalGetNodeTypeConfigs().hashCode(); } + if (hasStretchedClusterConfig()) { + hash = (37 * hash) + STRETCHED_CLUSTER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getStretchedClusterConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1072,6 +1219,11 @@ public Builder clear() { bitField0_ = 0; clusterId_ = ""; internalGetMutableNodeTypeConfigs().clear(); + stretchedClusterConfig_ = null; + if (stretchedClusterConfigBuilder_ != null) { + stretchedClusterConfigBuilder_.dispose(); + stretchedClusterConfigBuilder_ = null; + } return this; } @@ -1117,6 +1269,12 @@ private void buildPartial0( result.nodeTypeConfigs_ = internalGetNodeTypeConfigs(); result.nodeTypeConfigs_.makeImmutable(); } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.stretchedClusterConfig_ = + stretchedClusterConfigBuilder_ == null + ? stretchedClusterConfig_ + : stretchedClusterConfigBuilder_.build(); + } } @java.lang.Override @@ -1176,6 +1334,9 @@ public Builder mergeFrom( } internalGetMutableNodeTypeConfigs().mergeFrom(other.internalGetNodeTypeConfigs()); bitField0_ |= 0x00000002; + if (other.hasStretchedClusterConfig()) { + mergeStretchedClusterConfig(other.getStretchedClusterConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1222,6 +1383,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 58 + case 66: + { + input.readMessage( + getStretchedClusterConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1588,6 +1756,222 @@ public Builder putAllNodeTypeConfigs( return this; } + private com.google.cloud.vmwareengine.v1.StretchedClusterConfig stretchedClusterConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.StretchedClusterConfig, + com.google.cloud.vmwareengine.v1.StretchedClusterConfig.Builder, + com.google.cloud.vmwareengine.v1.StretchedClusterConfigOrBuilder> + stretchedClusterConfigBuilder_; + /** + * + * + *
    +       * Optional. Configuration of a stretched cluster. Required for STRETCHED
    +       * private clouds.
    +       * 
    + * + * + * .google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the stretchedClusterConfig field is set. + */ + public boolean hasStretchedClusterConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +       * Optional. Configuration of a stretched cluster. Required for STRETCHED
    +       * private clouds.
    +       * 
    + * + * + * .google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The stretchedClusterConfig. + */ + public com.google.cloud.vmwareengine.v1.StretchedClusterConfig getStretchedClusterConfig() { + if (stretchedClusterConfigBuilder_ == null) { + return stretchedClusterConfig_ == null + ? com.google.cloud.vmwareengine.v1.StretchedClusterConfig.getDefaultInstance() + : stretchedClusterConfig_; + } else { + return stretchedClusterConfigBuilder_.getMessage(); + } + } + /** + * + * + *
    +       * Optional. Configuration of a stretched cluster. Required for STRETCHED
    +       * private clouds.
    +       * 
    + * + * + * .google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStretchedClusterConfig( + com.google.cloud.vmwareengine.v1.StretchedClusterConfig value) { + if (stretchedClusterConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stretchedClusterConfig_ = value; + } else { + stretchedClusterConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. Configuration of a stretched cluster. Required for STRETCHED
    +       * private clouds.
    +       * 
    + * + * + * .google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStretchedClusterConfig( + com.google.cloud.vmwareengine.v1.StretchedClusterConfig.Builder builderForValue) { + if (stretchedClusterConfigBuilder_ == null) { + stretchedClusterConfig_ = builderForValue.build(); + } else { + stretchedClusterConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. Configuration of a stretched cluster. Required for STRETCHED
    +       * private clouds.
    +       * 
    + * + * + * .google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeStretchedClusterConfig( + com.google.cloud.vmwareengine.v1.StretchedClusterConfig value) { + if (stretchedClusterConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && stretchedClusterConfig_ != null + && stretchedClusterConfig_ + != com.google.cloud.vmwareengine.v1.StretchedClusterConfig.getDefaultInstance()) { + getStretchedClusterConfigBuilder().mergeFrom(value); + } else { + stretchedClusterConfig_ = value; + } + } else { + stretchedClusterConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. Configuration of a stretched cluster. Required for STRETCHED
    +       * private clouds.
    +       * 
    + * + * + * .google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearStretchedClusterConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + stretchedClusterConfig_ = null; + if (stretchedClusterConfigBuilder_ != null) { + stretchedClusterConfigBuilder_.dispose(); + stretchedClusterConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. Configuration of a stretched cluster. Required for STRETCHED
    +       * private clouds.
    +       * 
    + * + * + * .google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmwareengine.v1.StretchedClusterConfig.Builder + getStretchedClusterConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getStretchedClusterConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
    +       * Optional. Configuration of a stretched cluster. Required for STRETCHED
    +       * private clouds.
    +       * 
    + * + * + * .google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmwareengine.v1.StretchedClusterConfigOrBuilder + getStretchedClusterConfigOrBuilder() { + if (stretchedClusterConfigBuilder_ != null) { + return stretchedClusterConfigBuilder_.getMessageOrBuilder(); + } else { + return stretchedClusterConfig_ == null + ? com.google.cloud.vmwareengine.v1.StretchedClusterConfig.getDefaultInstance() + : stretchedClusterConfig_; + } + } + /** + * + * + *
    +       * Optional. Configuration of a stretched cluster. Required for STRETCHED
    +       * private clouds.
    +       * 
    + * + * + * .google.cloud.vmwareengine.v1.StretchedClusterConfig stretched_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.StretchedClusterConfig, + com.google.cloud.vmwareengine.v1.StretchedClusterConfig.Builder, + com.google.cloud.vmwareengine.v1.StretchedClusterConfigOrBuilder> + getStretchedClusterConfigFieldBuilder() { + if (stretchedClusterConfigBuilder_ == null) { + stretchedClusterConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.StretchedClusterConfig, + com.google.cloud.vmwareengine.v1.StretchedClusterConfig.Builder, + com.google.cloud.vmwareengine.v1.StretchedClusterConfigOrBuilder>( + getStretchedClusterConfig(), getParentForChildren(), isClean()); + stretchedClusterConfig_ = null; + } + return stretchedClusterConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2705,7 +3089,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
    -   * Represents a private cloud resource. Private clouds are zonal resources.
    +   * Represents a private cloud resource. Private clouds of type `STANDARD` and
    +   * `TIME_LIMITED` are zonal resources, `STRETCHED` private clouds are
    +   * regional.
        * 
    * * Protobuf type {@code google.cloud.vmwareengine.v1.PrivateCloud} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/RepairManagementDnsZoneBindingRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/RepairManagementDnsZoneBindingRequest.java new file mode 100644 index 000000000000..b69a1211838e --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/RepairManagementDnsZoneBindingRequest.java @@ -0,0 +1,954 @@ +/* + * 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.RepairManagementDnsZoneBindings][]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest} + */ +public final class RepairManagementDnsZoneBindingRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest) + RepairManagementDnsZoneBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RepairManagementDnsZoneBindingRequest.newBuilder() to construct. + private RepairManagementDnsZoneBindingRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RepairManagementDnsZoneBindingRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RepairManagementDnsZoneBindingRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_RepairManagementDnsZoneBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_RepairManagementDnsZoneBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest.class, + com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. The resource name of the management DNS zone binding to repair.
    +   * 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +   * 
    + * + * + * 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 management DNS zone binding to repair.
    +   * 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +   * 
    + * + * + * 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 the 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 the 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.RepairManagementDnsZoneBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest other = + (com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest) 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.RepairManagementDnsZoneBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest 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.RepairManagementDnsZoneBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest 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.RepairManagementDnsZoneBindingRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest 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.RepairManagementDnsZoneBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest 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.RepairManagementDnsZoneBindingRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest + 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.RepairManagementDnsZoneBindingRequest 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.RepairManagementDnsZoneBindingRequest 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.RepairManagementDnsZoneBindingRequest 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.RepairManagementDnsZoneBindings][]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest) + com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_RepairManagementDnsZoneBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_RepairManagementDnsZoneBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest.class, + com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest.Builder.class); + } + + // Construct using + // com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest.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_RepairManagementDnsZoneBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest build() { + com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest buildPartial() { + com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest result = + new com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest 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.RepairManagementDnsZoneBindingRequest) { + return mergeFrom( + (com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest + .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 management DNS zone binding to repair.
    +     * 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +     * 
    + * + * + * 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 management DNS zone binding to repair.
    +     * 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +     * 
    + * + * + * 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 management DNS zone binding to repair.
    +     * 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +     * 
    + * + * + * 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 management DNS zone binding to repair.
    +     * 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +     * 
    + * + * + * 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 management DNS zone binding to repair.
    +     * 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +     * 
    + * + * + * 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 the 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 the 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 the 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 the 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 the 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.RepairManagementDnsZoneBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest) + private static final com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest(); + } + + public static com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RepairManagementDnsZoneBindingRequest 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.RepairManagementDnsZoneBindingRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/RepairManagementDnsZoneBindingRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/RepairManagementDnsZoneBindingRequestOrBuilder.java new file mode 100644 index 000000000000..0c45ab16378e --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/RepairManagementDnsZoneBindingRequestOrBuilder.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 RepairManagementDnsZoneBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the management DNS zone binding to repair.
    +   * 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +   * 
    + * + * + * 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 management DNS zone binding to repair.
    +   * 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/managementDnsZoneBindings/my-management-dns-zone-binding`
    +   * 
    + * + * + * 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 the 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 the 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/ResetVcenterCredentialsRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ResetVcenterCredentialsRequest.java index 0f0e8e28623f..a02d588478ff 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ResetVcenterCredentialsRequest.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ResetVcenterCredentialsRequest.java @@ -42,6 +42,7 @@ private ResetVcenterCredentialsRequest( private ResetVcenterCredentialsRequest() { privateCloud_ = ""; requestId_ = ""; + username_ = ""; } @java.lang.Override @@ -207,6 +208,73 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } + public static final int USERNAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object username_ = ""; + /** + * + * + *
    +   * Optional. The username of the user to be to reset the credentials.
    +   * The default value of this field is CloudOwner@gve.local.
    +   * The provided value should be one of the following:
    +   * solution-user-01@gve.local,
    +   * solution-user-02@gve.local,
    +   * solution-user-03@gve.local,
    +   * solution-user-04@gve.local,
    +   * solution-user-05@gve.local,
    +   * zertoadmin@gve.local.
    +   * 
    + * + * string username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The username. + */ + @java.lang.Override + public java.lang.String getUsername() { + java.lang.Object ref = username_; + 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(); + username_ = s; + return s; + } + } + /** + * + * + *
    +   * Optional. The username of the user to be to reset the credentials.
    +   * The default value of this field is CloudOwner@gve.local.
    +   * The provided value should be one of the following:
    +   * solution-user-01@gve.local,
    +   * solution-user-02@gve.local,
    +   * solution-user-03@gve.local,
    +   * solution-user-04@gve.local,
    +   * solution-user-05@gve.local,
    +   * zertoadmin@gve.local.
    +   * 
    + * + * string username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for username. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -227,6 +295,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, username_); + } getUnknownFields().writeTo(output); } @@ -242,6 +313,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, username_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -260,6 +334,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPrivateCloud().equals(other.getPrivateCloud())) return false; if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUsername().equals(other.getUsername())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -275,6 +350,8 @@ public int hashCode() { hash = (53 * hash) + getPrivateCloud().hashCode(); hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -418,6 +495,7 @@ public Builder clear() { bitField0_ = 0; privateCloud_ = ""; requestId_ = ""; + username_ = ""; return this; } @@ -462,6 +540,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000002) != 0)) { result.requestId_ = requestId_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.username_ = username_; + } } @java.lang.Override @@ -522,6 +603,11 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; onChanged(); } + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -560,6 +646,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: + { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -891,6 +983,152 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object username_ = ""; + /** + * + * + *
    +     * Optional. The username of the user to be to reset the credentials.
    +     * The default value of this field is CloudOwner@gve.local.
    +     * The provided value should be one of the following:
    +     * solution-user-01@gve.local,
    +     * solution-user-02@gve.local,
    +     * solution-user-03@gve.local,
    +     * solution-user-04@gve.local,
    +     * solution-user-05@gve.local,
    +     * zertoadmin@gve.local.
    +     * 
    + * + * string username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The username. + */ + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Optional. The username of the user to be to reset the credentials.
    +     * The default value of this field is CloudOwner@gve.local.
    +     * The provided value should be one of the following:
    +     * solution-user-01@gve.local,
    +     * solution-user-02@gve.local,
    +     * solution-user-03@gve.local,
    +     * solution-user-04@gve.local,
    +     * solution-user-05@gve.local,
    +     * zertoadmin@gve.local.
    +     * 
    + * + * string username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for username. + */ + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Optional. The username of the user to be to reset the credentials.
    +     * The default value of this field is CloudOwner@gve.local.
    +     * The provided value should be one of the following:
    +     * solution-user-01@gve.local,
    +     * solution-user-02@gve.local,
    +     * solution-user-03@gve.local,
    +     * solution-user-04@gve.local,
    +     * solution-user-05@gve.local,
    +     * zertoadmin@gve.local.
    +     * 
    + * + * string username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The username to set. + * @return This builder for chaining. + */ + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + username_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The username of the user to be to reset the credentials.
    +     * The default value of this field is CloudOwner@gve.local.
    +     * The provided value should be one of the following:
    +     * solution-user-01@gve.local,
    +     * solution-user-02@gve.local,
    +     * solution-user-03@gve.local,
    +     * solution-user-04@gve.local,
    +     * solution-user-05@gve.local,
    +     * zertoadmin@gve.local.
    +     * 
    + * + * string username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUsername() { + username_ = getDefaultInstance().getUsername(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The username of the user to be to reset the credentials.
    +     * The default value of this field is CloudOwner@gve.local.
    +     * The provided value should be one of the following:
    +     * solution-user-01@gve.local,
    +     * solution-user-02@gve.local,
    +     * solution-user-03@gve.local,
    +     * solution-user-04@gve.local,
    +     * solution-user-05@gve.local,
    +     * zertoadmin@gve.local.
    +     * 
    + * + * string username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for username to set. + * @return This builder for chaining. + */ + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = 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/ResetVcenterCredentialsRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ResetVcenterCredentialsRequestOrBuilder.java index 38153cb957ca..b517e73e57ef 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ResetVcenterCredentialsRequestOrBuilder.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ResetVcenterCredentialsRequestOrBuilder.java @@ -112,4 +112,45 @@ public interface ResetVcenterCredentialsRequestOrBuilder * @return The bytes for requestId. */ com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
    +   * Optional. The username of the user to be to reset the credentials.
    +   * The default value of this field is CloudOwner@gve.local.
    +   * The provided value should be one of the following:
    +   * solution-user-01@gve.local,
    +   * solution-user-02@gve.local,
    +   * solution-user-03@gve.local,
    +   * solution-user-04@gve.local,
    +   * solution-user-05@gve.local,
    +   * zertoadmin@gve.local.
    +   * 
    + * + * string username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The username. + */ + java.lang.String getUsername(); + /** + * + * + *
    +   * Optional. The username of the user to be to reset the credentials.
    +   * The default value of this field is CloudOwner@gve.local.
    +   * The provided value should be one of the following:
    +   * solution-user-01@gve.local,
    +   * solution-user-02@gve.local,
    +   * solution-user-03@gve.local,
    +   * solution-user-04@gve.local,
    +   * solution-user-05@gve.local,
    +   * zertoadmin@gve.local.
    +   * 
    + * + * string username = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for username. + */ + com.google.protobuf.ByteString getUsernameBytes(); } diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/RevokeDnsBindPermissionRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/RevokeDnsBindPermissionRequest.java new file mode 100644 index 000000000000..a19abf130b96 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/RevokeDnsBindPermissionRequest.java @@ -0,0 +1,1270 @@ +/* + * 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.RevokeDnsBindPermission][google.cloud.vmwareengine.v1.VmwareEngine.RevokeDnsBindPermission]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest} + */ +public final class RevokeDnsBindPermissionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest) + RevokeDnsBindPermissionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RevokeDnsBindPermissionRequest.newBuilder() to construct. + private RevokeDnsBindPermissionRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RevokeDnsBindPermissionRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RevokeDnsBindPermissionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_RevokeDnsBindPermissionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_RevokeDnsBindPermissionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest.class, + com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. The name of the resource which stores the users/service accounts
    +   * having the permission to bind to the corresponding intranet VPC of the
    +   * consumer project. DnsBindPermission is a global 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/global/dnsBindPermission`
    +   * 
    + * + * + * 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 name of the resource which stores the users/service accounts
    +   * having the permission to bind to the corresponding intranet VPC of the
    +   * consumer project. DnsBindPermission is a global 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/global/dnsBindPermission`
    +   * 
    + * + * + * 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 PRINCIPAL_FIELD_NUMBER = 2; + private com.google.cloud.vmwareengine.v1.Principal principal_; + /** + * + * + *
    +   * Required. The consumer provided user/service account which needs to be
    +   * granted permission to bind with the intranet VPC corresponding to the
    +   * consumer project.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.Principal principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the principal field is set. + */ + @java.lang.Override + public boolean hasPrincipal() { + return principal_ != null; + } + /** + * + * + *
    +   * Required. The consumer provided user/service account which needs to be
    +   * granted permission to bind with the intranet VPC corresponding to the
    +   * consumer project.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.Principal principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The principal. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Principal getPrincipal() { + return principal_ == null + ? com.google.cloud.vmwareengine.v1.Principal.getDefaultInstance() + : principal_; + } + /** + * + * + *
    +   * Required. The consumer provided user/service account which needs to be
    +   * granted permission to bind with the intranet VPC corresponding to the
    +   * consumer project.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.Principal principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrincipalOrBuilder getPrincipalOrBuilder() { + return principal_ == null + ? com.google.cloud.vmwareengine.v1.Principal.getDefaultInstance() + : principal_; + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (principal_ != null) { + output.writeMessage(2, getPrincipal()); + } + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (principal_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPrincipal()); + } + 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.RevokeDnsBindPermissionRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest other = + (com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasPrincipal() != other.hasPrincipal()) return false; + if (hasPrincipal()) { + if (!getPrincipal().equals(other.getPrincipal())) 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(); + if (hasPrincipal()) { + hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; + hash = (53 * hash) + getPrincipal().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.RevokeDnsBindPermissionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest 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.RevokeDnsBindPermissionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest 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.RevokeDnsBindPermissionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest 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.RevokeDnsBindPermissionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest 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.RevokeDnsBindPermissionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest 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.RevokeDnsBindPermissionRequest 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.RevokeDnsBindPermissionRequest 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.RevokeDnsBindPermissionRequest 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.RevokeDnsBindPermission][google.cloud.vmwareengine.v1.VmwareEngine.RevokeDnsBindPermission]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest) + com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_RevokeDnsBindPermissionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_RevokeDnsBindPermissionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest.class, + com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + principal_ = null; + if (principalBuilder_ != null) { + principalBuilder_.dispose(); + principalBuilder_ = 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_RevokeDnsBindPermissionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest build() { + com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest buildPartial() { + com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest result = + new com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.principal_ = principalBuilder_ == null ? principal_ : principalBuilder_.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.RevokeDnsBindPermissionRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasPrincipal()) { + mergePrincipal(other.getPrincipal()); + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getPrincipalFieldBuilder().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 java.lang.Object name_ = ""; + /** + * + * + *
    +     * Required. The name of the resource which stores the users/service accounts
    +     * having the permission to bind to the corresponding intranet VPC of the
    +     * consumer project. DnsBindPermission is a global 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/global/dnsBindPermission`
    +     * 
    + * + * + * 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 name of the resource which stores the users/service accounts
    +     * having the permission to bind to the corresponding intranet VPC of the
    +     * consumer project. DnsBindPermission is a global 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/global/dnsBindPermission`
    +     * 
    + * + * + * 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 name of the resource which stores the users/service accounts
    +     * having the permission to bind to the corresponding intranet VPC of the
    +     * consumer project. DnsBindPermission is a global 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/global/dnsBindPermission`
    +     * 
    + * + * + * 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 name of the resource which stores the users/service accounts
    +     * having the permission to bind to the corresponding intranet VPC of the
    +     * consumer project. DnsBindPermission is a global 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/global/dnsBindPermission`
    +     * 
    + * + * + * 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 name of the resource which stores the users/service accounts
    +     * having the permission to bind to the corresponding intranet VPC of the
    +     * consumer project. DnsBindPermission is a global 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/global/dnsBindPermission`
    +     * 
    + * + * + * 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 com.google.cloud.vmwareengine.v1.Principal principal_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Principal, + com.google.cloud.vmwareengine.v1.Principal.Builder, + com.google.cloud.vmwareengine.v1.PrincipalOrBuilder> + principalBuilder_; + /** + * + * + *
    +     * Required. The consumer provided user/service account which needs to be
    +     * granted permission to bind with the intranet VPC corresponding to the
    +     * consumer project.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.Principal principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the principal field is set. + */ + public boolean hasPrincipal() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * Required. The consumer provided user/service account which needs to be
    +     * granted permission to bind with the intranet VPC corresponding to the
    +     * consumer project.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.Principal principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The principal. + */ + public com.google.cloud.vmwareengine.v1.Principal getPrincipal() { + if (principalBuilder_ == null) { + return principal_ == null + ? com.google.cloud.vmwareengine.v1.Principal.getDefaultInstance() + : principal_; + } else { + return principalBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Required. The consumer provided user/service account which needs to be
    +     * granted permission to bind with the intranet VPC corresponding to the
    +     * consumer project.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.Principal principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPrincipal(com.google.cloud.vmwareengine.v1.Principal value) { + if (principalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + principal_ = value; + } else { + principalBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The consumer provided user/service account which needs to be
    +     * granted permission to bind with the intranet VPC corresponding to the
    +     * consumer project.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.Principal principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPrincipal( + com.google.cloud.vmwareengine.v1.Principal.Builder builderForValue) { + if (principalBuilder_ == null) { + principal_ = builderForValue.build(); + } else { + principalBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The consumer provided user/service account which needs to be
    +     * granted permission to bind with the intranet VPC corresponding to the
    +     * consumer project.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.Principal principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePrincipal(com.google.cloud.vmwareengine.v1.Principal value) { + if (principalBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && principal_ != null + && principal_ != com.google.cloud.vmwareengine.v1.Principal.getDefaultInstance()) { + getPrincipalBuilder().mergeFrom(value); + } else { + principal_ = value; + } + } else { + principalBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The consumer provided user/service account which needs to be
    +     * granted permission to bind with the intranet VPC corresponding to the
    +     * consumer project.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.Principal principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPrincipal() { + bitField0_ = (bitField0_ & ~0x00000002); + principal_ = null; + if (principalBuilder_ != null) { + principalBuilder_.dispose(); + principalBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The consumer provided user/service account which needs to be
    +     * granted permission to bind with the intranet VPC corresponding to the
    +     * consumer project.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.Principal principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.Principal.Builder getPrincipalBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPrincipalFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Required. The consumer provided user/service account which needs to be
    +     * granted permission to bind with the intranet VPC corresponding to the
    +     * consumer project.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.Principal principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.PrincipalOrBuilder getPrincipalOrBuilder() { + if (principalBuilder_ != null) { + return principalBuilder_.getMessageOrBuilder(); + } else { + return principal_ == null + ? com.google.cloud.vmwareengine.v1.Principal.getDefaultInstance() + : principal_; + } + } + /** + * + * + *
    +     * Required. The consumer provided user/service account which needs to be
    +     * granted permission to bind with the intranet VPC corresponding to the
    +     * consumer project.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.Principal principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Principal, + com.google.cloud.vmwareengine.v1.Principal.Builder, + com.google.cloud.vmwareengine.v1.PrincipalOrBuilder> + getPrincipalFieldBuilder() { + if (principalBuilder_ == null) { + principalBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Principal, + com.google.cloud.vmwareengine.v1.Principal.Builder, + com.google.cloud.vmwareengine.v1.PrincipalOrBuilder>( + getPrincipal(), getParentForChildren(), isClean()); + principal_ = null; + } + return principalBuilder_; + } + + 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.RevokeDnsBindPermissionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest) + private static final com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest(); + } + + public static com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RevokeDnsBindPermissionRequest 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.RevokeDnsBindPermissionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/RevokeDnsBindPermissionRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/RevokeDnsBindPermissionRequestOrBuilder.java new file mode 100644 index 000000000000..87a46e023c84 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/RevokeDnsBindPermissionRequestOrBuilder.java @@ -0,0 +1,162 @@ +/* + * 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 RevokeDnsBindPermissionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the resource which stores the users/service accounts
    +   * having the permission to bind to the corresponding intranet VPC of the
    +   * consumer project. DnsBindPermission is a global 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/global/dnsBindPermission`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. The name of the resource which stores the users/service accounts
    +   * having the permission to bind to the corresponding intranet VPC of the
    +   * consumer project. DnsBindPermission is a global 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/global/dnsBindPermission`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Required. The consumer provided user/service account which needs to be
    +   * granted permission to bind with the intranet VPC corresponding to the
    +   * consumer project.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.Principal principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the principal field is set. + */ + boolean hasPrincipal(); + /** + * + * + *
    +   * Required. The consumer provided user/service account which needs to be
    +   * granted permission to bind with the intranet VPC corresponding to the
    +   * consumer project.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.Principal principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The principal. + */ + com.google.cloud.vmwareengine.v1.Principal getPrincipal(); + /** + * + * + *
    +   * Required. The consumer provided user/service account which needs to be
    +   * granted permission to bind with the intranet VPC corresponding to the
    +   * consumer project.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.Principal principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmwareengine.v1.PrincipalOrBuilder getPrincipalOrBuilder(); + + /** + * + * + *
    +   * 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/ShowVcenterCredentialsRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ShowVcenterCredentialsRequest.java index b1c2d05f5ef1..6d29b517692e 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ShowVcenterCredentialsRequest.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ShowVcenterCredentialsRequest.java @@ -40,6 +40,7 @@ private ShowVcenterCredentialsRequest(com.google.protobuf.GeneratedMessageV3.Bui private ShowVcenterCredentialsRequest() { privateCloud_ = ""; + username_ = ""; } @java.lang.Override @@ -128,6 +129,75 @@ public com.google.protobuf.ByteString getPrivateCloudBytes() { } } + public static final int USERNAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object username_ = ""; + /** + * + * + *
    +   * Optional. The username of the user to be queried for credentials.
    +   * The default value of this field is CloudOwner@gve.local.
    +   * The provided value must be one of the following:
    +   * CloudOwner@gve.local,
    +   * solution-user-01@gve.local,
    +   * solution-user-02@gve.local,
    +   * solution-user-03@gve.local,
    +   * solution-user-04@gve.local,
    +   * solution-user-05@gve.local,
    +   * zertoadmin@gve.local.
    +   * 
    + * + * string username = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The username. + */ + @java.lang.Override + public java.lang.String getUsername() { + java.lang.Object ref = username_; + 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(); + username_ = s; + return s; + } + } + /** + * + * + *
    +   * Optional. The username of the user to be queried for credentials.
    +   * The default value of this field is CloudOwner@gve.local.
    +   * The provided value must be one of the following:
    +   * CloudOwner@gve.local,
    +   * solution-user-01@gve.local,
    +   * solution-user-02@gve.local,
    +   * solution-user-03@gve.local,
    +   * solution-user-04@gve.local,
    +   * solution-user-05@gve.local,
    +   * zertoadmin@gve.local.
    +   * 
    + * + * string username = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for username. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -145,6 +215,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateCloud_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, privateCloud_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, username_); + } getUnknownFields().writeTo(output); } @@ -157,6 +230,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateCloud_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, privateCloud_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -174,6 +250,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest) obj; if (!getPrivateCloud().equals(other.getPrivateCloud())) return false; + if (!getUsername().equals(other.getUsername())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,6 +264,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PRIVATE_CLOUD_FIELD_NUMBER; hash = (53 * hash) + getPrivateCloud().hashCode(); + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -329,6 +408,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; privateCloud_ = ""; + username_ = ""; return this; } @@ -370,6 +450,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000001) != 0)) { result.privateCloud_ = privateCloud_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.username_ = username_; + } } @java.lang.Override @@ -424,6 +507,11 @@ public Builder mergeFrom(com.google.cloud.vmwareengine.v1.ShowVcenterCredentials bitField0_ |= 0x00000001; onChanged(); } + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + bitField0_ |= 0x00000002; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -456,6 +544,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 18: + { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -616,6 +710,157 @@ public Builder setPrivateCloudBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object username_ = ""; + /** + * + * + *
    +     * Optional. The username of the user to be queried for credentials.
    +     * The default value of this field is CloudOwner@gve.local.
    +     * The provided value must be one of the following:
    +     * CloudOwner@gve.local,
    +     * solution-user-01@gve.local,
    +     * solution-user-02@gve.local,
    +     * solution-user-03@gve.local,
    +     * solution-user-04@gve.local,
    +     * solution-user-05@gve.local,
    +     * zertoadmin@gve.local.
    +     * 
    + * + * string username = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The username. + */ + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Optional. The username of the user to be queried for credentials.
    +     * The default value of this field is CloudOwner@gve.local.
    +     * The provided value must be one of the following:
    +     * CloudOwner@gve.local,
    +     * solution-user-01@gve.local,
    +     * solution-user-02@gve.local,
    +     * solution-user-03@gve.local,
    +     * solution-user-04@gve.local,
    +     * solution-user-05@gve.local,
    +     * zertoadmin@gve.local.
    +     * 
    + * + * string username = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for username. + */ + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Optional. The username of the user to be queried for credentials.
    +     * The default value of this field is CloudOwner@gve.local.
    +     * The provided value must be one of the following:
    +     * CloudOwner@gve.local,
    +     * solution-user-01@gve.local,
    +     * solution-user-02@gve.local,
    +     * solution-user-03@gve.local,
    +     * solution-user-04@gve.local,
    +     * solution-user-05@gve.local,
    +     * zertoadmin@gve.local.
    +     * 
    + * + * string username = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The username to set. + * @return This builder for chaining. + */ + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + username_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The username of the user to be queried for credentials.
    +     * The default value of this field is CloudOwner@gve.local.
    +     * The provided value must be one of the following:
    +     * CloudOwner@gve.local,
    +     * solution-user-01@gve.local,
    +     * solution-user-02@gve.local,
    +     * solution-user-03@gve.local,
    +     * solution-user-04@gve.local,
    +     * solution-user-05@gve.local,
    +     * zertoadmin@gve.local.
    +     * 
    + * + * string username = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUsername() { + username_ = getDefaultInstance().getUsername(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The username of the user to be queried for credentials.
    +     * The default value of this field is CloudOwner@gve.local.
    +     * The provided value must be one of the following:
    +     * CloudOwner@gve.local,
    +     * solution-user-01@gve.local,
    +     * solution-user-02@gve.local,
    +     * solution-user-03@gve.local,
    +     * solution-user-04@gve.local,
    +     * solution-user-05@gve.local,
    +     * zertoadmin@gve.local.
    +     * 
    + * + * string username = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for username to set. + * @return This builder for chaining. + */ + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; + bitField0_ |= 0x00000002; + 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/ShowVcenterCredentialsRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ShowVcenterCredentialsRequestOrBuilder.java index 71d67baac851..959cd8c875aa 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ShowVcenterCredentialsRequestOrBuilder.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ShowVcenterCredentialsRequestOrBuilder.java @@ -61,4 +61,47 @@ public interface ShowVcenterCredentialsRequestOrBuilder * @return The bytes for privateCloud. */ com.google.protobuf.ByteString getPrivateCloudBytes(); + + /** + * + * + *
    +   * Optional. The username of the user to be queried for credentials.
    +   * The default value of this field is CloudOwner@gve.local.
    +   * The provided value must be one of the following:
    +   * CloudOwner@gve.local,
    +   * solution-user-01@gve.local,
    +   * solution-user-02@gve.local,
    +   * solution-user-03@gve.local,
    +   * solution-user-04@gve.local,
    +   * solution-user-05@gve.local,
    +   * zertoadmin@gve.local.
    +   * 
    + * + * string username = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The username. + */ + java.lang.String getUsername(); + /** + * + * + *
    +   * Optional. The username of the user to be queried for credentials.
    +   * The default value of this field is CloudOwner@gve.local.
    +   * The provided value must be one of the following:
    +   * CloudOwner@gve.local,
    +   * solution-user-01@gve.local,
    +   * solution-user-02@gve.local,
    +   * solution-user-03@gve.local,
    +   * solution-user-04@gve.local,
    +   * solution-user-05@gve.local,
    +   * zertoadmin@gve.local.
    +   * 
    + * + * string username = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for username. + */ + com.google.protobuf.ByteString getUsernameBytes(); } diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/StretchedClusterConfig.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/StretchedClusterConfig.java new file mode 100644 index 000000000000..bd7f19ea7a3b --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/StretchedClusterConfig.java @@ -0,0 +1,891 @@ +/* + * 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; + +/** + * + * + *
    + * Configuration of a stretched cluster.
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.StretchedClusterConfig} + */ +public final class StretchedClusterConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.StretchedClusterConfig) + StretchedClusterConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use StretchedClusterConfig.newBuilder() to construct. + private StretchedClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StretchedClusterConfig() { + preferredLocation_ = ""; + secondaryLocation_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StretchedClusterConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_StretchedClusterConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_StretchedClusterConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.StretchedClusterConfig.class, + com.google.cloud.vmwareengine.v1.StretchedClusterConfig.Builder.class); + } + + public static final int PREFERRED_LOCATION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object preferredLocation_ = ""; + /** + * + * + *
    +   * Required. Zone that will remain operational when connection between the two
    +   * zones is lost. Specify the resource name of a zone that belongs to the
    +   * region of the private cloud. For example:
    +   * `projects/{project}/locations/europe-west3-a` where `{project}` can either
    +   * be a project number or a project ID.
    +   * 
    + * + * + * string preferred_location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The preferredLocation. + */ + @java.lang.Override + public java.lang.String getPreferredLocation() { + java.lang.Object ref = preferredLocation_; + 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(); + preferredLocation_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. Zone that will remain operational when connection between the two
    +   * zones is lost. Specify the resource name of a zone that belongs to the
    +   * region of the private cloud. For example:
    +   * `projects/{project}/locations/europe-west3-a` where `{project}` can either
    +   * be a project number or a project ID.
    +   * 
    + * + * + * string preferred_location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for preferredLocation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPreferredLocationBytes() { + java.lang.Object ref = preferredLocation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + preferredLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECONDARY_LOCATION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object secondaryLocation_ = ""; + /** + * + * + *
    +   * Required. Additional zone for a higher level of availability and load
    +   * balancing. Specify the resource name of a zone that belongs to the region
    +   * of the private cloud. For example:
    +   * `projects/{project}/locations/europe-west3-b` where `{project}` can either
    +   * be a project number or a project ID.
    +   * 
    + * + * + * string secondary_location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The secondaryLocation. + */ + @java.lang.Override + public java.lang.String getSecondaryLocation() { + java.lang.Object ref = secondaryLocation_; + 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(); + secondaryLocation_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. Additional zone for a higher level of availability and load
    +   * balancing. Specify the resource name of a zone that belongs to the region
    +   * of the private cloud. For example:
    +   * `projects/{project}/locations/europe-west3-b` where `{project}` can either
    +   * be a project number or a project ID.
    +   * 
    + * + * + * string secondary_location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for secondaryLocation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSecondaryLocationBytes() { + java.lang.Object ref = secondaryLocation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secondaryLocation_ = 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(preferredLocation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, preferredLocation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secondaryLocation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, secondaryLocation_); + } + 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(preferredLocation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, preferredLocation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secondaryLocation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, secondaryLocation_); + } + 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.StretchedClusterConfig)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.StretchedClusterConfig other = + (com.google.cloud.vmwareengine.v1.StretchedClusterConfig) obj; + + if (!getPreferredLocation().equals(other.getPreferredLocation())) return false; + if (!getSecondaryLocation().equals(other.getSecondaryLocation())) 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) + PREFERRED_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getPreferredLocation().hashCode(); + hash = (37 * hash) + SECONDARY_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getSecondaryLocation().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.StretchedClusterConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.StretchedClusterConfig 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.StretchedClusterConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.StretchedClusterConfig 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.StretchedClusterConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.StretchedClusterConfig 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.StretchedClusterConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.StretchedClusterConfig 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.StretchedClusterConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.StretchedClusterConfig 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.StretchedClusterConfig 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.StretchedClusterConfig 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.StretchedClusterConfig 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; + } + /** + * + * + *
    +   * Configuration of a stretched cluster.
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.StretchedClusterConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.StretchedClusterConfig) + com.google.cloud.vmwareengine.v1.StretchedClusterConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_StretchedClusterConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_StretchedClusterConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.StretchedClusterConfig.class, + com.google.cloud.vmwareengine.v1.StretchedClusterConfig.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.StretchedClusterConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + preferredLocation_ = ""; + secondaryLocation_ = ""; + 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_StretchedClusterConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.StretchedClusterConfig getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.StretchedClusterConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.StretchedClusterConfig build() { + com.google.cloud.vmwareengine.v1.StretchedClusterConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.StretchedClusterConfig buildPartial() { + com.google.cloud.vmwareengine.v1.StretchedClusterConfig result = + new com.google.cloud.vmwareengine.v1.StretchedClusterConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmwareengine.v1.StretchedClusterConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.preferredLocation_ = preferredLocation_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.secondaryLocation_ = secondaryLocation_; + } + } + + @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.StretchedClusterConfig) { + return mergeFrom((com.google.cloud.vmwareengine.v1.StretchedClusterConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.StretchedClusterConfig other) { + if (other == com.google.cloud.vmwareengine.v1.StretchedClusterConfig.getDefaultInstance()) + return this; + if (!other.getPreferredLocation().isEmpty()) { + preferredLocation_ = other.preferredLocation_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSecondaryLocation().isEmpty()) { + secondaryLocation_ = other.secondaryLocation_; + 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: + { + preferredLocation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + secondaryLocation_ = 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 preferredLocation_ = ""; + /** + * + * + *
    +     * Required. Zone that will remain operational when connection between the two
    +     * zones is lost. Specify the resource name of a zone that belongs to the
    +     * region of the private cloud. For example:
    +     * `projects/{project}/locations/europe-west3-a` where `{project}` can either
    +     * be a project number or a project ID.
    +     * 
    + * + * + * string preferred_location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The preferredLocation. + */ + public java.lang.String getPreferredLocation() { + java.lang.Object ref = preferredLocation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + preferredLocation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. Zone that will remain operational when connection between the two
    +     * zones is lost. Specify the resource name of a zone that belongs to the
    +     * region of the private cloud. For example:
    +     * `projects/{project}/locations/europe-west3-a` where `{project}` can either
    +     * be a project number or a project ID.
    +     * 
    + * + * + * string preferred_location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for preferredLocation. + */ + public com.google.protobuf.ByteString getPreferredLocationBytes() { + java.lang.Object ref = preferredLocation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + preferredLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. Zone that will remain operational when connection between the two
    +     * zones is lost. Specify the resource name of a zone that belongs to the
    +     * region of the private cloud. For example:
    +     * `projects/{project}/locations/europe-west3-a` where `{project}` can either
    +     * be a project number or a project ID.
    +     * 
    + * + * + * string preferred_location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The preferredLocation to set. + * @return This builder for chaining. + */ + public Builder setPreferredLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + preferredLocation_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Zone that will remain operational when connection between the two
    +     * zones is lost. Specify the resource name of a zone that belongs to the
    +     * region of the private cloud. For example:
    +     * `projects/{project}/locations/europe-west3-a` where `{project}` can either
    +     * be a project number or a project ID.
    +     * 
    + * + * + * string preferred_location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearPreferredLocation() { + preferredLocation_ = getDefaultInstance().getPreferredLocation(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Zone that will remain operational when connection between the two
    +     * zones is lost. Specify the resource name of a zone that belongs to the
    +     * region of the private cloud. For example:
    +     * `projects/{project}/locations/europe-west3-a` where `{project}` can either
    +     * be a project number or a project ID.
    +     * 
    + * + * + * string preferred_location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for preferredLocation to set. + * @return This builder for chaining. + */ + public Builder setPreferredLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + preferredLocation_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object secondaryLocation_ = ""; + /** + * + * + *
    +     * Required. Additional zone for a higher level of availability and load
    +     * balancing. Specify the resource name of a zone that belongs to the region
    +     * of the private cloud. For example:
    +     * `projects/{project}/locations/europe-west3-b` where `{project}` can either
    +     * be a project number or a project ID.
    +     * 
    + * + * + * string secondary_location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The secondaryLocation. + */ + public java.lang.String getSecondaryLocation() { + java.lang.Object ref = secondaryLocation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secondaryLocation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. Additional zone for a higher level of availability and load
    +     * balancing. Specify the resource name of a zone that belongs to the region
    +     * of the private cloud. For example:
    +     * `projects/{project}/locations/europe-west3-b` where `{project}` can either
    +     * be a project number or a project ID.
    +     * 
    + * + * + * string secondary_location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for secondaryLocation. + */ + public com.google.protobuf.ByteString getSecondaryLocationBytes() { + java.lang.Object ref = secondaryLocation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secondaryLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. Additional zone for a higher level of availability and load
    +     * balancing. Specify the resource name of a zone that belongs to the region
    +     * of the private cloud. For example:
    +     * `projects/{project}/locations/europe-west3-b` where `{project}` can either
    +     * be a project number or a project ID.
    +     * 
    + * + * + * string secondary_location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The secondaryLocation to set. + * @return This builder for chaining. + */ + public Builder setSecondaryLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + secondaryLocation_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Additional zone for a higher level of availability and load
    +     * balancing. Specify the resource name of a zone that belongs to the region
    +     * of the private cloud. For example:
    +     * `projects/{project}/locations/europe-west3-b` where `{project}` can either
    +     * be a project number or a project ID.
    +     * 
    + * + * + * string secondary_location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearSecondaryLocation() { + secondaryLocation_ = getDefaultInstance().getSecondaryLocation(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Additional zone for a higher level of availability and load
    +     * balancing. Specify the resource name of a zone that belongs to the region
    +     * of the private cloud. For example:
    +     * `projects/{project}/locations/europe-west3-b` where `{project}` can either
    +     * be a project number or a project ID.
    +     * 
    + * + * + * string secondary_location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for secondaryLocation to set. + * @return This builder for chaining. + */ + public Builder setSecondaryLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secondaryLocation_ = 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.StretchedClusterConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.StretchedClusterConfig) + private static final com.google.cloud.vmwareengine.v1.StretchedClusterConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.StretchedClusterConfig(); + } + + public static com.google.cloud.vmwareengine.v1.StretchedClusterConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StretchedClusterConfig 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.StretchedClusterConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/StretchedClusterConfigOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/StretchedClusterConfigOrBuilder.java new file mode 100644 index 000000000000..387967e677cc --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/StretchedClusterConfigOrBuilder.java @@ -0,0 +1,99 @@ +/* + * 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 StretchedClusterConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.StretchedClusterConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Zone that will remain operational when connection between the two
    +   * zones is lost. Specify the resource name of a zone that belongs to the
    +   * region of the private cloud. For example:
    +   * `projects/{project}/locations/europe-west3-a` where `{project}` can either
    +   * be a project number or a project ID.
    +   * 
    + * + * + * string preferred_location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The preferredLocation. + */ + java.lang.String getPreferredLocation(); + /** + * + * + *
    +   * Required. Zone that will remain operational when connection between the two
    +   * zones is lost. Specify the resource name of a zone that belongs to the
    +   * region of the private cloud. For example:
    +   * `projects/{project}/locations/europe-west3-a` where `{project}` can either
    +   * be a project number or a project ID.
    +   * 
    + * + * + * string preferred_location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for preferredLocation. + */ + com.google.protobuf.ByteString getPreferredLocationBytes(); + + /** + * + * + *
    +   * Required. Additional zone for a higher level of availability and load
    +   * balancing. Specify the resource name of a zone that belongs to the region
    +   * of the private cloud. For example:
    +   * `projects/{project}/locations/europe-west3-b` where `{project}` can either
    +   * be a project number or a project ID.
    +   * 
    + * + * + * string secondary_location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The secondaryLocation. + */ + java.lang.String getSecondaryLocation(); + /** + * + * + *
    +   * Required. Additional zone for a higher level of availability and load
    +   * balancing. Specify the resource name of a zone that belongs to the region
    +   * of the private cloud. For example:
    +   * `projects/{project}/locations/europe-west3-b` where `{project}` can either
    +   * be a project number or a project ID.
    +   * 
    + * + * + * string secondary_location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for secondaryLocation. + */ + com.google.protobuf.ByteString getSecondaryLocationBytes(); +} 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 0ec183820f2c..ffb20b13a7c8 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 @@ -569,6 +569,24 @@ public com.google.cloud.vmwareengine.v1.Subnet.State getState() { return result == null ? com.google.cloud.vmwareengine.v1.Subnet.State.UNRECOGNIZED : result; } + public static final int VLAN_ID_FIELD_NUMBER = 16; + private int vlanId_ = 0; + /** + * + * + *
    +   * Output only. VLAN ID of the VLAN on which the subnet is configured
    +   * 
    + * + * int32 vlan_id = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The vlanId. + */ + @java.lang.Override + public int getVlanId() { + return vlanId_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -598,6 +616,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (state_ != com.google.cloud.vmwareengine.v1.Subnet.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(13, state_); } + if (vlanId_ != 0) { + output.writeInt32(16, vlanId_); + } getUnknownFields().writeTo(output); } @@ -622,6 +643,9 @@ public int getSerializedSize() { if (state_ != com.google.cloud.vmwareengine.v1.Subnet.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, state_); } + if (vlanId_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(16, vlanId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -642,6 +666,7 @@ public boolean equals(final java.lang.Object obj) { if (!getGatewayIp().equals(other.getGatewayIp())) return false; if (!getType().equals(other.getType())) return false; if (state_ != other.state_) return false; + if (getVlanId() != other.getVlanId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -663,6 +688,8 @@ public int hashCode() { hash = (53 * hash) + getType().hashCode(); hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; + hash = (37 * hash) + VLAN_ID_FIELD_NUMBER; + hash = (53 * hash) + getVlanId(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -808,6 +835,7 @@ public Builder clear() { gatewayIp_ = ""; type_ = ""; state_ = 0; + vlanId_ = 0; return this; } @@ -859,6 +887,9 @@ private void buildPartial0(com.google.cloud.vmwareengine.v1.Subnet result) { if (((from_bitField0_ & 0x00000010) != 0)) { result.state_ = state_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.vlanId_ = vlanId_; + } } @java.lang.Override @@ -929,6 +960,9 @@ public Builder mergeFrom(com.google.cloud.vmwareengine.v1.Subnet other) { if (other.state_ != 0) { setStateValue(other.getStateValue()); } + if (other.getVlanId() != 0) { + setVlanId(other.getVlanId()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -985,6 +1019,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 104 + case 128: + { + vlanId_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 128 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1558,6 +1598,59 @@ public Builder clearState() { return this; } + private int vlanId_; + /** + * + * + *
    +     * Output only. VLAN ID of the VLAN on which the subnet is configured
    +     * 
    + * + * int32 vlan_id = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The vlanId. + */ + @java.lang.Override + public int getVlanId() { + return vlanId_; + } + /** + * + * + *
    +     * Output only. VLAN ID of the VLAN on which the subnet is configured
    +     * 
    + * + * int32 vlan_id = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The vlanId to set. + * @return This builder for chaining. + */ + public Builder setVlanId(int value) { + + vlanId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. VLAN ID of the VLAN on which the subnet is configured
    +     * 
    + * + * int32 vlan_id = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearVlanId() { + bitField0_ = (bitField0_ & ~0x00000020); + vlanId_ = 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/SubnetOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/SubnetOrBuilder.java index a9e54edb4bea..867c62da67c7 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/SubnetOrBuilder.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/SubnetOrBuilder.java @@ -163,4 +163,17 @@ public interface SubnetOrBuilder * @return The state. */ com.google.cloud.vmwareengine.v1.Subnet.State getState(); + + /** + * + * + *
    +   * Output only. VLAN ID of the VLAN on which the subnet is configured
    +   * 
    + * + * int32 vlan_id = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The vlanId. + */ + int getVlanId(); } diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateDnsForwardingRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateDnsForwardingRequest.java new file mode 100644 index 000000000000..ca9c2c56364b --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateDnsForwardingRequest.java @@ -0,0 +1,1329 @@ +/* + * 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.UpdateDnsForwarding][google.cloud.vmwareengine.v1.VmwareEngine.UpdateDnsForwarding]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest} + */ +public final class UpdateDnsForwardingRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest) + UpdateDnsForwardingRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateDnsForwardingRequest.newBuilder() to construct. + private UpdateDnsForwardingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateDnsForwardingRequest() { + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateDnsForwardingRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateDnsForwardingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateDnsForwardingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest.class, + com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest.Builder.class); + } + + public static final int DNS_FORWARDING_FIELD_NUMBER = 1; + private com.google.cloud.vmwareengine.v1.DnsForwarding dnsForwarding_; + /** + * + * + *
    +   * Required. DnsForwarding config details.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.DnsForwarding dns_forwarding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dnsForwarding field is set. + */ + @java.lang.Override + public boolean hasDnsForwarding() { + return dnsForwarding_ != null; + } + /** + * + * + *
    +   * Required. DnsForwarding config details.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.DnsForwarding dns_forwarding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dnsForwarding. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DnsForwarding getDnsForwarding() { + return dnsForwarding_ == null + ? com.google.cloud.vmwareengine.v1.DnsForwarding.getDefaultInstance() + : dnsForwarding_; + } + /** + * + * + *
    +   * Required. DnsForwarding config details.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.DnsForwarding dns_forwarding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DnsForwardingOrBuilder getDnsForwardingOrBuilder() { + return dnsForwarding_ == null + ? com.google.cloud.vmwareengine.v1.DnsForwarding.getDefaultInstance() + : dnsForwarding_; + } + + 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
    +   * `DnsForwarding` 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
    +   * `DnsForwarding` 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
    +   * `DnsForwarding` 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 (dnsForwarding_ != null) { + output.writeMessage(1, getDnsForwarding()); + } + 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 (dnsForwarding_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDnsForwarding()); + } + 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.UpdateDnsForwardingRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest other = + (com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest) obj; + + if (hasDnsForwarding() != other.hasDnsForwarding()) return false; + if (hasDnsForwarding()) { + if (!getDnsForwarding().equals(other.getDnsForwarding())) 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 (hasDnsForwarding()) { + hash = (37 * hash) + DNS_FORWARDING_FIELD_NUMBER; + hash = (53 * hash) + getDnsForwarding().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.UpdateDnsForwardingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest 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.UpdateDnsForwardingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest 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.UpdateDnsForwardingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest 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.UpdateDnsForwardingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest 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.UpdateDnsForwardingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest 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.UpdateDnsForwardingRequest 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.UpdateDnsForwardingRequest 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.UpdateDnsForwardingRequest 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.UpdateDnsForwarding][google.cloud.vmwareengine.v1.VmwareEngine.UpdateDnsForwarding]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest) + com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateDnsForwardingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateDnsForwardingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest.class, + com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dnsForwarding_ = null; + if (dnsForwardingBuilder_ != null) { + dnsForwardingBuilder_.dispose(); + dnsForwardingBuilder_ = 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_UpdateDnsForwardingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest build() { + com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest buildPartial() { + com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest result = + new com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dnsForwarding_ = + dnsForwardingBuilder_ == null ? dnsForwarding_ : dnsForwardingBuilder_.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.UpdateDnsForwardingRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest other) { + if (other == com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest.getDefaultInstance()) + return this; + if (other.hasDnsForwarding()) { + mergeDnsForwarding(other.getDnsForwarding()); + } + 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(getDnsForwardingFieldBuilder().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.DnsForwarding dnsForwarding_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.DnsForwarding, + com.google.cloud.vmwareengine.v1.DnsForwarding.Builder, + com.google.cloud.vmwareengine.v1.DnsForwardingOrBuilder> + dnsForwardingBuilder_; + /** + * + * + *
    +     * Required. DnsForwarding config details.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.DnsForwarding dns_forwarding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dnsForwarding field is set. + */ + public boolean hasDnsForwarding() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +     * Required. DnsForwarding config details.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.DnsForwarding dns_forwarding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dnsForwarding. + */ + public com.google.cloud.vmwareengine.v1.DnsForwarding getDnsForwarding() { + if (dnsForwardingBuilder_ == null) { + return dnsForwarding_ == null + ? com.google.cloud.vmwareengine.v1.DnsForwarding.getDefaultInstance() + : dnsForwarding_; + } else { + return dnsForwardingBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Required. DnsForwarding config details.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.DnsForwarding dns_forwarding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDnsForwarding(com.google.cloud.vmwareengine.v1.DnsForwarding value) { + if (dnsForwardingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dnsForwarding_ = value; + } else { + dnsForwardingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. DnsForwarding config details.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.DnsForwarding dns_forwarding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDnsForwarding( + com.google.cloud.vmwareengine.v1.DnsForwarding.Builder builderForValue) { + if (dnsForwardingBuilder_ == null) { + dnsForwarding_ = builderForValue.build(); + } else { + dnsForwardingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. DnsForwarding config details.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.DnsForwarding dns_forwarding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDnsForwarding(com.google.cloud.vmwareengine.v1.DnsForwarding value) { + if (dnsForwardingBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && dnsForwarding_ != null + && dnsForwarding_ + != com.google.cloud.vmwareengine.v1.DnsForwarding.getDefaultInstance()) { + getDnsForwardingBuilder().mergeFrom(value); + } else { + dnsForwarding_ = value; + } + } else { + dnsForwardingBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. DnsForwarding config details.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.DnsForwarding dns_forwarding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDnsForwarding() { + bitField0_ = (bitField0_ & ~0x00000001); + dnsForwarding_ = null; + if (dnsForwardingBuilder_ != null) { + dnsForwardingBuilder_.dispose(); + dnsForwardingBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. DnsForwarding config details.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.DnsForwarding dns_forwarding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.DnsForwarding.Builder getDnsForwardingBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDnsForwardingFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Required. DnsForwarding config details.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.DnsForwarding dns_forwarding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.DnsForwardingOrBuilder getDnsForwardingOrBuilder() { + if (dnsForwardingBuilder_ != null) { + return dnsForwardingBuilder_.getMessageOrBuilder(); + } else { + return dnsForwarding_ == null + ? com.google.cloud.vmwareengine.v1.DnsForwarding.getDefaultInstance() + : dnsForwarding_; + } + } + /** + * + * + *
    +     * Required. DnsForwarding config details.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.DnsForwarding dns_forwarding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.DnsForwarding, + com.google.cloud.vmwareengine.v1.DnsForwarding.Builder, + com.google.cloud.vmwareengine.v1.DnsForwardingOrBuilder> + getDnsForwardingFieldBuilder() { + if (dnsForwardingBuilder_ == null) { + dnsForwardingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.DnsForwarding, + com.google.cloud.vmwareengine.v1.DnsForwarding.Builder, + com.google.cloud.vmwareengine.v1.DnsForwardingOrBuilder>( + getDnsForwarding(), getParentForChildren(), isClean()); + dnsForwarding_ = null; + } + return dnsForwardingBuilder_; + } + + 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
    +     * `DnsForwarding` 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
    +     * `DnsForwarding` 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
    +     * `DnsForwarding` 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
    +     * `DnsForwarding` 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
    +     * `DnsForwarding` 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
    +     * `DnsForwarding` 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
    +     * `DnsForwarding` 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
    +     * `DnsForwarding` 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
    +     * `DnsForwarding` 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.UpdateDnsForwardingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest) + private static final com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest(); + } + + public static com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDnsForwardingRequest 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.UpdateDnsForwardingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateDnsForwardingRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateDnsForwardingRequestOrBuilder.java new file mode 100644 index 000000000000..e7e3cfbf7401 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateDnsForwardingRequestOrBuilder.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 UpdateDnsForwardingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. DnsForwarding config details.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.DnsForwarding dns_forwarding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dnsForwarding field is set. + */ + boolean hasDnsForwarding(); + /** + * + * + *
    +   * Required. DnsForwarding config details.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.DnsForwarding dns_forwarding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dnsForwarding. + */ + com.google.cloud.vmwareengine.v1.DnsForwarding getDnsForwarding(); + /** + * + * + *
    +   * Required. DnsForwarding config details.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.DnsForwarding dns_forwarding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmwareengine.v1.DnsForwardingOrBuilder getDnsForwardingOrBuilder(); + + /** + * + * + *
    +   * Required. Field mask is used to specify the fields to be overwritten in the
    +   * `DnsForwarding` 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
    +   * `DnsForwarding` 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
    +   * `DnsForwarding` 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/UpdateExternalAccessRuleRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateExternalAccessRuleRequest.java new file mode 100644 index 000000000000..8534800db907 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateExternalAccessRuleRequest.java @@ -0,0 +1,1345 @@ +/* + * 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.UpdateExternalAccessRule][google.cloud.vmwareengine.v1.VmwareEngine.UpdateExternalAccessRule]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest} + */ +public final class UpdateExternalAccessRuleRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest) + UpdateExternalAccessRuleRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateExternalAccessRuleRequest.newBuilder() to construct. + private UpdateExternalAccessRuleRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateExternalAccessRuleRequest() { + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateExternalAccessRuleRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateExternalAccessRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateExternalAccessRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest.class, + com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest.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
    +   * `ExternalAccessRule` 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
    +   * `ExternalAccessRule` 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
    +   * `ExternalAccessRule` 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 EXTERNAL_ACCESS_RULE_FIELD_NUMBER = 2; + private com.google.cloud.vmwareengine.v1.ExternalAccessRule externalAccessRule_; + /** + * + * + *
    +   * Required. Description of the external access rule.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the externalAccessRule field is set. + */ + @java.lang.Override + public boolean hasExternalAccessRule() { + return externalAccessRule_ != null; + } + /** + * + * + *
    +   * Required. Description of the external access rule.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The externalAccessRule. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ExternalAccessRule getExternalAccessRule() { + return externalAccessRule_ == null + ? com.google.cloud.vmwareengine.v1.ExternalAccessRule.getDefaultInstance() + : externalAccessRule_; + } + /** + * + * + *
    +   * Required. Description of the external access rule.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ExternalAccessRuleOrBuilder + getExternalAccessRuleOrBuilder() { + return externalAccessRule_ == null + ? com.google.cloud.vmwareengine.v1.ExternalAccessRule.getDefaultInstance() + : externalAccessRule_; + } + + 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 the 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 the 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 (updateMask_ != null) { + output.writeMessage(1, getUpdateMask()); + } + if (externalAccessRule_ != null) { + output.writeMessage(2, getExternalAccessRule()); + } + 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 (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (externalAccessRule_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExternalAccessRule()); + } + 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.UpdateExternalAccessRuleRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest other = + (com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasExternalAccessRule() != other.hasExternalAccessRule()) return false; + if (hasExternalAccessRule()) { + if (!getExternalAccessRule().equals(other.getExternalAccessRule())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasExternalAccessRule()) { + hash = (37 * hash) + EXTERNAL_ACCESS_RULE_FIELD_NUMBER; + hash = (53 * hash) + getExternalAccessRule().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.UpdateExternalAccessRuleRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest 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.UpdateExternalAccessRuleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest 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.UpdateExternalAccessRuleRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest 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.UpdateExternalAccessRuleRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest 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.UpdateExternalAccessRuleRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest 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.UpdateExternalAccessRuleRequest 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.UpdateExternalAccessRuleRequest 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.UpdateExternalAccessRuleRequest 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.UpdateExternalAccessRule][google.cloud.vmwareengine.v1.VmwareEngine.UpdateExternalAccessRule]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest) + com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateExternalAccessRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateExternalAccessRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest.class, + com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest.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; + } + externalAccessRule_ = null; + if (externalAccessRuleBuilder_ != null) { + externalAccessRuleBuilder_.dispose(); + externalAccessRuleBuilder_ = 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_UpdateExternalAccessRuleRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest build() { + com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest buildPartial() { + com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest result = + new com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.externalAccessRule_ = + externalAccessRuleBuilder_ == null + ? externalAccessRule_ + : externalAccessRuleBuilder_.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.UpdateExternalAccessRuleRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasExternalAccessRule()) { + mergeExternalAccessRule(other.getExternalAccessRule()); + } + 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(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getExternalAccessRuleFieldBuilder().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.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
    +     * `ExternalAccessRule` 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
    +     * `ExternalAccessRule` 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
    +     * `ExternalAccessRule` 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
    +     * `ExternalAccessRule` 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
    +     * `ExternalAccessRule` 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
    +     * `ExternalAccessRule` 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
    +     * `ExternalAccessRule` 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
    +     * `ExternalAccessRule` 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
    +     * `ExternalAccessRule` 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.ExternalAccessRule externalAccessRule_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ExternalAccessRule, + com.google.cloud.vmwareengine.v1.ExternalAccessRule.Builder, + com.google.cloud.vmwareengine.v1.ExternalAccessRuleOrBuilder> + externalAccessRuleBuilder_; + /** + * + * + *
    +     * Required. Description of the external access rule.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the externalAccessRule field is set. + */ + public boolean hasExternalAccessRule() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * Required. Description of the external access rule.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The externalAccessRule. + */ + public com.google.cloud.vmwareengine.v1.ExternalAccessRule getExternalAccessRule() { + if (externalAccessRuleBuilder_ == null) { + return externalAccessRule_ == null + ? com.google.cloud.vmwareengine.v1.ExternalAccessRule.getDefaultInstance() + : externalAccessRule_; + } else { + return externalAccessRuleBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Required. Description of the external access rule.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExternalAccessRule( + com.google.cloud.vmwareengine.v1.ExternalAccessRule value) { + if (externalAccessRuleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + externalAccessRule_ = value; + } else { + externalAccessRuleBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Description of the external access rule.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExternalAccessRule( + com.google.cloud.vmwareengine.v1.ExternalAccessRule.Builder builderForValue) { + if (externalAccessRuleBuilder_ == null) { + externalAccessRule_ = builderForValue.build(); + } else { + externalAccessRuleBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Description of the external access rule.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeExternalAccessRule( + com.google.cloud.vmwareengine.v1.ExternalAccessRule value) { + if (externalAccessRuleBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && externalAccessRule_ != null + && externalAccessRule_ + != com.google.cloud.vmwareengine.v1.ExternalAccessRule.getDefaultInstance()) { + getExternalAccessRuleBuilder().mergeFrom(value); + } else { + externalAccessRule_ = value; + } + } else { + externalAccessRuleBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Description of the external access rule.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearExternalAccessRule() { + bitField0_ = (bitField0_ & ~0x00000002); + externalAccessRule_ = null; + if (externalAccessRuleBuilder_ != null) { + externalAccessRuleBuilder_.dispose(); + externalAccessRuleBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Description of the external access rule.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.ExternalAccessRule.Builder + getExternalAccessRuleBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getExternalAccessRuleFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Required. Description of the external access rule.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.ExternalAccessRuleOrBuilder + getExternalAccessRuleOrBuilder() { + if (externalAccessRuleBuilder_ != null) { + return externalAccessRuleBuilder_.getMessageOrBuilder(); + } else { + return externalAccessRule_ == null + ? com.google.cloud.vmwareengine.v1.ExternalAccessRule.getDefaultInstance() + : externalAccessRule_; + } + } + /** + * + * + *
    +     * Required. Description of the external access rule.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ExternalAccessRule, + com.google.cloud.vmwareengine.v1.ExternalAccessRule.Builder, + com.google.cloud.vmwareengine.v1.ExternalAccessRuleOrBuilder> + getExternalAccessRuleFieldBuilder() { + if (externalAccessRuleBuilder_ == null) { + externalAccessRuleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ExternalAccessRule, + com.google.cloud.vmwareengine.v1.ExternalAccessRule.Builder, + com.google.cloud.vmwareengine.v1.ExternalAccessRuleOrBuilder>( + getExternalAccessRule(), getParentForChildren(), isClean()); + externalAccessRule_ = null; + } + return externalAccessRuleBuilder_; + } + + 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 the 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 the 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 the 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 the 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 the 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.UpdateExternalAccessRuleRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest) + private static final com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest(); + } + + public static com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateExternalAccessRuleRequest 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.UpdateExternalAccessRuleRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateExternalAccessRuleRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateExternalAccessRuleRequestOrBuilder.java new file mode 100644 index 000000000000..e70674113b4b --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateExternalAccessRuleRequestOrBuilder.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 UpdateExternalAccessRuleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Field mask is used to specify the fields to be overwritten in the
    +   * `ExternalAccessRule` 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
    +   * `ExternalAccessRule` 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
    +   * `ExternalAccessRule` 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. Description of the external access rule.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the externalAccessRule field is set. + */ + boolean hasExternalAccessRule(); + /** + * + * + *
    +   * Required. Description of the external access rule.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The externalAccessRule. + */ + com.google.cloud.vmwareengine.v1.ExternalAccessRule getExternalAccessRule(); + /** + * + * + *
    +   * Required. Description of the external access rule.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAccessRule external_access_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmwareengine.v1.ExternalAccessRuleOrBuilder getExternalAccessRuleOrBuilder(); + + /** + * + * + *
    +   * 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 the 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 the 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/UpdateExternalAddressRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateExternalAddressRequest.java new file mode 100644 index 000000000000..74a884007404 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateExternalAddressRequest.java @@ -0,0 +1,1333 @@ +/* + * 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.UpdateExternalAddress][google.cloud.vmwareengine.v1.VmwareEngine.UpdateExternalAddress]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.UpdateExternalAddressRequest} + */ +public final class UpdateExternalAddressRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.UpdateExternalAddressRequest) + UpdateExternalAddressRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateExternalAddressRequest.newBuilder() to construct. + private UpdateExternalAddressRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateExternalAddressRequest() { + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateExternalAddressRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateExternalAddressRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateExternalAddressRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest.class, + com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest.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
    +   * `ExternalAddress` 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
    +   * `ExternalAddress` 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
    +   * `ExternalAddress` 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 EXTERNAL_ADDRESS_FIELD_NUMBER = 2; + private com.google.cloud.vmwareengine.v1.ExternalAddress externalAddress_; + /** + * + * + *
    +   * Required. External IP address description.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress external_address = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the externalAddress field is set. + */ + @java.lang.Override + public boolean hasExternalAddress() { + return externalAddress_ != null; + } + /** + * + * + *
    +   * Required. External IP address description.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress external_address = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The externalAddress. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ExternalAddress getExternalAddress() { + return externalAddress_ == null + ? com.google.cloud.vmwareengine.v1.ExternalAddress.getDefaultInstance() + : externalAddress_; + } + /** + * + * + *
    +   * Required. External IP address description.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress external_address = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ExternalAddressOrBuilder getExternalAddressOrBuilder() { + return externalAddress_ == null + ? com.google.cloud.vmwareengine.v1.ExternalAddress.getDefaultInstance() + : externalAddress_; + } + + 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 the 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 the 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 (updateMask_ != null) { + output.writeMessage(1, getUpdateMask()); + } + if (externalAddress_ != null) { + output.writeMessage(2, getExternalAddress()); + } + 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 (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (externalAddress_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExternalAddress()); + } + 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.UpdateExternalAddressRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest other = + (com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasExternalAddress() != other.hasExternalAddress()) return false; + if (hasExternalAddress()) { + if (!getExternalAddress().equals(other.getExternalAddress())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasExternalAddress()) { + hash = (37 * hash) + EXTERNAL_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getExternalAddress().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.UpdateExternalAddressRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest 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.UpdateExternalAddressRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest 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.UpdateExternalAddressRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest 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.UpdateExternalAddressRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest 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.UpdateExternalAddressRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest 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.UpdateExternalAddressRequest 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.UpdateExternalAddressRequest 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.UpdateExternalAddressRequest 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.UpdateExternalAddress][google.cloud.vmwareengine.v1.VmwareEngine.UpdateExternalAddress]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.UpdateExternalAddressRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.UpdateExternalAddressRequest) + com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateExternalAddressRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateExternalAddressRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest.class, + com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest.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; + } + externalAddress_ = null; + if (externalAddressBuilder_ != null) { + externalAddressBuilder_.dispose(); + externalAddressBuilder_ = 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_UpdateExternalAddressRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest build() { + com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest buildPartial() { + com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest result = + new com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.externalAddress_ = + externalAddressBuilder_ == null ? externalAddress_ : externalAddressBuilder_.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.UpdateExternalAddressRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasExternalAddress()) { + mergeExternalAddress(other.getExternalAddress()); + } + 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(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getExternalAddressFieldBuilder().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.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
    +     * `ExternalAddress` 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
    +     * `ExternalAddress` 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
    +     * `ExternalAddress` 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
    +     * `ExternalAddress` 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
    +     * `ExternalAddress` 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
    +     * `ExternalAddress` 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
    +     * `ExternalAddress` 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
    +     * `ExternalAddress` 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
    +     * `ExternalAddress` 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.ExternalAddress externalAddress_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ExternalAddress, + com.google.cloud.vmwareengine.v1.ExternalAddress.Builder, + com.google.cloud.vmwareengine.v1.ExternalAddressOrBuilder> + externalAddressBuilder_; + /** + * + * + *
    +     * Required. External IP address description.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress external_address = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the externalAddress field is set. + */ + public boolean hasExternalAddress() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * Required. External IP address description.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress external_address = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The externalAddress. + */ + public com.google.cloud.vmwareengine.v1.ExternalAddress getExternalAddress() { + if (externalAddressBuilder_ == null) { + return externalAddress_ == null + ? com.google.cloud.vmwareengine.v1.ExternalAddress.getDefaultInstance() + : externalAddress_; + } else { + return externalAddressBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Required. External IP address description.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress external_address = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExternalAddress(com.google.cloud.vmwareengine.v1.ExternalAddress value) { + if (externalAddressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + externalAddress_ = value; + } else { + externalAddressBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. External IP address description.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress external_address = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExternalAddress( + com.google.cloud.vmwareengine.v1.ExternalAddress.Builder builderForValue) { + if (externalAddressBuilder_ == null) { + externalAddress_ = builderForValue.build(); + } else { + externalAddressBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. External IP address description.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress external_address = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeExternalAddress(com.google.cloud.vmwareengine.v1.ExternalAddress value) { + if (externalAddressBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && externalAddress_ != null + && externalAddress_ + != com.google.cloud.vmwareengine.v1.ExternalAddress.getDefaultInstance()) { + getExternalAddressBuilder().mergeFrom(value); + } else { + externalAddress_ = value; + } + } else { + externalAddressBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. External IP address description.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress external_address = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearExternalAddress() { + bitField0_ = (bitField0_ & ~0x00000002); + externalAddress_ = null; + if (externalAddressBuilder_ != null) { + externalAddressBuilder_.dispose(); + externalAddressBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. External IP address description.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress external_address = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.ExternalAddress.Builder getExternalAddressBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getExternalAddressFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Required. External IP address description.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress external_address = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.ExternalAddressOrBuilder getExternalAddressOrBuilder() { + if (externalAddressBuilder_ != null) { + return externalAddressBuilder_.getMessageOrBuilder(); + } else { + return externalAddress_ == null + ? com.google.cloud.vmwareengine.v1.ExternalAddress.getDefaultInstance() + : externalAddress_; + } + } + /** + * + * + *
    +     * Required. External IP address description.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress external_address = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ExternalAddress, + com.google.cloud.vmwareengine.v1.ExternalAddress.Builder, + com.google.cloud.vmwareengine.v1.ExternalAddressOrBuilder> + getExternalAddressFieldBuilder() { + if (externalAddressBuilder_ == null) { + externalAddressBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ExternalAddress, + com.google.cloud.vmwareengine.v1.ExternalAddress.Builder, + com.google.cloud.vmwareengine.v1.ExternalAddressOrBuilder>( + getExternalAddress(), getParentForChildren(), isClean()); + externalAddress_ = null; + } + return externalAddressBuilder_; + } + + 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 the 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 the 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 the 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 the 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 the 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.UpdateExternalAddressRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.UpdateExternalAddressRequest) + private static final com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest(); + } + + public static com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateExternalAddressRequest 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.UpdateExternalAddressRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateExternalAddressRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateExternalAddressRequestOrBuilder.java new file mode 100644 index 000000000000..6872f9d31c1c --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateExternalAddressRequestOrBuilder.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 UpdateExternalAddressRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.UpdateExternalAddressRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Field mask is used to specify the fields to be overwritten in the
    +   * `ExternalAddress` 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
    +   * `ExternalAddress` 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
    +   * `ExternalAddress` 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. External IP address description.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress external_address = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the externalAddress field is set. + */ + boolean hasExternalAddress(); + /** + * + * + *
    +   * Required. External IP address description.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress external_address = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The externalAddress. + */ + com.google.cloud.vmwareengine.v1.ExternalAddress getExternalAddress(); + /** + * + * + *
    +   * Required. External IP address description.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ExternalAddress external_address = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmwareengine.v1.ExternalAddressOrBuilder getExternalAddressOrBuilder(); + + /** + * + * + *
    +   * 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 the 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 the 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/UpdateLoggingServerRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateLoggingServerRequest.java new file mode 100644 index 000000000000..6f26db3ed983 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateLoggingServerRequest.java @@ -0,0 +1,1329 @@ +/* + * 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.UpdateLoggingServer][google.cloud.vmwareengine.v1.VmwareEngine.UpdateLoggingServer]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.UpdateLoggingServerRequest} + */ +public final class UpdateLoggingServerRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.UpdateLoggingServerRequest) + UpdateLoggingServerRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateLoggingServerRequest.newBuilder() to construct. + private UpdateLoggingServerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateLoggingServerRequest() { + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateLoggingServerRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateLoggingServerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateLoggingServerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest.class, + com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest.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
    +   * `LoggingServer` 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
    +   * `LoggingServer` 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
    +   * `LoggingServer` 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 LOGGING_SERVER_FIELD_NUMBER = 2; + private com.google.cloud.vmwareengine.v1.LoggingServer loggingServer_; + /** + * + * + *
    +   * Required. Logging server description.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer logging_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the loggingServer field is set. + */ + @java.lang.Override + public boolean hasLoggingServer() { + return loggingServer_ != null; + } + /** + * + * + *
    +   * Required. Logging server description.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer logging_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The loggingServer. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.LoggingServer getLoggingServer() { + return loggingServer_ == null + ? com.google.cloud.vmwareengine.v1.LoggingServer.getDefaultInstance() + : loggingServer_; + } + /** + * + * + *
    +   * Required. Logging server description.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer logging_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.LoggingServerOrBuilder getLoggingServerOrBuilder() { + return loggingServer_ == null + ? com.google.cloud.vmwareengine.v1.LoggingServer.getDefaultInstance() + : loggingServer_; + } + + 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 (updateMask_ != null) { + output.writeMessage(1, getUpdateMask()); + } + if (loggingServer_ != null) { + output.writeMessage(2, getLoggingServer()); + } + 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 (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (loggingServer_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLoggingServer()); + } + 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.UpdateLoggingServerRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest other = + (com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasLoggingServer() != other.hasLoggingServer()) return false; + if (hasLoggingServer()) { + if (!getLoggingServer().equals(other.getLoggingServer())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasLoggingServer()) { + hash = (37 * hash) + LOGGING_SERVER_FIELD_NUMBER; + hash = (53 * hash) + getLoggingServer().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.UpdateLoggingServerRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest 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.UpdateLoggingServerRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest 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.UpdateLoggingServerRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest 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.UpdateLoggingServerRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest 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.UpdateLoggingServerRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest 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.UpdateLoggingServerRequest 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.UpdateLoggingServerRequest 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.UpdateLoggingServerRequest 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.UpdateLoggingServer][google.cloud.vmwareengine.v1.VmwareEngine.UpdateLoggingServer]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.UpdateLoggingServerRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.UpdateLoggingServerRequest) + com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateLoggingServerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateLoggingServerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest.class, + com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest.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; + } + loggingServer_ = null; + if (loggingServerBuilder_ != null) { + loggingServerBuilder_.dispose(); + loggingServerBuilder_ = 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_UpdateLoggingServerRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest build() { + com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest buildPartial() { + com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest result = + new com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.loggingServer_ = + loggingServerBuilder_ == null ? loggingServer_ : loggingServerBuilder_.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.UpdateLoggingServerRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest other) { + if (other == com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasLoggingServer()) { + mergeLoggingServer(other.getLoggingServer()); + } + 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(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getLoggingServerFieldBuilder().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.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
    +     * `LoggingServer` 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
    +     * `LoggingServer` 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
    +     * `LoggingServer` 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
    +     * `LoggingServer` 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
    +     * `LoggingServer` 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
    +     * `LoggingServer` 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
    +     * `LoggingServer` 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
    +     * `LoggingServer` 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
    +     * `LoggingServer` 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.LoggingServer loggingServer_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.LoggingServer, + com.google.cloud.vmwareengine.v1.LoggingServer.Builder, + com.google.cloud.vmwareengine.v1.LoggingServerOrBuilder> + loggingServerBuilder_; + /** + * + * + *
    +     * Required. Logging server description.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer logging_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the loggingServer field is set. + */ + public boolean hasLoggingServer() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * Required. Logging server description.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer logging_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The loggingServer. + */ + public com.google.cloud.vmwareengine.v1.LoggingServer getLoggingServer() { + if (loggingServerBuilder_ == null) { + return loggingServer_ == null + ? com.google.cloud.vmwareengine.v1.LoggingServer.getDefaultInstance() + : loggingServer_; + } else { + return loggingServerBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Required. Logging server description.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer logging_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setLoggingServer(com.google.cloud.vmwareengine.v1.LoggingServer value) { + if (loggingServerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + loggingServer_ = value; + } else { + loggingServerBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Logging server description.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer logging_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setLoggingServer( + com.google.cloud.vmwareengine.v1.LoggingServer.Builder builderForValue) { + if (loggingServerBuilder_ == null) { + loggingServer_ = builderForValue.build(); + } else { + loggingServerBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Logging server description.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer logging_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeLoggingServer(com.google.cloud.vmwareengine.v1.LoggingServer value) { + if (loggingServerBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && loggingServer_ != null + && loggingServer_ + != com.google.cloud.vmwareengine.v1.LoggingServer.getDefaultInstance()) { + getLoggingServerBuilder().mergeFrom(value); + } else { + loggingServer_ = value; + } + } else { + loggingServerBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Logging server description.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer logging_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearLoggingServer() { + bitField0_ = (bitField0_ & ~0x00000002); + loggingServer_ = null; + if (loggingServerBuilder_ != null) { + loggingServerBuilder_.dispose(); + loggingServerBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Logging server description.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer logging_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.LoggingServer.Builder getLoggingServerBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getLoggingServerFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Required. Logging server description.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer logging_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.LoggingServerOrBuilder getLoggingServerOrBuilder() { + if (loggingServerBuilder_ != null) { + return loggingServerBuilder_.getMessageOrBuilder(); + } else { + return loggingServer_ == null + ? com.google.cloud.vmwareengine.v1.LoggingServer.getDefaultInstance() + : loggingServer_; + } + } + /** + * + * + *
    +     * Required. Logging server description.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer logging_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.LoggingServer, + com.google.cloud.vmwareengine.v1.LoggingServer.Builder, + com.google.cloud.vmwareengine.v1.LoggingServerOrBuilder> + getLoggingServerFieldBuilder() { + if (loggingServerBuilder_ == null) { + loggingServerBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.LoggingServer, + com.google.cloud.vmwareengine.v1.LoggingServer.Builder, + com.google.cloud.vmwareengine.v1.LoggingServerOrBuilder>( + getLoggingServer(), getParentForChildren(), isClean()); + loggingServer_ = null; + } + return loggingServerBuilder_; + } + + 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.UpdateLoggingServerRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.UpdateLoggingServerRequest) + private static final com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest(); + } + + public static com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateLoggingServerRequest 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.UpdateLoggingServerRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateLoggingServerRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateLoggingServerRequestOrBuilder.java new file mode 100644 index 000000000000..18fb890229cc --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateLoggingServerRequestOrBuilder.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 UpdateLoggingServerRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.UpdateLoggingServerRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Field mask is used to specify the fields to be overwritten in the
    +   * `LoggingServer` 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
    +   * `LoggingServer` 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
    +   * `LoggingServer` 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. Logging server description.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer logging_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the loggingServer field is set. + */ + boolean hasLoggingServer(); + /** + * + * + *
    +   * Required. Logging server description.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer logging_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The loggingServer. + */ + com.google.cloud.vmwareengine.v1.LoggingServer getLoggingServer(); + /** + * + * + *
    +   * Required. Logging server description.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.LoggingServer logging_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmwareengine.v1.LoggingServerOrBuilder getLoggingServerOrBuilder(); + + /** + * + * + *
    +   * 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/UpdateManagementDnsZoneBindingRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateManagementDnsZoneBindingRequest.java new file mode 100644 index 000000000000..688cb717cb99 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateManagementDnsZoneBindingRequest.java @@ -0,0 +1,1353 @@ +/* + * 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.UpdateManagementDnsZoneBinding][google.cloud.vmwareengine.v1.VmwareEngine.UpdateManagementDnsZoneBinding]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest} + */ +public final class UpdateManagementDnsZoneBindingRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest) + UpdateManagementDnsZoneBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateManagementDnsZoneBindingRequest.newBuilder() to construct. + private UpdateManagementDnsZoneBindingRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateManagementDnsZoneBindingRequest() { + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateManagementDnsZoneBindingRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateManagementDnsZoneBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateManagementDnsZoneBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest.class, + com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest.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
    +   * `ManagementDnsZoneBinding` 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
    +   * `ManagementDnsZoneBinding` 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
    +   * `ManagementDnsZoneBinding` 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 MANAGEMENT_DNS_ZONE_BINDING_FIELD_NUMBER = 2; + private com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding managementDnsZoneBinding_; + /** + * + * + *
    +   * Required. New values to update the management DNS zone binding with.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the managementDnsZoneBinding field is set. + */ + @java.lang.Override + public boolean hasManagementDnsZoneBinding() { + return managementDnsZoneBinding_ != null; + } + /** + * + * + *
    +   * Required. New values to update the management DNS zone binding with.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The managementDnsZoneBinding. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding getManagementDnsZoneBinding() { + return managementDnsZoneBinding_ == null + ? com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.getDefaultInstance() + : managementDnsZoneBinding_; + } + /** + * + * + *
    +   * Required. New values to update the management DNS zone binding with.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ManagementDnsZoneBindingOrBuilder + getManagementDnsZoneBindingOrBuilder() { + return managementDnsZoneBinding_ == null + ? com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.getDefaultInstance() + : managementDnsZoneBinding_; + } + + 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 the 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 the 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 (updateMask_ != null) { + output.writeMessage(1, getUpdateMask()); + } + if (managementDnsZoneBinding_ != null) { + output.writeMessage(2, getManagementDnsZoneBinding()); + } + 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 (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (managementDnsZoneBinding_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getManagementDnsZoneBinding()); + } + 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.UpdateManagementDnsZoneBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest other = + (com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasManagementDnsZoneBinding() != other.hasManagementDnsZoneBinding()) return false; + if (hasManagementDnsZoneBinding()) { + if (!getManagementDnsZoneBinding().equals(other.getManagementDnsZoneBinding())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasManagementDnsZoneBinding()) { + hash = (37 * hash) + MANAGEMENT_DNS_ZONE_BINDING_FIELD_NUMBER; + hash = (53 * hash) + getManagementDnsZoneBinding().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.UpdateManagementDnsZoneBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest 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.UpdateManagementDnsZoneBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest 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.UpdateManagementDnsZoneBindingRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest 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.UpdateManagementDnsZoneBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest 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.UpdateManagementDnsZoneBindingRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest + 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.UpdateManagementDnsZoneBindingRequest 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.UpdateManagementDnsZoneBindingRequest 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.UpdateManagementDnsZoneBindingRequest 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.UpdateManagementDnsZoneBinding][google.cloud.vmwareengine.v1.VmwareEngine.UpdateManagementDnsZoneBinding]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest) + com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateManagementDnsZoneBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateManagementDnsZoneBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest.class, + com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest.Builder.class); + } + + // Construct using + // com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest.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; + } + managementDnsZoneBinding_ = null; + if (managementDnsZoneBindingBuilder_ != null) { + managementDnsZoneBindingBuilder_.dispose(); + managementDnsZoneBindingBuilder_ = 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_UpdateManagementDnsZoneBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest build() { + com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest buildPartial() { + com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest result = + new com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.managementDnsZoneBinding_ = + managementDnsZoneBindingBuilder_ == null + ? managementDnsZoneBinding_ + : managementDnsZoneBindingBuilder_.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.UpdateManagementDnsZoneBindingRequest) { + return mergeFrom( + (com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest + .getDefaultInstance()) return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasManagementDnsZoneBinding()) { + mergeManagementDnsZoneBinding(other.getManagementDnsZoneBinding()); + } + 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(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getManagementDnsZoneBindingFieldBuilder().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.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
    +     * `ManagementDnsZoneBinding` 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
    +     * `ManagementDnsZoneBinding` 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
    +     * `ManagementDnsZoneBinding` 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
    +     * `ManagementDnsZoneBinding` 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
    +     * `ManagementDnsZoneBinding` 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
    +     * `ManagementDnsZoneBinding` 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
    +     * `ManagementDnsZoneBinding` 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
    +     * `ManagementDnsZoneBinding` 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
    +     * `ManagementDnsZoneBinding` 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.ManagementDnsZoneBinding managementDnsZoneBinding_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding, + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.Builder, + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBindingOrBuilder> + managementDnsZoneBindingBuilder_; + /** + * + * + *
    +     * Required. New values to update the management DNS zone binding with.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the managementDnsZoneBinding field is set. + */ + public boolean hasManagementDnsZoneBinding() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * Required. New values to update the management DNS zone binding with.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The managementDnsZoneBinding. + */ + public com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding getManagementDnsZoneBinding() { + if (managementDnsZoneBindingBuilder_ == null) { + return managementDnsZoneBinding_ == null + ? com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.getDefaultInstance() + : managementDnsZoneBinding_; + } else { + return managementDnsZoneBindingBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Required. New values to update the management DNS zone binding with.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setManagementDnsZoneBinding( + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding value) { + if (managementDnsZoneBindingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + managementDnsZoneBinding_ = value; + } else { + managementDnsZoneBindingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. New values to update the management DNS zone binding with.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setManagementDnsZoneBinding( + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.Builder builderForValue) { + if (managementDnsZoneBindingBuilder_ == null) { + managementDnsZoneBinding_ = builderForValue.build(); + } else { + managementDnsZoneBindingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. New values to update the management DNS zone binding with.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeManagementDnsZoneBinding( + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding value) { + if (managementDnsZoneBindingBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && managementDnsZoneBinding_ != null + && managementDnsZoneBinding_ + != com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.getDefaultInstance()) { + getManagementDnsZoneBindingBuilder().mergeFrom(value); + } else { + managementDnsZoneBinding_ = value; + } + } else { + managementDnsZoneBindingBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. New values to update the management DNS zone binding with.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearManagementDnsZoneBinding() { + bitField0_ = (bitField0_ & ~0x00000002); + managementDnsZoneBinding_ = null; + if (managementDnsZoneBindingBuilder_ != null) { + managementDnsZoneBindingBuilder_.dispose(); + managementDnsZoneBindingBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. New values to update the management DNS zone binding with.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.Builder + getManagementDnsZoneBindingBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getManagementDnsZoneBindingFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Required. New values to update the management DNS zone binding with.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.ManagementDnsZoneBindingOrBuilder + getManagementDnsZoneBindingOrBuilder() { + if (managementDnsZoneBindingBuilder_ != null) { + return managementDnsZoneBindingBuilder_.getMessageOrBuilder(); + } else { + return managementDnsZoneBinding_ == null + ? com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.getDefaultInstance() + : managementDnsZoneBinding_; + } + } + /** + * + * + *
    +     * Required. New values to update the management DNS zone binding with.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding, + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.Builder, + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBindingOrBuilder> + getManagementDnsZoneBindingFieldBuilder() { + if (managementDnsZoneBindingBuilder_ == null) { + managementDnsZoneBindingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding, + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding.Builder, + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBindingOrBuilder>( + getManagementDnsZoneBinding(), getParentForChildren(), isClean()); + managementDnsZoneBinding_ = null; + } + return managementDnsZoneBindingBuilder_; + } + + 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 the 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 the 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 the 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 the 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 the 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.UpdateManagementDnsZoneBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest) + private static final com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest(); + } + + public static com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateManagementDnsZoneBindingRequest 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.UpdateManagementDnsZoneBindingRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateManagementDnsZoneBindingRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateManagementDnsZoneBindingRequestOrBuilder.java new file mode 100644 index 000000000000..fce8a60fda16 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateManagementDnsZoneBindingRequestOrBuilder.java @@ -0,0 +1,168 @@ +/* + * 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 UpdateManagementDnsZoneBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Field mask is used to specify the fields to be overwritten in the
    +   * `ManagementDnsZoneBinding` 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
    +   * `ManagementDnsZoneBinding` 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
    +   * `ManagementDnsZoneBinding` 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. New values to update the management DNS zone binding with.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the managementDnsZoneBinding field is set. + */ + boolean hasManagementDnsZoneBinding(); + /** + * + * + *
    +   * Required. New values to update the management DNS zone binding with.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The managementDnsZoneBinding. + */ + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding getManagementDnsZoneBinding(); + /** + * + * + *
    +   * Required. New values to update the management DNS zone binding with.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.ManagementDnsZoneBinding management_dns_zone_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmwareengine.v1.ManagementDnsZoneBindingOrBuilder + getManagementDnsZoneBindingOrBuilder(); + + /** + * + * + *
    +   * 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 the 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 the 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/UpdateNetworkPeeringRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateNetworkPeeringRequest.java new file mode 100644 index 000000000000..ee4fa189ee99 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateNetworkPeeringRequest.java @@ -0,0 +1,1333 @@ +/* + * 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.UpdateNetworkPeering][google.cloud.vmwareengine.v1.VmwareEngine.UpdateNetworkPeering]
    + * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest} + */ +public final class UpdateNetworkPeeringRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest) + UpdateNetworkPeeringRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateNetworkPeeringRequest.newBuilder() to construct. + private UpdateNetworkPeeringRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateNetworkPeeringRequest() { + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateNetworkPeeringRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateNetworkPeeringRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateNetworkPeeringRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest.class, + com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest.Builder.class); + } + + public static final int NETWORK_PEERING_FIELD_NUMBER = 1; + private com.google.cloud.vmwareengine.v1.NetworkPeering networkPeering_; + /** + * + * + *
    +   * Required. Network peering description.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering network_peering = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the networkPeering field is set. + */ + @java.lang.Override + public boolean hasNetworkPeering() { + return networkPeering_ != null; + } + /** + * + * + *
    +   * Required. Network peering description.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering network_peering = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The networkPeering. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkPeering getNetworkPeering() { + return networkPeering_ == null + ? com.google.cloud.vmwareengine.v1.NetworkPeering.getDefaultInstance() + : networkPeering_; + } + /** + * + * + *
    +   * Required. Network peering description.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering network_peering = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkPeeringOrBuilder getNetworkPeeringOrBuilder() { + return networkPeering_ == null + ? com.google.cloud.vmwareengine.v1.NetworkPeering.getDefaultInstance() + : networkPeering_; + } + + 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
    +   * `NetworkPeering` 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
    +   * `NetworkPeering` 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
    +   * `NetworkPeering` 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 (networkPeering_ != null) { + output.writeMessage(1, getNetworkPeering()); + } + 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 (networkPeering_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNetworkPeering()); + } + 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.UpdateNetworkPeeringRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest other = + (com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest) obj; + + if (hasNetworkPeering() != other.hasNetworkPeering()) return false; + if (hasNetworkPeering()) { + if (!getNetworkPeering().equals(other.getNetworkPeering())) 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 (hasNetworkPeering()) { + hash = (37 * hash) + NETWORK_PEERING_FIELD_NUMBER; + hash = (53 * hash) + getNetworkPeering().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.UpdateNetworkPeeringRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest 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.UpdateNetworkPeeringRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest 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.UpdateNetworkPeeringRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest 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.UpdateNetworkPeeringRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest 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.UpdateNetworkPeeringRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest 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.UpdateNetworkPeeringRequest 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.UpdateNetworkPeeringRequest 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.UpdateNetworkPeeringRequest 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.UpdateNetworkPeering][google.cloud.vmwareengine.v1.VmwareEngine.UpdateNetworkPeering]
    +   * 
    + * + * Protobuf type {@code google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest) + com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateNetworkPeeringRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateNetworkPeeringRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest.class, + com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + networkPeering_ = null; + if (networkPeeringBuilder_ != null) { + networkPeeringBuilder_.dispose(); + networkPeeringBuilder_ = 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_UpdateNetworkPeeringRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest build() { + com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest buildPartial() { + com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest result = + new com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.networkPeering_ = + networkPeeringBuilder_ == null ? networkPeering_ : networkPeeringBuilder_.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.UpdateNetworkPeeringRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest.getDefaultInstance()) + return this; + if (other.hasNetworkPeering()) { + mergeNetworkPeering(other.getNetworkPeering()); + } + 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(getNetworkPeeringFieldBuilder().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.NetworkPeering networkPeering_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.NetworkPeering, + com.google.cloud.vmwareengine.v1.NetworkPeering.Builder, + com.google.cloud.vmwareengine.v1.NetworkPeeringOrBuilder> + networkPeeringBuilder_; + /** + * + * + *
    +     * Required. Network peering description.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering network_peering = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the networkPeering field is set. + */ + public boolean hasNetworkPeering() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +     * Required. Network peering description.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering network_peering = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The networkPeering. + */ + public com.google.cloud.vmwareengine.v1.NetworkPeering getNetworkPeering() { + if (networkPeeringBuilder_ == null) { + return networkPeering_ == null + ? com.google.cloud.vmwareengine.v1.NetworkPeering.getDefaultInstance() + : networkPeering_; + } else { + return networkPeeringBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Required. Network peering description.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering network_peering = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setNetworkPeering(com.google.cloud.vmwareengine.v1.NetworkPeering value) { + if (networkPeeringBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkPeering_ = value; + } else { + networkPeeringBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Network peering description.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering network_peering = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setNetworkPeering( + com.google.cloud.vmwareengine.v1.NetworkPeering.Builder builderForValue) { + if (networkPeeringBuilder_ == null) { + networkPeering_ = builderForValue.build(); + } else { + networkPeeringBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Network peering description.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering network_peering = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeNetworkPeering(com.google.cloud.vmwareengine.v1.NetworkPeering value) { + if (networkPeeringBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && networkPeering_ != null + && networkPeering_ + != com.google.cloud.vmwareengine.v1.NetworkPeering.getDefaultInstance()) { + getNetworkPeeringBuilder().mergeFrom(value); + } else { + networkPeering_ = value; + } + } else { + networkPeeringBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Network peering description.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering network_peering = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearNetworkPeering() { + bitField0_ = (bitField0_ & ~0x00000001); + networkPeering_ = null; + if (networkPeeringBuilder_ != null) { + networkPeeringBuilder_.dispose(); + networkPeeringBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Network peering description.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering network_peering = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.NetworkPeering.Builder getNetworkPeeringBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getNetworkPeeringFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Required. Network peering description.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering network_peering = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.NetworkPeeringOrBuilder getNetworkPeeringOrBuilder() { + if (networkPeeringBuilder_ != null) { + return networkPeeringBuilder_.getMessageOrBuilder(); + } else { + return networkPeering_ == null + ? com.google.cloud.vmwareengine.v1.NetworkPeering.getDefaultInstance() + : networkPeering_; + } + } + /** + * + * + *
    +     * Required. Network peering description.
    +     * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering network_peering = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.NetworkPeering, + com.google.cloud.vmwareengine.v1.NetworkPeering.Builder, + com.google.cloud.vmwareengine.v1.NetworkPeeringOrBuilder> + getNetworkPeeringFieldBuilder() { + if (networkPeeringBuilder_ == null) { + networkPeeringBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.NetworkPeering, + com.google.cloud.vmwareengine.v1.NetworkPeering.Builder, + com.google.cloud.vmwareengine.v1.NetworkPeeringOrBuilder>( + getNetworkPeering(), getParentForChildren(), isClean()); + networkPeering_ = null; + } + return networkPeeringBuilder_; + } + + 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
    +     * `NetworkPeering` 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
    +     * `NetworkPeering` 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
    +     * `NetworkPeering` 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
    +     * `NetworkPeering` 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
    +     * `NetworkPeering` 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
    +     * `NetworkPeering` 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
    +     * `NetworkPeering` 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
    +     * `NetworkPeering` 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
    +     * `NetworkPeering` 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.UpdateNetworkPeeringRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest) + private static final com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest(); + } + + public static com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateNetworkPeeringRequest 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.UpdateNetworkPeeringRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateNetworkPeeringRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateNetworkPeeringRequestOrBuilder.java new file mode 100644 index 000000000000..2c2cebcebaca --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateNetworkPeeringRequestOrBuilder.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 UpdateNetworkPeeringRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Network peering description.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering network_peering = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the networkPeering field is set. + */ + boolean hasNetworkPeering(); + /** + * + * + *
    +   * Required. Network peering description.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering network_peering = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The networkPeering. + */ + com.google.cloud.vmwareengine.v1.NetworkPeering getNetworkPeering(); + /** + * + * + *
    +   * Required. Network peering description.
    +   * 
    + * + * + * .google.cloud.vmwareengine.v1.NetworkPeering network_peering = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmwareengine.v1.NetworkPeeringOrBuilder getNetworkPeeringOrBuilder(); + + /** + * + * + *
    +   * Required. Field mask is used to specify the fields to be overwritten in the
    +   * `NetworkPeering` 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
    +   * `NetworkPeering` 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
    +   * `NetworkPeering` 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/VmwareEngineNetwork.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineNetwork.java index 66c993467f31..782f1e77e765 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineNetwork.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineNetwork.java @@ -304,6 +304,16 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * LEGACY = 1; */ LEGACY(1), + /** + * + * + *
    +     * Standard network type used for private cloud connectivity.
    +     * 
    + * + * STANDARD = 2; + */ + STANDARD(2), UNRECOGNIZED(-1), ; @@ -329,6 +339,16 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * LEGACY = 1; */ public static final int LEGACY_VALUE = 1; + /** + * + * + *
    +     * Standard network type used for private cloud connectivity.
    +     * 
    + * + * STANDARD = 2; + */ + public static final int STANDARD_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -358,6 +378,8 @@ public static Type forNumber(int value) { return TYPE_UNSPECIFIED; case 1: return LEGACY; + case 2: + return STANDARD; default: return null; } 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 04723910ffbe..14f3d53224f7 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 @@ -79,6 +79,50 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vmwareengine_v1_DeleteClusterRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vmwareengine_v1_DeleteClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ListNodesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ListNodesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ListNodesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ListNodesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_GetNodeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_GetNodeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ListExternalAddressesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ListExternalAddressesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ListExternalAddressesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ListExternalAddressesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_FetchNetworkPolicyExternalAddressesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_FetchNetworkPolicyExternalAddressesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_FetchNetworkPolicyExternalAddressesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_FetchNetworkPolicyExternalAddressesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_GetExternalAddressRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_GetExternalAddressRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_CreateExternalAddressRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_CreateExternalAddressRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_UpdateExternalAddressRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_UpdateExternalAddressRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_DeleteExternalAddressRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_DeleteExternalAddressRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vmwareengine_v1_ListSubnetsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -95,6 +139,54 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r 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_ListExternalAccessRulesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ListExternalAccessRulesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ListExternalAccessRulesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ListExternalAccessRulesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_GetExternalAccessRuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_GetExternalAccessRuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_CreateExternalAccessRuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_CreateExternalAccessRuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_UpdateExternalAccessRuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_UpdateExternalAccessRuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_DeleteExternalAccessRuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_DeleteExternalAccessRuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ListLoggingServersRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ListLoggingServersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ListLoggingServersResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ListLoggingServersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_GetLoggingServerRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_GetLoggingServerRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_CreateLoggingServerRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_CreateLoggingServerRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_UpdateLoggingServerRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_UpdateLoggingServerRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_DeleteLoggingServerRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_DeleteLoggingServerRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vmwareengine_v1_OperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -143,6 +235,46 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vmwareengine_v1_CreateHcxActivationKeyRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vmwareengine_v1_CreateHcxActivationKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_GetDnsForwardingRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_GetDnsForwardingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_UpdateDnsForwardingRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_UpdateDnsForwardingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_CreateNetworkPeeringRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_CreateNetworkPeeringRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_DeleteNetworkPeeringRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_DeleteNetworkPeeringRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_GetNetworkPeeringRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_GetNetworkPeeringRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ListNetworkPeeringsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ListNetworkPeeringsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_UpdateNetworkPeeringRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_UpdateNetworkPeeringRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ListNetworkPeeringsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ListNetworkPeeringsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ListPeeringRoutesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ListPeeringRoutesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ListPeeringRoutesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ListPeeringRoutesResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vmwareengine_v1_ListNetworkPoliciesRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -167,6 +299,34 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vmwareengine_v1_DeleteNetworkPolicyRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vmwareengine_v1_DeleteNetworkPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ListManagementDnsZoneBindingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ListManagementDnsZoneBindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ListManagementDnsZoneBindingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ListManagementDnsZoneBindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_GetManagementDnsZoneBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_GetManagementDnsZoneBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_CreateManagementDnsZoneBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_CreateManagementDnsZoneBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_UpdateManagementDnsZoneBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_UpdateManagementDnsZoneBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_DeleteManagementDnsZoneBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_DeleteManagementDnsZoneBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_RepairManagementDnsZoneBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_RepairManagementDnsZoneBindingRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vmwareengine_v1_CreateVmwareEngineNetworkRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -223,6 +383,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionPeeringRoutesResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionPeeringRoutesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_GrantDnsBindPermissionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_GrantDnsBindPermissionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_RevokeDnsBindPermissionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_RevokeDnsBindPermissionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_GetDnsBindPermissionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_GetDnsBindPermissionRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -234,458 +406,857 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n/google/cloud/vmwareengine/v1/vmwareeng" + "ine.proto\022\034google.cloud.vmwareengine.v1\032" - + "\034google/api/annotations.proto\032\027google/ap" - + "i/client.proto\032\037google/api/field_behavio" - + "r.proto\032\031google/api/resource.proto\0329goog" - + "le/cloud/vmwareengine/v1/vmwareengine_re" - + "sources.proto\032#google/longrunning/operat" - + "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" + + "#google/longrunning/operations.proto\032\037go" + + "ogle/protobuf/timestamp.proto\032 google/pr" + + "otobuf/field_mask.proto\032\034google/api/anno" + + "tations.proto\032\027google/api/client.proto\032\037" + + "google/api/field_behavior.proto\032\033google/" + + "api/field_info.proto\032\031google/api/resourc" + + "e.proto\0329google/cloud/vmwareengine/v1/vm" + + "wareengine_resources.proto\032\033google/proto" + + "buf/empty.proto\"\237\001\n\030ListPrivateCloudsReq" + "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\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" + + "\020\n\010order_by\030\005 \001(\t\"\215\001\n\031ListPrivateCloudsR" + + "esponse\022B\n\016private_clouds\030\001 \003(\0132*.google" + + ".cloud.vmwareengine.v1.PrivateCloud\022\027\n\017n" + + "ext_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(" + + "\t\"Y\n\026GetPrivateCloudRequest\022?\n\004name\030\001 \001(" + + "\tB1\342A\001\002\372A*\n(vmwareengine.googleapis.com/" + + "PrivateCloud\"\367\001\n\031CreatePrivateCloudReque" + + "st\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.g" + + "oogleapis.com/Location\022\036\n\020private_cloud_" + + "id\030\002 \001(\tB\004\342A\001\002\022G\n\rprivate_cloud\030\003 \001(\0132*." + + "google.cloud.vmwareengine.v1.PrivateClou" + + "dB\004\342A\001\002\022\030\n\nrequest_id\030\004 \001(\tB\004\342A\001\001\022\033\n\rval" + + "idate_only\030\005 \001(\010B\004\342A\001\001\"\265\001\n\031UpdatePrivate" + + "CloudRequest\022G\n\rprivate_cloud\030\001 \001(\0132*.go" + + "ogle.cloud.vmwareengine.v1.PrivateCloudB" + "\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" + + "B\004\342A\001\001\"\273\001\n\031DeletePrivateCloudRequest\022?\n\004" + + "name\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\022\023\n\005force\030\003 \001(\010B\004\342A\001\001\022\036\n\013delay_ho" + + "urs\030\004 \001(\005B\004\342A\001\001H\000\210\001\001B\016\n\014_delay_hours\"x\n\033" + + "UndeletePrivateCloudRequest\022?\n\004name\030\001 \001(" + + "\tB1\342A\001\002\372A*\n(vmwareengine.googleapis.com/" + + "PrivateCloud\022\030\n\nrequest_id\030\002 \001(\tB\004\342A\001\001\"\241" + + "\001\n\023ListClustersRequest\022A\n\006parent\030\001 \001(\tB1" + + "\342A\001\002\372A*\n(vmwareengine.googleapis.com/Pri" + + "vateCloud\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" + + "en\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001" + + "(\t\"}\n\024ListClustersResponse\0227\n\010clusters\030\001" + + " \003(\0132%.google.cloud.vmwareengine.v1.Clus" + + "ter\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreacha" + + "ble\030\003 \003(\t\"O\n\021GetClusterRequest\022:\n\004name\030\001" + + " \001(\tB,\342A\001\002\372A%\n#vmwareengine.googleapis.c" + + "om/Cluster\"\350\001\n\024CreateClusterRequest\022A\n\006p" + + "arent\030\001 \001(\tB1\342A\001\002\372A*\n(vmwareengine.googl" + + "eapis.com/PrivateCloud\022\030\n\ncluster_id\030\002 \001" + + "(\tB\004\342A\001\002\022<\n\007cluster\030\003 \001(\0132%.google.cloud" + + ".vmwareengine.v1.ClusterB\004\342A\001\002\022\030\n\nreques" + + "t_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\024UpdateClusterRequest\0225\n\013update" + + "_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB" + + "\004\342A\001\002\022<\n\007cluster\030\002 \001(\0132%.google.cloud.vm" + + "wareengine.v1.ClusterB\004\342A\001\002\022\030\n\nrequest_i" + + "d\030\003 \001(\tB\004\342A\001\001\022\033\n\rvalidate_only\030\004 \001(\010B\004\342A" + + "\001\001\"l\n\024DeleteClusterRequest\022:\n\004name\030\001 \001(\t" + + "B,\342A\001\002\372A%\n#vmwareengine.googleapis.com/C" + + "luster\022\030\n\nrequest_id\030\002 \001(\tB\004\342A\001\001\"w\n\020List" + + "NodesRequest\022<\n\006parent\030\001 \001(\tB,\342A\001\002\372A%\n#v" + + "mwareengine.googleapis.com/Cluster\022\021\n\tpa" + + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"_\n\021Lis" + + "tNodesResponse\0221\n\005nodes\030\001 \003(\0132\".google.c" + + "loud.vmwareengine.v1.Node\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\"I\n\016GetNodeRequest\0227\n\004name\030\001 \001" + + "(\tB)\342A\001\002\372A\"\n vmwareengine.googleapis.com" + + "/Node\"\252\001\n\034ListExternalAddressesRequest\022A" + + "\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(vmwareengine.go" + + "ogleapis.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\"\230\001\n\035ListExternalAddre" + + "ssesResponse\022I\n\022external_addresses\030\001 \003(\013" + + "2-.google.cloud.vmwareengine.v1.External" + + "Address\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unre" + + "achable\030\003 \003(\t\"\237\001\n*FetchNetworkPolicyExte" + + "rnalAddressesRequest\022J\n\016network_policy\030\001" + + " \001(\tB2\342A\001\002\372A+\n)vmwareengine.googleapis.c" + + "om/NetworkPolicy\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" + + "age_token\030\003 \001(\t\"\221\001\n+FetchNetworkPolicyEx" + + "ternalAddressesResponse\022I\n\022external_addr" + + "esses\030\001 \003(\0132-.google.cloud.vmwareengine." + + "v1.ExternalAddress\022\027\n\017next_page_token\030\002 " + + "\001(\t\"_\n\031GetExternalAddressRequest\022B\n\004name" + + "\030\001 \001(\tB4\342A\001\002\372A-\n+vmwareengine.googleapis" + + ".com/ExternalAddress\"\355\001\n\034CreateExternalA" + + "ddressRequest\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(" + + "vmwareengine.googleapis.com/PrivateCloud" + + "\022M\n\020external_address\030\002 \001(\0132-.google.clou" + + "d.vmwareengine.v1.ExternalAddressB\004\342A\001\002\022" + + "!\n\023external_address_id\030\003 \001(\tB\004\342A\001\002\022\030\n\nre" + + "quest_id\030\004 \001(\tB\004\342A\001\001\"\276\001\n\034UpdateExternalA" + + "ddressRequest\0225\n\013update_mask\030\001 \001(\0132\032.goo" + + "gle.protobuf.FieldMaskB\004\342A\001\002\022M\n\020external" + + "_address\030\002 \001(\0132-.google.cloud.vmwareengi" + + "ne.v1.ExternalAddressB\004\342A\001\002\022\030\n\nrequest_i" + + "d\030\003 \001(\tB\004\342A\001\001\"|\n\034DeleteExternalAddressRe" + + "quest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+vmwareengi" + + "ne.googleapis.com/ExternalAddress\022\030\n\nreq" + + "uest_id\030\002 \001(\tB\004\342A\001\001\"~\n\022ListSubnetsReques" + + "t\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(vmwareengine" + + ".googleapis.com/PrivateCloud\022\021\n\tpage_siz" + + "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"z\n\023ListSubne" + + "tsResponse\0225\n\007subnets\030\001 \003(\0132$.google.clo" + + "ud.vmwareengine.v1.Subnet\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"M\n\020GetSu" + + "bnetRequest\0229\n\004name\030\001 \001(\tB+\342A\001\002\372A$\n\"vmwa" + + "reengine.googleapis.com/Subnet\"\210\001\n\023Updat" + + "eSubnetRequest\0225\n\013update_mask\030\001 \001(\0132\032.go" + + "ogle.protobuf.FieldMaskB\004\342A\001\002\022:\n\006subnet\030" + + "\002 \001(\0132$.google.cloud.vmwareengine.v1.Sub" + + "netB\004\342A\001\002\"\255\001\n\036ListExternalAccessRulesReq" + + "uest\022B\n\006parent\030\001 \001(\tB2\342A\001\002\372A+\n)vmwareeng" + + "ine.googleapis.com/NetworkPolicy\022\021\n\tpage" + + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filte" + + "r\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\240\001\n\037ListExtern" + + "alAccessRulesResponse\022O\n\025external_access" + + "_rules\030\001 \003(\01320.google.cloud.vmwareengine" + + ".v1.ExternalAccessRule\022\027\n\017next_page_toke" + + "n\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"e\n\034GetExter" + + "nalAccessRuleRequest\022E\n\004name\030\001 \001(\tB7\342A\001\002" + + "\372A0\n.vmwareengine.googleapis.com/Externa" + + "lAccessRule\"\366\001\n\037CreateExternalAccessRule" + + "Request\022B\n\006parent\030\001 \001(\tB2\342A\001\002\372A+\n)vmware" + + "engine.googleapis.com/NetworkPolicy\022T\n\024e" + + "xternal_access_rule\030\002 \001(\01320.google.cloud" + + ".vmwareengine.v1.ExternalAccessRuleB\004\342A\001" + + "\002\022%\n\027external_access_rule_id\030\003 \001(\tB\004\342A\001\002" + + "\022\022\n\nrequest_id\030\004 \001(\t\"\310\001\n\037UpdateExternalA" + + "ccessRuleRequest\0225\n\013update_mask\030\001 \001(\0132\032." + + "google.protobuf.FieldMaskB\004\342A\001\002\022T\n\024exter" + + "nal_access_rule\030\002 \001(\01320.google.cloud.vmw" + + "areengine.v1.ExternalAccessRuleB\004\342A\001\002\022\030\n" + + "\nrequest_id\030\003 \001(\tB\004\342A\001\001\"\202\001\n\037DeleteExtern" + + "alAccessRuleRequest\022E\n\004name\030\001 \001(\tB7\342A\001\002\372" + + "A0\n.vmwareengine.googleapis.com/External" + + "AccessRule\022\030\n\nrequest_id\030\002 \001(\tB\004\342A\001\001\"\247\001\n" + + "\031ListLoggingServersRequest\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\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by" + + "\030\005 \001(\t\"\220\001\n\032ListLoggingServersResponse\022D\n" + + "\017logging_servers\030\001 \003(\0132+.google.cloud.vm" + + "wareengine.v1.LoggingServer\022\027\n\017next_page" + + "_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"[\n\027Get" + + "LoggingServerRequest\022@\n\004name\030\001 \001(\tB2\342A\001\002" + + "\372A+\n)vmwareengine.googleapis.com/Logging" + + "Server\"\345\001\n\032CreateLoggingServerRequest\022A\n" + + "\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(vmwareengine.goo" + + "gleapis.com/PrivateCloud\022I\n\016logging_serv" + + "er\030\002 \001(\0132+.google.cloud.vmwareengine.v1." + + "LoggingServerB\004\342A\001\002\022\037\n\021logging_server_id" + + "\030\003 \001(\tB\004\342A\001\002\022\030\n\nrequest_id\030\004 \001(\tB\004\342A\001\001\"\270" + + "\001\n\032UpdateLoggingServerRequest\0225\n\013update_" + + "mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\004" + + "\342A\001\002\022I\n\016logging_server\030\002 \001(\0132+.google.cl" + + "oud.vmwareengine.v1.LoggingServerB\004\342A\001\002\022" + + "\030\n\nrequest_id\030\003 \001(\tB\004\342A\001\001\"x\n\032DeleteLoggi" + + "ngServerRequest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n)" + + "vmwareengine.googleapis.com/LoggingServe" + + "r\022\030\n\nrequest_id\030\002 \001(\tB\004\342A\001\001\"\207\002\n\021Operatio" + + "nMetadata\0225\n\013create_time\030\001 \001(\0132\032.google." + + "protobuf.TimestampB\004\342A\001\003\0222\n\010end_time\030\002 \001" + + "(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\024\n\006" + + "target\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\026requeste" + + "d_cancellation\030\006 \001(\010B\004\342A\001\003\022\031\n\013api_versio" + + "n\030\007 \001(\tB\004\342A\001\003\"\211\001\n\024ListNodeTypesRequest\022:" + + "\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googl" + + "eapis.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\025Li" + + "stNodeTypesResponse\022:\n\nnode_types\030\001 \003(\0132" + + "&.google.cloud.vmwareengine.v1.NodeType\022" + + "\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachable\030" + + "\003 \003(\t\"Q\n\022GetNodeTypeRequest\022;\n\004name\030\001 \001(" + + "\tB-\342A\001\002\372A&\n$vmwareengine.googleapis.com/" + + "NodeType\"e\n\031ShowNsxCredentialsRequest\022H\n" + + "\rprivate_cloud\030\001 \001(\tB1\342A\001\002\372A*\n(vmwareeng" + + "ine.googleapis.com/PrivateCloud\"\201\001\n\035Show" + + "VcenterCredentialsRequest\022H\n\rprivate_clo" + + "ud\030\001 \001(\tB1\342A\001\002\372A*\n(vmwareengine.googleap" + + "is.com/PrivateCloud\022\026\n\010username\030\002 \001(\tB\004\342" + + "A\001\001\"\200\001\n\032ResetNsxCredentialsRequest\022H\n\rpr" + + "ivate_cloud\030\001 \001(\tB1\342A\001\002\372A*\n(vmwareengine" + + ".googleapis.com/PrivateCloud\022\030\n\nrequest_" + + "id\030\002 \001(\tB\004\342A\001\001\"\234\001\n\036ResetVcenterCredentia" + + "lsRequest\022H\n\rprivate_cloud\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\026\n\010usernam" + + "e\030\003 \001(\tB\004\342A\001\001\"\232\001\n\035ListHcxActivationKeysR" + + "esponse\022K\n\023hcx_activation_keys\030\001 \003(\0132..g" + + "oogle.cloud.vmwareengine.v1.HcxActivatio" + + "nKey\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreach" + + "able\030\003 \003(\t\"\210\001\n\034ListHcxActivationKeysRequ" + + "est\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(vmwareengi" + + "ne.googleapis.com/PrivateCloud\022\021\n\tpage_s" + + "ize\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"a\n\032GetHcxA" + + "ctivationKeyRequest\022C\n\004name\030\001 \001(\tB5\342A\001\002\372" + + "A.\n,vmwareengine.googleapis.com/HcxActiv" + + "ationKey\"\355\001\n\035CreateHcxActivationKeyReque" + + "st\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(vmwareengin" + + "e.googleapis.com/PrivateCloud\022P\n\022hcx_act" + + "ivation_key\030\002 \001(\0132..google.cloud.vmwaree" + + "ngine.v1.HcxActivationKeyB\004\342A\001\002\022#\n\025hcx_a" + + "ctivation_key_id\030\003 \001(\tB\004\342A\001\002\022\022\n\nrequest_" + + "id\030\004 \001(\t\"[\n\027GetDnsForwardingRequest\022@\n\004n" + + "ame\030\001 \001(\tB2\342A\001\002\372A+\n)vmwareengine.googlea" + + "pis.com/DnsForwarding\"\270\001\n\032UpdateDnsForwa" + + "rdingRequest\022I\n\016dns_forwarding\030\001 \001(\0132+.g" + + "oogle.cloud.vmwareengine.v1.DnsForwardin" + + "gB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.pr" + + "otobuf.FieldMaskB\004\342A\001\002\022\030\n\nrequest_id\030\003 \001" + + "(\tB\004\342A\001\001\"\342\001\n\033CreateNetworkPeeringRequest" + + "\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.goo" + + "gleapis.com/Location\022 \n\022network_peering_" + + "id\030\002 \001(\tB\004\342A\001\002\022K\n\017network_peering\030\003 \001(\0132" + + ",.google.cloud.vmwareengine.v1.NetworkPe" + + "eringB\004\342A\001\002\022\030\n\nrequest_id\030\004 \001(\tB\004\342A\001\001\"z\n" + + "\033DeleteNetworkPeeringRequest\022A\n\004name\030\001 \001" + + "(\tB3\342A\001\002\372A,\n*vmwareengine.googleapis.com" + + "/NetworkPeering\022\030\n\nrequest_id\030\002 \001(\tB\004\342A\001" + + "\001\"]\n\030GetNetworkPeeringRequest\022A\n\004name\030\001 " + + "\001(\tB3\342A\001\002\372A,\n*vmwareengine.googleapis.co" + + "m/NetworkPeering\"\252\001\n\032ListNetworkPeerings" + + "Request\022C\n\006parent\030\001 \001(\tB3\342A\001\002\372A,\022*vmware" + + "engine.googleapis.com/NetworkPeering\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\"\273\001\n\033Update" + + "NetworkPeeringRequest\022K\n\017network_peering" + + "\030\001 \001(\0132,.google.cloud.vmwareengine.v1.Ne" + + "tworkPeeringB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132" + + "\032.google.protobuf.FieldMaskB\004\342A\001\002\022\030\n\nreq" + + "uest_id\030\003 \001(\tB\004\342A\001\001\"\223\001\n\033ListNetworkPeeri" + + "ngsResponse\022F\n\020network_peerings\030\001 \003(\0132,." + + "google.cloud.vmwareengine.v1.NetworkPeer" + + "ing\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreacha" + + "ble\030\003 \003(\t\"\226\001\n\030ListPeeringRoutesRequest\022C" + + "\n\006parent\030\001 \001(\tB3\342A\001\002\372A,\n*vmwareengine.go" + + "ogleapis.com/NetworkPeering\022\021\n\tpage_size" + + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\006 \001" + + "(\t\"x\n\031ListPeeringRoutesResponse\022B\n\016peeri" + + "ng_routes\030\001 \003(\0132*.google.cloud.vmwareeng" + + "ine.v1.PeeringRoute\022\027\n\017next_page_token\030\002" + + " \001(\t\"\251\001\n\032ListNetworkPoliciesRequest\022B\n\006p" + + "arent\030\001 \001(\tB2\342A\001\002\372A+\022)vmwareengine.googl" + + "eapis.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\033ListNetworkPolicies" + + "Response\022E\n\020network_policies\030\001 \003(\0132+.goo" + + "gle.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\004name" + + "\030\001 \001(\tB2\342A\001\002\372A+\n)vmwareengine.googleapis" + + ".com/NetworkPolicy\"\270\001\n\032UpdateNetworkPoli" + + "cyRequest\022I\n\016network_policy\030\001 \001(\0132+.goog" + + "le.cloud.vmwareengine.v1.NetworkPolicyB\004" + + "\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.proto" + + "buf.FieldMaskB\004\342A\001\002\022\030\n\nrequest_id\030\003 \001(\tB" + + "\004\342A\001\001\"\346\001\n\032CreateNetworkPolicyRequest\022B\n\006" + + "parent\030\001 \001(\tB2\342A\001\002\372A+\022)vmwareengine.goog" + + "leapis.com/NetworkPolicy\022\037\n\021network_poli" + + "cy_id\030\002 \001(\tB\004\342A\001\002\022I\n\016network_policy\030\003 \001(" + + "\0132+.google.cloud.vmwareengine.v1.Network" + + "PolicyB\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.com" + + "/NetworkPolicy\022\030\n\nrequest_id\030\002 \001(\tB\004\342A\001\001" + + "\"\262\001\n$ListManagementDnsZoneBindingsReques" + + "t\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(vmwareengine" + + ".googleapis.com/PrivateCloud\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/{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" + + "/*/clusters/*}:\007cluster\022\334\001\n\rDeleteCluste" + + "r\0222.google.cloud.vmwareengine.v1.DeleteC" + + "lusterRequest\032\035.google.longrunning.Opera" + + "tion\"x\312A*\n\025google.protobuf.Empty\022\021Operat" + + "ionMetadata\332A\004name\202\323\344\223\002>*\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" + "_cloud=projects/*/locations/*/privateClo" - + "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/*" - + "}\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/*}:\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" + + "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\306\001\n\020" + + "GetDnsForwarding\0225.google.cloud.vmwareen" + + "gine.v1.GetDnsForwardingRequest\032+.google" + + ".cloud.vmwareengine.v1.DnsForwarding\"N\332A" + + "\004name\202\323\344\223\002A\022?/v1/{name=projects/*/locati" + + "ons/*/privateClouds/*/dnsForwarding}\022\231\002\n" + + "\023UpdateDnsForwarding\0228.google.cloud.vmwa" + + "reengine.v1.UpdateDnsForwardingRequest\032\035" + + ".google.longrunning.Operation\"\250\001\312A\"\n\rDns" + + "Forwarding\022\021OperationMetadata\332A\032dns_forw" + + "arding,update_mask\202\323\344\223\002`2N/v1/{dns_forwa" + + "rding.name=projects/*/locations/*/privat" + + "eClouds/*/dnsForwarding}:\016dns_forwarding" + + "\022\275\001\n\021GetNetworkPeering\0226.google.cloud.vm" + + "wareengine.v1.GetNetworkPeeringRequest\032," + + ".google.cloud.vmwareengine.v1.NetworkPee" + + "ring\"B\332A\004name\202\323\344\223\0025\0223/v1/{name=projects/" + + "*/locations/*/networkPeerings/*}\022\320\001\n\023Lis" + + "tNetworkPeerings\0228.google.cloud.vmwareen" + + "gine.v1.ListNetworkPeeringsRequest\0329.goo" + + "gle.cloud.vmwareengine.v1.ListNetworkPee" + + "ringsResponse\"D\332A\006parent\202\323\344\223\0025\0223/v1/{par" + + "ent=projects/*/locations/*}/networkPeeri" + + "ngs\022\221\002\n\024CreateNetworkPeering\0229.google.cl" + + "oud.vmwareengine.v1.CreateNetworkPeering" + + "Request\032\035.google.longrunning.Operation\"\236" + + "\001\312A#\n\016NetworkPeering\022\021OperationMetadata\332" + + "A)parent,network_peering,network_peering" + + "_id\202\323\344\223\002F\"3/v1/{parent=projects/*/locati" + + "ons/*}/networkPeerings:\017network_peering\022" + + "\341\001\n\024DeleteNetworkPeering\0229.google.cloud." + + "vmwareengine.v1.DeleteNetworkPeeringRequ" + + "est\032\035.google.longrunning.Operation\"o\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadat" + + "a\332A\004name\202\323\344\223\0025*3/v1/{name=projects/*/loc" + + "ations/*/networkPeerings/*}\022\223\002\n\024UpdateNe" + + "tworkPeering\0229.google.cloud.vmwareengine" + + ".v1.UpdateNetworkPeeringRequest\032\035.google" + + ".longrunning.Operation\"\240\001\312A#\n\016NetworkPee" + + "ring\022\021OperationMetadata\332A\033network_peerin" + + "g,update_mask\202\323\344\223\002V2C/v1/{network_peerin" + + "g.name=projects/*/locations/*/networkPee" + + "rings/*}:\017network_peering\022\332\001\n\021ListPeerin" + + "gRoutes\0226.google.cloud.vmwareengine.v1.L" + + "istPeeringRoutesRequest\0327.google.cloud.v" + + "mwareengine.v1.ListPeeringRoutesResponse" + + "\"T\332A\006parent\202\323\344\223\002E\022C/v1/{parent=projects/" + + "*/locations/*/networkPeerings/*}/peering" + + "Routes\022\262\002\n\026CreateHcxActivationKey\022;.goog" + + "le.cloud.vmwareengine.v1.CreateHcxActiva" + + "tionKeyRequest\032\035.google.longrunning.Oper" + + "ation\"\273\001\312A%\n\020HcxActivationKey\022\021Operation" + + "Metadata\332A/parent,hcx_activation_key,hcx" + + "_activation_key_id\202\323\344\223\002[\"E/v1/{parent=pr" + + "ojects/*/locations/*/privateClouds/*}/hc" + + "xActivationKeys:\022hcx_activation_key\022\350\001\n\025" + + "ListHcxActivationKeys\022:.google.cloud.vmw" + + "areengine.v1.ListHcxActivationKeysReques" + + "t\032;.google.cloud.vmwareengine.v1.ListHcx" + + "ActivationKeysResponse\"V\332A\006parent\202\323\344\223\002G\022" + + "E/v1/{parent=projects/*/locations/*/priv" + + "ateClouds/*}/hcxActivationKeys\022\325\001\n\023GetHc" + + "xActivationKey\0228.google.cloud.vmwareengi" + + "ne.v1.GetHcxActivationKeyRequest\032..googl" + + "e.cloud.vmwareengine.v1.HcxActivationKey" + + "\"T\332A\004name\202\323\344\223\002G\022E/v1/{name=projects/*/lo" + + "cations/*/privateClouds/*/hcxActivationK" + + "eys/*}\022\272\001\n\020GetNetworkPolicy\0225.google.clo" + + "ud.vmwareengine.v1.GetNetworkPolicyReque" + + "st\032+.google.cloud.vmwareengine.v1.Networ" + + "kPolicy\"B\332A\004name\202\323\344\223\0025\0223/v1/{name=projec" + + "ts/*/locations/*/networkPolicies/*}\022\320\001\n\023" + + "ListNetworkPolicies\0228.google.cloud.vmwar" + + "eengine.v1.ListNetworkPoliciesRequest\0329." + + "google.cloud.vmwareengine.v1.ListNetwork" + + "PoliciesResponse\"D\332A\006parent\202\323\344\223\0025\0223/v1/{" + + "parent=projects/*/locations/*}/networkPo" + + "licies\022\213\002\n\023CreateNetworkPolicy\0228.google." + + "cloud.vmwareengine.v1.CreateNetworkPolic" + + "yRequest\032\035.google.longrunning.Operation\"" + + "\232\001\312A\"\n\rNetworkPolicy\022\021OperationMetadata\332" + + "A\'parent,network_policy,network_policy_i" + + "d\202\323\344\223\002E\"3/v1/{parent=projects/*/location" + + "s/*}/networkPolicies:\016network_policy\022\215\002\n" + + "\023UpdateNetworkPolicy\0228.google.cloud.vmwa" + + "reengine.v1.UpdateNetworkPolicyRequest\032\035" + + ".google.longrunning.Operation\"\234\001\312A\"\n\rNet" + + "workPolicy\022\021OperationMetadata\332A\032network_" + + "policy,update_mask\202\323\344\223\002T2B/v1/{network_p" + + "olicy.name=projects/*/locations/*/networ" + + "kPolicies/*}:\016network_policy\022\337\001\n\023DeleteN" + + "etworkPolicy\0228.google.cloud.vmwareengine" + + ".v1.DeleteNetworkPolicyRequest\032\035.google." + + "longrunning.Operation\"o\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" + + "5*3/v1/{name=projects/*/locations/*/netw" + + "orkPolicies/*}\022\210\002\n\035ListManagementDnsZone" + + "Bindings\022B.google.cloud.vmwareengine.v1." + + "ListManagementDnsZoneBindingsRequest\032C.g" + + "oogle.cloud.vmwareengine.v1.ListManageme" + + "ntDnsZoneBindingsResponse\"^\332A\006parent\202\323\344\223" + + "\002O\022M/v1/{parent=projects/*/locations/*/p" + + "rivateClouds/*}/managementDnsZoneBinding" + + "s\022\365\001\n\033GetManagementDnsZoneBinding\022@.goog" + + "le.cloud.vmwareengine.v1.GetManagementDn" + + "sZoneBindingRequest\0326.google.cloud.vmwar" + + "eengine.v1.ManagementDnsZoneBinding\"\\\332A\004" + + "name\202\323\344\223\002O\022M/v1/{name=projects/*/locatio" + + "ns/*/privateClouds/*/managementDnsZoneBi" + + "ndings/*}\022\355\002\n\036CreateManagementDnsZoneBin" + + "ding\022C.google.cloud.vmwareengine.v1.Crea" + + "teManagementDnsZoneBindingRequest\032\035.goog" + + "le.longrunning.Operation\"\346\001\312A-\n\030Manageme" + + "ntDnsZoneBinding\022\021OperationMetadata\332AApa" + + "rent,management_dns_zone_binding,managem" + + "ent_dns_zone_binding_id\202\323\344\223\002l\"M/v1/{pare" + + "nt=projects/*/locations/*/privateClouds/" + + "*}/managementDnsZoneBindings:\033management" + + "_dns_zone_binding\022\360\002\n\036UpdateManagementDn" + + "sZoneBinding\022C.google.cloud.vmwareengine" + + ".v1.UpdateManagementDnsZoneBindingReques" + + "t\032\035.google.longrunning.Operation\"\351\001\312A-\n\030" + + "ManagementDnsZoneBinding\022\021OperationMetad" + + "ata\332A\'management_dns_zone_binding,update" + + "_mask\202\323\344\223\002\210\0012i/v1/{management_dns_zone_b" + + "inding.name=projects/*/locations/*/priva" + + "teClouds/*/managementDnsZoneBindings/*}:" + + "\033management_dns_zone_binding\022\220\002\n\036DeleteM" + + "anagementDnsZoneBinding\022C.google.cloud.v" + + "mwareengine.v1.DeleteManagementDnsZoneBi" + + "ndingRequest\032\035.google.longrunning.Operat" + + "ion\"\211\001\312A*\n\025google.protobuf.Empty\022\021Operat" + + "ionMetadata\332A\004name\202\323\344\223\002O*M/v1/{name=proj" + + "ects/*/locations/*/privateClouds/*/manag" + + "ementDnsZoneBindings/*}\022\235\002\n\036RepairManage" + + "mentDnsZoneBinding\022C.google.cloud.vmware" + + "engine.v1.RepairManagementDnsZoneBinding" + + "Request\032\035.google.longrunning.Operation\"\226" + + "\001\312A-\n\030ManagementDnsZoneBinding\022\021Operatio" + + "nMetadata\332A\004name\202\323\344\223\002Y\"T/v1/{name=projec" + + "ts/*/locations/*/privateClouds/*/managem" + + "entDnsZoneBindings/*}:repair:\001*\022\267\002\n\031Crea" + + "teVmwareEngineNetwork\022>.google.cloud.vmw" + + "areengine.v1.CreateVmwareEngineNetworkRe" + + "quest\032\035.google.longrunning.Operation\"\272\001\312" + + "A(\n\023VmwareEngineNetwork\022\021OperationMetada" + + "ta\332A5parent,vmware_engine_network,vmware" + + "_engine_network_id\202\323\344\223\002Q\"8/v1/{parent=pr" + + "ojects/*/locations/*}/vmwareEngineNetwor" + + "ks:\025vmware_engine_network\022\271\002\n\031UpdateVmwa" + + "reEngineNetwork\022>.google.cloud.vmwareeng" + + "ine.v1.UpdateVmwareEngineNetworkRequest\032" + + "\035.google.longrunning.Operation\"\274\001\312A(\n\023Vm" + + "wareEngineNetwork\022\021OperationMetadata\332A!v" + + "mware_engine_network,update_mask\202\323\344\223\002g2N" + + "/v1/{vmware_engine_network.name=projects" + + "/*/locations/*/vmwareEngineNetworks/*}:\025" + + "vmware_engine_network\022\360\001\n\031DeleteVmwareEn" + + "gineNetwork\022>.google.cloud.vmwareengine." + + "v1.DeleteVmwareEngineNetworkRequest\032\035.go" + + "ogle.longrunning.Operation\"t\312A*\n\025google." + + "protobuf.Empty\022\021OperationMetadata\332A\004name" + + "\202\323\344\223\002:*8/v1/{name=projects/*/locations/*" + + "/vmwareEngineNetworks/*}\022\321\001\n\026GetVmwareEn" + + "gineNetwork\022;.google.cloud.vmwareengine." + + "v1.GetVmwareEngineNetworkRequest\0321.googl" + + "e.cloud.vmwareengine.v1.VmwareEngineNetw" + + "ork\"G\332A\004name\202\323\344\223\002:\0228/v1/{name=projects/*" + + "/locations/*/vmwareEngineNetworks/*}\022\344\001\n" + + "\030ListVmwareEngineNetworks\022=.google.cloud" + + ".vmwareengine.v1.ListVmwareEngineNetwork" + + "sRequest\032>.google.cloud.vmwareengine.v1." + + "ListVmwareEngineNetworksResponse\"I\332A\006par" + + "ent\202\323\344\223\002:\0228/v1/{parent=projects/*/locati" + + "ons/*}/vmwareEngineNetworks\022\246\002\n\027CreatePr" + + "ivateConnection\022<.google.cloud.vmwareeng" + + "ine.v1.CreatePrivateConnectionRequest\032\035." + + "google.longrunning.Operation\"\255\001\312A&\n\021Priv" + + "ateConnection\022\021OperationMetadata\332A/paren" + + "t,private_connection,private_connection_" + + "id\202\323\344\223\002L\"6/v1/{parent=projects/*/locatio" + + "ns/*}/privateConnections:\022private_connec" + + "tion\022\311\001\n\024GetPrivateConnection\0229.google.c" + + "loud.vmwareengine.v1.GetPrivateConnectio" + + "nRequest\032/.google.cloud.vmwareengine.v1." + + "PrivateConnection\"E\332A\004name\202\323\344\223\0028\0226/v1/{n" + + "ame=projects/*/locations/*/privateConnec" + + "tions/*}\022\334\001\n\026ListPrivateConnections\022;.go" + + "ogle.cloud.vmwareengine.v1.ListPrivateCo" + + "nnectionsRequest\032<.google.cloud.vmwareen" + + "gine.v1.ListPrivateConnectionsResponse\"G" + + "\332A\006parent\202\323\344\223\0028\0226/v1/{parent=projects/*/" + + "locations/*}/privateConnections\022\250\002\n\027Upda" + + "tePrivateConnection\022<.google.cloud.vmwar" + + "eengine.v1.UpdatePrivateConnectionReques" + + "t\032\035.google.longrunning.Operation\"\257\001\312A&\n\021" + + "PrivateConnection\022\021OperationMetadata\332A\036p" + + "rivate_connection,update_mask\202\323\344\223\002_2I/v1" + + "/{private_connection.name=projects/*/loc" + + "ations/*/privateConnections/*}:\022private_" + + "connection\022\352\001\n\027DeletePrivateConnection\022<" + + ".google.cloud.vmwareengine.v1.DeletePriv" + + "ateConnectionRequest\032\035.google.longrunnin", + "g.Operation\"r\312A*\n\025google.protobuf.Empty\022" + + "\021OperationMetadata\332A\004name\202\323\344\223\0028*6/v1/{na" + + "me=projects/*/locations/*/privateConnect" + + "ions/*}\022\220\002\n\"ListPrivateConnectionPeering" + + "Routes\022G.google.cloud.vmwareengine.v1.Li" + + "stPrivateConnectionPeeringRoutesRequest\032" + + "H.google.cloud.vmwareengine.v1.ListPriva" + + "teConnectionPeeringRoutesResponse\"W\332A\006pa" + + "rent\202\323\344\223\002H\022F/v1/{parent=projects/*/locat" + + "ions/*/privateConnections/*}/peeringRout" + + "es\022\364\001\n\026GrantDnsBindPermission\022;.google.c" + + "loud.vmwareengine.v1.GrantDnsBindPermiss" + + "ionRequest\032\035.google.longrunning.Operatio" + + "n\"~\312A&\n\021DnsBindPermission\022\021OperationMeta" + + "data\332A\016name,principal\202\323\344\223\002>\"9/v1/{name=p" + + "rojects/*/locations/*/dnsBindPermission}" + + ":grant:\001*\022\306\001\n\024GetDnsBindPermission\0229.goo" + + "gle.cloud.vmwareengine.v1.GetDnsBindPerm" + + "issionRequest\032/.google.cloud.vmwareengin" + + "e.v1.DnsBindPermission\"B\332A\004name\202\323\344\223\0025\0223/" + + "v1/{name=projects/*/locations/*/dnsBindP" + + "ermission}\022\367\001\n\027RevokeDnsBindPermission\022<" + + ".google.cloud.vmwareengine.v1.RevokeDnsB" + + "indPermissionRequest\032\035.google.longrunnin" + + "g.Operation\"\177\312A&\n\021DnsBindPermission\022\021Ope" + + "rationMetadata\332A\016name,principal\202\323\344\223\002?\":/" + + "v1/{name=projects/*/locations/*/dnsBindP" + + "ermission}:revoke:\001*\032O\312A\033vmwareengine.go" + + "ogleapis.com\322A.https://www.googleapis.co" + + "m/auth/cloud-platformB\256\002\n com.google.clo" + + "ud.vmwareengine.v1B\021VmwareengineProtoP\001Z" + + "Dcloud.google.com/go/vmwareengine/apiv1/" + + "vmwareenginepb;vmwareenginepb\252\002\034Google.C" + + "loud.VmwareEngine.V1\312\002\034Google\\Cloud\\Vmwa" + + "reEngine\\V1\352\002\037Google::Cloud::VmwareEngin" + + "e::V1\352AN\n\036compute.googleapis.com/Network" + + "\022,projects/{project}/global/networks/{ne" + + "twork}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.FieldInfoProto.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(), }); internal_static_google_cloud_vmwareengine_v1_ListPrivateCloudsRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -791,8 +1362,96 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "RequestId", }); - internal_static_google_cloud_vmwareengine_v1_ListSubnetsRequest_descriptor = + internal_static_google_cloud_vmwareengine_v1_ListNodesRequest_descriptor = getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_vmwareengine_v1_ListNodesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ListNodesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_vmwareengine_v1_ListNodesResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_vmwareengine_v1_ListNodesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ListNodesResponse_descriptor, + new java.lang.String[] { + "Nodes", "NextPageToken", + }); + internal_static_google_cloud_vmwareengine_v1_GetNodeRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_vmwareengine_v1_GetNodeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_GetNodeRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_vmwareengine_v1_ListExternalAddressesRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_vmwareengine_v1_ListExternalAddressesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ListExternalAddressesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_vmwareengine_v1_ListExternalAddressesResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_vmwareengine_v1_ListExternalAddressesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ListExternalAddressesResponse_descriptor, + new java.lang.String[] { + "ExternalAddresses", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_vmwareengine_v1_FetchNetworkPolicyExternalAddressesRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_vmwareengine_v1_FetchNetworkPolicyExternalAddressesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_FetchNetworkPolicyExternalAddressesRequest_descriptor, + new java.lang.String[] { + "NetworkPolicy", "PageSize", "PageToken", + }); + internal_static_google_cloud_vmwareengine_v1_FetchNetworkPolicyExternalAddressesResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_vmwareengine_v1_FetchNetworkPolicyExternalAddressesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_FetchNetworkPolicyExternalAddressesResponse_descriptor, + new java.lang.String[] { + "ExternalAddresses", "NextPageToken", + }); + internal_static_google_cloud_vmwareengine_v1_GetExternalAddressRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_vmwareengine_v1_GetExternalAddressRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_GetExternalAddressRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_vmwareengine_v1_CreateExternalAddressRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_vmwareengine_v1_CreateExternalAddressRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_CreateExternalAddressRequest_descriptor, + new java.lang.String[] { + "Parent", "ExternalAddress", "ExternalAddressId", "RequestId", + }); + internal_static_google_cloud_vmwareengine_v1_UpdateExternalAddressRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_vmwareengine_v1_UpdateExternalAddressRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_UpdateExternalAddressRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "ExternalAddress", "RequestId", + }); + internal_static_google_cloud_vmwareengine_v1_DeleteExternalAddressRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_vmwareengine_v1_DeleteExternalAddressRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_DeleteExternalAddressRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_vmwareengine_v1_ListSubnetsRequest_descriptor = + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_vmwareengine_v1_ListSubnetsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_ListSubnetsRequest_descriptor, @@ -800,7 +1459,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_vmwareengine_v1_ListSubnetsResponse_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_vmwareengine_v1_ListSubnetsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_ListSubnetsResponse_descriptor, @@ -808,7 +1467,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subnets", "NextPageToken", "Unreachable", }); internal_static_google_cloud_vmwareengine_v1_GetSubnetRequest_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_vmwareengine_v1_GetSubnetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_GetSubnetRequest_descriptor, @@ -816,15 +1475,111 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_vmwareengine_v1_UpdateSubnetRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(27); 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_ListExternalAccessRulesRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_vmwareengine_v1_ListExternalAccessRulesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ListExternalAccessRulesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_vmwareengine_v1_ListExternalAccessRulesResponse_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_vmwareengine_v1_ListExternalAccessRulesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ListExternalAccessRulesResponse_descriptor, + new java.lang.String[] { + "ExternalAccessRules", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_vmwareengine_v1_GetExternalAccessRuleRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_vmwareengine_v1_GetExternalAccessRuleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_GetExternalAccessRuleRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_vmwareengine_v1_CreateExternalAccessRuleRequest_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_vmwareengine_v1_CreateExternalAccessRuleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_CreateExternalAccessRuleRequest_descriptor, + new java.lang.String[] { + "Parent", "ExternalAccessRule", "ExternalAccessRuleId", "RequestId", + }); + internal_static_google_cloud_vmwareengine_v1_UpdateExternalAccessRuleRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_vmwareengine_v1_UpdateExternalAccessRuleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_UpdateExternalAccessRuleRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "ExternalAccessRule", "RequestId", + }); + internal_static_google_cloud_vmwareengine_v1_DeleteExternalAccessRuleRequest_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_vmwareengine_v1_DeleteExternalAccessRuleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_DeleteExternalAccessRuleRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_vmwareengine_v1_ListLoggingServersRequest_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_vmwareengine_v1_ListLoggingServersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ListLoggingServersRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_vmwareengine_v1_ListLoggingServersResponse_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_vmwareengine_v1_ListLoggingServersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ListLoggingServersResponse_descriptor, + new java.lang.String[] { + "LoggingServers", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_vmwareengine_v1_GetLoggingServerRequest_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_vmwareengine_v1_GetLoggingServerRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_GetLoggingServerRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_vmwareengine_v1_CreateLoggingServerRequest_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_cloud_vmwareengine_v1_CreateLoggingServerRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_CreateLoggingServerRequest_descriptor, + new java.lang.String[] { + "Parent", "LoggingServer", "LoggingServerId", "RequestId", + }); + internal_static_google_cloud_vmwareengine_v1_UpdateLoggingServerRequest_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_cloud_vmwareengine_v1_UpdateLoggingServerRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_UpdateLoggingServerRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "LoggingServer", "RequestId", + }); + internal_static_google_cloud_vmwareengine_v1_DeleteLoggingServerRequest_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_cloud_vmwareengine_v1_DeleteLoggingServerRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_DeleteLoggingServerRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); internal_static_google_cloud_vmwareengine_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(40); internal_static_google_cloud_vmwareengine_v1_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_OperationMetadata_descriptor, @@ -838,7 +1593,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApiVersion", }); internal_static_google_cloud_vmwareengine_v1_ListNodeTypesRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(41); internal_static_google_cloud_vmwareengine_v1_ListNodeTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_ListNodeTypesRequest_descriptor, @@ -846,7 +1601,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", }); internal_static_google_cloud_vmwareengine_v1_ListNodeTypesResponse_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(42); internal_static_google_cloud_vmwareengine_v1_ListNodeTypesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_ListNodeTypesResponse_descriptor, @@ -854,7 +1609,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodeTypes", "NextPageToken", "Unreachable", }); internal_static_google_cloud_vmwareengine_v1_GetNodeTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(43); internal_static_google_cloud_vmwareengine_v1_GetNodeTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_GetNodeTypeRequest_descriptor, @@ -862,7 +1617,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_vmwareengine_v1_ShowNsxCredentialsRequest_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(44); internal_static_google_cloud_vmwareengine_v1_ShowNsxCredentialsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_ShowNsxCredentialsRequest_descriptor, @@ -870,15 +1625,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PrivateCloud", }); internal_static_google_cloud_vmwareengine_v1_ShowVcenterCredentialsRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(45); internal_static_google_cloud_vmwareengine_v1_ShowVcenterCredentialsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_ShowVcenterCredentialsRequest_descriptor, new java.lang.String[] { - "PrivateCloud", + "PrivateCloud", "Username", }); internal_static_google_cloud_vmwareengine_v1_ResetNsxCredentialsRequest_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(46); internal_static_google_cloud_vmwareengine_v1_ResetNsxCredentialsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_ResetNsxCredentialsRequest_descriptor, @@ -886,15 +1641,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PrivateCloud", "RequestId", }); internal_static_google_cloud_vmwareengine_v1_ResetVcenterCredentialsRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(47); internal_static_google_cloud_vmwareengine_v1_ResetVcenterCredentialsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_ResetVcenterCredentialsRequest_descriptor, new java.lang.String[] { - "PrivateCloud", "RequestId", + "PrivateCloud", "RequestId", "Username", }); internal_static_google_cloud_vmwareengine_v1_ListHcxActivationKeysResponse_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(48); internal_static_google_cloud_vmwareengine_v1_ListHcxActivationKeysResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_ListHcxActivationKeysResponse_descriptor, @@ -902,7 +1657,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HcxActivationKeys", "NextPageToken", "Unreachable", }); internal_static_google_cloud_vmwareengine_v1_ListHcxActivationKeysRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(49); internal_static_google_cloud_vmwareengine_v1_ListHcxActivationKeysRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_ListHcxActivationKeysRequest_descriptor, @@ -910,7 +1665,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_vmwareengine_v1_GetHcxActivationKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(50); internal_static_google_cloud_vmwareengine_v1_GetHcxActivationKeyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_GetHcxActivationKeyRequest_descriptor, @@ -918,15 +1673,95 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_vmwareengine_v1_CreateHcxActivationKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(51); internal_static_google_cloud_vmwareengine_v1_CreateHcxActivationKeyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_CreateHcxActivationKeyRequest_descriptor, new java.lang.String[] { "Parent", "HcxActivationKey", "HcxActivationKeyId", "RequestId", }); + internal_static_google_cloud_vmwareengine_v1_GetDnsForwardingRequest_descriptor = + getDescriptor().getMessageTypes().get(52); + internal_static_google_cloud_vmwareengine_v1_GetDnsForwardingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_GetDnsForwardingRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_vmwareengine_v1_UpdateDnsForwardingRequest_descriptor = + getDescriptor().getMessageTypes().get(53); + internal_static_google_cloud_vmwareengine_v1_UpdateDnsForwardingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_UpdateDnsForwardingRequest_descriptor, + new java.lang.String[] { + "DnsForwarding", "UpdateMask", "RequestId", + }); + internal_static_google_cloud_vmwareengine_v1_CreateNetworkPeeringRequest_descriptor = + getDescriptor().getMessageTypes().get(54); + internal_static_google_cloud_vmwareengine_v1_CreateNetworkPeeringRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_CreateNetworkPeeringRequest_descriptor, + new java.lang.String[] { + "Parent", "NetworkPeeringId", "NetworkPeering", "RequestId", + }); + internal_static_google_cloud_vmwareengine_v1_DeleteNetworkPeeringRequest_descriptor = + getDescriptor().getMessageTypes().get(55); + internal_static_google_cloud_vmwareengine_v1_DeleteNetworkPeeringRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_DeleteNetworkPeeringRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_vmwareengine_v1_GetNetworkPeeringRequest_descriptor = + getDescriptor().getMessageTypes().get(56); + internal_static_google_cloud_vmwareengine_v1_GetNetworkPeeringRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_GetNetworkPeeringRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_vmwareengine_v1_ListNetworkPeeringsRequest_descriptor = + getDescriptor().getMessageTypes().get(57); + internal_static_google_cloud_vmwareengine_v1_ListNetworkPeeringsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ListNetworkPeeringsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_vmwareengine_v1_UpdateNetworkPeeringRequest_descriptor = + getDescriptor().getMessageTypes().get(58); + internal_static_google_cloud_vmwareengine_v1_UpdateNetworkPeeringRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_UpdateNetworkPeeringRequest_descriptor, + new java.lang.String[] { + "NetworkPeering", "UpdateMask", "RequestId", + }); + internal_static_google_cloud_vmwareengine_v1_ListNetworkPeeringsResponse_descriptor = + getDescriptor().getMessageTypes().get(59); + internal_static_google_cloud_vmwareengine_v1_ListNetworkPeeringsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ListNetworkPeeringsResponse_descriptor, + new java.lang.String[] { + "NetworkPeerings", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_vmwareengine_v1_ListPeeringRoutesRequest_descriptor = + getDescriptor().getMessageTypes().get(60); + internal_static_google_cloud_vmwareengine_v1_ListPeeringRoutesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ListPeeringRoutesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_vmwareengine_v1_ListPeeringRoutesResponse_descriptor = + getDescriptor().getMessageTypes().get(61); + internal_static_google_cloud_vmwareengine_v1_ListPeeringRoutesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ListPeeringRoutesResponse_descriptor, + new java.lang.String[] { + "PeeringRoutes", "NextPageToken", + }); internal_static_google_cloud_vmwareengine_v1_ListNetworkPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(62); internal_static_google_cloud_vmwareengine_v1_ListNetworkPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_ListNetworkPoliciesRequest_descriptor, @@ -934,7 +1769,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(30); + getDescriptor().getMessageTypes().get(63); internal_static_google_cloud_vmwareengine_v1_ListNetworkPoliciesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_ListNetworkPoliciesResponse_descriptor, @@ -942,7 +1777,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkPolicies", "NextPageToken", "Unreachable", }); internal_static_google_cloud_vmwareengine_v1_GetNetworkPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(64); internal_static_google_cloud_vmwareengine_v1_GetNetworkPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_GetNetworkPolicyRequest_descriptor, @@ -950,7 +1785,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_vmwareengine_v1_UpdateNetworkPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(65); internal_static_google_cloud_vmwareengine_v1_UpdateNetworkPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_UpdateNetworkPolicyRequest_descriptor, @@ -958,7 +1793,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkPolicy", "UpdateMask", "RequestId", }); internal_static_google_cloud_vmwareengine_v1_CreateNetworkPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(66); internal_static_google_cloud_vmwareengine_v1_CreateNetworkPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_CreateNetworkPolicyRequest_descriptor, @@ -966,15 +1801,71 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "NetworkPolicyId", "NetworkPolicy", "RequestId", }); internal_static_google_cloud_vmwareengine_v1_DeleteNetworkPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(67); internal_static_google_cloud_vmwareengine_v1_DeleteNetworkPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_DeleteNetworkPolicyRequest_descriptor, new java.lang.String[] { "Name", "RequestId", }); + internal_static_google_cloud_vmwareengine_v1_ListManagementDnsZoneBindingsRequest_descriptor = + getDescriptor().getMessageTypes().get(68); + internal_static_google_cloud_vmwareengine_v1_ListManagementDnsZoneBindingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ListManagementDnsZoneBindingsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_vmwareengine_v1_ListManagementDnsZoneBindingsResponse_descriptor = + getDescriptor().getMessageTypes().get(69); + internal_static_google_cloud_vmwareengine_v1_ListManagementDnsZoneBindingsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ListManagementDnsZoneBindingsResponse_descriptor, + new java.lang.String[] { + "ManagementDnsZoneBindings", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_vmwareengine_v1_GetManagementDnsZoneBindingRequest_descriptor = + getDescriptor().getMessageTypes().get(70); + internal_static_google_cloud_vmwareengine_v1_GetManagementDnsZoneBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_GetManagementDnsZoneBindingRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_vmwareengine_v1_CreateManagementDnsZoneBindingRequest_descriptor = + getDescriptor().getMessageTypes().get(71); + internal_static_google_cloud_vmwareengine_v1_CreateManagementDnsZoneBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_CreateManagementDnsZoneBindingRequest_descriptor, + new java.lang.String[] { + "Parent", "ManagementDnsZoneBinding", "ManagementDnsZoneBindingId", "RequestId", + }); + internal_static_google_cloud_vmwareengine_v1_UpdateManagementDnsZoneBindingRequest_descriptor = + getDescriptor().getMessageTypes().get(72); + internal_static_google_cloud_vmwareengine_v1_UpdateManagementDnsZoneBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_UpdateManagementDnsZoneBindingRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "ManagementDnsZoneBinding", "RequestId", + }); + internal_static_google_cloud_vmwareengine_v1_DeleteManagementDnsZoneBindingRequest_descriptor = + getDescriptor().getMessageTypes().get(73); + internal_static_google_cloud_vmwareengine_v1_DeleteManagementDnsZoneBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_DeleteManagementDnsZoneBindingRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_vmwareengine_v1_RepairManagementDnsZoneBindingRequest_descriptor = + getDescriptor().getMessageTypes().get(74); + internal_static_google_cloud_vmwareengine_v1_RepairManagementDnsZoneBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_RepairManagementDnsZoneBindingRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); internal_static_google_cloud_vmwareengine_v1_CreateVmwareEngineNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(75); internal_static_google_cloud_vmwareengine_v1_CreateVmwareEngineNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_CreateVmwareEngineNetworkRequest_descriptor, @@ -982,7 +1873,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "VmwareEngineNetworkId", "VmwareEngineNetwork", "RequestId", }); internal_static_google_cloud_vmwareengine_v1_UpdateVmwareEngineNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(76); internal_static_google_cloud_vmwareengine_v1_UpdateVmwareEngineNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_UpdateVmwareEngineNetworkRequest_descriptor, @@ -990,7 +1881,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "VmwareEngineNetwork", "UpdateMask", "RequestId", }); internal_static_google_cloud_vmwareengine_v1_DeleteVmwareEngineNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(77); internal_static_google_cloud_vmwareengine_v1_DeleteVmwareEngineNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_DeleteVmwareEngineNetworkRequest_descriptor, @@ -998,7 +1889,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "Etag", }); internal_static_google_cloud_vmwareengine_v1_GetVmwareEngineNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(78); internal_static_google_cloud_vmwareengine_v1_GetVmwareEngineNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_GetVmwareEngineNetworkRequest_descriptor, @@ -1006,7 +1897,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_vmwareengine_v1_ListVmwareEngineNetworksRequest_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(79); internal_static_google_cloud_vmwareengine_v1_ListVmwareEngineNetworksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_ListVmwareEngineNetworksRequest_descriptor, @@ -1014,7 +1905,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_vmwareengine_v1_ListVmwareEngineNetworksResponse_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(80); internal_static_google_cloud_vmwareengine_v1_ListVmwareEngineNetworksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_ListVmwareEngineNetworksResponse_descriptor, @@ -1022,7 +1913,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "VmwareEngineNetworks", "NextPageToken", "Unreachable", }); internal_static_google_cloud_vmwareengine_v1_CreatePrivateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(81); internal_static_google_cloud_vmwareengine_v1_CreatePrivateConnectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_CreatePrivateConnectionRequest_descriptor, @@ -1030,7 +1921,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PrivateConnectionId", "PrivateConnection", "RequestId", }); internal_static_google_cloud_vmwareengine_v1_GetPrivateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(82); internal_static_google_cloud_vmwareengine_v1_GetPrivateConnectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_GetPrivateConnectionRequest_descriptor, @@ -1038,7 +1929,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionsRequest_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(83); internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionsRequest_descriptor, @@ -1046,7 +1937,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionsResponse_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(84); internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionsResponse_descriptor, @@ -1054,7 +1945,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PrivateConnections", "NextPageToken", "Unreachable", }); internal_static_google_cloud_vmwareengine_v1_UpdatePrivateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(85); internal_static_google_cloud_vmwareengine_v1_UpdatePrivateConnectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_UpdatePrivateConnectionRequest_descriptor, @@ -1062,7 +1953,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PrivateConnection", "UpdateMask", "RequestId", }); internal_static_google_cloud_vmwareengine_v1_DeletePrivateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(86); internal_static_google_cloud_vmwareengine_v1_DeletePrivateConnectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_DeletePrivateConnectionRequest_descriptor, @@ -1070,7 +1961,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", }); internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionPeeringRoutesRequest_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(87); internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionPeeringRoutesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionPeeringRoutesRequest_descriptor, @@ -1078,13 +1969,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_vmwareengine_v1_ListPrivateConnectionPeeringRoutesResponse_descriptor = - getDescriptor().getMessageTypes().get(48); + getDescriptor().getMessageTypes().get(88); 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", }); + internal_static_google_cloud_vmwareengine_v1_GrantDnsBindPermissionRequest_descriptor = + getDescriptor().getMessageTypes().get(89); + internal_static_google_cloud_vmwareengine_v1_GrantDnsBindPermissionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_GrantDnsBindPermissionRequest_descriptor, + new java.lang.String[] { + "Name", "Principal", "RequestId", + }); + internal_static_google_cloud_vmwareengine_v1_RevokeDnsBindPermissionRequest_descriptor = + getDescriptor().getMessageTypes().get(90); + internal_static_google_cloud_vmwareengine_v1_RevokeDnsBindPermissionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_RevokeDnsBindPermissionRequest_descriptor, + new java.lang.String[] { + "Name", "Principal", "RequestId", + }); + internal_static_google_cloud_vmwareengine_v1_GetDnsBindPermissionRequest_descriptor = + getDescriptor().getMessageTypes().get(91); + internal_static_google_cloud_vmwareengine_v1_GetDnsBindPermissionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_GetDnsBindPermissionRequest_descriptor, + new java.lang.String[] { + "Name", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); @@ -1097,15 +2012,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.longrunning.OperationsProto.operationInfo); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.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(); } // @@protoc_insertion_point(outer_class_scope) 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 1402239c42d8..ebbfbefafd17 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 @@ -35,6 +35,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vmwareengine_v1_NodeTypeConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vmwareengine_v1_NodeTypeConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_StretchedClusterConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_StretchedClusterConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vmwareengine_v1_PrivateCloud_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -55,10 +59,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vmwareengine_v1_Cluster_NodeTypeConfigsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vmwareengine_v1_Cluster_NodeTypeConfigsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_Node_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_Node_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ExternalAddress_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ExternalAddress_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vmwareengine_v1_Subnet_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vmwareengine_v1_Subnet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ExternalAccessRule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ExternalAccessRule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ExternalAccessRule_IpRange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ExternalAccessRule_IpRange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_LoggingServer_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_LoggingServer_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vmwareengine_v1_NodeType_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -83,6 +107,18 @@ 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_DnsForwarding_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_DnsForwarding_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_DnsForwarding_ForwardingRule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_DnsForwarding_ForwardingRule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_NetworkPeering_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_NetworkPeering_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vmwareengine_v1_PeeringRoute_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -95,6 +131,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vmwareengine_v1_NetworkPolicy_NetworkService_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vmwareengine_v1_NetworkPolicy_NetworkService_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ManagementDnsZoneBinding_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ManagementDnsZoneBinding_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vmwareengine_v1_VmwareEngineNetwork_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -107,6 +147,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vmwareengine_v1_PrivateConnection_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vmwareengine_v1_PrivateConnection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_LocationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_LocationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_DnsBindPermission_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_DnsBindPermission_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_Principal_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_Principal_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -120,16 +172,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ine_resources.proto\022\034google.cloud.vmware" + "engine.v1\032\037google/api/field_behavior.pro" + "to\032\031google/api/resource.proto\032\037google/pr" - + "otobuf/timestamp.proto\"\236\002\n\rNetworkConfig" + + "otobuf/timestamp.proto\"\273\002\n\rNetworkConfig" + "\022\035\n\017management_cidr\030\004 \001(\tB\004\342A\001\002\022W\n\025vmwar" + "e_engine_network\030\005 \001(\tB8\342A\001\001\372A1\n/vmwaree" + "ngine.googleapis.com/VmwareEngineNetwork" + "\022a\n\037vmware_engine_network_canonical\030\006 \001(" + "\tB8\342A\001\003\372A1\n/vmwareengine.googleapis.com/" + "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\"\236\n\n\014Private" + + "ress_layout_version\030\010 \001(\005B\004\342A\001\003\022\033\n\rdns_s" + + "erver_ip\030\t \001(\tB\004\342A\001\003\"K\n\016NodeTypeConfig\022\030" + + "\n\nnode_count\030\001 \001(\005B\004\342A\001\002\022\037\n\021custom_core_" + + "count\030\002 \001(\005B\004\342A\001\001\"\250\001\n\026StretchedClusterCo" + + "nfig\022F\n\022preferred_location\030\001 \001(\tB*\342A\001\002\372A" + + "#\n!locations.googleapis.com/Location\022F\n\022" + + "secondary_location\030\002 \001(\tB*\342A\001\002\372A#\n!locat" + + "ions.googleapis.com/Location\"\213\013\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." @@ -149,180 +206,336 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gle.cloud.vmwareengine.v1.VcenterB\004\342A\001\003\022" + "\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" + + "eB\004\342A\001\001\032\345\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\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@\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" + + "EntryB\004\342A\001\002\022\\\n\030stretched_cluster_config\030" + + "\010 \001(\01324.google.cloud.vmwareengine.v1.Str" + + "etchedClusterConfigB\004\342A\001\001\032d\n\024NodeTypeCon" + + "figsEntry\022\013\n\003key\030\001 \001(\t\022;\n\005value\030\002 \001(\0132,." + + "google.cloud.vmwareengine.v1.NodeTypeCon" + + "fig:\0028\001\"l\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" + + "\n\n\006FAILED\020\005\022\013\n\007DELETED\020\006\022\013\n\007PURGING\020\007\"5\n" + + "\004Type\022\014\n\010STANDARD\020\000\022\020\n\014TIME_LIMITED\020\001\022\r\n" + + "\tSTRETCHED\020\002:t\352Aq\n(vmwareengine.googleap" + + "is.com/PrivateCloud\022Eprojects/{project}/" + + "locations/{location}/privateClouds/{priv" + + "ate_cloud}\"\205\006\n\007Cluster\022\022\n\004name\030\001 \001(\tB\004\342A" + + "\001\003\0225\n\013create_time\030\002 \001(\0132\032.google.protobu" + + "f.TimestampB\004\342A\001\003\0225\n\013update_time\030\003 \001(\0132\032" + + ".google.protobuf.TimestampB\004\342A\001\003\022@\n\005stat" + + "e\030\006 \001(\0162+.google.cloud.vmwareengine.v1.C" + + "luster.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_con" + + "figs\030\020 \003(\0132:.google.cloud.vmwareengine.v" + + "1.Cluster.NodeTypeConfigsEntryB\004\342A\001\002\022\\\n\030" + + "stretched_cluster_config\030\021 \001(\01324.google." + + "cloud.vmwareengine.v1.StretchedClusterCo" + + "nfigB\004\342A\001\001\032d\n\024NodeTypeConfigsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022;\n\005value\030\002 \001(\0132,.google.cloud.vm" + + "wareengine.v1.NodeTypeConfig:\0028\001\"c\n\005Stat" + + "e\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010" + + "CREATING\020\002\022\014\n\010UPDATING\020\003\022\014\n\010DELETING\020\004\022\r" + + "\n\tREPAIRING\020\005:\202\001\352A\177\n#vmwareengine.google" + + "apis.com/Cluster\022Xprojects/{project}/loc" + + "ations/{location}/privateClouds/{private" + + "_cloud}/clusters/{cluster}\"\301\003\n\004Node\022\022\n\004n" + + "ame\030\001 \001(\tB\004\342A\001\003\022\022\n\004fqdn\030\002 \001(\tB\004\342A\001\003\022\031\n\013i" + + "nternal_ip\030\003 \001(\tB\004\342A\001\003\022\032\n\014node_type_id\030\004" + + " \001(\tB\004\342A\001\003\022\025\n\007version\030\005 \001(\tB\004\342A\001\003\022\037\n\021cus" + + "tom_core_count\030\006 \001(\003B\004\342A\001\003\022=\n\005state\030\007 \001(" + + "\0162(.google.cloud.vmwareengine.v1.Node.St" + + "ateB\004\342A\001\003\"S\n\005State\022\025\n\021STATE_UNSPECIFIED\020" + + "\000\022\n\n\006ACTIVE\020\001\022\014\n\010CREATING\020\002\022\n\n\006FAILED\020\003\022" + + "\r\n\tUPGRADING\020\004:\215\001\352A\211\001\n vmwareengine.goog" + + "leapis.com/Node\022eprojects/{project}/loca" + + "tions/{location}/privateClouds/{private_" + + "cloud}/clusters/{cluster}/nodes/{node}\"\253" + + "\004\n\017ExternalAddress\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" + + "gle.protobuf.TimestampB\004\342A\001\003\022\023\n\013internal" + + "_ip\030\006 \001(\t\022\031\n\013external_ip\030\007 \001(\tB\004\342A\001\003\022H\n\005" + + "state\030\010 \001(\01623.google.cloud.vmwareengine." + + "v1.ExternalAddress.StateB\004\342A\001\003\022\021\n\003uid\030\t " + + "\001(\tB\004\342A\001\003\022\023\n\013description\030\013 \001(\t\"T\n\005State\022" + + "\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010CR" + + "EATING\020\002\022\014\n\010UPDATING\020\003\022\014\n\010DELETING\020\004:\235\001\352" + + "A\231\001\n+vmwareengine.googleapis.com/Externa" + + "lAddress\022jprojects/{project}/locations/{" + + "location}/privateClouds/{private_cloud}/" + + "externalAddresses/{external_address}\"\247\003\n" + + "\006Subnet\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\025\n\rip_cidr_r" + + "ange\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\022\025\n\007v" + + "lan_id\030\020 \001(\005B\004\342A\001\003\"q\n\005State\022\025\n\021STATE_UNS" + + "PECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010CREATING\020\002\022\014\n\010" + + "UPDATING\020\003\022\014\n\010DELETING\020\004\022\017\n\013RECONCILING\020" + + "\005\022\n\n\006FAILED\020\006:\177\352A|\n\"vmwareengine.googlea" + + "pis.com/Subnet\022Vprojects/{project}/locat" + + "ions/{location}/privateClouds/{private_c" + + "loud}/subnets/{subnet}\"\252\010\n\022ExternalAcces" + + "sRule\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." + + "TimestampB\004\342A\001\003\022\023\n\013description\030\005 \001(\t\022\020\n\010" + + "priority\030\006 \001(\005\022G\n\006action\030\007 \001(\01627.google." + + "cloud.vmwareengine.v1.ExternalAccessRule" + + ".Action\022\023\n\013ip_protocol\030\010 \001(\t\022R\n\020source_i" + + "p_ranges\030\t \003(\01328.google.cloud.vmwareengi" + + "ne.v1.ExternalAccessRule.IpRange\022\024\n\014sour" + + "ce_ports\030\n \003(\t\022W\n\025destination_ip_ranges\030" + + "\013 \003(\01328.google.cloud.vmwareengine.v1.Ext" + + "ernalAccessRule.IpRange\022\031\n\021destination_p" + + "orts\030\014 \003(\t\022K\n\005state\030\r \001(\01626.google.cloud" + + ".vmwareengine.v1.ExternalAccessRule.Stat" + + "eB\004\342A\001\003\022\021\n\003uid\030\016 \001(\tB\004\342A\001\003\032\225\001\n\007IpRange\022\024" + + "\n\nip_address\030\001 \001(\tH\000\022\032\n\020ip_address_range" + + "\030\002 \001(\tH\000\022L\n\020external_address\030\003 \001(\tB0\372A-\n" + + "+vmwareengine.googleapis.com/ExternalAdd" + + "ressH\000B\n\n\010ip_range\"5\n\006Action\022\026\n\022ACTION_U" + + "NSPECIFIED\020\000\022\t\n\005ALLOW\020\001\022\010\n\004DENY\020\002\"T\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:" + + "\251\001\352A\245\001\n.vmwareengine.googleapis.com/Exte" + + "rnalAccessRule\022sprojects/{project}/locat" + + "ions/{location}/networkPolicies/{network" + + "_policy}/externalAccessRules/{external_a" + + "ccess_rule}\"\201\005\n\rLoggingServer\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.TimestampB\004\342A\001\003\022" + + "\026\n\010hostname\030\005 \001(\tB\004\342A\001\002\022\022\n\004port\030\007 \001(\005B\004\342" + + "A\001\002\022L\n\010protocol\030\006 \001(\01624.google.cloud.vmw" + + "areengine.v1.LoggingServer.ProtocolB\004\342A\001" + + "\002\022Q\n\013source_type\030\n \001(\01626.google.cloud.vm" + + "wareengine.v1.LoggingServer.SourceTypeB\004" + + "\342A\001\002\022\021\n\003uid\030\010 \001(\tB\004\342A\001\003\"6\n\010Protocol\022\030\n\024P" + + "ROTOCOL_UNSPECIFIED\020\000\022\007\n\003UDP\020\001\022\007\n\003TCP\020\002\"" + + "=\n\nSourceType\022\033\n\027SOURCE_TYPE_UNSPECIFIED" + + "\020\000\022\010\n\004ESXI\020\001\022\010\n\004VCSA\020\002:\226\001\352A\222\001\n)vmwareeng" + + "ine.googleapis.com/LoggingServer\022eprojec" + + "ts/{project}/locations/{location}/privat" + + "eClouds/{private_cloud}/loggingServers/{" + + "logging_server}\"\212\005\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\014" + + "display_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\014di" + + "sk_size_gb\030\010 \001(\005B\004\342A\001\003\022*\n\034available_cust" + + "om_core_counts\030\013 \003(\005B\004\342A\001\003\022?\n\004kind\030\014 \001(\016" + + "2+.google.cloud.vmwareengine.v1.NodeType" + + ".KindB\004\342A\001\003\022\026\n\010families\030\r \003(\tB\004\342A\001\003\022M\n\014c" + + "apabilities\030\016 \003(\01621.google.cloud.vmwaree" + + "ngine.v1.NodeType.CapabilityB\004\342A\001\003\"<\n\004Ki" + + "nd\022\024\n\020KIND_UNSPECIFIED\020\000\022\014\n\010STANDARD\020\001\022\020" + + "\n\014STORAGE_ONLY\020\002\"@\n\nCapability\022\032\n\026CAPABI" + + "LITY_UNSPECIFIED\020\000\022\026\n\022STRETCHED_CLUSTERS" + + "\020\001:h\352Ae\n$vmwareengine.googleapis.com/Nod" + + "eType\022=projects/{project}/locations/{loc" + + "ation}/nodeTypes/{node_type}\"1\n\013Credenti" + + "als\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\005state\030\003 \001(\01624.google." + + "cloud.vmwareengine.v1.HcxActivationKey.S" + + "tateB\004\342A\001\003\022\034\n\016activation_key\030\004 \001(\tB\004\342A\001\003" + + "\022\021\n\003uid\030\005 \001(\tB\004\342A\001\003\"I\n\005State\022\025\n\021STATE_UN" + + "SPECIFIED\020\000\022\r\n\tAVAILABLE\020\001\022\014\n\010CONSUMED\020\002" + + "\022\014\n\010CREATING\020\003:\240\001\352A\234\001\n,vmwareengine.goog" + + "leapis.com/HcxActivationKey\022lprojects/{p" + + "roject}/locations/{location}/privateClou" + + "ds/{private_cloud}/hcxActivationKeys/{hc" + + "x_activation_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\'" + + ".google.cloud.vmwareengine.v1.Hcx.StateB" + + "\004\342A\001\003\022\014\n\004fqdn\030\006 \001(\t\"8\n\005State\022\025\n\021STATE_UN" + + "SPECIFIED\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.vmware" + + "engine.v1.Nsx.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\006ACTIV" + + "E\020\001\022\014\n\010CREATING\020\002\"\271\001\n\007Vcenter\022\023\n\013interna" + + "l_ip\030\002 \001(\t\022\017\n\007version\030\004 \001(\t\022@\n\005state\030\005 \001" + + "(\0162+.google.cloud.vmwareengine.v1.Vcente" + + "r.StateB\004\342A\001\003\022\014\n\004fqdn\030\006 \001(\t\"8\n\005State\022\025\n\021" + + "STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010CREAT" + + "ING\020\002\"\270\003\n\rDnsForwarding\022\022\n\004name\030\001 \001(\tB\004\342" + + "A\001\003\0225\n\013create_time\030\002 \001(\0132\032.google.protob" + + "uf.TimestampB\004\342A\001\003\0225\n\013update_time\030\003 \001(\0132" + + "\032.google.protobuf.TimestampB\004\342A\001\003\022Z\n\020for" + + "warding_rules\030\004 \003(\0132:.google.cloud.vmwar" + + "eengine.v1.DnsForwarding.ForwardingRuleB" + + "\004\342A\001\002\032B\n\016ForwardingRule\022\024\n\006domain\030\001 \001(\tB" + + "\004\342A\001\002\022\032\n\014name_servers\030\002 \003(\tB\004\342A\001\002:\204\001\352A\200\001" + + "\n)vmwareengine.googleapis.com/DnsForward" + + "ing\022Sprojects/{project}/locations/{locat" + + "ion}/privateClouds/{private_cloud}/dnsFo" + + "rwarding\"\263\n\n\016NetworkPeering\022\022\n\004name\030\001 \001(" + + "\tB\004\342A\001\003\0225\n\013create_time\030\002 \001(\0132\032.google.pr" + + "otobuf.TimestampB\004\342A\001\003\0225\n\013update_time\030\003 " + + "\001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\032\n" + + "\014peer_network\030\005 \001(\tB\004\342A\001\002\022\'\n\024export_cust" + + "om_routes\030\010 \001(\010B\004\342A\001\001H\000\210\001\001\022\'\n\024import_cus" + + "tom_routes\030\t \001(\010B\004\342A\001\001H\001\210\001\001\022)\n\026exchange_" + + "subnet_routes\030\n \001(\010B\004\342A\001\001H\002\210\001\001\0226\n#export" + + "_custom_routes_with_public_ip\030\013 \001(\010B\004\342A\001" + + "\001H\003\210\001\001\0226\n#import_custom_routes_with_publ" + + "ic_ip\030\014 \001(\010B\004\342A\001\001H\004\210\001\001\022G\n\005state\030\r \001(\01622." + + "google.cloud.vmwareengine.v1.NetworkPeer" + + "ing.StateB\004\342A\001\003\022\033\n\rstate_details\030\007 \001(\tB\004" + + "\342A\001\003\022\026\n\010peer_mtu\030\016 \001(\005B\004\342A\001\001\022]\n\021peer_net" + + "work_type\030\020 \001(\0162<.google.cloud.vmwareeng" + + "ine.v1.NetworkPeering.PeerNetworkTypeB\004\342" + + "A\001\002\022\021\n\003uid\030\021 \001(\tB\004\342A\001\003\022W\n\025vmware_engine_" + + "network\030\024 \001(\tB8\342A\001\002\372A1\n/vmwareengine.goo" + + "gleapis.com/VmwareEngineNetwork\022\031\n\013descr" + + "iption\030\025 \001(\tB\004\342A\001\001\"T\n\005State\022\025\n\021STATE_UNS" + + "PECIFIED\020\000\022\014\n\010INACTIVE\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010" + + "CREATING\020\003\022\014\n\010DELETING\020\004\"\302\001\n\017PeerNetwork" + + "Type\022!\n\035PEER_NETWORK_TYPE_UNSPECIFIED\020\000\022" + + "\014\n\010STANDARD\020\001\022\031\n\025VMWARE_ENGINE_NETWORK\020\002" + + "\022\033\n\027PRIVATE_SERVICES_ACCESS\020\003\022\030\n\024NETAPP_" + + "CLOUD_VOLUMES\020\004\022\027\n\023THIRD_PARTY_SERVICE\020\005" + + "\022\023\n\017DELL_POWERSCALE\020\006:z\352Aw\n*vmwareengine" + + ".googleapis.com/NetworkPeering\022Iprojects" + + "/{project}/locations/{location}/networkP" + + "eerings/{network_peering}B\027\n\025_export_cus" + + "tom_routesB\027\n\025_import_custom_routesB\031\n\027_" + + "exchange_subnet_routesB&\n$_export_custom" + + "_routes_with_public_ipB&\n$_import_custom" + + "_routes_with_public_ip\"\274\003\n\014PeeringRoute\022" + + "\030\n\ndest_range\030\001 \001(\tB\004\342A\001\003\022C\n\004type\030\002 \001(\0162" + + "/.google.cloud.vmwareengine.v1.PeeringRo" + + "ute.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\010importe" + + "d\030\005 \001(\010B\004\342A\001\003\022M\n\tdirection\030\006 \001(\01624.googl" + + "e.cloud.vmwareengine.v1.PeeringRoute.Dir" + + "ectionB\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\024SUBNET_PEERING_ROUTE\020" + + "\003\"B\n\tDirection\022\031\n\025DIRECTION_UNSPECIFIED\020" + + "\000\022\014\n\010INCOMING\020\001\022\014\n\010OUTGOING\020\002\"\210\007\n\rNetwor" + + "kPolicy\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\0225\n\013create_ti" + + "me\030\002 \001(\0132\032.google.protobuf.TimestampB\004\342A" + + "\001\003\0225\n\013update_time\030\003 \001(\0132\032.google.protobu" + + "f.TimestampB\004\342A\001\003\022S\n\017internet_access\030\006 \001" + + "(\0132:.google.cloud.vmwareengine.v1.Networ" + + "kPolicy.NetworkService\022O\n\013external_ip\030\007 " + + "\001(\0132:.google.cloud.vmwareengine.v1.Netwo" + + "rkPolicy.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\025" + + "vmware_engine_network\030\014 \001(\tB8\342A\001\001\372A1\n/vm" + + "wareengine.googleapis.com/VmwareEngineNe" + + "twork\022\031\n\013description\030\r \001(\tB\004\342A\001\001\022a\n\037vmwa" + + "re_engine_network_canonical\030\016 \001(\tB8\342A\001\003\372" + + "A1\n/vmwareengine.googleapis.com/VmwareEn" + + "gineNetwork\032\310\001\n\016NetworkService\022\017\n\007enable" + + "d\030\001 \001(\010\022U\n\005state\030\002 \001(\0162@.google.cloud.vm" + + "wareengine.v1.NetworkPolicy.NetworkServi" + + "ce.StateB\004\342A\001\003\"N\n\005State\022\025\n\021STATE_UNSPECI" + + "FIED\020\000\022\021\n\rUNPROVISIONED\020\001\022\017\n\013RECONCILING" + + "\020\002\022\n\n\006ACTIVE\020\003:x\352Au\n)vmwareengine.google" + + "apis.com/NetworkPolicy\022Hprojects/{projec" + + "t}/locations/{location}/networkPolicies/" + + "{network_policy}\"\330\005\n\030ManagementDnsZoneBi" + + "nding\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." + + "TimestampB\004\342A\001\003\022Q\n\005state\030\010 \001(\0162<.google." + + "cloud.vmwareengine.v1.ManagementDnsZoneB" + + "inding.StateB\004\342A\001\003\022\023\n\013description\030\r \001(\t\022" + + ":\n\013vpc_network\030\016 \001(\tB#\372A \n\036compute.googl" + + "eapis.com/NetworkH\000\022U\n\025vmware_engine_net" + + "work\030\017 \001(\tB4\372A1\n/vmwareengine.googleapis" + + ".com/VmwareEngineNetworkH\000\022\021\n\003uid\030\t \001(\tB" + + "\004\342A\001\003\"`\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\n\n\006FAILED\020\005:\271\001\352A\265\001\n4vmwareen" + + "gine.googleapis.com/ManagementDnsZoneBin" + + "ding\022}projects/{project}/locations/{loca" + + "tion}/privateClouds/{private_cloud}/mana" + + "gementDnsZoneBindings/{management_dns_zo" + + "ne_binding}B\016\n\014bind_network\"\311\007\n\023VmwareEn" + + "gineNetwork\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\0225\n\013creat" + + "e_time\030\002 \001(\0132\032.google.protobuf.Timestamp" + + "B\004\342A\001\003\0225\n\013update_time\030\003 \001(\0132\032.google.pro" + + "tobuf.TimestampB\004\342A\001\003\022\023\n\013description\030\005 \001" + + "(\t\022X\n\014vpc_networks\030\006 \003(\0132<.google.cloud." + + "vmwareengine.v1.VmwareEngineNetwork.VpcN" + + "etworkB\004\342A\001\003\022L\n\005state\030\007 \001(\01627.google.clo" + + "ud.vmwareengine.v1.VmwareEngineNetwork.S" + + "tateB\004\342A\001\003\022J\n\004type\030\010 \001(\01626.google.cloud." + + "vmwareengine.v1.VmwareEngineNetwork.Type" + + "B\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.google.cl" + + "oud.vmwareengine.v1.VmwareEngineNetwork." + + "VpcNetwork.TypeB\004\342A\001\003\0228\n\007network\030\002 \001(\tB\'" + + "\342A\001\003\372A \n\036compute.googleapis.com/Network\"" + + "J\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\014\n\010INTRANE" + + "T\020\001\022\014\n\010INTERNET\020\002\022\020\n\014GOOGLE_CLOUD\020\003\"T\n\005S" + + "tate\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020" + + "\001\022\n\n\006ACTIVE\020\002\022\014\n\010UPDATING\020\003\022\014\n\010DELETING\020" + + "\004\"6\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\n\n\006LEGAC" + + "Y\020\001\022\014\n\010STANDARD\020\002:\213\001\352A\207\001\n/vmwareengine.g" + + "oogleapis.com/VmwareEngineNetwork\022Tproje" + + "cts/{project}/locations/{location}/vmwar" + + "eEngineNetworks/{vmware_engine_network}\"" + + "\304\n\n\021PrivateConnection\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.TimestampB\004\342A\001\003\022\031\n\013descr" + + "iption\030\004 \001(\tB\004\342A\001\001\022J\n\005state\030\005 \001(\01625.goog" + + "le.cloud.vmwareengine.v1.PrivateConnecti" + + "on.StateB\004\342A\001\003\022W\n\025vmware_engine_network\030" + + "\010 \001(\tB8\342A\001\002\372A1\n/vmwareengine.googleapis." + + "com/VmwareEngineNetwork\022a\n\037vmware_engine" + + "_network_canonical\030\t \001(\tB8\342A\001\003\372A1\n/vmwar" + + "eengine.googleapis.com/VmwareEngineNetwo" + + "rk\022H\n\004type\030\n \001(\01624.google.cloud.vmwareen" + + "gine.v1.PrivateConnection.TypeB\004\342A\001\002\022\030\n\n" + + "peering_id\030\014 \001(\tB\004\342A\001\003\022W\n\014routing_mode\030\r" + + " \001(\0162;.google.cloud.vmwareengine.v1.Priv" + + "ateConnection.RoutingModeB\004\342A\001\001\022\021\n\003uid\030\016" + + " \001(\tB\004\342A\001\003\022@\n\017service_network\030\020 \001(\tB\'\342A\001" + + "\002\372A \n\036compute.googleapis.com/Network\022Y\n\r" + + "peering_state\030\021 \001(\0162<.google.cloud.vmwar" + + "eengine.v1.PrivateConnection.PeeringStat" + + "eB\004\342A\001\003\"s\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" + + "\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010UPDATING\020\003\022" + + "\014\n\010DELETING\020\004\022\021\n\rUNPROVISIONED\020\005\022\n\n\006FAIL" + + "ED\020\006\"\200\001\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\032\n\026P" + + "RIVATE_SERVICE_ACCESS\020\001\022\030\n\024NETAPP_CLOUD_" + + "VOLUMES\020\002\022\023\n\017DELL_POWERSCALE\020\003\022\027\n\023THIRD_" + + "PARTY_SERVICE\020\004\"E\n\013RoutingMode\022\034\n\030ROUTIN" + + "G_MODE_UNSPECIFIED\020\000\022\n\n\006GLOBAL\020\001\022\014\n\010REGI" + + "ONAL\020\002\"W\n\014PeeringState\022\035\n\031PEERING_STATE_" + + "UNSPECIFIED\020\000\022\022\n\016PEERING_ACTIVE\020\001\022\024\n\020PEE" + + "RING_INACTIVE\020\002:\204\001\352A\200\001\n-vmwareengine.goo" + + "gleapis.com/PrivateConnection\022Oprojects/" + + "{project}/locations/{location}/privateCo" + + "nnections/{private_connection}\"\253\001\n\020Locat" + + "ionMetadata\022U\n\014capabilities\030\001 \003(\01629.goog" + + "le.cloud.vmwareengine.v1.LocationMetadat" + + "a.CapabilityB\004\342A\001\003\"@\n\nCapability\022\032\n\026CAPA" + + "BILITY_UNSPECIFIED\020\000\022\026\n\022STRETCHED_CLUSTE" + + "RS\020\001\"\331\001\n\021DnsBindPermission\022\022\n\004name\030\001 \001(\t" + + "B\004\342A\001\003\022A\n\nprincipals\030\002 \003(\0132\'.google.clou" + + "d.vmwareengine.v1.PrincipalB\004\342A\001\003:m\352Aj\n-" + + "vmwareengine.googleapis.com/DnsBindPermi" + + "ssion\0229projects/{project}/locations/{loc" + + "ation}/dnsBindPermission\"C\n\tPrincipal\022\016\n" + + "\004user\030\001 \001(\tH\000\022\031\n\017service_account\030\002 \001(\tH\000" + + "B\013\n\tprincipalB\346\001\n com.google.cloud.vmwar" + + "eengine.v1B\032VmwareengineResourcesProtoP\001" + + "ZDcloud.google.com/go/vmwareengine/apiv1" + + "/vmwareenginepb;vmwareenginepb\252\002\034Google." + + "Cloud.VmwareEngine.V1\312\002\034Google\\Cloud\\Vmw" + + "areEngine\\V1\352\002\037Google::Cloud::VmwareEngi" + + "ne::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -342,6 +555,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "VmwareEngineNetwork", "VmwareEngineNetworkCanonical", "ManagementIpAddressLayoutVersion", + "DnsServerIp", }); internal_static_google_cloud_vmwareengine_v1_NodeTypeConfig_descriptor = getDescriptor().getMessageTypes().get(1); @@ -351,8 +565,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "NodeCount", "CustomCoreCount", }); - internal_static_google_cloud_vmwareengine_v1_PrivateCloud_descriptor = + internal_static_google_cloud_vmwareengine_v1_StretchedClusterConfig_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vmwareengine_v1_StretchedClusterConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_StretchedClusterConfig_descriptor, + new java.lang.String[] { + "PreferredLocation", "SecondaryLocation", + }); + internal_static_google_cloud_vmwareengine_v1_PrivateCloud_descriptor = + getDescriptor().getMessageTypes().get(3); internal_static_google_cloud_vmwareengine_v1_PrivateCloud_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_PrivateCloud_descriptor, @@ -380,7 +602,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_PrivateCloud_ManagementCluster_descriptor, new java.lang.String[] { - "ClusterId", "NodeTypeConfigs", + "ClusterId", "NodeTypeConfigs", "StretchedClusterConfig", }); internal_static_google_cloud_vmwareengine_v1_PrivateCloud_ManagementCluster_NodeTypeConfigsEntry_descriptor = internal_static_google_cloud_vmwareengine_v1_PrivateCloud_ManagementCluster_descriptor @@ -393,12 +615,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_vmwareengine_v1_Cluster_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(4); internal_static_google_cloud_vmwareengine_v1_Cluster_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_Cluster_descriptor, new java.lang.String[] { - "Name", "CreateTime", "UpdateTime", "State", "Management", "Uid", "NodeTypeConfigs", + "Name", + "CreateTime", + "UpdateTime", + "State", + "Management", + "Uid", + "NodeTypeConfigs", + "StretchedClusterConfig", }); internal_static_google_cloud_vmwareengine_v1_Cluster_NodeTypeConfigsEntry_descriptor = internal_static_google_cloud_vmwareengine_v1_Cluster_descriptor.getNestedTypes().get(0); @@ -408,16 +637,84 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_vmwareengine_v1_Node_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_vmwareengine_v1_Node_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_Node_descriptor, + new java.lang.String[] { + "Name", "Fqdn", "InternalIp", "NodeTypeId", "Version", "CustomCoreCount", "State", + }); + internal_static_google_cloud_vmwareengine_v1_ExternalAddress_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_vmwareengine_v1_ExternalAddress_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ExternalAddress_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "InternalIp", + "ExternalIp", + "State", + "Uid", + "Description", + }); internal_static_google_cloud_vmwareengine_v1_Subnet_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_vmwareengine_v1_Subnet_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_Subnet_descriptor, new java.lang.String[] { - "Name", "IpCidrRange", "GatewayIp", "Type", "State", + "Name", "IpCidrRange", "GatewayIp", "Type", "State", "VlanId", + }); + internal_static_google_cloud_vmwareengine_v1_ExternalAccessRule_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_vmwareengine_v1_ExternalAccessRule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ExternalAccessRule_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Description", + "Priority", + "Action", + "IpProtocol", + "SourceIpRanges", + "SourcePorts", + "DestinationIpRanges", + "DestinationPorts", + "State", + "Uid", + }); + internal_static_google_cloud_vmwareengine_v1_ExternalAccessRule_IpRange_descriptor = + internal_static_google_cloud_vmwareengine_v1_ExternalAccessRule_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_vmwareengine_v1_ExternalAccessRule_IpRange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ExternalAccessRule_IpRange_descriptor, + new java.lang.String[] { + "IpAddress", "IpAddressRange", "ExternalAddress", "IpRange", + }); + internal_static_google_cloud_vmwareengine_v1_LoggingServer_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_vmwareengine_v1_LoggingServer_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_LoggingServer_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Hostname", + "Port", + "Protocol", + "SourceType", + "Uid", }); internal_static_google_cloud_vmwareengine_v1_NodeType_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_vmwareengine_v1_NodeType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_NodeType_descriptor, @@ -430,9 +727,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MemoryGb", "DiskSizeGb", "AvailableCustomCoreCounts", + "Kind", + "Families", + "Capabilities", }); internal_static_google_cloud_vmwareengine_v1_Credentials_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_vmwareengine_v1_Credentials_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_Credentials_descriptor, @@ -440,7 +740,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Username", "Password", }); internal_static_google_cloud_vmwareengine_v1_HcxActivationKey_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_vmwareengine_v1_HcxActivationKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_HcxActivationKey_descriptor, @@ -448,7 +748,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "CreateTime", "State", "ActivationKey", "Uid", }); internal_static_google_cloud_vmwareengine_v1_Hcx_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_vmwareengine_v1_Hcx_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_Hcx_descriptor, @@ -456,7 +756,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InternalIp", "Version", "State", "Fqdn", }); internal_static_google_cloud_vmwareengine_v1_Nsx_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_vmwareengine_v1_Nsx_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_Nsx_descriptor, @@ -464,15 +764,61 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InternalIp", "Version", "State", "Fqdn", }); internal_static_google_cloud_vmwareengine_v1_Vcenter_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_vmwareengine_v1_Vcenter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_Vcenter_descriptor, new java.lang.String[] { "InternalIp", "Version", "State", "Fqdn", }); + internal_static_google_cloud_vmwareengine_v1_DnsForwarding_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_vmwareengine_v1_DnsForwarding_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_DnsForwarding_descriptor, + new java.lang.String[] { + "Name", "CreateTime", "UpdateTime", "ForwardingRules", + }); + internal_static_google_cloud_vmwareengine_v1_DnsForwarding_ForwardingRule_descriptor = + internal_static_google_cloud_vmwareengine_v1_DnsForwarding_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_vmwareengine_v1_DnsForwarding_ForwardingRule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_DnsForwarding_ForwardingRule_descriptor, + new java.lang.String[] { + "Domain", "NameServers", + }); + internal_static_google_cloud_vmwareengine_v1_NetworkPeering_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_vmwareengine_v1_NetworkPeering_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_NetworkPeering_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "PeerNetwork", + "ExportCustomRoutes", + "ImportCustomRoutes", + "ExchangeSubnetRoutes", + "ExportCustomRoutesWithPublicIp", + "ImportCustomRoutesWithPublicIp", + "State", + "StateDetails", + "PeerMtu", + "PeerNetworkType", + "Uid", + "VmwareEngineNetwork", + "Description", + "ExportCustomRoutes", + "ImportCustomRoutes", + "ExchangeSubnetRoutes", + "ExportCustomRoutesWithPublicIp", + "ImportCustomRoutesWithPublicIp", + }); internal_static_google_cloud_vmwareengine_v1_PeeringRoute_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_vmwareengine_v1_PeeringRoute_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_PeeringRoute_descriptor, @@ -480,7 +826,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DestRange", "Type", "NextHopRegion", "Priority", "Imported", "Direction", }); internal_static_google_cloud_vmwareengine_v1_NetworkPolicy_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_vmwareengine_v1_NetworkPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_NetworkPolicy_descriptor, @@ -506,8 +852,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Enabled", "State", }); + internal_static_google_cloud_vmwareengine_v1_ManagementDnsZoneBinding_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_vmwareengine_v1_ManagementDnsZoneBinding_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ManagementDnsZoneBinding_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "State", + "Description", + "VpcNetwork", + "VmwareEngineNetwork", + "Uid", + "BindNetwork", + }); internal_static_google_cloud_vmwareengine_v1_VmwareEngineNetwork_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_vmwareengine_v1_VmwareEngineNetwork_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_VmwareEngineNetwork_descriptor, @@ -533,7 +895,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Type", "Network", }); internal_static_google_cloud_vmwareengine_v1_PrivateConnection_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_vmwareengine_v1_PrivateConnection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_PrivateConnection_descriptor, @@ -552,6 +914,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceNetwork", "PeeringState", }); + internal_static_google_cloud_vmwareengine_v1_LocationMetadata_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_vmwareengine_v1_LocationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_LocationMetadata_descriptor, + new java.lang.String[] { + "Capabilities", + }); + internal_static_google_cloud_vmwareengine_v1_DnsBindPermission_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_vmwareengine_v1_DnsBindPermission_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_DnsBindPermission_descriptor, + new java.lang.String[] { + "Name", "Principals", + }); + internal_static_google_cloud_vmwareengine_v1_Principal_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_vmwareengine_v1_Principal_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_Principal_descriptor, + new java.lang.String[] { + "User", "ServiceAccount", "Principal", + }); 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 eef4dcd7da4a..b724f685430c 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 @@ -16,15 +16,16 @@ syntax = "proto3"; package google.cloud.vmwareengine.v1; +import "google/longrunning/operations.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/field_mask.proto"; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; +import "google/api/field_info.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"; option csharp_namespace = "Google.Cloud.VmwareEngine.V1"; option go_package = "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb;vmwareenginepb"; @@ -62,9 +63,9 @@ service VmwareEngine { } // Creates a new `PrivateCloud` resource in a given project and location. - // Private clouds can only be created in zones, regional private clouds are - // not supported. - // + // Private clouds of type `STANDARD` and + // `TIME_LIMITED` are zonal resources, `STRETCHED` private clouds are + // regional. // Creating a private cloud also creates a [management // cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components) // for that private cloud. @@ -180,8 +181,7 @@ service VmwareEngine { }; } - // Modifies a `Cluster` resource. Only the following fields can be updated: - // `node_type_configs.*.node_count`. Only fields specified in `updateMask` are + // Modifies a `Cluster` resource. Only fields specified in `updateMask` are // applied. // // During operation processing, the resource is temporarily in the `ACTIVE` @@ -217,6 +217,103 @@ service VmwareEngine { }; } + // Lists nodes in a given cluster. + rpc ListNodes(ListNodesRequest) returns (ListNodesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/privateClouds/*/clusters/*}/nodes" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single node. + rpc GetNode(GetNodeRequest) returns (Node) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/privateClouds/*/clusters/*/nodes/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists external IP addresses assigned to VMware workload VMs in a given + // private cloud. + rpc ListExternalAddresses(ListExternalAddressesRequest) + returns (ListExternalAddressesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/privateClouds/*}/externalAddresses" + }; + option (google.api.method_signature) = "parent"; + } + + // Lists external IP addresses assigned to VMware workload VMs within the + // scope of the given network policy. + rpc FetchNetworkPolicyExternalAddresses( + FetchNetworkPolicyExternalAddressesRequest) + returns (FetchNetworkPolicyExternalAddressesResponse) { + option (google.api.http) = { + get: "/v1/{network_policy=projects/*/locations/*/networkPolicies/*}:fetchExternalAddresses" + }; + option (google.api.method_signature) = "network_policy"; + } + + // Gets details of a single external IP address. + rpc GetExternalAddress(GetExternalAddressRequest) returns (ExternalAddress) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/privateClouds/*/externalAddresses/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new `ExternalAddress` resource in a given private cloud. The + // network policy that corresponds to the private cloud must have the external + // IP address network service enabled (`NetworkPolicy.external_ip`). + rpc CreateExternalAddress(CreateExternalAddressRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/privateClouds/*}/externalAddresses" + body: "external_address" + }; + option (google.api.method_signature) = + "parent,external_address,external_address_id"; + option (google.longrunning.operation_info) = { + response_type: "ExternalAddress" + metadata_type: "OperationMetadata" + }; + } + + // Updates the parameters of a single external IP address. + // Only fields specified in `update_mask` are applied. + // + // During operation processing, the resource is temporarily in the `ACTIVE` + // state before the operation fully completes. For that period of time, you + // can't update the resource. Use the operation status to determine when the + // processing fully completes. + rpc UpdateExternalAddress(UpdateExternalAddressRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{external_address.name=projects/*/locations/*/privateClouds/*/externalAddresses/*}" + body: "external_address" + }; + option (google.api.method_signature) = "external_address,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "ExternalAddress" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single external IP address. When you delete an external IP + // address, connectivity between the external IP address and the corresponding + // internal IP address is lost. + rpc DeleteExternalAddress(DeleteExternalAddressRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/privateClouds/*/externalAddresses/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + // Lists subnets in a given private cloud. rpc ListSubnets(ListSubnetsRequest) returns (ListSubnetsResponse) { option (google.api.http) = { @@ -251,6 +348,128 @@ service VmwareEngine { }; } + // Lists `ExternalAccessRule` resources in the specified network policy. + rpc ListExternalAccessRules(ListExternalAccessRulesRequest) + returns (ListExternalAccessRulesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/networkPolicies/*}/externalAccessRules" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single external access rule. + rpc GetExternalAccessRule(GetExternalAccessRuleRequest) + returns (ExternalAccessRule) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/networkPolicies/*/externalAccessRules/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new external access rule in a given network policy. + rpc CreateExternalAccessRule(CreateExternalAccessRuleRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/networkPolicies/*}/externalAccessRules" + body: "external_access_rule" + }; + option (google.api.method_signature) = + "parent,external_access_rule,external_access_rule_id"; + option (google.longrunning.operation_info) = { + response_type: "ExternalAccessRule" + metadata_type: "OperationMetadata" + }; + } + + // Updates the parameters of a single external access rule. + // Only fields specified in `update_mask` are applied. + rpc UpdateExternalAccessRule(UpdateExternalAccessRuleRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{external_access_rule.name=projects/*/locations/*/networkPolicies/*/externalAccessRules/*}" + body: "external_access_rule" + }; + option (google.api.method_signature) = "external_access_rule,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "ExternalAccessRule" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single external access rule. + rpc DeleteExternalAccessRule(DeleteExternalAccessRuleRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/networkPolicies/*/externalAccessRules/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Lists logging servers configured for a given private + // cloud. + rpc ListLoggingServers(ListLoggingServersRequest) + returns (ListLoggingServersResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/privateClouds/*}/loggingServers" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a logging server. + rpc GetLoggingServer(GetLoggingServerRequest) returns (LoggingServer) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/privateClouds/*/loggingServers/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Create a new logging server for a given private cloud. + rpc CreateLoggingServer(CreateLoggingServerRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/privateClouds/*}/loggingServers" + body: "logging_server" + }; + option (google.api.method_signature) = + "parent,logging_server,logging_server_id"; + option (google.longrunning.operation_info) = { + response_type: "LoggingServer" + metadata_type: "OperationMetadata" + }; + } + + // Updates the parameters of a single logging server. + // Only fields specified in `update_mask` are applied. + rpc UpdateLoggingServer(UpdateLoggingServerRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{logging_server.name=projects/*/locations/*/privateClouds/*/loggingServers/*}" + body: "logging_server" + }; + option (google.api.method_signature) = "logging_server,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "LoggingServer" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single logging server. + rpc DeleteLoggingServer(DeleteLoggingServerRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/privateClouds/*/loggingServers/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + // Lists node types rpc ListNodeTypes(ListNodeTypesRequest) returns (ListNodeTypesResponse) { option (google.api.http) = { @@ -312,6 +531,109 @@ service VmwareEngine { }; } + // Gets details of the `DnsForwarding` config. + rpc GetDnsForwarding(GetDnsForwardingRequest) returns (DnsForwarding) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/privateClouds/*/dnsForwarding}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates the parameters of the `DnsForwarding` config, like associated + // domains. Only fields specified in `update_mask` are applied. + rpc UpdateDnsForwarding(UpdateDnsForwardingRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{dns_forwarding.name=projects/*/locations/*/privateClouds/*/dnsForwarding}" + body: "dns_forwarding" + }; + option (google.api.method_signature) = "dns_forwarding,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "DnsForwarding" + metadata_type: "OperationMetadata" + }; + } + + // Retrieves a `NetworkPeering` resource by its resource name. The resource + // contains details of the network peering, such as peered + // networks, import and export custom route configurations, and peering state. + // NetworkPeering is a global resource and location can only be global. + rpc GetNetworkPeering(GetNetworkPeeringRequest) returns (NetworkPeering) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/networkPeerings/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists `NetworkPeering` resources in a given project. NetworkPeering is a + // global resource and location can only be global. + rpc ListNetworkPeerings(ListNetworkPeeringsRequest) + returns (ListNetworkPeeringsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/networkPeerings" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a new network peering between the peer network and VMware Engine + // network provided in a `NetworkPeering` resource. NetworkPeering is a + // global resource and location can only be global. + rpc CreateNetworkPeering(CreateNetworkPeeringRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/networkPeerings" + body: "network_peering" + }; + option (google.api.method_signature) = + "parent,network_peering,network_peering_id"; + option (google.longrunning.operation_info) = { + response_type: "NetworkPeering" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a `NetworkPeering` resource. When a network peering is deleted for + // a VMware Engine network, the peer network becomes inaccessible to that + // VMware Engine network. NetworkPeering is a global resource and location can + // only be global. + rpc DeleteNetworkPeering(DeleteNetworkPeeringRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/networkPeerings/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Modifies a `NetworkPeering` resource. Only the `description` field can be + // updated. Only fields specified in `updateMask` are applied. NetworkPeering + // is a global resource and location can only be global. + rpc UpdateNetworkPeering(UpdateNetworkPeeringRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{network_peering.name=projects/*/locations/*/networkPeerings/*}" + body: "network_peering" + }; + option (google.api.method_signature) = "network_peering,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "NetworkPeering" + metadata_type: "OperationMetadata" + }; + } + + // Lists the network peering routes exchanged over a peering connection. + // NetworkPeering is a global resource and location can only be global. + rpc ListPeeringRoutes(ListPeeringRoutesRequest) + returns (ListPeeringRoutesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/networkPeerings/*}/peeringRoutes" + }; + option (google.api.method_signature) = "parent"; + } + // Creates a new HCX activation key in a given private cloud. rpc CreateHcxActivationKey(CreateHcxActivationKeyRequest) returns (google.longrunning.Operation) { @@ -419,6 +741,91 @@ service VmwareEngine { }; } + // Lists Consumer VPCs bound to Management DNS Zone of a given private cloud. + rpc ListManagementDnsZoneBindings(ListManagementDnsZoneBindingsRequest) + returns (ListManagementDnsZoneBindingsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/privateClouds/*}/managementDnsZoneBindings" + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieves a 'ManagementDnsZoneBinding' resource by its resource name. + rpc GetManagementDnsZoneBinding(GetManagementDnsZoneBindingRequest) + returns (ManagementDnsZoneBinding) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/privateClouds/*/managementDnsZoneBindings/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new `ManagementDnsZoneBinding` resource in a private cloud. + // This RPC creates the DNS binding and the resource that represents the + // DNS binding of the consumer VPC network to the management DNS zone. A + // management DNS zone is the Cloud DNS cross-project binding zone that + // VMware Engine creates for each private cloud. It contains FQDNs and + // corresponding IP addresses for the private cloud's ESXi hosts and + // management VM appliances like vCenter and NSX Manager. + rpc CreateManagementDnsZoneBinding(CreateManagementDnsZoneBindingRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/privateClouds/*}/managementDnsZoneBindings" + body: "management_dns_zone_binding" + }; + option (google.api.method_signature) = + "parent,management_dns_zone_binding,management_dns_zone_binding_id"; + option (google.longrunning.operation_info) = { + response_type: "ManagementDnsZoneBinding" + metadata_type: "OperationMetadata" + }; + } + + // Updates a `ManagementDnsZoneBinding` resource. + // Only fields specified in `update_mask` are applied. + rpc UpdateManagementDnsZoneBinding(UpdateManagementDnsZoneBindingRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{management_dns_zone_binding.name=projects/*/locations/*/privateClouds/*/managementDnsZoneBindings/*}" + body: "management_dns_zone_binding" + }; + option (google.api.method_signature) = + "management_dns_zone_binding,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "ManagementDnsZoneBinding" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a `ManagementDnsZoneBinding` resource. When a management DNS zone + // binding is deleted, the corresponding consumer VPC network is no longer + // bound to the management DNS zone. + rpc DeleteManagementDnsZoneBinding(DeleteManagementDnsZoneBindingRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/privateClouds/*/managementDnsZoneBindings/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Retries to create a `ManagementDnsZoneBinding` resource that is + // in failed state. + rpc RepairManagementDnsZoneBinding(RepairManagementDnsZoneBindingRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/privateClouds/*/managementDnsZoneBindings/*}:repair" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "ManagementDnsZoneBinding" + metadata_type: "OperationMetadata" + }; + } + // Creates a new VMware Engine network that can be used by a private cloud. rpc CreateVmwareEngineNetwork(CreateVmwareEngineNetworkRequest) returns (google.longrunning.Operation) { @@ -563,22 +970,66 @@ service VmwareEngine { }; option (google.api.method_signature) = "parent"; } -} - -// Request message for -// [VmwareEngine.ListPrivateClouds][google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateClouds] -message ListPrivateCloudsRequest { - // Required. The resource name of the private cloud to be queried for - // clusters. 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` - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" - } - ]; + + // Grants the bind permission to the customer provided principal(user / + // service account) to bind their DNS zone with the intranet VPC associated + // with the project. DnsBindPermission is a global resource and location can + // only be global. + rpc GrantDnsBindPermission(GrantDnsBindPermissionRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/dnsBindPermission}:grant" + body: "*" + }; + option (google.api.method_signature) = "name,principal"; + option (google.longrunning.operation_info) = { + response_type: "DnsBindPermission" + metadata_type: "OperationMetadata" + }; + } + + // Gets all the principals having bind permission on the intranet VPC + // associated with the consumer project granted by the Grant API. + // DnsBindPermission is a global resource and location can only be global. + rpc GetDnsBindPermission(GetDnsBindPermissionRequest) + returns (DnsBindPermission) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/dnsBindPermission}" + }; + option (google.api.method_signature) = "name"; + } + + // Revokes the bind permission from the customer provided principal(user / + // service account) on the intranet VPC associated with the consumer project. + // DnsBindPermission is a global resource and location can only be global. + rpc RevokeDnsBindPermission(RevokeDnsBindPermissionRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/dnsBindPermission}:revoke" + body: "*" + }; + option (google.api.method_signature) = "name,principal"; + option (google.longrunning.operation_info) = { + response_type: "DnsBindPermission" + metadata_type: "OperationMetadata" + }; + } +} + +// Request message for +// [VmwareEngine.ListPrivateClouds][google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateClouds] +message ListPrivateCloudsRequest { + // Required. The resource name of the private cloud to be queried for + // clusters. 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` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; // The maximum number of private clouds to return in one page. // The service may return fewer than this value. @@ -943,138 +1394,87 @@ message DeleteClusterRequest { } // Request message for -// [VmwareEngine.ListSubnets][google.cloud.vmwareengine.v1.VmwareEngine.ListSubnets] -message ListSubnetsRequest { - // Required. The resource name of the private cloud to be queried for - // subnets. +// [VmwareEngine.ListNodes][google.cloud.vmwareengine.v1.VmwareEngine.ListNodes] +message ListNodesRequest { + // Required. The resource name of the cluster to be queried for nodes. // 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` + // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/clusters/my-cluster` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - type: "vmwareengine.googleapis.com/PrivateCloud" + type: "vmwareengine.googleapis.com/Cluster" } ]; - // The maximum number of subnets to return in one page. + // The maximum number of nodes 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 `ListSubnetsRequest` call. + // A page token, received from a previous `ListNodes` call. // Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to - // `ListSubnetsRequest` must match the call that provided the page token. + // `ListNodes` must match the call that provided the page + // token. string page_token = 3; } // Response message for -// [VmwareEngine.ListSubnets][google.cloud.vmwareengine.v1.VmwareEngine.ListSubnets] -message ListSubnetsResponse { - // A list of subnets. - repeated Subnet subnets = 1; +// [VmwareEngine.ListNodes][google.cloud.vmwareengine.v1.VmwareEngine.ListNodes] +message ListNodesResponse { + // The nodes. + repeated Node nodes = 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; - - // 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. +// [VmwareEngine.GetNode][google.cloud.vmwareengine.v1.VmwareEngine.GetNode] +message GetNodeRequest { + // Required. The resource name of the node to retrieve. // For example: - // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/subnets/my-subnet` + // `projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}/nodes/{node}` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - type: "vmwareengine.googleapis.com/Subnet" + type: "vmwareengine.googleapis.com/Node" } ]; } // 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. -message OperationMetadata { - // Output only. The time the operation was created. - google.protobuf.Timestamp create_time = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The time the operation finished running. - google.protobuf.Timestamp end_time = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Server-defined resource path for the target of the operation. - string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Name of the verb executed by the operation. - string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Human-readable status of the operation, if any. - string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. True if the user has requested cancellation - // of the operation; false otherwise. - // Operations that have successfully been cancelled - // have [Operation.error][] value with a - // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - // `Code.CANCELLED`. - bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. API version used to start the operation. - string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Request message for -// [VmwareEngine.ListNodeTypes][google.cloud.vmwareengine.v1.VmwareEngine.ListNodeTypes] -message ListNodeTypesRequest { - // Required. The resource name of the location to be queried for node types. +// [VmwareEngine.ListExternalAddresses][google.cloud.vmwareengine.v1.VmwareEngine.ListExternalAddresses] +message ListExternalAddressesRequest { + // Required. The resource name of the private cloud to be queried for + // external IP addresses. // 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` + // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" + type: "vmwareengine.googleapis.com/PrivateCloud" } ]; - // The maximum number of node types to return in one page. + // The maximum number of external IP addresses 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 `ListNodeTypes` call. + // A page token, received from a previous `ListExternalAddresses` call. // Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to - // `ListNodeTypes` must match the call that provided the page token. + // `ListExternalAddresses` must match the call that provided the page token. string page_token = 3; // A filter expression that matches resources returned in the response. @@ -1083,33 +1483,40 @@ message ListNodeTypesRequest { // must be a string, a number, or a boolean. The comparison operator // must be `=`, `!=`, `>`, or `<`. // - // For example, if you are filtering a list of node types, you can - // exclude the ones named `standard-72` by specifying - // `name != "standard-72"`. + // For example, if you are filtering a list of IP addresses, you can + // exclude the ones named `example-ip` by specifying + // `name != "example-ip"`. // // To filter on multiple expressions, provide each separate expression within // parentheses. For example: // ``` - // (name = "standard-72") - // (virtual_cpu_count > 2) + // (name = "example-ip") + // (createTime > "2021-04-12T08:15:10.40Z") // ``` // // By default, each expression is an `AND` expression. However, you // can include `AND` and `OR` expressions explicitly. // For example: // ``` - // (name = "standard-96") AND - // (virtual_cpu_count > 2) OR - // (name = "standard-72") + // (name = "example-ip-1") AND + // (createTime > "2021-04-12T08:15:10.40Z") OR + // (name = "example-ip-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.ListNodeTypes][google.cloud.vmwareengine.v1.VmwareEngine.ListNodeTypes] -message ListNodeTypesResponse { - // A list of Node Types. - repeated NodeType node_types = 1; +// [VmwareEngine.ListExternalAddresses][google.cloud.vmwareengine.v1.VmwareEngine.ListExternalAddresses] +message ListExternalAddressesResponse { + // A list of external IP addresses. + repeated ExternalAddress external_addresses = 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. @@ -1121,70 +1528,126 @@ message ListNodeTypesResponse { } // Request message for -// [VmwareEngine.GetNodeType][google.cloud.vmwareengine.v1.VmwareEngine.GetNodeType] -message GetNodeTypeRequest { - // Required. The resource name of the node type to retrieve. - // Resource names are schemeless URIs that follow the conventions in - // https://cloud.google.com/apis/design/resource_names. - // For example: - // `projects/my-proj/locations/us-central1-a/nodeTypes/standard-72` - string name = 1 [ +// [VmwareEngine.FetchNetworkPolicyExternalAddresses][google.cloud.vmwareengine.v1.VmwareEngine.FetchNetworkPolicyExternalAddresses] +message FetchNetworkPolicyExternalAddressesRequest { + // Required. The resource name of the network policy to query for assigned + // external IP addresses. 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/networkPolicies/my-policy` + string network_policy = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - type: "vmwareengine.googleapis.com/NodeType" + type: "vmwareengine.googleapis.com/NetworkPolicy" } ]; + + // The maximum number of external IP addresses 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 + // `FetchNetworkPolicyExternalAddresses` call. Provide this to retrieve the + // subsequent page. + // + // When paginating, all parameters provided to + // `FetchNetworkPolicyExternalAddresses`, except for `page_size` and + // `page_token`, must match the call that provided the page token. + string page_token = 3; +} + +// Response message for +// [VmwareEngine.FetchNetworkPolicyExternalAddresses][google.cloud.vmwareengine.v1.VmwareEngine.FetchNetworkPolicyExternalAddresses] +message FetchNetworkPolicyExternalAddressesResponse { + // A list of external IP addresses assigned to VMware workload VMs within the + // scope of the given network policy. + repeated ExternalAddress external_addresses = 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; } // Request message for -// [VmwareEngine.ShowNsxCredentials][google.cloud.vmwareengine.v1.VmwareEngine.ShowNsxCredentials] -message ShowNsxCredentialsRequest { - // Required. The resource name of the private cloud - // to be queried for credentials. +// [VmwareEngine.GetExternalAddress][google.cloud.vmwareengine.v1.VmwareEngine.GetExternalAddress] +message GetExternalAddressRequest { + // Required. The resource name of the external IP address 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` - string private_cloud = 1 [ + // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-ip` + string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - type: "vmwareengine.googleapis.com/PrivateCloud" + type: "vmwareengine.googleapis.com/ExternalAddress" } ]; } // Request message for -// [VmwareEngine.ShowVcenterCredentials][google.cloud.vmwareengine.v1.VmwareEngine.ShowVcenterCredentials] -message ShowVcenterCredentialsRequest { +// [VmwareEngine.CreateExternalAddress][google.cloud.vmwareengine.v1.VmwareEngine.CreateExternalAddress] +message CreateExternalAddressRequest { // Required. The resource name of the private cloud - // to be queried for credentials. + // to create a new external IP address in. // 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` - string private_cloud = 1 [ + string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { type: "vmwareengine.googleapis.com/PrivateCloud" } ]; + + // Required. The initial description of a new external IP address. + ExternalAddress external_address = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The user-provided identifier of the `ExternalAddress` to be + // created. This identifier must be unique among `ExternalAddress` 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 external_address_id = 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 the 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.ResetNsxCredentials][google.cloud.vmwareengine.v1.VmwareEngine.ResetNsxCredentials] -message ResetNsxCredentialsRequest { - // Required. The resource name of the private cloud - // to reset credentials for. - // 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` - string private_cloud = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "vmwareengine.googleapis.com/PrivateCloud" - } - ]; +// [VmwareEngine.UpdateExternalAddress][google.cloud.vmwareengine.v1.VmwareEngine.UpdateExternalAddress] +message UpdateExternalAddressRequest { + // Required. Field mask is used to specify the fields to be overwritten in the + // `ExternalAddress` 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. External IP address description. + ExternalAddress external_address = 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 @@ -1193,29 +1656,28 @@ message ResetNsxCredentialsRequest { // 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. + // request times out. If you make the request again with the same request ID, + // the server can check if the 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]; + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; } // Request message for -// [VmwareEngine.ResetVcenterCredentials][google.cloud.vmwareengine.v1.VmwareEngine.ResetVcenterCredentials] -message ResetVcenterCredentialsRequest { - // Required. The resource name of the private cloud - // to reset credentials for. +// [VmwareEngine.DeleteExternalAddress][google.cloud.vmwareengine.v1.VmwareEngine.DeleteExternalAddress] +message DeleteExternalAddressRequest { + // Required. The resource name of the external IP address to delete. // 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` - string private_cloud = 1 [ + // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-ip` + string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - type: "vmwareengine.googleapis.com/PrivateCloud" + type: "vmwareengine.googleapis.com/ExternalAddress" } ]; @@ -1227,7 +1689,7 @@ message ResetVcenterCredentialsRequest { // // 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 + // ID, the server can check if the 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. // @@ -1236,14 +1698,748 @@ message ResetVcenterCredentialsRequest { string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; } -// Response message for -// [VmwareEngine.ListHcxActivationKeys][google.cloud.vmwareengine.v1.VmwareEngine.ListHcxActivationKeys] -message ListHcxActivationKeysResponse { - // List of HCX activation keys. - repeated HcxActivationKey hcx_activation_keys = 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. +// Request message for +// [VmwareEngine.ListSubnets][google.cloud.vmwareengine.v1.VmwareEngine.ListSubnets] +message ListSubnetsRequest { + // Required. The resource name of the private cloud to be queried for + // subnets. + // 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` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/PrivateCloud" + } + ]; + + // The maximum number of subnets 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 `ListSubnetsRequest` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `ListSubnetsRequest` must match the call that provided the page token. + string page_token = 3; +} + +// Response message for +// [VmwareEngine.ListSubnets][google.cloud.vmwareengine.v1.VmwareEngine.ListSubnets] +message ListSubnetsResponse { + // A list of subnets. + repeated Subnet subnets = 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; + + // 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]; +} + +// Request message for +// [VmwareEngine.ListExternalAccessRules][google.cloud.vmwareengine.v1.VmwareEngine.ListExternalAccessRules] +message ListExternalAccessRulesRequest { + // Required. The resource name of the network policy to query for external + // access firewall rules. 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/networkPolicies/my-policy` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/NetworkPolicy" + } + ]; + + // The maximum number of external access rules 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 `ListExternalAccessRulesRequest` + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `ListExternalAccessRulesRequest` 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 external access rules, you can + // exclude the ones named `example-rule` by specifying + // `name != "example-rule"`. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (name = "example-rule") + // (createTime > "2021-04-12T08:15:10.40Z") + // ``` + // + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (name = "example-rule-1") AND + // (createTime > "2021-04-12T08:15:10.40Z") OR + // (name = "example-rule-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.ListExternalAccessRules][google.cloud.vmwareengine.v1.VmwareEngine.ListExternalAccessRules] +message ListExternalAccessRulesResponse { + // A list of external access firewall rules. + repeated ExternalAccessRule external_access_rules = 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; + + // Locations that could not be reached when making an aggregated query using + // wildcards. + repeated string unreachable = 3; +} + +// Request message for +// [VmwareEngine.GetExternalAccessRule][google.cloud.vmwareengine.v1.VmwareEngine.GetExternalAccessRule] +message GetExternalAccessRuleRequest { + // Required. The resource name of the external access firewall rule 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/networkPolicies/my-policy/externalAccessRules/my-rule` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/ExternalAccessRule" + } + ]; +} + +// Request message for +// [VmwareEngine.CreateExternalAccessRule][google.cloud.vmwareengine.v1.VmwareEngine.CreateExternalAccessRule] +message CreateExternalAccessRuleRequest { + // Required. The resource name of the network policy + // to create a new external access firewall rule in. + // 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/networkPolicies/my-policy` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/NetworkPolicy" + } + ]; + + // Required. The initial description of a new external access rule. + ExternalAccessRule external_access_rule = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The user-provided identifier of the `ExternalAccessRule` to be + // created. This identifier must be unique among `ExternalAccessRule` + // 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 external_access_rule_id = 3 [(google.api.field_behavior) = REQUIRED]; + + // 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 the 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; +} + +// Request message for +// [VmwareEngine.UpdateExternalAccessRule][google.cloud.vmwareengine.v1.VmwareEngine.UpdateExternalAccessRule] +message UpdateExternalAccessRuleRequest { + // Required. Field mask is used to specify the fields to be overwritten in the + // `ExternalAccessRule` 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. Description of the external access rule. + ExternalAccessRule external_access_rule = 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 the 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.DeleteExternalAccessRule][google.cloud.vmwareengine.v1.VmwareEngine.DeleteExternalAccessRule] +message DeleteExternalAccessRuleRequest { + // Required. The resource name of the external access firewall rule to delete. + // 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/networkPolicies/my-policy/externalAccessRules/my-rule` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/ExternalAccessRule" + } + ]; + + // 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 the 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.ListLoggingServers][google.cloud.vmwareengine.v1.VmwareEngine.ListLoggingServers] +message ListLoggingServersRequest { + // Required. The resource name of the private cloud to be queried for + // logging servers. + // 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` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/PrivateCloud" + } + ]; + + // The maximum number of logging servers 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 `ListLoggingServersRequest` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `ListLoggingServersRequest` 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 logging servers, you can + // exclude the ones named `example-server` by specifying + // `name != "example-server"`. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (name = "example-server") + // (createTime > "2021-04-12T08:15:10.40Z") + // ``` + // + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (name = "example-server-1") AND + // (createTime > "2021-04-12T08:15:10.40Z") OR + // (name = "example-server-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.ListLoggingServers][google.cloud.vmwareengine.v1.VmwareEngine.ListLoggingServers] +message ListLoggingServersResponse { + // A list of Logging Servers. + repeated LoggingServer logging_servers = 1; + + // A token, which can be send 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.GetLoggingServer][google.cloud.vmwareengine.v1.VmwareEngine.GetLoggingServer] +message GetLoggingServerRequest { + // Required. The resource name of the Logging Server 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/loggingServers/my-logging-server` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/LoggingServer" + } + ]; +} + +// Request message for +// [VmwareEngine.CreateLoggingServer][google.cloud.vmwareengine.v1.VmwareEngine.CreateLoggingServer] +message CreateLoggingServerRequest { + // Required. The resource name of the private cloud + // to create a new Logging Server in. + // 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` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/PrivateCloud" + } + ]; + + // Required. The initial description of a new logging server. + LoggingServer logging_server = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The user-provided identifier of the `LoggingServer` to be + // created. This identifier must be unique among `LoggingServer` 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 logging_server_id = 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.UpdateLoggingServer][google.cloud.vmwareengine.v1.VmwareEngine.UpdateLoggingServer] +message UpdateLoggingServerRequest { + // Required. Field mask is used to specify the fields to be overwritten in the + // `LoggingServer` 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. Logging server description. + LoggingServer logging_server = 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.DeleteLoggingServer][google.cloud.vmwareengine.v1.VmwareEngine.DeleteLoggingServer] +message DeleteLoggingServerRequest { + // Required. The resource name of the logging server to delete. + // 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/loggingServers/my-logging-server` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/LoggingServer" + } + ]; + + // 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]; +} + +// Represents the metadata of the long-running operation. +message OperationMetadata { + // Output only. The time the operation was created. + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the operation finished running. + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server-defined resource path for the target of the operation. + string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Name of the verb executed by the operation. + string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Human-readable status of the operation, if any. + string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. True if the user has requested cancellation + // of the operation; false otherwise. + // Operations that have successfully been cancelled + // have [Operation.error][] value with a + // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + // `Code.CANCELLED`. + bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. API version used to start the operation. + string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request message for +// [VmwareEngine.ListNodeTypes][google.cloud.vmwareengine.v1.VmwareEngine.ListNodeTypes] +message ListNodeTypesRequest { + // Required. The resource name of the location to be queried for node types. + // 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` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // The maximum number of node types 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 `ListNodeTypes` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `ListNodeTypes` 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 node types, you can + // exclude the ones named `standard-72` by specifying + // `name != "standard-72"`. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (name = "standard-72") + // (virtual_cpu_count > 2) + // ``` + // + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (name = "standard-96") AND + // (virtual_cpu_count > 2) OR + // (name = "standard-72") + // ``` + string filter = 4; +} + +// Response message for +// [VmwareEngine.ListNodeTypes][google.cloud.vmwareengine.v1.VmwareEngine.ListNodeTypes] +message ListNodeTypesResponse { + // A list of Node Types. + repeated NodeType node_types = 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; + + // Locations that could not be reached when making an aggregated query using + // wildcards. + repeated string unreachable = 3; +} + +// Request message for +// [VmwareEngine.GetNodeType][google.cloud.vmwareengine.v1.VmwareEngine.GetNodeType] +message GetNodeTypeRequest { + // Required. The resource name of the node type to retrieve. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-proj/locations/us-central1-a/nodeTypes/standard-72` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/NodeType" + } + ]; +} + +// Request message for +// [VmwareEngine.ShowNsxCredentials][google.cloud.vmwareengine.v1.VmwareEngine.ShowNsxCredentials] +message ShowNsxCredentialsRequest { + // Required. The resource name of the private cloud + // to be queried for credentials. + // 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` + string private_cloud = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/PrivateCloud" + } + ]; +} + +// Request message for +// [VmwareEngine.ShowVcenterCredentials][google.cloud.vmwareengine.v1.VmwareEngine.ShowVcenterCredentials] +message ShowVcenterCredentialsRequest { + // Required. The resource name of the private cloud + // to be queried for credentials. + // 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` + string private_cloud = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/PrivateCloud" + } + ]; + + // Optional. The username of the user to be queried for credentials. + // The default value of this field is CloudOwner@gve.local. + // The provided value must be one of the following: + // CloudOwner@gve.local, + // solution-user-01@gve.local, + // solution-user-02@gve.local, + // solution-user-03@gve.local, + // solution-user-04@gve.local, + // solution-user-05@gve.local, + // zertoadmin@gve.local. + string username = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [VmwareEngine.ResetNsxCredentials][google.cloud.vmwareengine.v1.VmwareEngine.ResetNsxCredentials] +message ResetNsxCredentialsRequest { + // Required. The resource name of the private cloud + // to reset credentials for. + // 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` + string private_cloud = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/PrivateCloud" + } + ]; + + // 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.ResetVcenterCredentials][google.cloud.vmwareengine.v1.VmwareEngine.ResetVcenterCredentials] +message ResetVcenterCredentialsRequest { + // Required. The resource name of the private cloud + // to reset credentials for. + // 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` + string private_cloud = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/PrivateCloud" + } + ]; + + // 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]; + + // Optional. The username of the user to be to reset the credentials. + // The default value of this field is CloudOwner@gve.local. + // The provided value should be one of the following: + // solution-user-01@gve.local, + // solution-user-02@gve.local, + // solution-user-03@gve.local, + // solution-user-04@gve.local, + // solution-user-05@gve.local, + // zertoadmin@gve.local. + string username = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [VmwareEngine.ListHcxActivationKeys][google.cloud.vmwareengine.v1.VmwareEngine.ListHcxActivationKeys] +message ListHcxActivationKeysResponse { + // List of HCX activation keys. + repeated HcxActivationKey hcx_activation_keys = 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; // Locations that could not be reached when making an aggregated query using @@ -1347,6 +2543,301 @@ message CreateHcxActivationKeyRequest { string request_id = 4; } +// Request message for +// [VmwareEngine.GetDnsForwarding][google.cloud.vmwareengine.v1.VmwareEngine.GetDnsForwarding] +message GetDnsForwardingRequest { + // Required. The resource name of a `DnsForwarding` 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/dnsForwarding` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/DnsForwarding" + } + ]; +} + +// Request message for +// [VmwareEngine.UpdateDnsForwarding][google.cloud.vmwareengine.v1.VmwareEngine.UpdateDnsForwarding] +message UpdateDnsForwardingRequest { + // Required. DnsForwarding config details. + DnsForwarding dns_forwarding = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Field mask is used to specify the fields to be overwritten in the + // `DnsForwarding` 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.CreateNetworkPeering][google.cloud.vmwareengine.v1.VmwareEngine.CreateNetworkPeering] +message CreateNetworkPeeringRequest { + // Required. The resource name of the location to create the new network + // peering in. This value is always `global`, because `NetworkPeering` is a + // global 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/global` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The user-provided identifier of the new `NetworkPeering`. + // This identifier must be unique among `NetworkPeering` 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 network_peering_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The initial description of the new network peering. + NetworkPeering network_peering = 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.DeleteNetworkPeering][google.cloud.vmwareengine.v1.VmwareEngine.DeleteNetworkPeering] +message DeleteNetworkPeeringRequest { + // Required. The resource name of the network peering 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/global/networkPeerings/my-peering` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/NetworkPeering" + } + ]; + + // 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.GetNetworkPeering][google.cloud.vmwareengine.v1.VmwareEngine.GetNetworkPeering] +message GetNetworkPeeringRequest { + // Required. The resource name of the network peering 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/global/networkPeerings/my-peering` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/NetworkPeering" + } + ]; +} + +// Request message for +// [VmwareEngine.ListNetworkPeerings][google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPeerings] +message ListNetworkPeeringsRequest { + // Required. The resource name of the location (global) to query for + // network peerings. Resource names are schemeless URIs that follow the + // conventions in https://cloud.google.com/apis/design/resource_names. For + // example: `projects/my-project/locations/global` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "vmwareengine.googleapis.com/NetworkPeering" + } + ]; + + // The maximum number of network peerings 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 `ListNetworkPeerings` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `ListNetworkPeerings` 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 network peerings, you can + // exclude the ones named `example-peering` by specifying + // `name != "example-peering"`. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (name = "example-peering") + // (createTime > "2021-04-12T08:15:10.40Z") + // ``` + // + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (name = "example-peering-1") AND + // (createTime > "2021-04-12T08:15:10.40Z") OR + // (name = "example-peering-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; +} + +// Request message for +// [VmwareEngine.UpdateNetworkPeering][google.cloud.vmwareengine.v1.VmwareEngine.UpdateNetworkPeering] +message UpdateNetworkPeeringRequest { + // Required. Network peering description. + NetworkPeering network_peering = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Field mask is used to specify the fields to be overwritten in the + // `NetworkPeering` 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]; +} + +// Response message for +// [VmwareEngine.ListNetworkPeerings][google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPeerings] +message ListNetworkPeeringsResponse { + // A list of network peerings. + repeated NetworkPeering network_peerings = 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.ListPeeringRoutes][google.cloud.vmwareengine.v1.VmwareEngine.ListPeeringRoutes] +message ListPeeringRoutesRequest { + // Required. The resource name of the network peering 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/global/networkPeerings/my-peering` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/NetworkPeering" + } + ]; + + // 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 `ListPeeringRoutes` call. + // Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `ListPeeringRoutes` must + // match the call that provided the page token. + string page_token = 3; + + // A filter expression that matches resources returned in the response. + // Currently, only filtering on the `direction` field is supported. To return + // routes imported from the peer network, provide "direction=INCOMING". To + // return routes exported from the VMware Engine network, provide + // "direction=OUTGOING". Other filter expressions return an error. + string filter = 6; +} + +// Response message for +// [VmwareEngine.ListPeeringRoutes][google.cloud.vmwareengine.v1.VmwareEngine.ListPeeringRoutes] +message ListPeeringRoutesResponse { + // 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; +} + // Request message for // [VmwareEngine.ListNetworkPolicies][google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPolicies] message ListNetworkPoliciesRequest { @@ -1554,6 +3045,248 @@ message DeleteNetworkPolicyRequest { string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; } +// Request message for +// [VmwareEngine.ListManagementDnsZoneBindings][google.cloud.vmwareengine.v1.VmwareEngine.ListManagementDnsZoneBindings] +message ListManagementDnsZoneBindingsRequest { + // Required. The resource name of the private cloud to be queried for + // management DNS zone bindings. + // 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` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/PrivateCloud" + } + ]; + + // The maximum number of management DNS zone bindings 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 `ListManagementDnsZoneBindings` + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `ListManagementDnsZoneBindings` 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 Management DNS Zone Bindings, + // you can exclude the ones named `example-management-dns-zone-binding` by + // specifying `name != "example-management-dns-zone-binding"`. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (name = "example-management-dns-zone-binding") + // (createTime > "2021-04-12T08:15:10.40Z") + // ``` + // + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (name = "example-management-dns-zone-binding-1") AND + // (createTime > "2021-04-12T08:15:10.40Z") OR + // (name = "example-management-dns-zone-binding-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.ListManagementDnsZoneBindings][google.cloud.vmwareengine.v1.VmwareEngine.ListManagementDnsZoneBindings] +message ListManagementDnsZoneBindingsResponse { + // A list of management DNS zone bindings. + repeated ManagementDnsZoneBinding management_dns_zone_bindings = 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; + + // Locations that could not be reached when making an aggregated query using + // wildcards. + repeated string unreachable = 3; +} + +// Request message for +// [VmwareEngine.GetManagementDnsZoneBinding][google.cloud.vmwareengine.v1.VmwareEngine.GetManagementDnsZoneBinding] +message GetManagementDnsZoneBindingRequest { + // Required. The resource name of the management DNS zone binding 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/managementDnsZoneBindings/my-management-dns-zone-binding` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/ManagementDnsZoneBinding" + } + ]; +} + +// Request message for [VmwareEngine.CreateManagementDnsZoneBindings][] +message CreateManagementDnsZoneBindingRequest { + // Required. The resource name of the private cloud + // to create a new management DNS zone binding for. + // 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` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/PrivateCloud" + } + ]; + + // Required. The initial values for a new management DNS zone binding. + ManagementDnsZoneBinding management_dns_zone_binding = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The user-provided identifier of the `ManagementDnsZoneBinding` + // resource to be created. This identifier must be unique among + // `ManagementDnsZoneBinding` 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 management_dns_zone_binding_id = 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 the 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.UpdateManagementDnsZoneBinding][google.cloud.vmwareengine.v1.VmwareEngine.UpdateManagementDnsZoneBinding] +message UpdateManagementDnsZoneBindingRequest { + // Required. Field mask is used to specify the fields to be overwritten in the + // `ManagementDnsZoneBinding` 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. New values to update the management DNS zone binding with. + ManagementDnsZoneBinding management_dns_zone_binding = 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 the 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.DeleteManagementDnsZoneBinding][google.cloud.vmwareengine.v1.VmwareEngine.DeleteManagementDnsZoneBinding] +message DeleteManagementDnsZoneBindingRequest { + // Required. The resource name of the management DNS zone binding to delete. + // 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/managementDnsZoneBindings/my-management-dns-zone-binding` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/ManagementDnsZoneBinding" + } + ]; + + // 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 the 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.RepairManagementDnsZoneBindings][] +message RepairManagementDnsZoneBindingRequest { + // Required. The resource name of the management DNS zone binding to repair. + // 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/managementDnsZoneBindings/my-management-dns-zone-binding` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/ManagementDnsZoneBinding" + } + ]; + + // 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 the 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.CreateVmwareEngineNetwork][google.cloud.vmwareengine.v1.VmwareEngine.CreateVmwareEngineNetwork] message CreateVmwareEngineNetworkRequest { @@ -2013,3 +3746,96 @@ message ListPrivateConnectionPeeringRoutesResponse { // If this field is omitted, there are no subsequent pages. string next_page_token = 2; } + +// Request message for +// [VmwareEngine.GrantDnsBindPermission][google.cloud.vmwareengine.v1.VmwareEngine.GrantDnsBindPermission] +message GrantDnsBindPermissionRequest { + // Required. The name of the resource which stores the users/service accounts + // having the permission to bind to the corresponding intranet VPC of the + // consumer project. DnsBindPermission is a global 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/global/dnsBindPermission` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/DnsBindPermission" + } + ]; + + // Required. The consumer provided user/service account which needs to be + // granted permission to bind with the intranet VPC corresponding to the + // consumer project. + Principal principal = 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.RevokeDnsBindPermission][google.cloud.vmwareengine.v1.VmwareEngine.RevokeDnsBindPermission] +message RevokeDnsBindPermissionRequest { + // Required. The name of the resource which stores the users/service accounts + // having the permission to bind to the corresponding intranet VPC of the + // consumer project. DnsBindPermission is a global 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/global/dnsBindPermission` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/DnsBindPermission" + } + ]; + + // Required. The consumer provided user/service account which needs to be + // granted permission to bind with the intranet VPC corresponding to the + // consumer project. + Principal principal = 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.GetDnsBindPermission][google.cloud.vmwareengine.v1.VmwareEngine.GetDnsBindPermission] +message GetDnsBindPermissionRequest { + // Required. The name of the resource which stores the users/service accounts + // having the permission to bind to the corresponding intranet VPC of the + // consumer project. DnsBindPermission is a global 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/global/dnsBindPermission` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/DnsBindPermission" + } + ]; +} 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 273a833719e8..229db77923d8 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 @@ -64,6 +64,12 @@ message NetworkConfig { // current features. int32 management_ip_address_layout_version = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. DNS Server IP of the Private Cloud. + // All DNS queries can be forwarded to this address for name resolution of + // Private Cloud's management entities like vCenter, NSX-T Manager and + // ESXi hosts. + string dns_server_ip = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Information about the type and number of nodes associated with the cluster. @@ -78,7 +84,36 @@ message NodeTypeConfig { int32 custom_core_count = 2 [(google.api.field_behavior) = OPTIONAL]; } -// Represents a private cloud resource. Private clouds are zonal resources. +// Configuration of a stretched cluster. +message StretchedClusterConfig { + // Required. Zone that will remain operational when connection between the two + // zones is lost. Specify the resource name of a zone that belongs to the + // region of the private cloud. For example: + // `projects/{project}/locations/europe-west3-a` where `{project}` can either + // be a project number or a project ID. + string preferred_location = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. Additional zone for a higher level of availability and load + // balancing. Specify the resource name of a zone that belongs to the region + // of the private cloud. For example: + // `projects/{project}/locations/europe-west3-b` where `{project}` can either + // be a project number or a project ID. + string secondary_location = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; +} + +// Represents a private cloud resource. Private clouds of type `STANDARD` and +// `TIME_LIMITED` are zonal resources, `STRETCHED` private clouds are +// regional. message PrivateCloud { option (google.api.resource) = { type: "vmwareengine.googleapis.com/PrivateCloud" @@ -128,6 +163,11 @@ message PrivateCloud { // canonical identifier of the node type (corresponds to the `NodeType`). map node_type_configs = 7 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Configuration of a stretched cluster. Required for STRETCHED + // private clouds. + StretchedClusterConfig stretched_cluster_config = 8 + [(google.api.field_behavior) = OPTIONAL]; } // Enum Type defines private cloud type. @@ -140,6 +180,10 @@ message PrivateCloud { // can be converted into standard private cloud by expanding it up to 3 // or more nodes. TIME_LIMITED = 1; + + // Stretched private cloud is a regional resource with redundancy, + // with a minimum of 6 nodes, nodes count has to be even. + STRETCHED = 2; } // Output only. The resource name of this private cloud. @@ -262,6 +306,122 @@ message Cluster { // canonical identifier of the node type (corresponds to the `NodeType`). map node_type_configs = 16 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Configuration of a stretched cluster. Required for clusters that + // belong to a STRETCHED private cloud. + StretchedClusterConfig stretched_cluster_config = 17 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Node in a cluster. +message Node { + option (google.api.resource) = { + type: "vmwareengine.googleapis.com/Node" + pattern: "projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}/nodes/{node}" + }; + + // Enum State defines possible states of a node in a cluster. + enum State { + // The default value. This value should never be used. + STATE_UNSPECIFIED = 0; + + // Node is operational and can be used by the user. + ACTIVE = 1; + + // Node is being provisioned. + CREATING = 2; + + // Node is in a failed state. + FAILED = 3; + + // Node is undergoing maintenance, e.g.: during private cloud upgrade. + UPGRADING = 4; + } + + // Output only. The resource name of this node. + // 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/clusters/my-cluster/nodes/my-node + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Fully qualified domain name of the node. + string fqdn = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Internal IP address of the node. + string internal_ip = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The canonical identifier of the node type (corresponds to the + // `NodeType`). + // For example: standard-72. + string node_type_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The version number of the VMware ESXi + // management component in this cluster. + string version = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Customized number of cores + int64 custom_core_count = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The state of the appliance. + State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Represents an allocated external IP address and its corresponding internal IP +// address in a private cloud. +message ExternalAddress { + option (google.api.resource) = { + type: "vmwareengine.googleapis.com/ExternalAddress" + pattern: "projects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}" + }; + + // Enum State defines possible states of external addresses. + enum State { + // The default value. This value should never be used. + STATE_UNSPECIFIED = 0; + + // The address is ready. + ACTIVE = 1; + + // The address is being created. + CREATING = 2; + + // The address is being updated. + UPDATING = 3; + + // The address is being deleted. + DELETING = 4; + } + + // Output only. The resource name of this external IP address. + // 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/externalAddresses/my-address` + 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]; + + // The internal IP address of a workload VM. + string internal_ip = 6; + + // Output only. The external IP address of a workload VM. + string external_ip = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The state of the resource. + State state = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. System-generated unique identifier for the resource. + string uid = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // User-provided description for this resource. + string description = 11; } // Subnet in a private cloud. Either `management` subnets (such as vMotion) that @@ -317,6 +477,207 @@ message Subnet { // Output only. The state of the resource. State state = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. VLAN ID of the VLAN on which the subnet is configured + int32 vlan_id = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// External access firewall rules for filtering incoming traffic destined to +// `ExternalAddress` resources. +message ExternalAccessRule { + option (google.api.resource) = { + type: "vmwareengine.googleapis.com/ExternalAccessRule" + pattern: "projects/{project}/locations/{location}/networkPolicies/{network_policy}/externalAccessRules/{external_access_rule}" + }; + + // Action determines whether the external access rule permits or blocks + // traffic, subject to the other components of the rule matching the traffic. + enum Action { + // Defaults to allow. + ACTION_UNSPECIFIED = 0; + + // Allows connections that match the other specified components. + ALLOW = 1; + + // Blocks connections that match the other specified components. + DENY = 2; + } + + // An IP range provided in any one of the supported formats. + message IpRange { + oneof ip_range { + // A single IP address. For example: `10.0.0.5`. + string ip_address = 1; + + // An IP address range in the CIDR format. For example: `10.0.0.0/24`. + string ip_address_range = 2; + + // The name of an `ExternalAddress` resource. The external address must + // have been reserved in the scope of this external access rule's parent + // network policy. Provide the external address name in the form of + // `projects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}`. + // For example: + // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address`. + string external_address = 3 [(google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/ExternalAddress" + }]; + } + } + + // Defines possible states of external access firewall rules. + enum State { + // The default value. This value is used if the state is omitted. + STATE_UNSPECIFIED = 0; + + // The rule is ready. + ACTIVE = 1; + + // The rule is being created. + CREATING = 2; + + // The rule is being updated. + UPDATING = 3; + + // The rule is being deleted. + DELETING = 4; + } + + // Output only. The resource name of this external access rule. + // 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/networkPolicies/my-policy/externalAccessRules/my-rule` + 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]; + + // User-provided description for this external access rule. + string description = 5; + + // External access rule priority, which determines the external access rule to + // use when multiple rules apply. If multiple rules have the same priority, + // their ordering is non-deterministic. If specific ordering is required, + // assign unique priorities to enforce such ordering. The external access rule + // priority is an integer from 100 to 4096, both inclusive. Lower integers + // indicate higher precedence. For example, a rule with priority `100` has + // higher precedence than a rule with priority `101`. + int32 priority = 6; + + // The action that the external access rule performs. + Action action = 7; + + // The IP protocol to which the external access rule applies. This value can + // be one of the following three protocol strings (not case-sensitive): + // `tcp`, `udp`, or `icmp`. + string ip_protocol = 8; + + // If source ranges are specified, the external access rule applies only to + // traffic that has a source IP address in these ranges. These ranges can + // either be expressed in the CIDR format or as an IP address. As only inbound + // rules are supported, `ExternalAddress` resources cannot be the source IP + // addresses of an external access rule. To match all source addresses, + // specify `0.0.0.0/0`. + repeated IpRange source_ip_ranges = 9; + + // A list of source ports to which the external access rule applies. This + // field is only applicable for the UDP or TCP protocol. + // Each entry must be either an integer or a range. For example: `["22"]`, + // `["80","443"]`, or `["12345-12349"]`. To match all source ports, specify + // `["0-65535"]`. + repeated string source_ports = 10; + + // If destination ranges are specified, the external access rule applies only + // to the traffic that has a destination IP address in these ranges. The + // specified IP addresses must have reserved external IP addresses in the + // scope of the parent network policy. To match all external IP addresses in + // the scope of the parent network policy, specify `0.0.0.0/0`. To match a + // specific external IP address, specify it using the + // `IpRange.external_address` property. + repeated IpRange destination_ip_ranges = 11; + + // A list of destination ports to which the external access rule applies. This + // field is only applicable for the UDP or TCP protocol. + // Each entry must be either an integer or a range. For example: `["22"]`, + // `["80","443"]`, or `["12345-12349"]`. To match all destination ports, + // specify `["0-65535"]`. + repeated string destination_ports = 12; + + // Output only. The state of the resource. + State state = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. System-generated unique identifier for the resource. + string uid = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Logging server to receive vCenter or ESXi logs. +message LoggingServer { + option (google.api.resource) = { + type: "vmwareengine.googleapis.com/LoggingServer" + pattern: "projects/{project}/locations/{location}/privateClouds/{private_cloud}/loggingServers/{logging_server}" + }; + + // Defines possible protocols used to send logs to + // a logging server. + enum Protocol { + // Unspecified communications protocol. This is the default value. + PROTOCOL_UNSPECIFIED = 0; + + // UDP + UDP = 1; + + // TCP + TCP = 2; + } + + // Defines possible types of component that produces logs. + enum SourceType { + // The default value. This value should never be used. + SOURCE_TYPE_UNSPECIFIED = 0; + + // Logs produced by ESXI hosts + ESXI = 1; + + // Logs produced by vCenter server + VCSA = 2; + } + + // Output only. The resource name of this logging server. + // 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/loggingServers/my-logging-server` + 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]; + + // Required. Fully-qualified domain name (FQDN) or IP Address of the logging + // server. + string hostname = 5 [(google.api.field_behavior) = REQUIRED]; + + // Required. Port number at which the logging server receives logs. + int32 port = 7 [(google.api.field_behavior) = REQUIRED]; + + // Required. Protocol used by vCenter to send logs to a logging server. + Protocol protocol = 6 [(google.api.field_behavior) = REQUIRED]; + + // Required. The type of component that produces logs that will be forwarded + // to this logging server. + SourceType source_type = 10 [(google.api.field_behavior) = REQUIRED]; + + // Output only. System-generated unique identifier for the resource. + string uid = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Describes node type. @@ -326,6 +687,28 @@ message NodeType { pattern: "projects/{project}/locations/{location}/nodeTypes/{node_type}" }; + // Enum Kind defines possible types of a NodeType. + enum Kind { + // The default value. This value should never be used. + KIND_UNSPECIFIED = 0; + + // Standard HCI node. + STANDARD = 1; + + // Storage only Node. + STORAGE_ONLY = 2; + } + + // Capability of a node type. + enum Capability { + // The default value. This value is used if the capability is omitted or + // unknown. + CAPABILITY_UNSPECIFIED = 0; + + // This node type supports stretch clusters. + STRETCHED_CLUSTERS = 1; + } + // Output only. The resource name of this node type. // Resource names are schemeless URIs that follow the conventions in // https://cloud.google.com/apis/design/resource_names. @@ -356,6 +739,18 @@ message NodeType { // Output only. List of possible values of custom core count. repeated int32 available_custom_core_counts = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The type of the resource. + Kind kind = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Families of the node type. + // For node types to be in the same cluster + // they must share at least one element in the `families`. + repeated string families = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Capabilities of this node type. + repeated Capability capabilities = 14 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Credentials for a private cloud. @@ -498,6 +893,195 @@ message Vcenter { string fqdn = 6; } +// DNS forwarding config. +// This config defines a list of domain to name server mappings, +// and is attached to the private cloud for custom domain resolution. +message DnsForwarding { + option (google.api.resource) = { + type: "vmwareengine.googleapis.com/DnsForwarding" + pattern: "projects/{project}/locations/{location}/privateClouds/{private_cloud}/dnsForwarding" + }; + + // A forwarding rule is a mapping of a `domain` to `name_servers`. + // This mapping allows VMware Engine to resolve domains for attached private + // clouds by forwarding DNS requests for a given domain to the specified + // nameservers. + message ForwardingRule { + // Required. Domain used to resolve a `name_servers` list. + string domain = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. List of DNS servers to use for domain resolution + repeated string name_servers = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Output only. The resource name of this DNS profile. + // 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/dnsForwarding` + 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]; + + // Required. List of domain mappings to configure + repeated ForwardingRule forwarding_rules = 4 + [(google.api.field_behavior) = REQUIRED]; +} + +// Details of a network peering. +message NetworkPeering { + option (google.api.resource) = { + type: "vmwareengine.googleapis.com/NetworkPeering" + pattern: "projects/{project}/locations/{location}/networkPeerings/{network_peering}" + }; + + // Possible states of a network peering. + enum State { + // Unspecified network peering state. This is the default value. + STATE_UNSPECIFIED = 0; + + // The peering is not active. + INACTIVE = 1; + + // The peering is active. + ACTIVE = 2; + + // The peering is being created. + CREATING = 3; + + // The peering is being deleted. + DELETING = 4; + } + + // Type or purpose of the network peering connection. + enum PeerNetworkType { + // Unspecified + PEER_NETWORK_TYPE_UNSPECIFIED = 0; + + // Peering connection used for connecting to another VPC network established + // by the same user. For example, a peering connection to another VPC + // network in the same project or to an on-premises network. + STANDARD = 1; + + // Peering connection used for connecting to another VMware Engine network. + VMWARE_ENGINE_NETWORK = 2; + + // Peering connection used for establishing [private services + // access](https://cloud.google.com/vpc/docs/private-services-access). + PRIVATE_SERVICES_ACCESS = 3; + + // Peering connection used for connecting to NetApp Cloud Volumes. + NETAPP_CLOUD_VOLUMES = 4; + + // Peering connection used for connecting to third-party services. Most + // third-party services require manual setup of reverse peering on the VPC + // network associated with the third-party service. + THIRD_PARTY_SERVICE = 5; + + // Peering connection used for connecting to Dell PowerScale Filers + DELL_POWERSCALE = 6; + } + + // Output only. The resource name of the network peering. NetworkPeering is a + // global resource and location can only be global. Resource names are + // scheme-less URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/global/networkPeerings/my-peering` + 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]; + + // Required. The relative resource name of the network to peer with + // a standard VMware Engine network. The provided network can be a + // consumer VPC network or another standard VMware Engine network. If the + // `peer_network_type` is VMWARE_ENGINE_NETWORK, specify the name in the form: + // `projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}`. + // Otherwise specify the name in the form: + // `projects/{project}/global/networks/{network_id}`, where + // `{project}` can either be a project number or a project ID. + string peer_network = 5 [(google.api.field_behavior) = REQUIRED]; + + // Optional. True if custom routes are exported to the peered network; + // false otherwise. The default value is true. + optional bool export_custom_routes = 8 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. True if custom routes are imported from the peered network; + // false otherwise. The default value is true. + optional bool import_custom_routes = 9 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. True if full mesh connectivity is created and managed + // automatically between peered networks; false otherwise. Currently this + // field is always true because Google Compute Engine automatically creates + // and manages subnetwork routes between two VPC networks when peering state + // is 'ACTIVE'. + optional bool exchange_subnet_routes = 10 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. True if all subnet routes with a public IP address range are + // exported; false otherwise. The default value is true. IPv4 special-use + // ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always + // exported to peers and are not controlled by this field. + optional bool export_custom_routes_with_public_ip = 11 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. True if all subnet routes with public IP address range are + // imported; false otherwise. The default value is true. IPv4 special-use + // ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always + // imported to peers and are not controlled by this field. + optional bool import_custom_routes_with_public_ip = 12 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. State of the network peering. This field + // has a value of 'ACTIVE' when there's a matching configuration in the peer + // network. New values may be added to this enum when appropriate. + State state = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Output Only. Details about the current state of the network + // peering. + string state_details = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Maximum transmission unit (MTU) in bytes. + // The default value is `1500`. If a value of `0` is provided for this field, + // VMware Engine uses the default value instead. + int32 peer_mtu = 14 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The type of the network to peer with the VMware Engine network. + PeerNetworkType peer_network_type = 16 + [(google.api.field_behavior) = REQUIRED]; + + // Output only. System-generated unique identifier for the resource. + string uid = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The relative resource name of the VMware Engine network. + // Specify the name in the following form: + // `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}` + // where `{project}` can either be a project number or a project ID. + string vmware_engine_network = 20 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/VmwareEngineNetwork" + } + ]; + + // Optional. User-provided description for this network peering. + string description = 21 [(google.api.field_behavior) = OPTIONAL]; +} + // Exchanged network peering route. message PeeringRoute { // The type of the peering route. @@ -655,6 +1239,85 @@ message NetworkPolicy { ]; } +// Represents a binding between a network and the management DNS zone. +// A management DNS zone is the Cloud DNS cross-project binding zone that +// VMware Engine creates for each private cloud. It contains FQDNs and +// corresponding IP addresses for the private cloud's ESXi hosts and management +// VM appliances like vCenter and NSX Manager. +message ManagementDnsZoneBinding { + option (google.api.resource) = { + type: "vmwareengine.googleapis.com/ManagementDnsZoneBinding" + pattern: "projects/{project}/locations/{location}/privateClouds/{private_cloud}/managementDnsZoneBindings/{management_dns_zone_binding}" + }; + + // Enum State defines possible states of binding between the consumer VPC + // network and the management DNS zone. + enum State { + // The default value. This value should never be used. + STATE_UNSPECIFIED = 0; + + // The binding is ready. + ACTIVE = 1; + + // The binding is being created. + CREATING = 2; + + // The binding is being updated. + UPDATING = 3; + + // The binding is being deleted. + DELETING = 4; + + // The binding has failed. + FAILED = 5; + } + + // Output only. The resource name of this binding. + // 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/managementDnsZoneBindings/my-management-dns-zone-binding` + 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]; + + // Output only. The state of the resource. + State state = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // User-provided description for this resource. + string description = 13; + + // Required. The relative resource name of the network to bind to the + // management DNS zone. This network can be a consumer VPC network or a + // VMware engine network. + oneof bind_network { + // Network to bind is a standard consumer VPC. + // Specify the name in the following form for consumer + // VPC network: `projects/{project}/global/networks/{network_id}`. + // `{project}` can either be a project number or a project ID. + string vpc_network = 14 [(google.api.resource_reference) = { + type: "compute.googleapis.com/Network" + }]; + + // Network to bind is a VMware Engine network. + // Specify the name in the following form for VMware engine network: + // `projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}`. + // `{project}` can either be a project number or a project ID. + string vmware_engine_network = 15 [(google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/VmwareEngineNetwork" + }]; + } + + // Output only. System-generated unique identifier for the resource. + string uid = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // VMware Engine network resource that provides connectivity for VMware Engine // private clouds. message VmwareEngineNetwork { @@ -728,6 +1391,9 @@ message VmwareEngineNetwork { // of type `STANDARD`. This network type is no longer used for new VMware // Engine private cloud deployments. LEGACY = 1; + + // Standard network type used for private cloud connectivity. + STANDARD = 2; } // Output only. The resource name of the VMware Engine network. @@ -929,3 +1595,59 @@ message PrivateConnection { // network. PeeringState peering_state = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; } + +// VmwareEngine specific metadata for the given +// [google.cloud.location.Location][google.cloud.location.Location]. It is +// returned as a content of the `google.cloud.location.Location.metadata` field. +message LocationMetadata { + // Capability of a location. + enum Capability { + // The default value. This value is used if the capability is omitted or + // unknown. + CAPABILITY_UNSPECIFIED = 0; + + // Stretch clusters are supported in this location. + STRETCHED_CLUSTERS = 1; + } + + // Output only. Capabilities of this location. + repeated Capability capabilities = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// DnsBindPermission resource that contains the accounts having the consumer DNS +// bind permission on the corresponding intranet VPC of the consumer project. +message DnsBindPermission { + option (google.api.resource) = { + type: "vmwareengine.googleapis.com/DnsBindPermission" + pattern: "projects/{project}/locations/{location}/dnsBindPermission" + }; + + // Required. Output only. The name of the resource which stores the + // users/service accounts having the permission to bind to the corresponding + // intranet VPC of the consumer project. DnsBindPermission is a global + // resource and location can only be global. Resource names are schemeless + // URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. For example: + // `projects/my-project/locations/global/dnsBindPermission` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Users/Service accounts which have access for binding on the + // intranet VPC project corresponding to the consumer project. + repeated Principal principals = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Users/Service accounts which have access for DNS binding on the intranet +// VPC corresponding to the consumer project. +message Principal { + // The consumer provided user/service account which needs to be + // granted permission to DNS bind with the intranet VPC corresponding to the + // consumer project. + oneof principal { + // The user who needs to be granted permission. + string user = 1; + + // The service account which needs to be granted the permission. + string service_account = 2; + } +} diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createexternalaccessrule/AsyncCreateExternalAccessRule.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createexternalaccessrule/AsyncCreateExternalAccessRule.java new file mode 100644 index 000000000000..20d9c4d11dfa --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createexternalaccessrule/AsyncCreateExternalAccessRule.java @@ -0,0 +1,55 @@ +/* + * 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_CreateExternalAccessRule_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest; +import com.google.cloud.vmwareengine.v1.ExternalAccessRule; +import com.google.cloud.vmwareengine.v1.NetworkPolicyName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.longrunning.Operation; + +public class AsyncCreateExternalAccessRule { + + public static void main(String[] args) throws Exception { + asyncCreateExternalAccessRule(); + } + + public static void asyncCreateExternalAccessRule() 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()) { + CreateExternalAccessRuleRequest request = + CreateExternalAccessRuleRequest.newBuilder() + .setParent( + NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) + .setExternalAccessRule(ExternalAccessRule.newBuilder().build()) + .setExternalAccessRuleId("externalAccessRuleId1937389350") + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + vmwareEngineClient.createExternalAccessRuleCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_CreateExternalAccessRule_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createexternalaccessrule/AsyncCreateExternalAccessRuleLRO.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createexternalaccessrule/AsyncCreateExternalAccessRuleLRO.java new file mode 100644 index 000000000000..8849ad1548fd --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createexternalaccessrule/AsyncCreateExternalAccessRuleLRO.java @@ -0,0 +1,55 @@ +/* + * 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_CreateExternalAccessRule_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest; +import com.google.cloud.vmwareengine.v1.ExternalAccessRule; +import com.google.cloud.vmwareengine.v1.NetworkPolicyName; +import com.google.cloud.vmwareengine.v1.OperationMetadata; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class AsyncCreateExternalAccessRuleLRO { + + public static void main(String[] args) throws Exception { + asyncCreateExternalAccessRuleLRO(); + } + + public static void asyncCreateExternalAccessRuleLRO() 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()) { + CreateExternalAccessRuleRequest request = + CreateExternalAccessRuleRequest.newBuilder() + .setParent( + NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) + .setExternalAccessRule(ExternalAccessRule.newBuilder().build()) + .setExternalAccessRuleId("externalAccessRuleId1937389350") + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + vmwareEngineClient.createExternalAccessRuleOperationCallable().futureCall(request); + // Do something. + ExternalAccessRule response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_CreateExternalAccessRule_LRO_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createexternalaccessrule/SyncCreateExternalAccessRule.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createexternalaccessrule/SyncCreateExternalAccessRule.java new file mode 100644 index 000000000000..ea233ca72582 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createexternalaccessrule/SyncCreateExternalAccessRule.java @@ -0,0 +1,50 @@ +/* + * 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_CreateExternalAccessRule_sync] +import com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest; +import com.google.cloud.vmwareengine.v1.ExternalAccessRule; +import com.google.cloud.vmwareengine.v1.NetworkPolicyName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncCreateExternalAccessRule { + + public static void main(String[] args) throws Exception { + syncCreateExternalAccessRule(); + } + + public static void syncCreateExternalAccessRule() 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()) { + CreateExternalAccessRuleRequest request = + CreateExternalAccessRuleRequest.newBuilder() + .setParent( + NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) + .setExternalAccessRule(ExternalAccessRule.newBuilder().build()) + .setExternalAccessRuleId("externalAccessRuleId1937389350") + .setRequestId("requestId693933066") + .build(); + ExternalAccessRule response = vmwareEngineClient.createExternalAccessRuleAsync(request).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_CreateExternalAccessRule_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createexternalaccessrule/SyncCreateExternalAccessRuleNetworkpolicynameExternalaccessruleString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createexternalaccessrule/SyncCreateExternalAccessRuleNetworkpolicynameExternalaccessruleString.java new file mode 100644 index 000000000000..3823a35cdac3 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createexternalaccessrule/SyncCreateExternalAccessRuleNetworkpolicynameExternalaccessruleString.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_CreateExternalAccessRule_NetworkpolicynameExternalaccessruleString_sync] +import com.google.cloud.vmwareengine.v1.ExternalAccessRule; +import com.google.cloud.vmwareengine.v1.NetworkPolicyName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncCreateExternalAccessRuleNetworkpolicynameExternalaccessruleString { + + public static void main(String[] args) throws Exception { + syncCreateExternalAccessRuleNetworkpolicynameExternalaccessruleString(); + } + + public static void syncCreateExternalAccessRuleNetworkpolicynameExternalaccessruleString() + 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()) { + NetworkPolicyName parent = + NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); + ExternalAccessRule externalAccessRule = ExternalAccessRule.newBuilder().build(); + String externalAccessRuleId = "externalAccessRuleId1937389350"; + ExternalAccessRule response = + vmwareEngineClient + .createExternalAccessRuleAsync(parent, externalAccessRule, externalAccessRuleId) + .get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_CreateExternalAccessRule_NetworkpolicynameExternalaccessruleString_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createexternalaccessrule/SyncCreateExternalAccessRuleStringExternalaccessruleString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createexternalaccessrule/SyncCreateExternalAccessRuleStringExternalaccessruleString.java new file mode 100644 index 000000000000..212e9ea679b0 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createexternalaccessrule/SyncCreateExternalAccessRuleStringExternalaccessruleString.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_CreateExternalAccessRule_StringExternalaccessruleString_sync] +import com.google.cloud.vmwareengine.v1.ExternalAccessRule; +import com.google.cloud.vmwareengine.v1.NetworkPolicyName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncCreateExternalAccessRuleStringExternalaccessruleString { + + public static void main(String[] args) throws Exception { + syncCreateExternalAccessRuleStringExternalaccessruleString(); + } + + public static void syncCreateExternalAccessRuleStringExternalaccessruleString() 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 = + NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString(); + ExternalAccessRule externalAccessRule = ExternalAccessRule.newBuilder().build(); + String externalAccessRuleId = "externalAccessRuleId1937389350"; + ExternalAccessRule response = + vmwareEngineClient + .createExternalAccessRuleAsync(parent, externalAccessRule, externalAccessRuleId) + .get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_CreateExternalAccessRule_StringExternalaccessruleString_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createexternaladdress/AsyncCreateExternalAddress.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createexternaladdress/AsyncCreateExternalAddress.java new file mode 100644 index 000000000000..cf3bf0f1ad82 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createexternaladdress/AsyncCreateExternalAddress.java @@ -0,0 +1,55 @@ +/* + * 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_CreateExternalAddress_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest; +import com.google.cloud.vmwareengine.v1.ExternalAddress; +import com.google.cloud.vmwareengine.v1.PrivateCloudName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.longrunning.Operation; + +public class AsyncCreateExternalAddress { + + public static void main(String[] args) throws Exception { + asyncCreateExternalAddress(); + } + + public static void asyncCreateExternalAddress() 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()) { + CreateExternalAddressRequest request = + CreateExternalAddressRequest.newBuilder() + .setParent( + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setExternalAddress(ExternalAddress.newBuilder().build()) + .setExternalAddressId("externalAddressId221595812") + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + vmwareEngineClient.createExternalAddressCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_CreateExternalAddress_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createexternaladdress/AsyncCreateExternalAddressLRO.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createexternaladdress/AsyncCreateExternalAddressLRO.java new file mode 100644 index 000000000000..ba74bbd0dfb9 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createexternaladdress/AsyncCreateExternalAddressLRO.java @@ -0,0 +1,55 @@ +/* + * 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_CreateExternalAddress_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest; +import com.google.cloud.vmwareengine.v1.ExternalAddress; +import com.google.cloud.vmwareengine.v1.OperationMetadata; +import com.google.cloud.vmwareengine.v1.PrivateCloudName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class AsyncCreateExternalAddressLRO { + + public static void main(String[] args) throws Exception { + asyncCreateExternalAddressLRO(); + } + + public static void asyncCreateExternalAddressLRO() 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()) { + CreateExternalAddressRequest request = + CreateExternalAddressRequest.newBuilder() + .setParent( + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setExternalAddress(ExternalAddress.newBuilder().build()) + .setExternalAddressId("externalAddressId221595812") + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + vmwareEngineClient.createExternalAddressOperationCallable().futureCall(request); + // Do something. + ExternalAddress response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_CreateExternalAddress_LRO_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createexternaladdress/SyncCreateExternalAddress.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createexternaladdress/SyncCreateExternalAddress.java new file mode 100644 index 000000000000..2b28d15f96d7 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createexternaladdress/SyncCreateExternalAddress.java @@ -0,0 +1,50 @@ +/* + * 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_CreateExternalAddress_sync] +import com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest; +import com.google.cloud.vmwareengine.v1.ExternalAddress; +import com.google.cloud.vmwareengine.v1.PrivateCloudName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncCreateExternalAddress { + + public static void main(String[] args) throws Exception { + syncCreateExternalAddress(); + } + + public static void syncCreateExternalAddress() 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()) { + CreateExternalAddressRequest request = + CreateExternalAddressRequest.newBuilder() + .setParent( + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setExternalAddress(ExternalAddress.newBuilder().build()) + .setExternalAddressId("externalAddressId221595812") + .setRequestId("requestId693933066") + .build(); + ExternalAddress response = vmwareEngineClient.createExternalAddressAsync(request).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_CreateExternalAddress_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createexternaladdress/SyncCreateExternalAddressPrivatecloudnameExternaladdressString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createexternaladdress/SyncCreateExternalAddressPrivatecloudnameExternaladdressString.java new file mode 100644 index 000000000000..e81c93967dbf --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createexternaladdress/SyncCreateExternalAddressPrivatecloudnameExternaladdressString.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_CreateExternalAddress_PrivatecloudnameExternaladdressString_sync] +import com.google.cloud.vmwareengine.v1.ExternalAddress; +import com.google.cloud.vmwareengine.v1.PrivateCloudName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncCreateExternalAddressPrivatecloudnameExternaladdressString { + + public static void main(String[] args) throws Exception { + syncCreateExternalAddressPrivatecloudnameExternaladdressString(); + } + + public static void syncCreateExternalAddressPrivatecloudnameExternaladdressString() + 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()) { + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + ExternalAddress externalAddress = ExternalAddress.newBuilder().build(); + String externalAddressId = "externalAddressId221595812"; + ExternalAddress response = + vmwareEngineClient + .createExternalAddressAsync(parent, externalAddress, externalAddressId) + .get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_CreateExternalAddress_PrivatecloudnameExternaladdressString_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createexternaladdress/SyncCreateExternalAddressStringExternaladdressString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createexternaladdress/SyncCreateExternalAddressStringExternaladdressString.java new file mode 100644 index 000000000000..361028b5e196 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createexternaladdress/SyncCreateExternalAddressStringExternaladdressString.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_CreateExternalAddress_StringExternaladdressString_sync] +import com.google.cloud.vmwareengine.v1.ExternalAddress; +import com.google.cloud.vmwareengine.v1.PrivateCloudName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncCreateExternalAddressStringExternaladdressString { + + public static void main(String[] args) throws Exception { + syncCreateExternalAddressStringExternaladdressString(); + } + + public static void syncCreateExternalAddressStringExternaladdressString() 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 = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString(); + ExternalAddress externalAddress = ExternalAddress.newBuilder().build(); + String externalAddressId = "externalAddressId221595812"; + ExternalAddress response = + vmwareEngineClient + .createExternalAddressAsync(parent, externalAddress, externalAddressId) + .get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_CreateExternalAddress_StringExternaladdressString_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createloggingserver/AsyncCreateLoggingServer.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createloggingserver/AsyncCreateLoggingServer.java new file mode 100644 index 000000000000..4fb071565448 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createloggingserver/AsyncCreateLoggingServer.java @@ -0,0 +1,55 @@ +/* + * 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_CreateLoggingServer_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest; +import com.google.cloud.vmwareengine.v1.LoggingServer; +import com.google.cloud.vmwareengine.v1.PrivateCloudName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.longrunning.Operation; + +public class AsyncCreateLoggingServer { + + public static void main(String[] args) throws Exception { + asyncCreateLoggingServer(); + } + + public static void asyncCreateLoggingServer() 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()) { + CreateLoggingServerRequest request = + CreateLoggingServerRequest.newBuilder() + .setParent( + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setLoggingServer(LoggingServer.newBuilder().build()) + .setLoggingServerId("loggingServerId-304163779") + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + vmwareEngineClient.createLoggingServerCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_CreateLoggingServer_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createloggingserver/AsyncCreateLoggingServerLRO.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createloggingserver/AsyncCreateLoggingServerLRO.java new file mode 100644 index 000000000000..daefce7e5db8 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createloggingserver/AsyncCreateLoggingServerLRO.java @@ -0,0 +1,55 @@ +/* + * 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_CreateLoggingServer_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest; +import com.google.cloud.vmwareengine.v1.LoggingServer; +import com.google.cloud.vmwareengine.v1.OperationMetadata; +import com.google.cloud.vmwareengine.v1.PrivateCloudName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class AsyncCreateLoggingServerLRO { + + public static void main(String[] args) throws Exception { + asyncCreateLoggingServerLRO(); + } + + public static void asyncCreateLoggingServerLRO() 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()) { + CreateLoggingServerRequest request = + CreateLoggingServerRequest.newBuilder() + .setParent( + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setLoggingServer(LoggingServer.newBuilder().build()) + .setLoggingServerId("loggingServerId-304163779") + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + vmwareEngineClient.createLoggingServerOperationCallable().futureCall(request); + // Do something. + LoggingServer response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_CreateLoggingServer_LRO_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createloggingserver/SyncCreateLoggingServer.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createloggingserver/SyncCreateLoggingServer.java new file mode 100644 index 000000000000..d56cdc7a54fa --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createloggingserver/SyncCreateLoggingServer.java @@ -0,0 +1,50 @@ +/* + * 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_CreateLoggingServer_sync] +import com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest; +import com.google.cloud.vmwareengine.v1.LoggingServer; +import com.google.cloud.vmwareengine.v1.PrivateCloudName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncCreateLoggingServer { + + public static void main(String[] args) throws Exception { + syncCreateLoggingServer(); + } + + public static void syncCreateLoggingServer() 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()) { + CreateLoggingServerRequest request = + CreateLoggingServerRequest.newBuilder() + .setParent( + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setLoggingServer(LoggingServer.newBuilder().build()) + .setLoggingServerId("loggingServerId-304163779") + .setRequestId("requestId693933066") + .build(); + LoggingServer response = vmwareEngineClient.createLoggingServerAsync(request).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_CreateLoggingServer_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createloggingserver/SyncCreateLoggingServerPrivatecloudnameLoggingserverString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createloggingserver/SyncCreateLoggingServerPrivatecloudnameLoggingserverString.java new file mode 100644 index 000000000000..4861c59fbdac --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createloggingserver/SyncCreateLoggingServerPrivatecloudnameLoggingserverString.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_CreateLoggingServer_PrivatecloudnameLoggingserverString_sync] +import com.google.cloud.vmwareengine.v1.LoggingServer; +import com.google.cloud.vmwareengine.v1.PrivateCloudName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncCreateLoggingServerPrivatecloudnameLoggingserverString { + + public static void main(String[] args) throws Exception { + syncCreateLoggingServerPrivatecloudnameLoggingserverString(); + } + + public static void syncCreateLoggingServerPrivatecloudnameLoggingserverString() 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()) { + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + LoggingServer loggingServer = LoggingServer.newBuilder().build(); + String loggingServerId = "loggingServerId-304163779"; + LoggingServer response = + vmwareEngineClient.createLoggingServerAsync(parent, loggingServer, loggingServerId).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_CreateLoggingServer_PrivatecloudnameLoggingserverString_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createloggingserver/SyncCreateLoggingServerStringLoggingserverString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createloggingserver/SyncCreateLoggingServerStringLoggingserverString.java new file mode 100644 index 000000000000..0e230282049b --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createloggingserver/SyncCreateLoggingServerStringLoggingserverString.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_CreateLoggingServer_StringLoggingserverString_sync] +import com.google.cloud.vmwareengine.v1.LoggingServer; +import com.google.cloud.vmwareengine.v1.PrivateCloudName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncCreateLoggingServerStringLoggingserverString { + + public static void main(String[] args) throws Exception { + syncCreateLoggingServerStringLoggingserverString(); + } + + public static void syncCreateLoggingServerStringLoggingserverString() 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 = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString(); + LoggingServer loggingServer = LoggingServer.newBuilder().build(); + String loggingServerId = "loggingServerId-304163779"; + LoggingServer response = + vmwareEngineClient.createLoggingServerAsync(parent, loggingServer, loggingServerId).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_CreateLoggingServer_StringLoggingserverString_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createmanagementdnszonebinding/AsyncCreateManagementDnsZoneBinding.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createmanagementdnszonebinding/AsyncCreateManagementDnsZoneBinding.java new file mode 100644 index 000000000000..c6230baa3a09 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createmanagementdnszonebinding/AsyncCreateManagementDnsZoneBinding.java @@ -0,0 +1,55 @@ +/* + * 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_CreateManagementDnsZoneBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest; +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding; +import com.google.cloud.vmwareengine.v1.PrivateCloudName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.longrunning.Operation; + +public class AsyncCreateManagementDnsZoneBinding { + + public static void main(String[] args) throws Exception { + asyncCreateManagementDnsZoneBinding(); + } + + public static void asyncCreateManagementDnsZoneBinding() 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()) { + CreateManagementDnsZoneBindingRequest request = + CreateManagementDnsZoneBindingRequest.newBuilder() + .setParent( + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setManagementDnsZoneBinding(ManagementDnsZoneBinding.newBuilder().build()) + .setManagementDnsZoneBindingId("managementDnsZoneBindingId-288984082") + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + vmwareEngineClient.createManagementDnsZoneBindingCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_CreateManagementDnsZoneBinding_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createmanagementdnszonebinding/AsyncCreateManagementDnsZoneBindingLRO.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createmanagementdnszonebinding/AsyncCreateManagementDnsZoneBindingLRO.java new file mode 100644 index 000000000000..217dc3910fa7 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createmanagementdnszonebinding/AsyncCreateManagementDnsZoneBindingLRO.java @@ -0,0 +1,55 @@ +/* + * 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_CreateManagementDnsZoneBinding_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest; +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding; +import com.google.cloud.vmwareengine.v1.OperationMetadata; +import com.google.cloud.vmwareengine.v1.PrivateCloudName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class AsyncCreateManagementDnsZoneBindingLRO { + + public static void main(String[] args) throws Exception { + asyncCreateManagementDnsZoneBindingLRO(); + } + + public static void asyncCreateManagementDnsZoneBindingLRO() 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()) { + CreateManagementDnsZoneBindingRequest request = + CreateManagementDnsZoneBindingRequest.newBuilder() + .setParent( + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setManagementDnsZoneBinding(ManagementDnsZoneBinding.newBuilder().build()) + .setManagementDnsZoneBindingId("managementDnsZoneBindingId-288984082") + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + vmwareEngineClient.createManagementDnsZoneBindingOperationCallable().futureCall(request); + // Do something. + ManagementDnsZoneBinding response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_CreateManagementDnsZoneBinding_LRO_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createmanagementdnszonebinding/SyncCreateManagementDnsZoneBinding.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createmanagementdnszonebinding/SyncCreateManagementDnsZoneBinding.java new file mode 100644 index 000000000000..b5003f8f7ed5 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createmanagementdnszonebinding/SyncCreateManagementDnsZoneBinding.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_CreateManagementDnsZoneBinding_sync] +import com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest; +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding; +import com.google.cloud.vmwareengine.v1.PrivateCloudName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncCreateManagementDnsZoneBinding { + + public static void main(String[] args) throws Exception { + syncCreateManagementDnsZoneBinding(); + } + + public static void syncCreateManagementDnsZoneBinding() 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()) { + CreateManagementDnsZoneBindingRequest request = + CreateManagementDnsZoneBindingRequest.newBuilder() + .setParent( + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setManagementDnsZoneBinding(ManagementDnsZoneBinding.newBuilder().build()) + .setManagementDnsZoneBindingId("managementDnsZoneBindingId-288984082") + .setRequestId("requestId693933066") + .build(); + ManagementDnsZoneBinding response = + vmwareEngineClient.createManagementDnsZoneBindingAsync(request).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_CreateManagementDnsZoneBinding_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createmanagementdnszonebinding/SyncCreateManagementDnsZoneBindingPrivatecloudnameManagementdnszonebindingString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createmanagementdnszonebinding/SyncCreateManagementDnsZoneBindingPrivatecloudnameManagementdnszonebindingString.java new file mode 100644 index 000000000000..3b92adae643d --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createmanagementdnszonebinding/SyncCreateManagementDnsZoneBindingPrivatecloudnameManagementdnszonebindingString.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_CreateManagementDnsZoneBinding_PrivatecloudnameManagementdnszonebindingString_sync] +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding; +import com.google.cloud.vmwareengine.v1.PrivateCloudName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncCreateManagementDnsZoneBindingPrivatecloudnameManagementdnszonebindingString { + + public static void main(String[] args) throws Exception { + syncCreateManagementDnsZoneBindingPrivatecloudnameManagementdnszonebindingString(); + } + + public static void + syncCreateManagementDnsZoneBindingPrivatecloudnameManagementdnszonebindingString() + 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()) { + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + ManagementDnsZoneBinding managementDnsZoneBinding = + ManagementDnsZoneBinding.newBuilder().build(); + String managementDnsZoneBindingId = "managementDnsZoneBindingId-288984082"; + ManagementDnsZoneBinding response = + vmwareEngineClient + .createManagementDnsZoneBindingAsync( + parent, managementDnsZoneBinding, managementDnsZoneBindingId) + .get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_CreateManagementDnsZoneBinding_PrivatecloudnameManagementdnszonebindingString_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createmanagementdnszonebinding/SyncCreateManagementDnsZoneBindingStringManagementdnszonebindingString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createmanagementdnszonebinding/SyncCreateManagementDnsZoneBindingStringManagementdnszonebindingString.java new file mode 100644 index 000000000000..ffd28a9ae028 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createmanagementdnszonebinding/SyncCreateManagementDnsZoneBindingStringManagementdnszonebindingString.java @@ -0,0 +1,50 @@ +/* + * 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_CreateManagementDnsZoneBinding_StringManagementdnszonebindingString_sync] +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding; +import com.google.cloud.vmwareengine.v1.PrivateCloudName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncCreateManagementDnsZoneBindingStringManagementdnszonebindingString { + + public static void main(String[] args) throws Exception { + syncCreateManagementDnsZoneBindingStringManagementdnszonebindingString(); + } + + public static void syncCreateManagementDnsZoneBindingStringManagementdnszonebindingString() + 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 = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString(); + ManagementDnsZoneBinding managementDnsZoneBinding = + ManagementDnsZoneBinding.newBuilder().build(); + String managementDnsZoneBindingId = "managementDnsZoneBindingId-288984082"; + ManagementDnsZoneBinding response = + vmwareEngineClient + .createManagementDnsZoneBindingAsync( + parent, managementDnsZoneBinding, managementDnsZoneBindingId) + .get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_CreateManagementDnsZoneBinding_StringManagementdnszonebindingString_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createnetworkpeering/AsyncCreateNetworkPeering.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createnetworkpeering/AsyncCreateNetworkPeering.java new file mode 100644 index 000000000000..a17ac33141a8 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createnetworkpeering/AsyncCreateNetworkPeering.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_CreateNetworkPeering_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest; +import com.google.cloud.vmwareengine.v1.LocationName; +import com.google.cloud.vmwareengine.v1.NetworkPeering; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.longrunning.Operation; + +public class AsyncCreateNetworkPeering { + + public static void main(String[] args) throws Exception { + asyncCreateNetworkPeering(); + } + + public static void asyncCreateNetworkPeering() 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()) { + CreateNetworkPeeringRequest request = + CreateNetworkPeeringRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setNetworkPeeringId("networkPeeringId1321772525") + .setNetworkPeering(NetworkPeering.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + vmwareEngineClient.createNetworkPeeringCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_CreateNetworkPeering_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createnetworkpeering/AsyncCreateNetworkPeeringLRO.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createnetworkpeering/AsyncCreateNetworkPeeringLRO.java new file mode 100644 index 000000000000..a241d25ce166 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createnetworkpeering/AsyncCreateNetworkPeeringLRO.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_CreateNetworkPeering_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest; +import com.google.cloud.vmwareengine.v1.LocationName; +import com.google.cloud.vmwareengine.v1.NetworkPeering; +import com.google.cloud.vmwareengine.v1.OperationMetadata; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class AsyncCreateNetworkPeeringLRO { + + public static void main(String[] args) throws Exception { + asyncCreateNetworkPeeringLRO(); + } + + public static void asyncCreateNetworkPeeringLRO() 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()) { + CreateNetworkPeeringRequest request = + CreateNetworkPeeringRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setNetworkPeeringId("networkPeeringId1321772525") + .setNetworkPeering(NetworkPeering.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + vmwareEngineClient.createNetworkPeeringOperationCallable().futureCall(request); + // Do something. + NetworkPeering response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_CreateNetworkPeering_LRO_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createnetworkpeering/SyncCreateNetworkPeering.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createnetworkpeering/SyncCreateNetworkPeering.java new file mode 100644 index 000000000000..f593f2a58182 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createnetworkpeering/SyncCreateNetworkPeering.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_CreateNetworkPeering_sync] +import com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest; +import com.google.cloud.vmwareengine.v1.LocationName; +import com.google.cloud.vmwareengine.v1.NetworkPeering; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncCreateNetworkPeering { + + public static void main(String[] args) throws Exception { + syncCreateNetworkPeering(); + } + + public static void syncCreateNetworkPeering() 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()) { + CreateNetworkPeeringRequest request = + CreateNetworkPeeringRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setNetworkPeeringId("networkPeeringId1321772525") + .setNetworkPeering(NetworkPeering.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + NetworkPeering response = vmwareEngineClient.createNetworkPeeringAsync(request).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_CreateNetworkPeering_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createnetworkpeering/SyncCreateNetworkPeeringLocationnameNetworkpeeringString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createnetworkpeering/SyncCreateNetworkPeeringLocationnameNetworkpeeringString.java new file mode 100644 index 000000000000..6746e981b0f3 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createnetworkpeering/SyncCreateNetworkPeeringLocationnameNetworkpeeringString.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_CreateNetworkPeering_LocationnameNetworkpeeringString_sync] +import com.google.cloud.vmwareengine.v1.LocationName; +import com.google.cloud.vmwareengine.v1.NetworkPeering; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncCreateNetworkPeeringLocationnameNetworkpeeringString { + + public static void main(String[] args) throws Exception { + syncCreateNetworkPeeringLocationnameNetworkpeeringString(); + } + + public static void syncCreateNetworkPeeringLocationnameNetworkpeeringString() 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]"); + NetworkPeering networkPeering = NetworkPeering.newBuilder().build(); + String networkPeeringId = "networkPeeringId1321772525"; + NetworkPeering response = + vmwareEngineClient + .createNetworkPeeringAsync(parent, networkPeering, networkPeeringId) + .get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_CreateNetworkPeering_LocationnameNetworkpeeringString_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createnetworkpeering/SyncCreateNetworkPeeringStringNetworkpeeringString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createnetworkpeering/SyncCreateNetworkPeeringStringNetworkpeeringString.java new file mode 100644 index 000000000000..dbbf1743a62b --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/createnetworkpeering/SyncCreateNetworkPeeringStringNetworkpeeringString.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_CreateNetworkPeering_StringNetworkpeeringString_sync] +import com.google.cloud.vmwareengine.v1.LocationName; +import com.google.cloud.vmwareengine.v1.NetworkPeering; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncCreateNetworkPeeringStringNetworkpeeringString { + + public static void main(String[] args) throws Exception { + syncCreateNetworkPeeringStringNetworkpeeringString(); + } + + public static void syncCreateNetworkPeeringStringNetworkpeeringString() 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(); + NetworkPeering networkPeering = NetworkPeering.newBuilder().build(); + String networkPeeringId = "networkPeeringId1321772525"; + NetworkPeering response = + vmwareEngineClient + .createNetworkPeeringAsync(parent, networkPeering, networkPeeringId) + .get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_CreateNetworkPeering_StringNetworkpeeringString_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteexternalaccessrule/AsyncDeleteExternalAccessRule.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteexternalaccessrule/AsyncDeleteExternalAccessRule.java new file mode 100644 index 000000000000..92832185e76c --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteexternalaccessrule/AsyncDeleteExternalAccessRule.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_DeleteExternalAccessRule_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest; +import com.google.cloud.vmwareengine.v1.ExternalAccessRuleName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteExternalAccessRule { + + public static void main(String[] args) throws Exception { + asyncDeleteExternalAccessRule(); + } + + public static void asyncDeleteExternalAccessRule() 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()) { + DeleteExternalAccessRuleRequest request = + DeleteExternalAccessRuleRequest.newBuilder() + .setName( + ExternalAccessRuleName.of( + "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + vmwareEngineClient.deleteExternalAccessRuleCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_DeleteExternalAccessRule_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteexternalaccessrule/AsyncDeleteExternalAccessRuleLRO.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteexternalaccessrule/AsyncDeleteExternalAccessRuleLRO.java new file mode 100644 index 000000000000..aa29704026fa --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteexternalaccessrule/AsyncDeleteExternalAccessRuleLRO.java @@ -0,0 +1,55 @@ +/* + * 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_DeleteExternalAccessRule_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest; +import com.google.cloud.vmwareengine.v1.ExternalAccessRuleName; +import com.google.cloud.vmwareengine.v1.OperationMetadata; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteExternalAccessRuleLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteExternalAccessRuleLRO(); + } + + public static void asyncDeleteExternalAccessRuleLRO() 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()) { + DeleteExternalAccessRuleRequest request = + DeleteExternalAccessRuleRequest.newBuilder() + .setName( + ExternalAccessRuleName.of( + "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + vmwareEngineClient.deleteExternalAccessRuleOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_DeleteExternalAccessRule_LRO_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteexternalaccessrule/SyncDeleteExternalAccessRule.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteexternalaccessrule/SyncDeleteExternalAccessRule.java new file mode 100644 index 000000000000..9fc69bfe2346 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteexternalaccessrule/SyncDeleteExternalAccessRule.java @@ -0,0 +1,50 @@ +/* + * 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_DeleteExternalAccessRule_sync] +import com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest; +import com.google.cloud.vmwareengine.v1.ExternalAccessRuleName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.Empty; + +public class SyncDeleteExternalAccessRule { + + public static void main(String[] args) throws Exception { + syncDeleteExternalAccessRule(); + } + + public static void syncDeleteExternalAccessRule() 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()) { + DeleteExternalAccessRuleRequest request = + DeleteExternalAccessRuleRequest.newBuilder() + .setName( + ExternalAccessRuleName.of( + "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]") + .toString()) + .setRequestId("requestId693933066") + .build(); + vmwareEngineClient.deleteExternalAccessRuleAsync(request).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_DeleteExternalAccessRule_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteexternalaccessrule/SyncDeleteExternalAccessRuleExternalaccessrulename.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteexternalaccessrule/SyncDeleteExternalAccessRuleExternalaccessrulename.java new file mode 100644 index 000000000000..5abedbdb3e4a --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteexternalaccessrule/SyncDeleteExternalAccessRuleExternalaccessrulename.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_DeleteExternalAccessRule_Externalaccessrulename_sync] +import com.google.cloud.vmwareengine.v1.ExternalAccessRuleName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.Empty; + +public class SyncDeleteExternalAccessRuleExternalaccessrulename { + + public static void main(String[] args) throws Exception { + syncDeleteExternalAccessRuleExternalaccessrulename(); + } + + public static void syncDeleteExternalAccessRuleExternalaccessrulename() 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()) { + ExternalAccessRuleName name = + ExternalAccessRuleName.of( + "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]"); + vmwareEngineClient.deleteExternalAccessRuleAsync(name).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_DeleteExternalAccessRule_Externalaccessrulename_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteexternalaccessrule/SyncDeleteExternalAccessRuleString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteexternalaccessrule/SyncDeleteExternalAccessRuleString.java new file mode 100644 index 000000000000..02cef068476d --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteexternalaccessrule/SyncDeleteExternalAccessRuleString.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_DeleteExternalAccessRule_String_sync] +import com.google.cloud.vmwareengine.v1.ExternalAccessRuleName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.Empty; + +public class SyncDeleteExternalAccessRuleString { + + public static void main(String[] args) throws Exception { + syncDeleteExternalAccessRuleString(); + } + + public static void syncDeleteExternalAccessRuleString() 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 = + ExternalAccessRuleName.of( + "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]") + .toString(); + vmwareEngineClient.deleteExternalAccessRuleAsync(name).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_DeleteExternalAccessRule_String_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteexternaladdress/AsyncDeleteExternalAddress.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteexternaladdress/AsyncDeleteExternalAddress.java new file mode 100644 index 000000000000..6df4e7f14ea9 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteexternaladdress/AsyncDeleteExternalAddress.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_DeleteExternalAddress_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest; +import com.google.cloud.vmwareengine.v1.ExternalAddressName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteExternalAddress { + + public static void main(String[] args) throws Exception { + asyncDeleteExternalAddress(); + } + + public static void asyncDeleteExternalAddress() 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()) { + DeleteExternalAddressRequest request = + DeleteExternalAddressRequest.newBuilder() + .setName( + ExternalAddressName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + vmwareEngineClient.deleteExternalAddressCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_DeleteExternalAddress_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteexternaladdress/AsyncDeleteExternalAddressLRO.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteexternaladdress/AsyncDeleteExternalAddressLRO.java new file mode 100644 index 000000000000..46dea1406ade --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteexternaladdress/AsyncDeleteExternalAddressLRO.java @@ -0,0 +1,55 @@ +/* + * 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_DeleteExternalAddress_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest; +import com.google.cloud.vmwareengine.v1.ExternalAddressName; +import com.google.cloud.vmwareengine.v1.OperationMetadata; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteExternalAddressLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteExternalAddressLRO(); + } + + public static void asyncDeleteExternalAddressLRO() 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()) { + DeleteExternalAddressRequest request = + DeleteExternalAddressRequest.newBuilder() + .setName( + ExternalAddressName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + vmwareEngineClient.deleteExternalAddressOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_DeleteExternalAddress_LRO_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteexternaladdress/SyncDeleteExternalAddress.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteexternaladdress/SyncDeleteExternalAddress.java new file mode 100644 index 000000000000..8687b02eb1d2 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteexternaladdress/SyncDeleteExternalAddress.java @@ -0,0 +1,50 @@ +/* + * 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_DeleteExternalAddress_sync] +import com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest; +import com.google.cloud.vmwareengine.v1.ExternalAddressName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.Empty; + +public class SyncDeleteExternalAddress { + + public static void main(String[] args) throws Exception { + syncDeleteExternalAddress(); + } + + public static void syncDeleteExternalAddress() 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()) { + DeleteExternalAddressRequest request = + DeleteExternalAddressRequest.newBuilder() + .setName( + ExternalAddressName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]") + .toString()) + .setRequestId("requestId693933066") + .build(); + vmwareEngineClient.deleteExternalAddressAsync(request).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_DeleteExternalAddress_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteexternaladdress/SyncDeleteExternalAddressExternaladdressname.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteexternaladdress/SyncDeleteExternalAddressExternaladdressname.java new file mode 100644 index 000000000000..2e770d8eea7b --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteexternaladdress/SyncDeleteExternalAddressExternaladdressname.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_DeleteExternalAddress_Externaladdressname_sync] +import com.google.cloud.vmwareengine.v1.ExternalAddressName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.Empty; + +public class SyncDeleteExternalAddressExternaladdressname { + + public static void main(String[] args) throws Exception { + syncDeleteExternalAddressExternaladdressname(); + } + + public static void syncDeleteExternalAddressExternaladdressname() 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()) { + ExternalAddressName name = + ExternalAddressName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]"); + vmwareEngineClient.deleteExternalAddressAsync(name).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_DeleteExternalAddress_Externaladdressname_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteexternaladdress/SyncDeleteExternalAddressString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteexternaladdress/SyncDeleteExternalAddressString.java new file mode 100644 index 000000000000..3c74a9043043 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteexternaladdress/SyncDeleteExternalAddressString.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_DeleteExternalAddress_String_sync] +import com.google.cloud.vmwareengine.v1.ExternalAddressName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.Empty; + +public class SyncDeleteExternalAddressString { + + public static void main(String[] args) throws Exception { + syncDeleteExternalAddressString(); + } + + public static void syncDeleteExternalAddressString() 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 = + ExternalAddressName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]") + .toString(); + vmwareEngineClient.deleteExternalAddressAsync(name).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_DeleteExternalAddress_String_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteloggingserver/AsyncDeleteLoggingServer.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteloggingserver/AsyncDeleteLoggingServer.java new file mode 100644 index 000000000000..a182f271fdc7 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteloggingserver/AsyncDeleteLoggingServer.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_DeleteLoggingServer_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest; +import com.google.cloud.vmwareengine.v1.LoggingServerName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteLoggingServer { + + public static void main(String[] args) throws Exception { + asyncDeleteLoggingServer(); + } + + public static void asyncDeleteLoggingServer() 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()) { + DeleteLoggingServerRequest request = + DeleteLoggingServerRequest.newBuilder() + .setName( + LoggingServerName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + vmwareEngineClient.deleteLoggingServerCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_DeleteLoggingServer_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteloggingserver/AsyncDeleteLoggingServerLRO.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteloggingserver/AsyncDeleteLoggingServerLRO.java new file mode 100644 index 000000000000..f38eee1ea16b --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteloggingserver/AsyncDeleteLoggingServerLRO.java @@ -0,0 +1,55 @@ +/* + * 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_DeleteLoggingServer_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest; +import com.google.cloud.vmwareengine.v1.LoggingServerName; +import com.google.cloud.vmwareengine.v1.OperationMetadata; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteLoggingServerLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteLoggingServerLRO(); + } + + public static void asyncDeleteLoggingServerLRO() 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()) { + DeleteLoggingServerRequest request = + DeleteLoggingServerRequest.newBuilder() + .setName( + LoggingServerName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + vmwareEngineClient.deleteLoggingServerOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_DeleteLoggingServer_LRO_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteloggingserver/SyncDeleteLoggingServer.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteloggingserver/SyncDeleteLoggingServer.java new file mode 100644 index 000000000000..e9d8cd768411 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteloggingserver/SyncDeleteLoggingServer.java @@ -0,0 +1,50 @@ +/* + * 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_DeleteLoggingServer_sync] +import com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest; +import com.google.cloud.vmwareengine.v1.LoggingServerName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.Empty; + +public class SyncDeleteLoggingServer { + + public static void main(String[] args) throws Exception { + syncDeleteLoggingServer(); + } + + public static void syncDeleteLoggingServer() 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()) { + DeleteLoggingServerRequest request = + DeleteLoggingServerRequest.newBuilder() + .setName( + LoggingServerName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]") + .toString()) + .setRequestId("requestId693933066") + .build(); + vmwareEngineClient.deleteLoggingServerAsync(request).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_DeleteLoggingServer_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteloggingserver/SyncDeleteLoggingServerLoggingservername.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteloggingserver/SyncDeleteLoggingServerLoggingservername.java new file mode 100644 index 000000000000..608ffb40f9c2 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteloggingserver/SyncDeleteLoggingServerLoggingservername.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_DeleteLoggingServer_Loggingservername_sync] +import com.google.cloud.vmwareengine.v1.LoggingServerName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.Empty; + +public class SyncDeleteLoggingServerLoggingservername { + + public static void main(String[] args) throws Exception { + syncDeleteLoggingServerLoggingservername(); + } + + public static void syncDeleteLoggingServerLoggingservername() 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()) { + LoggingServerName name = + LoggingServerName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]"); + vmwareEngineClient.deleteLoggingServerAsync(name).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_DeleteLoggingServer_Loggingservername_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteloggingserver/SyncDeleteLoggingServerString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteloggingserver/SyncDeleteLoggingServerString.java new file mode 100644 index 000000000000..314484364f12 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deleteloggingserver/SyncDeleteLoggingServerString.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_DeleteLoggingServer_String_sync] +import com.google.cloud.vmwareengine.v1.LoggingServerName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.Empty; + +public class SyncDeleteLoggingServerString { + + public static void main(String[] args) throws Exception { + syncDeleteLoggingServerString(); + } + + public static void syncDeleteLoggingServerString() 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 = + LoggingServerName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]") + .toString(); + vmwareEngineClient.deleteLoggingServerAsync(name).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_DeleteLoggingServer_String_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deletemanagementdnszonebinding/AsyncDeleteManagementDnsZoneBinding.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deletemanagementdnszonebinding/AsyncDeleteManagementDnsZoneBinding.java new file mode 100644 index 000000000000..98d0378de8d5 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deletemanagementdnszonebinding/AsyncDeleteManagementDnsZoneBinding.java @@ -0,0 +1,57 @@ +/* + * 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_DeleteManagementDnsZoneBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest; +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBindingName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteManagementDnsZoneBinding { + + public static void main(String[] args) throws Exception { + asyncDeleteManagementDnsZoneBinding(); + } + + public static void asyncDeleteManagementDnsZoneBinding() 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()) { + DeleteManagementDnsZoneBindingRequest request = + DeleteManagementDnsZoneBindingRequest.newBuilder() + .setName( + ManagementDnsZoneBindingName.of( + "[PROJECT]", + "[LOCATION]", + "[PRIVATE_CLOUD]", + "[MANAGEMENT_DNS_ZONE_BINDING]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + vmwareEngineClient.deleteManagementDnsZoneBindingCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_DeleteManagementDnsZoneBinding_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deletemanagementdnszonebinding/AsyncDeleteManagementDnsZoneBindingLRO.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deletemanagementdnszonebinding/AsyncDeleteManagementDnsZoneBindingLRO.java new file mode 100644 index 000000000000..c84f1a69c712 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deletemanagementdnszonebinding/AsyncDeleteManagementDnsZoneBindingLRO.java @@ -0,0 +1,58 @@ +/* + * 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_DeleteManagementDnsZoneBinding_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest; +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBindingName; +import com.google.cloud.vmwareengine.v1.OperationMetadata; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteManagementDnsZoneBindingLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteManagementDnsZoneBindingLRO(); + } + + public static void asyncDeleteManagementDnsZoneBindingLRO() 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()) { + DeleteManagementDnsZoneBindingRequest request = + DeleteManagementDnsZoneBindingRequest.newBuilder() + .setName( + ManagementDnsZoneBindingName.of( + "[PROJECT]", + "[LOCATION]", + "[PRIVATE_CLOUD]", + "[MANAGEMENT_DNS_ZONE_BINDING]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + vmwareEngineClient.deleteManagementDnsZoneBindingOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_DeleteManagementDnsZoneBinding_LRO_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deletemanagementdnszonebinding/SyncDeleteManagementDnsZoneBinding.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deletemanagementdnszonebinding/SyncDeleteManagementDnsZoneBinding.java new file mode 100644 index 000000000000..292a5dc0a1fd --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deletemanagementdnszonebinding/SyncDeleteManagementDnsZoneBinding.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_DeleteManagementDnsZoneBinding_sync] +import com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest; +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBindingName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.Empty; + +public class SyncDeleteManagementDnsZoneBinding { + + public static void main(String[] args) throws Exception { + syncDeleteManagementDnsZoneBinding(); + } + + public static void syncDeleteManagementDnsZoneBinding() 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()) { + DeleteManagementDnsZoneBindingRequest request = + DeleteManagementDnsZoneBindingRequest.newBuilder() + .setName( + ManagementDnsZoneBindingName.of( + "[PROJECT]", + "[LOCATION]", + "[PRIVATE_CLOUD]", + "[MANAGEMENT_DNS_ZONE_BINDING]") + .toString()) + .setRequestId("requestId693933066") + .build(); + vmwareEngineClient.deleteManagementDnsZoneBindingAsync(request).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_DeleteManagementDnsZoneBinding_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deletemanagementdnszonebinding/SyncDeleteManagementDnsZoneBindingManagementdnszonebindingname.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deletemanagementdnszonebinding/SyncDeleteManagementDnsZoneBindingManagementdnszonebindingname.java new file mode 100644 index 000000000000..583743609506 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deletemanagementdnszonebinding/SyncDeleteManagementDnsZoneBindingManagementdnszonebindingname.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_DeleteManagementDnsZoneBinding_Managementdnszonebindingname_sync] +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBindingName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.Empty; + +public class SyncDeleteManagementDnsZoneBindingManagementdnszonebindingname { + + public static void main(String[] args) throws Exception { + syncDeleteManagementDnsZoneBindingManagementdnszonebindingname(); + } + + public static void syncDeleteManagementDnsZoneBindingManagementdnszonebindingname() + 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()) { + ManagementDnsZoneBindingName name = + ManagementDnsZoneBindingName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[MANAGEMENT_DNS_ZONE_BINDING]"); + vmwareEngineClient.deleteManagementDnsZoneBindingAsync(name).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_DeleteManagementDnsZoneBinding_Managementdnszonebindingname_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deletemanagementdnszonebinding/SyncDeleteManagementDnsZoneBindingString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deletemanagementdnszonebinding/SyncDeleteManagementDnsZoneBindingString.java new file mode 100644 index 000000000000..3de870e40d92 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deletemanagementdnszonebinding/SyncDeleteManagementDnsZoneBindingString.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_DeleteManagementDnsZoneBinding_String_sync] +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBindingName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.Empty; + +public class SyncDeleteManagementDnsZoneBindingString { + + public static void main(String[] args) throws Exception { + syncDeleteManagementDnsZoneBindingString(); + } + + public static void syncDeleteManagementDnsZoneBindingString() 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 = + ManagementDnsZoneBindingName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[MANAGEMENT_DNS_ZONE_BINDING]") + .toString(); + vmwareEngineClient.deleteManagementDnsZoneBindingAsync(name).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_DeleteManagementDnsZoneBinding_String_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deletenetworkpeering/AsyncDeleteNetworkPeering.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deletenetworkpeering/AsyncDeleteNetworkPeering.java new file mode 100644 index 000000000000..bcdb341a76c4 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deletenetworkpeering/AsyncDeleteNetworkPeering.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_DeleteNetworkPeering_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest; +import com.google.cloud.vmwareengine.v1.NetworkPeeringName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteNetworkPeering { + + public static void main(String[] args) throws Exception { + asyncDeleteNetworkPeering(); + } + + public static void asyncDeleteNetworkPeering() 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()) { + DeleteNetworkPeeringRequest request = + DeleteNetworkPeeringRequest.newBuilder() + .setName( + NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]").toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + vmwareEngineClient.deleteNetworkPeeringCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_DeleteNetworkPeering_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deletenetworkpeering/AsyncDeleteNetworkPeeringLRO.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deletenetworkpeering/AsyncDeleteNetworkPeeringLRO.java new file mode 100644 index 000000000000..87218c122933 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deletenetworkpeering/AsyncDeleteNetworkPeeringLRO.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_DeleteNetworkPeering_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest; +import com.google.cloud.vmwareengine.v1.NetworkPeeringName; +import com.google.cloud.vmwareengine.v1.OperationMetadata; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteNetworkPeeringLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteNetworkPeeringLRO(); + } + + public static void asyncDeleteNetworkPeeringLRO() 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()) { + DeleteNetworkPeeringRequest request = + DeleteNetworkPeeringRequest.newBuilder() + .setName( + NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]").toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + vmwareEngineClient.deleteNetworkPeeringOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_DeleteNetworkPeering_LRO_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deletenetworkpeering/SyncDeleteNetworkPeering.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deletenetworkpeering/SyncDeleteNetworkPeering.java new file mode 100644 index 000000000000..4c5587365826 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deletenetworkpeering/SyncDeleteNetworkPeering.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_DeleteNetworkPeering_sync] +import com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest; +import com.google.cloud.vmwareengine.v1.NetworkPeeringName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.Empty; + +public class SyncDeleteNetworkPeering { + + public static void main(String[] args) throws Exception { + syncDeleteNetworkPeering(); + } + + public static void syncDeleteNetworkPeering() 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()) { + DeleteNetworkPeeringRequest request = + DeleteNetworkPeeringRequest.newBuilder() + .setName( + NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]").toString()) + .setRequestId("requestId693933066") + .build(); + vmwareEngineClient.deleteNetworkPeeringAsync(request).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_DeleteNetworkPeering_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deletenetworkpeering/SyncDeleteNetworkPeeringNetworkpeeringname.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deletenetworkpeering/SyncDeleteNetworkPeeringNetworkpeeringname.java new file mode 100644 index 000000000000..c0580034cf42 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deletenetworkpeering/SyncDeleteNetworkPeeringNetworkpeeringname.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_DeleteNetworkPeering_Networkpeeringname_sync] +import com.google.cloud.vmwareengine.v1.NetworkPeeringName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.Empty; + +public class SyncDeleteNetworkPeeringNetworkpeeringname { + + public static void main(String[] args) throws Exception { + syncDeleteNetworkPeeringNetworkpeeringname(); + } + + public static void syncDeleteNetworkPeeringNetworkpeeringname() 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()) { + NetworkPeeringName name = + NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]"); + vmwareEngineClient.deleteNetworkPeeringAsync(name).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_DeleteNetworkPeering_Networkpeeringname_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deletenetworkpeering/SyncDeleteNetworkPeeringString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deletenetworkpeering/SyncDeleteNetworkPeeringString.java new file mode 100644 index 000000000000..f59f9ff55059 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/deletenetworkpeering/SyncDeleteNetworkPeeringString.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_DeleteNetworkPeering_String_sync] +import com.google.cloud.vmwareengine.v1.NetworkPeeringName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.Empty; + +public class SyncDeleteNetworkPeeringString { + + public static void main(String[] args) throws Exception { + syncDeleteNetworkPeeringString(); + } + + public static void syncDeleteNetworkPeeringString() 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 = + NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]").toString(); + vmwareEngineClient.deleteNetworkPeeringAsync(name).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_DeleteNetworkPeering_String_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/fetchnetworkpolicyexternaladdresses/AsyncFetchNetworkPolicyExternalAddresses.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/fetchnetworkpolicyexternaladdresses/AsyncFetchNetworkPolicyExternalAddresses.java new file mode 100644 index 000000000000..572a4263e46e --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/fetchnetworkpolicyexternaladdresses/AsyncFetchNetworkPolicyExternalAddresses.java @@ -0,0 +1,55 @@ +/* + * 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_FetchNetworkPolicyExternalAddresses_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.ExternalAddress; +import com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest; +import com.google.cloud.vmwareengine.v1.NetworkPolicyName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class AsyncFetchNetworkPolicyExternalAddresses { + + public static void main(String[] args) throws Exception { + asyncFetchNetworkPolicyExternalAddresses(); + } + + public static void asyncFetchNetworkPolicyExternalAddresses() 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()) { + FetchNetworkPolicyExternalAddressesRequest request = + FetchNetworkPolicyExternalAddressesRequest.newBuilder() + .setNetworkPolicy( + NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + vmwareEngineClient.fetchNetworkPolicyExternalAddressesPagedCallable().futureCall(request); + // Do something. + for (ExternalAddress element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_FetchNetworkPolicyExternalAddresses_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/fetchnetworkpolicyexternaladdresses/AsyncFetchNetworkPolicyExternalAddressesPaged.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/fetchnetworkpolicyexternaladdresses/AsyncFetchNetworkPolicyExternalAddressesPaged.java new file mode 100644 index 000000000000..92d111987d68 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/fetchnetworkpolicyexternaladdresses/AsyncFetchNetworkPolicyExternalAddressesPaged.java @@ -0,0 +1,63 @@ +/* + * 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_FetchNetworkPolicyExternalAddresses_Paged_async] +import com.google.cloud.vmwareengine.v1.ExternalAddress; +import com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest; +import com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse; +import com.google.cloud.vmwareengine.v1.NetworkPolicyName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.common.base.Strings; + +public class AsyncFetchNetworkPolicyExternalAddressesPaged { + + public static void main(String[] args) throws Exception { + asyncFetchNetworkPolicyExternalAddressesPaged(); + } + + public static void asyncFetchNetworkPolicyExternalAddressesPaged() 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()) { + FetchNetworkPolicyExternalAddressesRequest request = + FetchNetworkPolicyExternalAddressesRequest.newBuilder() + .setNetworkPolicy( + NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + FetchNetworkPolicyExternalAddressesResponse response = + vmwareEngineClient.fetchNetworkPolicyExternalAddressesCallable().call(request); + for (ExternalAddress element : response.getExternalAddressesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_FetchNetworkPolicyExternalAddresses_Paged_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/fetchnetworkpolicyexternaladdresses/SyncFetchNetworkPolicyExternalAddresses.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/fetchnetworkpolicyexternaladdresses/SyncFetchNetworkPolicyExternalAddresses.java new file mode 100644 index 000000000000..d4f01a2259ce --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/fetchnetworkpolicyexternaladdresses/SyncFetchNetworkPolicyExternalAddresses.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_FetchNetworkPolicyExternalAddresses_sync] +import com.google.cloud.vmwareengine.v1.ExternalAddress; +import com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest; +import com.google.cloud.vmwareengine.v1.NetworkPolicyName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncFetchNetworkPolicyExternalAddresses { + + public static void main(String[] args) throws Exception { + syncFetchNetworkPolicyExternalAddresses(); + } + + public static void syncFetchNetworkPolicyExternalAddresses() 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()) { + FetchNetworkPolicyExternalAddressesRequest request = + FetchNetworkPolicyExternalAddressesRequest.newBuilder() + .setNetworkPolicy( + NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (ExternalAddress element : + vmwareEngineClient.fetchNetworkPolicyExternalAddresses(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_FetchNetworkPolicyExternalAddresses_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/fetchnetworkpolicyexternaladdresses/SyncFetchNetworkPolicyExternalAddressesNetworkpolicyname.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/fetchnetworkpolicyexternaladdresses/SyncFetchNetworkPolicyExternalAddressesNetworkpolicyname.java new file mode 100644 index 000000000000..6ea0bbd02906 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/fetchnetworkpolicyexternaladdresses/SyncFetchNetworkPolicyExternalAddressesNetworkpolicyname.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_FetchNetworkPolicyExternalAddresses_Networkpolicyname_sync] +import com.google.cloud.vmwareengine.v1.ExternalAddress; +import com.google.cloud.vmwareengine.v1.NetworkPolicyName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncFetchNetworkPolicyExternalAddressesNetworkpolicyname { + + public static void main(String[] args) throws Exception { + syncFetchNetworkPolicyExternalAddressesNetworkpolicyname(); + } + + public static void syncFetchNetworkPolicyExternalAddressesNetworkpolicyname() 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()) { + NetworkPolicyName networkPolicy = + NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); + for (ExternalAddress element : + vmwareEngineClient.fetchNetworkPolicyExternalAddresses(networkPolicy).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_FetchNetworkPolicyExternalAddresses_Networkpolicyname_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/fetchnetworkpolicyexternaladdresses/SyncFetchNetworkPolicyExternalAddressesString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/fetchnetworkpolicyexternaladdresses/SyncFetchNetworkPolicyExternalAddressesString.java new file mode 100644 index 000000000000..987fcaf5d99d --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/fetchnetworkpolicyexternaladdresses/SyncFetchNetworkPolicyExternalAddressesString.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_FetchNetworkPolicyExternalAddresses_String_sync] +import com.google.cloud.vmwareengine.v1.ExternalAddress; +import com.google.cloud.vmwareengine.v1.NetworkPolicyName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncFetchNetworkPolicyExternalAddressesString { + + public static void main(String[] args) throws Exception { + syncFetchNetworkPolicyExternalAddressesString(); + } + + public static void syncFetchNetworkPolicyExternalAddressesString() 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 networkPolicy = + NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString(); + for (ExternalAddress element : + vmwareEngineClient.fetchNetworkPolicyExternalAddresses(networkPolicy).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_FetchNetworkPolicyExternalAddresses_String_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getdnsbindpermission/AsyncGetDnsBindPermission.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getdnsbindpermission/AsyncGetDnsBindPermission.java new file mode 100644 index 000000000000..8905864e935b --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getdnsbindpermission/AsyncGetDnsBindPermission.java @@ -0,0 +1,50 @@ +/* + * 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_GetDnsBindPermission_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.DnsBindPermission; +import com.google.cloud.vmwareengine.v1.DnsBindPermissionName; +import com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class AsyncGetDnsBindPermission { + + public static void main(String[] args) throws Exception { + asyncGetDnsBindPermission(); + } + + public static void asyncGetDnsBindPermission() 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()) { + GetDnsBindPermissionRequest request = + GetDnsBindPermissionRequest.newBuilder() + .setName(DnsBindPermissionName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + ApiFuture future = + vmwareEngineClient.getDnsBindPermissionCallable().futureCall(request); + // Do something. + DnsBindPermission response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetDnsBindPermission_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getdnsbindpermission/SyncGetDnsBindPermission.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getdnsbindpermission/SyncGetDnsBindPermission.java new file mode 100644 index 000000000000..d5faee37ebb1 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getdnsbindpermission/SyncGetDnsBindPermission.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_GetDnsBindPermission_sync] +import com.google.cloud.vmwareengine.v1.DnsBindPermission; +import com.google.cloud.vmwareengine.v1.DnsBindPermissionName; +import com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncGetDnsBindPermission { + + public static void main(String[] args) throws Exception { + syncGetDnsBindPermission(); + } + + public static void syncGetDnsBindPermission() 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()) { + GetDnsBindPermissionRequest request = + GetDnsBindPermissionRequest.newBuilder() + .setName(DnsBindPermissionName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + DnsBindPermission response = vmwareEngineClient.getDnsBindPermission(request); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetDnsBindPermission_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getdnsbindpermission/SyncGetDnsBindPermissionDnsbindpermissionname.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getdnsbindpermission/SyncGetDnsBindPermissionDnsbindpermissionname.java new file mode 100644 index 000000000000..b714c503f152 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getdnsbindpermission/SyncGetDnsBindPermissionDnsbindpermissionname.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_GetDnsBindPermission_Dnsbindpermissionname_sync] +import com.google.cloud.vmwareengine.v1.DnsBindPermission; +import com.google.cloud.vmwareengine.v1.DnsBindPermissionName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncGetDnsBindPermissionDnsbindpermissionname { + + public static void main(String[] args) throws Exception { + syncGetDnsBindPermissionDnsbindpermissionname(); + } + + public static void syncGetDnsBindPermissionDnsbindpermissionname() 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()) { + DnsBindPermissionName name = DnsBindPermissionName.of("[PROJECT]", "[LOCATION]"); + DnsBindPermission response = vmwareEngineClient.getDnsBindPermission(name); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetDnsBindPermission_Dnsbindpermissionname_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getdnsbindpermission/SyncGetDnsBindPermissionString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getdnsbindpermission/SyncGetDnsBindPermissionString.java new file mode 100644 index 000000000000..643985e43171 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getdnsbindpermission/SyncGetDnsBindPermissionString.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_GetDnsBindPermission_String_sync] +import com.google.cloud.vmwareengine.v1.DnsBindPermission; +import com.google.cloud.vmwareengine.v1.DnsBindPermissionName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncGetDnsBindPermissionString { + + public static void main(String[] args) throws Exception { + syncGetDnsBindPermissionString(); + } + + public static void syncGetDnsBindPermissionString() 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 = DnsBindPermissionName.of("[PROJECT]", "[LOCATION]").toString(); + DnsBindPermission response = vmwareEngineClient.getDnsBindPermission(name); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetDnsBindPermission_String_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getdnsforwarding/AsyncGetDnsForwarding.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getdnsforwarding/AsyncGetDnsForwarding.java new file mode 100644 index 000000000000..e2c4a02603e9 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getdnsforwarding/AsyncGetDnsForwarding.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_GetDnsForwarding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.DnsForwarding; +import com.google.cloud.vmwareengine.v1.DnsForwardingName; +import com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class AsyncGetDnsForwarding { + + public static void main(String[] args) throws Exception { + asyncGetDnsForwarding(); + } + + public static void asyncGetDnsForwarding() 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()) { + GetDnsForwardingRequest request = + GetDnsForwardingRequest.newBuilder() + .setName( + DnsForwardingName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .build(); + ApiFuture future = + vmwareEngineClient.getDnsForwardingCallable().futureCall(request); + // Do something. + DnsForwarding response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetDnsForwarding_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getdnsforwarding/SyncGetDnsForwarding.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getdnsforwarding/SyncGetDnsForwarding.java new file mode 100644 index 000000000000..4d10c271f7ac --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getdnsforwarding/SyncGetDnsForwarding.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_GetDnsForwarding_sync] +import com.google.cloud.vmwareengine.v1.DnsForwarding; +import com.google.cloud.vmwareengine.v1.DnsForwardingName; +import com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncGetDnsForwarding { + + public static void main(String[] args) throws Exception { + syncGetDnsForwarding(); + } + + public static void syncGetDnsForwarding() 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()) { + GetDnsForwardingRequest request = + GetDnsForwardingRequest.newBuilder() + .setName( + DnsForwardingName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .build(); + DnsForwarding response = vmwareEngineClient.getDnsForwarding(request); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetDnsForwarding_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getdnsforwarding/SyncGetDnsForwardingDnsforwardingname.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getdnsforwarding/SyncGetDnsForwardingDnsforwardingname.java new file mode 100644 index 000000000000..a9be9d47bddf --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getdnsforwarding/SyncGetDnsForwardingDnsforwardingname.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_GetDnsForwarding_Dnsforwardingname_sync] +import com.google.cloud.vmwareengine.v1.DnsForwarding; +import com.google.cloud.vmwareengine.v1.DnsForwardingName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncGetDnsForwardingDnsforwardingname { + + public static void main(String[] args) throws Exception { + syncGetDnsForwardingDnsforwardingname(); + } + + public static void syncGetDnsForwardingDnsforwardingname() 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()) { + DnsForwardingName name = DnsForwardingName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + DnsForwarding response = vmwareEngineClient.getDnsForwarding(name); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetDnsForwarding_Dnsforwardingname_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getdnsforwarding/SyncGetDnsForwardingString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getdnsforwarding/SyncGetDnsForwardingString.java new file mode 100644 index 000000000000..f8e7a78338cc --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getdnsforwarding/SyncGetDnsForwardingString.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_GetDnsForwarding_String_sync] +import com.google.cloud.vmwareengine.v1.DnsForwarding; +import com.google.cloud.vmwareengine.v1.DnsForwardingName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncGetDnsForwardingString { + + public static void main(String[] args) throws Exception { + syncGetDnsForwardingString(); + } + + public static void syncGetDnsForwardingString() 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 = DnsForwardingName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString(); + DnsForwarding response = vmwareEngineClient.getDnsForwarding(name); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetDnsForwarding_String_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getexternalaccessrule/AsyncGetExternalAccessRule.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getexternalaccessrule/AsyncGetExternalAccessRule.java new file mode 100644 index 000000000000..d31a794ae43e --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getexternalaccessrule/AsyncGetExternalAccessRule.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_GetExternalAccessRule_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.ExternalAccessRule; +import com.google.cloud.vmwareengine.v1.ExternalAccessRuleName; +import com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class AsyncGetExternalAccessRule { + + public static void main(String[] args) throws Exception { + asyncGetExternalAccessRule(); + } + + public static void asyncGetExternalAccessRule() 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()) { + GetExternalAccessRuleRequest request = + GetExternalAccessRuleRequest.newBuilder() + .setName( + ExternalAccessRuleName.of( + "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]") + .toString()) + .build(); + ApiFuture future = + vmwareEngineClient.getExternalAccessRuleCallable().futureCall(request); + // Do something. + ExternalAccessRule response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetExternalAccessRule_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getexternalaccessrule/SyncGetExternalAccessRule.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getexternalaccessrule/SyncGetExternalAccessRule.java new file mode 100644 index 000000000000..127c3125fb99 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getexternalaccessrule/SyncGetExternalAccessRule.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_GetExternalAccessRule_sync] +import com.google.cloud.vmwareengine.v1.ExternalAccessRule; +import com.google.cloud.vmwareengine.v1.ExternalAccessRuleName; +import com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncGetExternalAccessRule { + + public static void main(String[] args) throws Exception { + syncGetExternalAccessRule(); + } + + public static void syncGetExternalAccessRule() 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()) { + GetExternalAccessRuleRequest request = + GetExternalAccessRuleRequest.newBuilder() + .setName( + ExternalAccessRuleName.of( + "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]") + .toString()) + .build(); + ExternalAccessRule response = vmwareEngineClient.getExternalAccessRule(request); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetExternalAccessRule_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getexternalaccessrule/SyncGetExternalAccessRuleExternalaccessrulename.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getexternalaccessrule/SyncGetExternalAccessRuleExternalaccessrulename.java new file mode 100644 index 000000000000..0f19ba3f566d --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getexternalaccessrule/SyncGetExternalAccessRuleExternalaccessrulename.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_GetExternalAccessRule_Externalaccessrulename_sync] +import com.google.cloud.vmwareengine.v1.ExternalAccessRule; +import com.google.cloud.vmwareengine.v1.ExternalAccessRuleName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncGetExternalAccessRuleExternalaccessrulename { + + public static void main(String[] args) throws Exception { + syncGetExternalAccessRuleExternalaccessrulename(); + } + + public static void syncGetExternalAccessRuleExternalaccessrulename() 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()) { + ExternalAccessRuleName name = + ExternalAccessRuleName.of( + "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]"); + ExternalAccessRule response = vmwareEngineClient.getExternalAccessRule(name); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetExternalAccessRule_Externalaccessrulename_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getexternalaccessrule/SyncGetExternalAccessRuleString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getexternalaccessrule/SyncGetExternalAccessRuleString.java new file mode 100644 index 000000000000..659a196d8dba --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getexternalaccessrule/SyncGetExternalAccessRuleString.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_GetExternalAccessRule_String_sync] +import com.google.cloud.vmwareengine.v1.ExternalAccessRule; +import com.google.cloud.vmwareengine.v1.ExternalAccessRuleName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncGetExternalAccessRuleString { + + public static void main(String[] args) throws Exception { + syncGetExternalAccessRuleString(); + } + + public static void syncGetExternalAccessRuleString() 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 = + ExternalAccessRuleName.of( + "[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]", "[EXTERNAL_ACCESS_RULE]") + .toString(); + ExternalAccessRule response = vmwareEngineClient.getExternalAccessRule(name); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetExternalAccessRule_String_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getexternaladdress/AsyncGetExternalAddress.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getexternaladdress/AsyncGetExternalAddress.java new file mode 100644 index 000000000000..add3e10ef63d --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getexternaladdress/AsyncGetExternalAddress.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_GetExternalAddress_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.ExternalAddress; +import com.google.cloud.vmwareengine.v1.ExternalAddressName; +import com.google.cloud.vmwareengine.v1.GetExternalAddressRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class AsyncGetExternalAddress { + + public static void main(String[] args) throws Exception { + asyncGetExternalAddress(); + } + + public static void asyncGetExternalAddress() 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()) { + GetExternalAddressRequest request = + GetExternalAddressRequest.newBuilder() + .setName( + ExternalAddressName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]") + .toString()) + .build(); + ApiFuture future = + vmwareEngineClient.getExternalAddressCallable().futureCall(request); + // Do something. + ExternalAddress response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetExternalAddress_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getexternaladdress/SyncGetExternalAddress.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getexternaladdress/SyncGetExternalAddress.java new file mode 100644 index 000000000000..7571a370b01f --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getexternaladdress/SyncGetExternalAddress.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_GetExternalAddress_sync] +import com.google.cloud.vmwareengine.v1.ExternalAddress; +import com.google.cloud.vmwareengine.v1.ExternalAddressName; +import com.google.cloud.vmwareengine.v1.GetExternalAddressRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncGetExternalAddress { + + public static void main(String[] args) throws Exception { + syncGetExternalAddress(); + } + + public static void syncGetExternalAddress() 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()) { + GetExternalAddressRequest request = + GetExternalAddressRequest.newBuilder() + .setName( + ExternalAddressName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]") + .toString()) + .build(); + ExternalAddress response = vmwareEngineClient.getExternalAddress(request); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetExternalAddress_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getexternaladdress/SyncGetExternalAddressExternaladdressname.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getexternaladdress/SyncGetExternalAddressExternaladdressname.java new file mode 100644 index 000000000000..0c7fd0794228 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getexternaladdress/SyncGetExternalAddressExternaladdressname.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_GetExternalAddress_Externaladdressname_sync] +import com.google.cloud.vmwareengine.v1.ExternalAddress; +import com.google.cloud.vmwareengine.v1.ExternalAddressName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncGetExternalAddressExternaladdressname { + + public static void main(String[] args) throws Exception { + syncGetExternalAddressExternaladdressname(); + } + + public static void syncGetExternalAddressExternaladdressname() 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()) { + ExternalAddressName name = + ExternalAddressName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]"); + ExternalAddress response = vmwareEngineClient.getExternalAddress(name); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetExternalAddress_Externaladdressname_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getexternaladdress/SyncGetExternalAddressString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getexternaladdress/SyncGetExternalAddressString.java new file mode 100644 index 000000000000..35cf3e539b26 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getexternaladdress/SyncGetExternalAddressString.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_GetExternalAddress_String_sync] +import com.google.cloud.vmwareengine.v1.ExternalAddress; +import com.google.cloud.vmwareengine.v1.ExternalAddressName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncGetExternalAddressString { + + public static void main(String[] args) throws Exception { + syncGetExternalAddressString(); + } + + public static void syncGetExternalAddressString() 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 = + ExternalAddressName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[EXTERNAL_ADDRESS]") + .toString(); + ExternalAddress response = vmwareEngineClient.getExternalAddress(name); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetExternalAddress_String_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getloggingserver/AsyncGetLoggingServer.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getloggingserver/AsyncGetLoggingServer.java new file mode 100644 index 000000000000..3b778f2f400e --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getloggingserver/AsyncGetLoggingServer.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_GetLoggingServer_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.GetLoggingServerRequest; +import com.google.cloud.vmwareengine.v1.LoggingServer; +import com.google.cloud.vmwareengine.v1.LoggingServerName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class AsyncGetLoggingServer { + + public static void main(String[] args) throws Exception { + asyncGetLoggingServer(); + } + + public static void asyncGetLoggingServer() 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()) { + GetLoggingServerRequest request = + GetLoggingServerRequest.newBuilder() + .setName( + LoggingServerName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]") + .toString()) + .build(); + ApiFuture future = + vmwareEngineClient.getLoggingServerCallable().futureCall(request); + // Do something. + LoggingServer response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetLoggingServer_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getloggingserver/SyncGetLoggingServer.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getloggingserver/SyncGetLoggingServer.java new file mode 100644 index 000000000000..e79d9e005732 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getloggingserver/SyncGetLoggingServer.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_GetLoggingServer_sync] +import com.google.cloud.vmwareengine.v1.GetLoggingServerRequest; +import com.google.cloud.vmwareengine.v1.LoggingServer; +import com.google.cloud.vmwareengine.v1.LoggingServerName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncGetLoggingServer { + + public static void main(String[] args) throws Exception { + syncGetLoggingServer(); + } + + public static void syncGetLoggingServer() 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()) { + GetLoggingServerRequest request = + GetLoggingServerRequest.newBuilder() + .setName( + LoggingServerName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]") + .toString()) + .build(); + LoggingServer response = vmwareEngineClient.getLoggingServer(request); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetLoggingServer_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getloggingserver/SyncGetLoggingServerLoggingservername.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getloggingserver/SyncGetLoggingServerLoggingservername.java new file mode 100644 index 000000000000..e103881b1220 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getloggingserver/SyncGetLoggingServerLoggingservername.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_GetLoggingServer_Loggingservername_sync] +import com.google.cloud.vmwareengine.v1.LoggingServer; +import com.google.cloud.vmwareengine.v1.LoggingServerName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncGetLoggingServerLoggingservername { + + public static void main(String[] args) throws Exception { + syncGetLoggingServerLoggingservername(); + } + + public static void syncGetLoggingServerLoggingservername() 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()) { + LoggingServerName name = + LoggingServerName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]"); + LoggingServer response = vmwareEngineClient.getLoggingServer(name); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetLoggingServer_Loggingservername_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getloggingserver/SyncGetLoggingServerString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getloggingserver/SyncGetLoggingServerString.java new file mode 100644 index 000000000000..97bca779f36b --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getloggingserver/SyncGetLoggingServerString.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_GetLoggingServer_String_sync] +import com.google.cloud.vmwareengine.v1.LoggingServer; +import com.google.cloud.vmwareengine.v1.LoggingServerName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncGetLoggingServerString { + + public static void main(String[] args) throws Exception { + syncGetLoggingServerString(); + } + + public static void syncGetLoggingServerString() 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 = + LoggingServerName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[LOGGING_SERVER]") + .toString(); + LoggingServer response = vmwareEngineClient.getLoggingServer(name); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetLoggingServer_String_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getmanagementdnszonebinding/AsyncGetManagementDnsZoneBinding.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getmanagementdnszonebinding/AsyncGetManagementDnsZoneBinding.java new file mode 100644 index 000000000000..42c6dd16c71f --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getmanagementdnszonebinding/AsyncGetManagementDnsZoneBinding.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_GetManagementDnsZoneBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest; +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding; +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBindingName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class AsyncGetManagementDnsZoneBinding { + + public static void main(String[] args) throws Exception { + asyncGetManagementDnsZoneBinding(); + } + + public static void asyncGetManagementDnsZoneBinding() 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()) { + GetManagementDnsZoneBindingRequest request = + GetManagementDnsZoneBindingRequest.newBuilder() + .setName( + ManagementDnsZoneBindingName.of( + "[PROJECT]", + "[LOCATION]", + "[PRIVATE_CLOUD]", + "[MANAGEMENT_DNS_ZONE_BINDING]") + .toString()) + .build(); + ApiFuture future = + vmwareEngineClient.getManagementDnsZoneBindingCallable().futureCall(request); + // Do something. + ManagementDnsZoneBinding response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetManagementDnsZoneBinding_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getmanagementdnszonebinding/SyncGetManagementDnsZoneBinding.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getmanagementdnszonebinding/SyncGetManagementDnsZoneBinding.java new file mode 100644 index 000000000000..efe04ba00856 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getmanagementdnszonebinding/SyncGetManagementDnsZoneBinding.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_GetManagementDnsZoneBinding_sync] +import com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest; +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding; +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBindingName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncGetManagementDnsZoneBinding { + + public static void main(String[] args) throws Exception { + syncGetManagementDnsZoneBinding(); + } + + public static void syncGetManagementDnsZoneBinding() 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()) { + GetManagementDnsZoneBindingRequest request = + GetManagementDnsZoneBindingRequest.newBuilder() + .setName( + ManagementDnsZoneBindingName.of( + "[PROJECT]", + "[LOCATION]", + "[PRIVATE_CLOUD]", + "[MANAGEMENT_DNS_ZONE_BINDING]") + .toString()) + .build(); + ManagementDnsZoneBinding response = vmwareEngineClient.getManagementDnsZoneBinding(request); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetManagementDnsZoneBinding_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getmanagementdnszonebinding/SyncGetManagementDnsZoneBindingManagementdnszonebindingname.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getmanagementdnszonebinding/SyncGetManagementDnsZoneBindingManagementdnszonebindingname.java new file mode 100644 index 000000000000..609f5439b2cd --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getmanagementdnszonebinding/SyncGetManagementDnsZoneBindingManagementdnszonebindingname.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_GetManagementDnsZoneBinding_Managementdnszonebindingname_sync] +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding; +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBindingName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncGetManagementDnsZoneBindingManagementdnszonebindingname { + + public static void main(String[] args) throws Exception { + syncGetManagementDnsZoneBindingManagementdnszonebindingname(); + } + + public static void syncGetManagementDnsZoneBindingManagementdnszonebindingname() + 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()) { + ManagementDnsZoneBindingName name = + ManagementDnsZoneBindingName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[MANAGEMENT_DNS_ZONE_BINDING]"); + ManagementDnsZoneBinding response = vmwareEngineClient.getManagementDnsZoneBinding(name); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetManagementDnsZoneBinding_Managementdnszonebindingname_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getmanagementdnszonebinding/SyncGetManagementDnsZoneBindingString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getmanagementdnszonebinding/SyncGetManagementDnsZoneBindingString.java new file mode 100644 index 000000000000..7fe6ea6eb069 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getmanagementdnszonebinding/SyncGetManagementDnsZoneBindingString.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_GetManagementDnsZoneBinding_String_sync] +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding; +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBindingName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncGetManagementDnsZoneBindingString { + + public static void main(String[] args) throws Exception { + syncGetManagementDnsZoneBindingString(); + } + + public static void syncGetManagementDnsZoneBindingString() 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 = + ManagementDnsZoneBindingName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[MANAGEMENT_DNS_ZONE_BINDING]") + .toString(); + ManagementDnsZoneBinding response = vmwareEngineClient.getManagementDnsZoneBinding(name); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetManagementDnsZoneBinding_String_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getnetworkpeering/AsyncGetNetworkPeering.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getnetworkpeering/AsyncGetNetworkPeering.java new file mode 100644 index 000000000000..d9931db69b42 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getnetworkpeering/AsyncGetNetworkPeering.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_GetNetworkPeering_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest; +import com.google.cloud.vmwareengine.v1.NetworkPeering; +import com.google.cloud.vmwareengine.v1.NetworkPeeringName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class AsyncGetNetworkPeering { + + public static void main(String[] args) throws Exception { + asyncGetNetworkPeering(); + } + + public static void asyncGetNetworkPeering() 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()) { + GetNetworkPeeringRequest request = + GetNetworkPeeringRequest.newBuilder() + .setName( + NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]").toString()) + .build(); + ApiFuture future = + vmwareEngineClient.getNetworkPeeringCallable().futureCall(request); + // Do something. + NetworkPeering response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetNetworkPeering_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getnetworkpeering/SyncGetNetworkPeering.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getnetworkpeering/SyncGetNetworkPeering.java new file mode 100644 index 000000000000..6b6f4674e2ae --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getnetworkpeering/SyncGetNetworkPeering.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_GetNetworkPeering_sync] +import com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest; +import com.google.cloud.vmwareengine.v1.NetworkPeering; +import com.google.cloud.vmwareengine.v1.NetworkPeeringName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncGetNetworkPeering { + + public static void main(String[] args) throws Exception { + syncGetNetworkPeering(); + } + + public static void syncGetNetworkPeering() 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()) { + GetNetworkPeeringRequest request = + GetNetworkPeeringRequest.newBuilder() + .setName( + NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]").toString()) + .build(); + NetworkPeering response = vmwareEngineClient.getNetworkPeering(request); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetNetworkPeering_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getnetworkpeering/SyncGetNetworkPeeringNetworkpeeringname.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getnetworkpeering/SyncGetNetworkPeeringNetworkpeeringname.java new file mode 100644 index 000000000000..21c2159cf134 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getnetworkpeering/SyncGetNetworkPeeringNetworkpeeringname.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_GetNetworkPeering_Networkpeeringname_sync] +import com.google.cloud.vmwareengine.v1.NetworkPeering; +import com.google.cloud.vmwareengine.v1.NetworkPeeringName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncGetNetworkPeeringNetworkpeeringname { + + public static void main(String[] args) throws Exception { + syncGetNetworkPeeringNetworkpeeringname(); + } + + public static void syncGetNetworkPeeringNetworkpeeringname() 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()) { + NetworkPeeringName name = + NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]"); + NetworkPeering response = vmwareEngineClient.getNetworkPeering(name); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetNetworkPeering_Networkpeeringname_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getnetworkpeering/SyncGetNetworkPeeringString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getnetworkpeering/SyncGetNetworkPeeringString.java new file mode 100644 index 000000000000..848c844fcc61 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getnetworkpeering/SyncGetNetworkPeeringString.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_GetNetworkPeering_String_sync] +import com.google.cloud.vmwareengine.v1.NetworkPeering; +import com.google.cloud.vmwareengine.v1.NetworkPeeringName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncGetNetworkPeeringString { + + public static void main(String[] args) throws Exception { + syncGetNetworkPeeringString(); + } + + public static void syncGetNetworkPeeringString() 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 = + NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]").toString(); + NetworkPeering response = vmwareEngineClient.getNetworkPeering(name); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetNetworkPeering_String_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getnode/AsyncGetNode.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getnode/AsyncGetNode.java new file mode 100644 index 000000000000..e6d5959340f0 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getnode/AsyncGetNode.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_GetNode_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.GetNodeRequest; +import com.google.cloud.vmwareengine.v1.Node; +import com.google.cloud.vmwareengine.v1.NodeName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class AsyncGetNode { + + public static void main(String[] args) throws Exception { + asyncGetNode(); + } + + public static void asyncGetNode() 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()) { + GetNodeRequest request = + GetNodeRequest.newBuilder() + .setName( + NodeName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]", "[NODE]") + .toString()) + .build(); + ApiFuture future = vmwareEngineClient.getNodeCallable().futureCall(request); + // Do something. + Node response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetNode_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getnode/SyncGetNode.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getnode/SyncGetNode.java new file mode 100644 index 000000000000..3c976bb2d9b8 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getnode/SyncGetNode.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_GetNode_sync] +import com.google.cloud.vmwareengine.v1.GetNodeRequest; +import com.google.cloud.vmwareengine.v1.Node; +import com.google.cloud.vmwareengine.v1.NodeName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncGetNode { + + public static void main(String[] args) throws Exception { + syncGetNode(); + } + + public static void syncGetNode() 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()) { + GetNodeRequest request = + GetNodeRequest.newBuilder() + .setName( + NodeName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]", "[NODE]") + .toString()) + .build(); + Node response = vmwareEngineClient.getNode(request); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetNode_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getnode/SyncGetNodeNodename.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getnode/SyncGetNodeNodename.java new file mode 100644 index 000000000000..79507cc511ba --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getnode/SyncGetNodeNodename.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_GetNode_Nodename_sync] +import com.google.cloud.vmwareengine.v1.Node; +import com.google.cloud.vmwareengine.v1.NodeName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncGetNodeNodename { + + public static void main(String[] args) throws Exception { + syncGetNodeNodename(); + } + + public static void syncGetNodeNodename() 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()) { + NodeName name = + NodeName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]", "[NODE]"); + Node response = vmwareEngineClient.getNode(name); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetNode_Nodename_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getnode/SyncGetNodeString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getnode/SyncGetNodeString.java new file mode 100644 index 000000000000..bec6e0982d04 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/getnode/SyncGetNodeString.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_GetNode_String_sync] +import com.google.cloud.vmwareengine.v1.Node; +import com.google.cloud.vmwareengine.v1.NodeName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncGetNodeString { + + public static void main(String[] args) throws Exception { + syncGetNodeString(); + } + + public static void syncGetNodeString() 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 = + NodeName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]", "[NODE]") + .toString(); + Node response = vmwareEngineClient.getNode(name); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GetNode_String_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/grantdnsbindpermission/AsyncGrantDnsBindPermission.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/grantdnsbindpermission/AsyncGrantDnsBindPermission.java new file mode 100644 index 000000000000..33c70f3c5b31 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/grantdnsbindpermission/AsyncGrantDnsBindPermission.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_GrantDnsBindPermission_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.DnsBindPermissionName; +import com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest; +import com.google.cloud.vmwareengine.v1.Principal; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.longrunning.Operation; + +public class AsyncGrantDnsBindPermission { + + public static void main(String[] args) throws Exception { + asyncGrantDnsBindPermission(); + } + + public static void asyncGrantDnsBindPermission() 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()) { + GrantDnsBindPermissionRequest request = + GrantDnsBindPermissionRequest.newBuilder() + .setName(DnsBindPermissionName.of("[PROJECT]", "[LOCATION]").toString()) + .setPrincipal(Principal.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + vmwareEngineClient.grantDnsBindPermissionCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GrantDnsBindPermission_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/grantdnsbindpermission/AsyncGrantDnsBindPermissionLRO.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/grantdnsbindpermission/AsyncGrantDnsBindPermissionLRO.java new file mode 100644 index 000000000000..ef907feac987 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/grantdnsbindpermission/AsyncGrantDnsBindPermissionLRO.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_GrantDnsBindPermission_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vmwareengine.v1.DnsBindPermission; +import com.google.cloud.vmwareengine.v1.DnsBindPermissionName; +import com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest; +import com.google.cloud.vmwareengine.v1.OperationMetadata; +import com.google.cloud.vmwareengine.v1.Principal; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class AsyncGrantDnsBindPermissionLRO { + + public static void main(String[] args) throws Exception { + asyncGrantDnsBindPermissionLRO(); + } + + public static void asyncGrantDnsBindPermissionLRO() 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()) { + GrantDnsBindPermissionRequest request = + GrantDnsBindPermissionRequest.newBuilder() + .setName(DnsBindPermissionName.of("[PROJECT]", "[LOCATION]").toString()) + .setPrincipal(Principal.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + vmwareEngineClient.grantDnsBindPermissionOperationCallable().futureCall(request); + // Do something. + DnsBindPermission response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GrantDnsBindPermission_LRO_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/grantdnsbindpermission/SyncGrantDnsBindPermission.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/grantdnsbindpermission/SyncGrantDnsBindPermission.java new file mode 100644 index 000000000000..b614889deba7 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/grantdnsbindpermission/SyncGrantDnsBindPermission.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_GrantDnsBindPermission_sync] +import com.google.cloud.vmwareengine.v1.DnsBindPermission; +import com.google.cloud.vmwareengine.v1.DnsBindPermissionName; +import com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest; +import com.google.cloud.vmwareengine.v1.Principal; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncGrantDnsBindPermission { + + public static void main(String[] args) throws Exception { + syncGrantDnsBindPermission(); + } + + public static void syncGrantDnsBindPermission() 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()) { + GrantDnsBindPermissionRequest request = + GrantDnsBindPermissionRequest.newBuilder() + .setName(DnsBindPermissionName.of("[PROJECT]", "[LOCATION]").toString()) + .setPrincipal(Principal.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + DnsBindPermission response = vmwareEngineClient.grantDnsBindPermissionAsync(request).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GrantDnsBindPermission_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/grantdnsbindpermission/SyncGrantDnsBindPermissionDnsbindpermissionnamePrincipal.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/grantdnsbindpermission/SyncGrantDnsBindPermissionDnsbindpermissionnamePrincipal.java new file mode 100644 index 000000000000..36024379fc5f --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/grantdnsbindpermission/SyncGrantDnsBindPermissionDnsbindpermissionnamePrincipal.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_GrantDnsBindPermission_DnsbindpermissionnamePrincipal_sync] +import com.google.cloud.vmwareengine.v1.DnsBindPermission; +import com.google.cloud.vmwareengine.v1.DnsBindPermissionName; +import com.google.cloud.vmwareengine.v1.Principal; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncGrantDnsBindPermissionDnsbindpermissionnamePrincipal { + + public static void main(String[] args) throws Exception { + syncGrantDnsBindPermissionDnsbindpermissionnamePrincipal(); + } + + public static void syncGrantDnsBindPermissionDnsbindpermissionnamePrincipal() 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()) { + DnsBindPermissionName name = DnsBindPermissionName.of("[PROJECT]", "[LOCATION]"); + Principal principal = Principal.newBuilder().build(); + DnsBindPermission response = + vmwareEngineClient.grantDnsBindPermissionAsync(name, principal).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GrantDnsBindPermission_DnsbindpermissionnamePrincipal_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/grantdnsbindpermission/SyncGrantDnsBindPermissionStringPrincipal.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/grantdnsbindpermission/SyncGrantDnsBindPermissionStringPrincipal.java new file mode 100644 index 000000000000..43df38ce1840 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/grantdnsbindpermission/SyncGrantDnsBindPermissionStringPrincipal.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_GrantDnsBindPermission_StringPrincipal_sync] +import com.google.cloud.vmwareengine.v1.DnsBindPermission; +import com.google.cloud.vmwareengine.v1.DnsBindPermissionName; +import com.google.cloud.vmwareengine.v1.Principal; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncGrantDnsBindPermissionStringPrincipal { + + public static void main(String[] args) throws Exception { + syncGrantDnsBindPermissionStringPrincipal(); + } + + public static void syncGrantDnsBindPermissionStringPrincipal() 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 = DnsBindPermissionName.of("[PROJECT]", "[LOCATION]").toString(); + Principal principal = Principal.newBuilder().build(); + DnsBindPermission response = + vmwareEngineClient.grantDnsBindPermissionAsync(name, principal).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_GrantDnsBindPermission_StringPrincipal_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listexternalaccessrules/AsyncListExternalAccessRules.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listexternalaccessrules/AsyncListExternalAccessRules.java new file mode 100644 index 000000000000..23355a062938 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listexternalaccessrules/AsyncListExternalAccessRules.java @@ -0,0 +1,57 @@ +/* + * 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_ListExternalAccessRules_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.ExternalAccessRule; +import com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest; +import com.google.cloud.vmwareengine.v1.NetworkPolicyName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class AsyncListExternalAccessRules { + + public static void main(String[] args) throws Exception { + asyncListExternalAccessRules(); + } + + public static void asyncListExternalAccessRules() 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()) { + ListExternalAccessRulesRequest request = + ListExternalAccessRulesRequest.newBuilder() + .setParent( + NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + vmwareEngineClient.listExternalAccessRulesPagedCallable().futureCall(request); + // Do something. + for (ExternalAccessRule element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListExternalAccessRules_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listexternalaccessrules/AsyncListExternalAccessRulesPaged.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listexternalaccessrules/AsyncListExternalAccessRulesPaged.java new file mode 100644 index 000000000000..8612895df437 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listexternalaccessrules/AsyncListExternalAccessRulesPaged.java @@ -0,0 +1,65 @@ +/* + * 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_ListExternalAccessRules_Paged_async] +import com.google.cloud.vmwareengine.v1.ExternalAccessRule; +import com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest; +import com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse; +import com.google.cloud.vmwareengine.v1.NetworkPolicyName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.common.base.Strings; + +public class AsyncListExternalAccessRulesPaged { + + public static void main(String[] args) throws Exception { + asyncListExternalAccessRulesPaged(); + } + + public static void asyncListExternalAccessRulesPaged() 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()) { + ListExternalAccessRulesRequest request = + ListExternalAccessRulesRequest.newBuilder() + .setParent( + NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListExternalAccessRulesResponse response = + vmwareEngineClient.listExternalAccessRulesCallable().call(request); + for (ExternalAccessRule element : response.getExternalAccessRulesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListExternalAccessRules_Paged_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listexternalaccessrules/SyncListExternalAccessRules.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listexternalaccessrules/SyncListExternalAccessRules.java new file mode 100644 index 000000000000..d722d60faf4b --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listexternalaccessrules/SyncListExternalAccessRules.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_ListExternalAccessRules_sync] +import com.google.cloud.vmwareengine.v1.ExternalAccessRule; +import com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest; +import com.google.cloud.vmwareengine.v1.NetworkPolicyName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncListExternalAccessRules { + + public static void main(String[] args) throws Exception { + syncListExternalAccessRules(); + } + + public static void syncListExternalAccessRules() 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()) { + ListExternalAccessRulesRequest request = + ListExternalAccessRulesRequest.newBuilder() + .setParent( + NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (ExternalAccessRule element : + vmwareEngineClient.listExternalAccessRules(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListExternalAccessRules_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listexternalaccessrules/SyncListExternalAccessRulesNetworkpolicyname.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listexternalaccessrules/SyncListExternalAccessRulesNetworkpolicyname.java new file mode 100644 index 000000000000..76925ce799a3 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listexternalaccessrules/SyncListExternalAccessRulesNetworkpolicyname.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_ListExternalAccessRules_Networkpolicyname_sync] +import com.google.cloud.vmwareengine.v1.ExternalAccessRule; +import com.google.cloud.vmwareengine.v1.NetworkPolicyName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncListExternalAccessRulesNetworkpolicyname { + + public static void main(String[] args) throws Exception { + syncListExternalAccessRulesNetworkpolicyname(); + } + + public static void syncListExternalAccessRulesNetworkpolicyname() 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()) { + NetworkPolicyName parent = + NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); + for (ExternalAccessRule element : + vmwareEngineClient.listExternalAccessRules(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListExternalAccessRules_Networkpolicyname_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listexternalaccessrules/SyncListExternalAccessRulesString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listexternalaccessrules/SyncListExternalAccessRulesString.java new file mode 100644 index 000000000000..b03706661cd1 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listexternalaccessrules/SyncListExternalAccessRulesString.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_ListExternalAccessRules_String_sync] +import com.google.cloud.vmwareengine.v1.ExternalAccessRule; +import com.google.cloud.vmwareengine.v1.NetworkPolicyName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncListExternalAccessRulesString { + + public static void main(String[] args) throws Exception { + syncListExternalAccessRulesString(); + } + + public static void syncListExternalAccessRulesString() 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 = + NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString(); + for (ExternalAccessRule element : + vmwareEngineClient.listExternalAccessRules(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListExternalAccessRules_String_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listexternaladdresses/AsyncListExternalAddresses.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listexternaladdresses/AsyncListExternalAddresses.java new file mode 100644 index 000000000000..29d91a5d18e8 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listexternaladdresses/AsyncListExternalAddresses.java @@ -0,0 +1,57 @@ +/* + * 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_ListExternalAddresses_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.ExternalAddress; +import com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest; +import com.google.cloud.vmwareengine.v1.PrivateCloudName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class AsyncListExternalAddresses { + + public static void main(String[] args) throws Exception { + asyncListExternalAddresses(); + } + + public static void asyncListExternalAddresses() 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()) { + ListExternalAddressesRequest request = + ListExternalAddressesRequest.newBuilder() + .setParent( + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + vmwareEngineClient.listExternalAddressesPagedCallable().futureCall(request); + // Do something. + for (ExternalAddress element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListExternalAddresses_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listexternaladdresses/AsyncListExternalAddressesPaged.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listexternaladdresses/AsyncListExternalAddressesPaged.java new file mode 100644 index 000000000000..be3daf7601bc --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listexternaladdresses/AsyncListExternalAddressesPaged.java @@ -0,0 +1,65 @@ +/* + * 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_ListExternalAddresses_Paged_async] +import com.google.cloud.vmwareengine.v1.ExternalAddress; +import com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest; +import com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse; +import com.google.cloud.vmwareengine.v1.PrivateCloudName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.common.base.Strings; + +public class AsyncListExternalAddressesPaged { + + public static void main(String[] args) throws Exception { + asyncListExternalAddressesPaged(); + } + + public static void asyncListExternalAddressesPaged() 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()) { + ListExternalAddressesRequest request = + ListExternalAddressesRequest.newBuilder() + .setParent( + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListExternalAddressesResponse response = + vmwareEngineClient.listExternalAddressesCallable().call(request); + for (ExternalAddress element : response.getExternalAddressesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListExternalAddresses_Paged_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listexternaladdresses/SyncListExternalAddresses.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listexternaladdresses/SyncListExternalAddresses.java new file mode 100644 index 000000000000..5e2db5f2f4f5 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listexternaladdresses/SyncListExternalAddresses.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_ListExternalAddresses_sync] +import com.google.cloud.vmwareengine.v1.ExternalAddress; +import com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest; +import com.google.cloud.vmwareengine.v1.PrivateCloudName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncListExternalAddresses { + + public static void main(String[] args) throws Exception { + syncListExternalAddresses(); + } + + public static void syncListExternalAddresses() 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()) { + ListExternalAddressesRequest request = + ListExternalAddressesRequest.newBuilder() + .setParent( + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (ExternalAddress element : + vmwareEngineClient.listExternalAddresses(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListExternalAddresses_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listexternaladdresses/SyncListExternalAddressesPrivatecloudname.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listexternaladdresses/SyncListExternalAddressesPrivatecloudname.java new file mode 100644 index 000000000000..07057ae37a25 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listexternaladdresses/SyncListExternalAddressesPrivatecloudname.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_ListExternalAddresses_Privatecloudname_sync] +import com.google.cloud.vmwareengine.v1.ExternalAddress; +import com.google.cloud.vmwareengine.v1.PrivateCloudName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncListExternalAddressesPrivatecloudname { + + public static void main(String[] args) throws Exception { + syncListExternalAddressesPrivatecloudname(); + } + + public static void syncListExternalAddressesPrivatecloudname() 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()) { + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + for (ExternalAddress element : + vmwareEngineClient.listExternalAddresses(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListExternalAddresses_Privatecloudname_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listexternaladdresses/SyncListExternalAddressesString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listexternaladdresses/SyncListExternalAddressesString.java new file mode 100644 index 000000000000..57f438a9aa70 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listexternaladdresses/SyncListExternalAddressesString.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_ListExternalAddresses_String_sync] +import com.google.cloud.vmwareengine.v1.ExternalAddress; +import com.google.cloud.vmwareengine.v1.PrivateCloudName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncListExternalAddressesString { + + public static void main(String[] args) throws Exception { + syncListExternalAddressesString(); + } + + public static void syncListExternalAddressesString() 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 = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString(); + for (ExternalAddress element : + vmwareEngineClient.listExternalAddresses(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListExternalAddresses_String_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listloggingservers/AsyncListLoggingServers.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listloggingservers/AsyncListLoggingServers.java new file mode 100644 index 000000000000..5944d1043c0a --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listloggingservers/AsyncListLoggingServers.java @@ -0,0 +1,57 @@ +/* + * 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_ListLoggingServers_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.ListLoggingServersRequest; +import com.google.cloud.vmwareengine.v1.LoggingServer; +import com.google.cloud.vmwareengine.v1.PrivateCloudName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class AsyncListLoggingServers { + + public static void main(String[] args) throws Exception { + asyncListLoggingServers(); + } + + public static void asyncListLoggingServers() 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()) { + ListLoggingServersRequest request = + ListLoggingServersRequest.newBuilder() + .setParent( + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + vmwareEngineClient.listLoggingServersPagedCallable().futureCall(request); + // Do something. + for (LoggingServer element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListLoggingServers_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listloggingservers/AsyncListLoggingServersPaged.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listloggingservers/AsyncListLoggingServersPaged.java new file mode 100644 index 000000000000..e33a9baa4110 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listloggingservers/AsyncListLoggingServersPaged.java @@ -0,0 +1,65 @@ +/* + * 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_ListLoggingServers_Paged_async] +import com.google.cloud.vmwareengine.v1.ListLoggingServersRequest; +import com.google.cloud.vmwareengine.v1.ListLoggingServersResponse; +import com.google.cloud.vmwareengine.v1.LoggingServer; +import com.google.cloud.vmwareengine.v1.PrivateCloudName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.common.base.Strings; + +public class AsyncListLoggingServersPaged { + + public static void main(String[] args) throws Exception { + asyncListLoggingServersPaged(); + } + + public static void asyncListLoggingServersPaged() 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()) { + ListLoggingServersRequest request = + ListLoggingServersRequest.newBuilder() + .setParent( + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListLoggingServersResponse response = + vmwareEngineClient.listLoggingServersCallable().call(request); + for (LoggingServer element : response.getLoggingServersList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListLoggingServers_Paged_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listloggingservers/SyncListLoggingServers.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listloggingservers/SyncListLoggingServers.java new file mode 100644 index 000000000000..81035a83a058 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listloggingservers/SyncListLoggingServers.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_ListLoggingServers_sync] +import com.google.cloud.vmwareengine.v1.ListLoggingServersRequest; +import com.google.cloud.vmwareengine.v1.LoggingServer; +import com.google.cloud.vmwareengine.v1.PrivateCloudName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncListLoggingServers { + + public static void main(String[] args) throws Exception { + syncListLoggingServers(); + } + + public static void syncListLoggingServers() 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()) { + ListLoggingServersRequest request = + ListLoggingServersRequest.newBuilder() + .setParent( + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (LoggingServer element : vmwareEngineClient.listLoggingServers(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListLoggingServers_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listloggingservers/SyncListLoggingServersPrivatecloudname.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listloggingservers/SyncListLoggingServersPrivatecloudname.java new file mode 100644 index 000000000000..23a40d0c5417 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listloggingservers/SyncListLoggingServersPrivatecloudname.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_ListLoggingServers_Privatecloudname_sync] +import com.google.cloud.vmwareengine.v1.LoggingServer; +import com.google.cloud.vmwareengine.v1.PrivateCloudName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncListLoggingServersPrivatecloudname { + + public static void main(String[] args) throws Exception { + syncListLoggingServersPrivatecloudname(); + } + + public static void syncListLoggingServersPrivatecloudname() 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()) { + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + for (LoggingServer element : vmwareEngineClient.listLoggingServers(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListLoggingServers_Privatecloudname_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listloggingservers/SyncListLoggingServersString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listloggingservers/SyncListLoggingServersString.java new file mode 100644 index 000000000000..8e1c1aeae225 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listloggingservers/SyncListLoggingServersString.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_ListLoggingServers_String_sync] +import com.google.cloud.vmwareengine.v1.LoggingServer; +import com.google.cloud.vmwareengine.v1.PrivateCloudName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncListLoggingServersString { + + public static void main(String[] args) throws Exception { + syncListLoggingServersString(); + } + + public static void syncListLoggingServersString() 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 = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString(); + for (LoggingServer element : vmwareEngineClient.listLoggingServers(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListLoggingServers_String_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listmanagementdnszonebindings/AsyncListManagementDnsZoneBindings.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listmanagementdnszonebindings/AsyncListManagementDnsZoneBindings.java new file mode 100644 index 000000000000..d3b1e120439b --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listmanagementdnszonebindings/AsyncListManagementDnsZoneBindings.java @@ -0,0 +1,57 @@ +/* + * 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_ListManagementDnsZoneBindings_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest; +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding; +import com.google.cloud.vmwareengine.v1.PrivateCloudName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class AsyncListManagementDnsZoneBindings { + + public static void main(String[] args) throws Exception { + asyncListManagementDnsZoneBindings(); + } + + public static void asyncListManagementDnsZoneBindings() 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()) { + ListManagementDnsZoneBindingsRequest request = + ListManagementDnsZoneBindingsRequest.newBuilder() + .setParent( + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + vmwareEngineClient.listManagementDnsZoneBindingsPagedCallable().futureCall(request); + // Do something. + for (ManagementDnsZoneBinding element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListManagementDnsZoneBindings_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listmanagementdnszonebindings/AsyncListManagementDnsZoneBindingsPaged.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listmanagementdnszonebindings/AsyncListManagementDnsZoneBindingsPaged.java new file mode 100644 index 000000000000..09e8719ffcaa --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listmanagementdnszonebindings/AsyncListManagementDnsZoneBindingsPaged.java @@ -0,0 +1,65 @@ +/* + * 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_ListManagementDnsZoneBindings_Paged_async] +import com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest; +import com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse; +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding; +import com.google.cloud.vmwareengine.v1.PrivateCloudName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.common.base.Strings; + +public class AsyncListManagementDnsZoneBindingsPaged { + + public static void main(String[] args) throws Exception { + asyncListManagementDnsZoneBindingsPaged(); + } + + public static void asyncListManagementDnsZoneBindingsPaged() 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()) { + ListManagementDnsZoneBindingsRequest request = + ListManagementDnsZoneBindingsRequest.newBuilder() + .setParent( + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListManagementDnsZoneBindingsResponse response = + vmwareEngineClient.listManagementDnsZoneBindingsCallable().call(request); + for (ManagementDnsZoneBinding element : response.getManagementDnsZoneBindingsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListManagementDnsZoneBindings_Paged_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listmanagementdnszonebindings/SyncListManagementDnsZoneBindings.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listmanagementdnszonebindings/SyncListManagementDnsZoneBindings.java new file mode 100644 index 000000000000..5fd0d4275d38 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listmanagementdnszonebindings/SyncListManagementDnsZoneBindings.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_ListManagementDnsZoneBindings_sync] +import com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest; +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding; +import com.google.cloud.vmwareengine.v1.PrivateCloudName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncListManagementDnsZoneBindings { + + public static void main(String[] args) throws Exception { + syncListManagementDnsZoneBindings(); + } + + public static void syncListManagementDnsZoneBindings() 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()) { + ListManagementDnsZoneBindingsRequest request = + ListManagementDnsZoneBindingsRequest.newBuilder() + .setParent( + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (ManagementDnsZoneBinding element : + vmwareEngineClient.listManagementDnsZoneBindings(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListManagementDnsZoneBindings_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listmanagementdnszonebindings/SyncListManagementDnsZoneBindingsPrivatecloudname.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listmanagementdnszonebindings/SyncListManagementDnsZoneBindingsPrivatecloudname.java new file mode 100644 index 000000000000..61c2b4837e1b --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listmanagementdnszonebindings/SyncListManagementDnsZoneBindingsPrivatecloudname.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_ListManagementDnsZoneBindings_Privatecloudname_sync] +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding; +import com.google.cloud.vmwareengine.v1.PrivateCloudName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncListManagementDnsZoneBindingsPrivatecloudname { + + public static void main(String[] args) throws Exception { + syncListManagementDnsZoneBindingsPrivatecloudname(); + } + + public static void syncListManagementDnsZoneBindingsPrivatecloudname() 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()) { + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + for (ManagementDnsZoneBinding element : + vmwareEngineClient.listManagementDnsZoneBindings(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListManagementDnsZoneBindings_Privatecloudname_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listmanagementdnszonebindings/SyncListManagementDnsZoneBindingsString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listmanagementdnszonebindings/SyncListManagementDnsZoneBindingsString.java new file mode 100644 index 000000000000..1c66f6b86c27 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listmanagementdnszonebindings/SyncListManagementDnsZoneBindingsString.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_ListManagementDnsZoneBindings_String_sync] +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding; +import com.google.cloud.vmwareengine.v1.PrivateCloudName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncListManagementDnsZoneBindingsString { + + public static void main(String[] args) throws Exception { + syncListManagementDnsZoneBindingsString(); + } + + public static void syncListManagementDnsZoneBindingsString() 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 = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString(); + for (ManagementDnsZoneBinding element : + vmwareEngineClient.listManagementDnsZoneBindings(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListManagementDnsZoneBindings_String_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listnetworkpeerings/AsyncListNetworkPeerings.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listnetworkpeerings/AsyncListNetworkPeerings.java new file mode 100644 index 000000000000..4c284c9c7d04 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listnetworkpeerings/AsyncListNetworkPeerings.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_ListNetworkPeerings_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest; +import com.google.cloud.vmwareengine.v1.LocationName; +import com.google.cloud.vmwareengine.v1.NetworkPeering; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class AsyncListNetworkPeerings { + + public static void main(String[] args) throws Exception { + asyncListNetworkPeerings(); + } + + public static void asyncListNetworkPeerings() 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()) { + ListNetworkPeeringsRequest request = + ListNetworkPeeringsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + vmwareEngineClient.listNetworkPeeringsPagedCallable().futureCall(request); + // Do something. + for (NetworkPeering element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListNetworkPeerings_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listnetworkpeerings/AsyncListNetworkPeeringsPaged.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listnetworkpeerings/AsyncListNetworkPeeringsPaged.java new file mode 100644 index 000000000000..477894e64845 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listnetworkpeerings/AsyncListNetworkPeeringsPaged.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_ListNetworkPeerings_Paged_async] +import com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest; +import com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse; +import com.google.cloud.vmwareengine.v1.LocationName; +import com.google.cloud.vmwareengine.v1.NetworkPeering; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.common.base.Strings; + +public class AsyncListNetworkPeeringsPaged { + + public static void main(String[] args) throws Exception { + asyncListNetworkPeeringsPaged(); + } + + public static void asyncListNetworkPeeringsPaged() 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()) { + ListNetworkPeeringsRequest request = + ListNetworkPeeringsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListNetworkPeeringsResponse response = + vmwareEngineClient.listNetworkPeeringsCallable().call(request); + for (NetworkPeering element : response.getNetworkPeeringsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListNetworkPeerings_Paged_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listnetworkpeerings/SyncListNetworkPeerings.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listnetworkpeerings/SyncListNetworkPeerings.java new file mode 100644 index 000000000000..57922c67ab5a --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listnetworkpeerings/SyncListNetworkPeerings.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_ListNetworkPeerings_sync] +import com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest; +import com.google.cloud.vmwareengine.v1.LocationName; +import com.google.cloud.vmwareengine.v1.NetworkPeering; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncListNetworkPeerings { + + public static void main(String[] args) throws Exception { + syncListNetworkPeerings(); + } + + public static void syncListNetworkPeerings() 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()) { + ListNetworkPeeringsRequest request = + ListNetworkPeeringsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (NetworkPeering element : vmwareEngineClient.listNetworkPeerings(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListNetworkPeerings_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listnetworkpeerings/SyncListNetworkPeeringsLocationname.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listnetworkpeerings/SyncListNetworkPeeringsLocationname.java new file mode 100644 index 000000000000..eb397e24de02 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listnetworkpeerings/SyncListNetworkPeeringsLocationname.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_ListNetworkPeerings_Locationname_sync] +import com.google.cloud.vmwareengine.v1.LocationName; +import com.google.cloud.vmwareengine.v1.NetworkPeering; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncListNetworkPeeringsLocationname { + + public static void main(String[] args) throws Exception { + syncListNetworkPeeringsLocationname(); + } + + public static void syncListNetworkPeeringsLocationname() 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 (NetworkPeering element : vmwareEngineClient.listNetworkPeerings(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListNetworkPeerings_Locationname_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listnetworkpeerings/SyncListNetworkPeeringsString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listnetworkpeerings/SyncListNetworkPeeringsString.java new file mode 100644 index 000000000000..6578ef48f147 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listnetworkpeerings/SyncListNetworkPeeringsString.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_ListNetworkPeerings_String_sync] +import com.google.cloud.vmwareengine.v1.LocationName; +import com.google.cloud.vmwareengine.v1.NetworkPeering; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncListNetworkPeeringsString { + + public static void main(String[] args) throws Exception { + syncListNetworkPeeringsString(); + } + + public static void syncListNetworkPeeringsString() 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 (NetworkPeering element : vmwareEngineClient.listNetworkPeerings(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListNetworkPeerings_String_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listnodes/AsyncListNodes.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listnodes/AsyncListNodes.java new file mode 100644 index 000000000000..191dde3b4fac --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listnodes/AsyncListNodes.java @@ -0,0 +1,55 @@ +/* + * 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_ListNodes_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.ClusterName; +import com.google.cloud.vmwareengine.v1.ListNodesRequest; +import com.google.cloud.vmwareengine.v1.Node; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class AsyncListNodes { + + public static void main(String[] args) throws Exception { + asyncListNodes(); + } + + public static void asyncListNodes() 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()) { + ListNodesRequest request = + ListNodesRequest.newBuilder() + .setParent( + ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = vmwareEngineClient.listNodesPagedCallable().futureCall(request); + // Do something. + for (Node element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListNodes_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listnodes/AsyncListNodesPaged.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listnodes/AsyncListNodesPaged.java new file mode 100644 index 000000000000..caa4e1d63347 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listnodes/AsyncListNodesPaged.java @@ -0,0 +1,63 @@ +/* + * 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_ListNodes_Paged_async] +import com.google.cloud.vmwareengine.v1.ClusterName; +import com.google.cloud.vmwareengine.v1.ListNodesRequest; +import com.google.cloud.vmwareengine.v1.ListNodesResponse; +import com.google.cloud.vmwareengine.v1.Node; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.common.base.Strings; + +public class AsyncListNodesPaged { + + public static void main(String[] args) throws Exception { + asyncListNodesPaged(); + } + + public static void asyncListNodesPaged() 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()) { + ListNodesRequest request = + ListNodesRequest.newBuilder() + .setParent( + ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListNodesResponse response = vmwareEngineClient.listNodesCallable().call(request); + for (Node element : response.getNodesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListNodes_Paged_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listnodes/SyncListNodes.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listnodes/SyncListNodes.java new file mode 100644 index 000000000000..c27de88f57a0 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listnodes/SyncListNodes.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_ListNodes_sync] +import com.google.cloud.vmwareengine.v1.ClusterName; +import com.google.cloud.vmwareengine.v1.ListNodesRequest; +import com.google.cloud.vmwareengine.v1.Node; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncListNodes { + + public static void main(String[] args) throws Exception { + syncListNodes(); + } + + public static void syncListNodes() 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()) { + ListNodesRequest request = + ListNodesRequest.newBuilder() + .setParent( + ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Node element : vmwareEngineClient.listNodes(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListNodes_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listnodes/SyncListNodesClustername.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listnodes/SyncListNodesClustername.java new file mode 100644 index 000000000000..0e98e15e20ab --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listnodes/SyncListNodesClustername.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_ListNodes_Clustername_sync] +import com.google.cloud.vmwareengine.v1.ClusterName; +import com.google.cloud.vmwareengine.v1.Node; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncListNodesClustername { + + public static void main(String[] args) throws Exception { + syncListNodesClustername(); + } + + public static void syncListNodesClustername() 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()) { + ClusterName parent = + ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]"); + for (Node element : vmwareEngineClient.listNodes(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListNodes_Clustername_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listnodes/SyncListNodesString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listnodes/SyncListNodesString.java new file mode 100644 index 000000000000..7a6b982fe198 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listnodes/SyncListNodesString.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_ListNodes_String_sync] +import com.google.cloud.vmwareengine.v1.ClusterName; +import com.google.cloud.vmwareengine.v1.Node; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncListNodesString { + + public static void main(String[] args) throws Exception { + syncListNodesString(); + } + + public static void syncListNodesString() 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 = + ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]").toString(); + for (Node element : vmwareEngineClient.listNodes(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListNodes_String_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listpeeringroutes/AsyncListPeeringRoutes.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listpeeringroutes/AsyncListPeeringRoutes.java new file mode 100644 index 000000000000..ae5ddfd69838 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listpeeringroutes/AsyncListPeeringRoutes.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_ListPeeringRoutes_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest; +import com.google.cloud.vmwareengine.v1.NetworkPeeringName; +import com.google.cloud.vmwareengine.v1.PeeringRoute; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class AsyncListPeeringRoutes { + + public static void main(String[] args) throws Exception { + asyncListPeeringRoutes(); + } + + public static void asyncListPeeringRoutes() 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()) { + ListPeeringRoutesRequest request = + ListPeeringRoutesRequest.newBuilder() + .setParent( + NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + vmwareEngineClient.listPeeringRoutesPagedCallable().futureCall(request); + // Do something. + for (PeeringRoute element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListPeeringRoutes_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listpeeringroutes/AsyncListPeeringRoutesPaged.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listpeeringroutes/AsyncListPeeringRoutesPaged.java new file mode 100644 index 000000000000..139716e89796 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listpeeringroutes/AsyncListPeeringRoutesPaged.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_ListPeeringRoutes_Paged_async] +import com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest; +import com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse; +import com.google.cloud.vmwareengine.v1.NetworkPeeringName; +import com.google.cloud.vmwareengine.v1.PeeringRoute; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.common.base.Strings; + +public class AsyncListPeeringRoutesPaged { + + public static void main(String[] args) throws Exception { + asyncListPeeringRoutesPaged(); + } + + public static void asyncListPeeringRoutesPaged() 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()) { + ListPeeringRoutesRequest request = + ListPeeringRoutesRequest.newBuilder() + .setParent( + NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListPeeringRoutesResponse response = + vmwareEngineClient.listPeeringRoutesCallable().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_ListPeeringRoutes_Paged_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listpeeringroutes/SyncListPeeringRoutes.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listpeeringroutes/SyncListPeeringRoutes.java new file mode 100644 index 000000000000..9ca67ab1f1f8 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listpeeringroutes/SyncListPeeringRoutes.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_ListPeeringRoutes_sync] +import com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest; +import com.google.cloud.vmwareengine.v1.NetworkPeeringName; +import com.google.cloud.vmwareengine.v1.PeeringRoute; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncListPeeringRoutes { + + public static void main(String[] args) throws Exception { + syncListPeeringRoutes(); + } + + public static void syncListPeeringRoutes() 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()) { + ListPeeringRoutesRequest request = + ListPeeringRoutesRequest.newBuilder() + .setParent( + NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (PeeringRoute element : vmwareEngineClient.listPeeringRoutes(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListPeeringRoutes_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listpeeringroutes/SyncListPeeringRoutesNetworkpeeringname.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listpeeringroutes/SyncListPeeringRoutesNetworkpeeringname.java new file mode 100644 index 000000000000..c6641363e7f9 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listpeeringroutes/SyncListPeeringRoutesNetworkpeeringname.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_ListPeeringRoutes_Networkpeeringname_sync] +import com.google.cloud.vmwareengine.v1.NetworkPeeringName; +import com.google.cloud.vmwareengine.v1.PeeringRoute; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncListPeeringRoutesNetworkpeeringname { + + public static void main(String[] args) throws Exception { + syncListPeeringRoutesNetworkpeeringname(); + } + + public static void syncListPeeringRoutesNetworkpeeringname() 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()) { + NetworkPeeringName parent = + NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]"); + for (PeeringRoute element : vmwareEngineClient.listPeeringRoutes(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListPeeringRoutes_Networkpeeringname_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listpeeringroutes/SyncListPeeringRoutesString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listpeeringroutes/SyncListPeeringRoutesString.java new file mode 100644 index 000000000000..e8137ee602c2 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/listpeeringroutes/SyncListPeeringRoutesString.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_ListPeeringRoutes_String_sync] +import com.google.cloud.vmwareengine.v1.NetworkPeeringName; +import com.google.cloud.vmwareengine.v1.PeeringRoute; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncListPeeringRoutesString { + + public static void main(String[] args) throws Exception { + syncListPeeringRoutesString(); + } + + public static void syncListPeeringRoutesString() 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 = + NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]").toString(); + for (PeeringRoute element : vmwareEngineClient.listPeeringRoutes(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_ListPeeringRoutes_String_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/repairmanagementdnszonebinding/AsyncRepairManagementDnsZoneBinding.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/repairmanagementdnszonebinding/AsyncRepairManagementDnsZoneBinding.java new file mode 100644 index 000000000000..00b1b8ca24e9 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/repairmanagementdnszonebinding/AsyncRepairManagementDnsZoneBinding.java @@ -0,0 +1,57 @@ +/* + * 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_RepairManagementDnsZoneBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBindingName; +import com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.longrunning.Operation; + +public class AsyncRepairManagementDnsZoneBinding { + + public static void main(String[] args) throws Exception { + asyncRepairManagementDnsZoneBinding(); + } + + public static void asyncRepairManagementDnsZoneBinding() 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()) { + RepairManagementDnsZoneBindingRequest request = + RepairManagementDnsZoneBindingRequest.newBuilder() + .setName( + ManagementDnsZoneBindingName.of( + "[PROJECT]", + "[LOCATION]", + "[PRIVATE_CLOUD]", + "[MANAGEMENT_DNS_ZONE_BINDING]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + vmwareEngineClient.repairManagementDnsZoneBindingCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_RepairManagementDnsZoneBinding_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/repairmanagementdnszonebinding/AsyncRepairManagementDnsZoneBindingLRO.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/repairmanagementdnszonebinding/AsyncRepairManagementDnsZoneBindingLRO.java new file mode 100644 index 000000000000..a7cd85fc53ca --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/repairmanagementdnszonebinding/AsyncRepairManagementDnsZoneBindingLRO.java @@ -0,0 +1,58 @@ +/* + * 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_RepairManagementDnsZoneBinding_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding; +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBindingName; +import com.google.cloud.vmwareengine.v1.OperationMetadata; +import com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class AsyncRepairManagementDnsZoneBindingLRO { + + public static void main(String[] args) throws Exception { + asyncRepairManagementDnsZoneBindingLRO(); + } + + public static void asyncRepairManagementDnsZoneBindingLRO() 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()) { + RepairManagementDnsZoneBindingRequest request = + RepairManagementDnsZoneBindingRequest.newBuilder() + .setName( + ManagementDnsZoneBindingName.of( + "[PROJECT]", + "[LOCATION]", + "[PRIVATE_CLOUD]", + "[MANAGEMENT_DNS_ZONE_BINDING]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + vmwareEngineClient.repairManagementDnsZoneBindingOperationCallable().futureCall(request); + // Do something. + ManagementDnsZoneBinding response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_RepairManagementDnsZoneBinding_LRO_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/repairmanagementdnszonebinding/SyncRepairManagementDnsZoneBinding.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/repairmanagementdnszonebinding/SyncRepairManagementDnsZoneBinding.java new file mode 100644 index 000000000000..847b67370f77 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/repairmanagementdnszonebinding/SyncRepairManagementDnsZoneBinding.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_RepairManagementDnsZoneBinding_sync] +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding; +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBindingName; +import com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncRepairManagementDnsZoneBinding { + + public static void main(String[] args) throws Exception { + syncRepairManagementDnsZoneBinding(); + } + + public static void syncRepairManagementDnsZoneBinding() 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()) { + RepairManagementDnsZoneBindingRequest request = + RepairManagementDnsZoneBindingRequest.newBuilder() + .setName( + ManagementDnsZoneBindingName.of( + "[PROJECT]", + "[LOCATION]", + "[PRIVATE_CLOUD]", + "[MANAGEMENT_DNS_ZONE_BINDING]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ManagementDnsZoneBinding response = + vmwareEngineClient.repairManagementDnsZoneBindingAsync(request).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_RepairManagementDnsZoneBinding_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/repairmanagementdnszonebinding/SyncRepairManagementDnsZoneBindingManagementdnszonebindingname.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/repairmanagementdnszonebinding/SyncRepairManagementDnsZoneBindingManagementdnszonebindingname.java new file mode 100644 index 000000000000..43a7ff1dfa06 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/repairmanagementdnszonebinding/SyncRepairManagementDnsZoneBindingManagementdnszonebindingname.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_RepairManagementDnsZoneBinding_Managementdnszonebindingname_sync] +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding; +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBindingName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncRepairManagementDnsZoneBindingManagementdnszonebindingname { + + public static void main(String[] args) throws Exception { + syncRepairManagementDnsZoneBindingManagementdnszonebindingname(); + } + + public static void syncRepairManagementDnsZoneBindingManagementdnszonebindingname() + 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()) { + ManagementDnsZoneBindingName name = + ManagementDnsZoneBindingName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[MANAGEMENT_DNS_ZONE_BINDING]"); + ManagementDnsZoneBinding response = + vmwareEngineClient.repairManagementDnsZoneBindingAsync(name).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_RepairManagementDnsZoneBinding_Managementdnszonebindingname_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/repairmanagementdnszonebinding/SyncRepairManagementDnsZoneBindingString.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/repairmanagementdnszonebinding/SyncRepairManagementDnsZoneBindingString.java new file mode 100644 index 000000000000..ed0e1e5a8734 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/repairmanagementdnszonebinding/SyncRepairManagementDnsZoneBindingString.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_RepairManagementDnsZoneBinding_String_sync] +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding; +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBindingName; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncRepairManagementDnsZoneBindingString { + + public static void main(String[] args) throws Exception { + syncRepairManagementDnsZoneBindingString(); + } + + public static void syncRepairManagementDnsZoneBindingString() 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 = + ManagementDnsZoneBindingName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[MANAGEMENT_DNS_ZONE_BINDING]") + .toString(); + ManagementDnsZoneBinding response = + vmwareEngineClient.repairManagementDnsZoneBindingAsync(name).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_RepairManagementDnsZoneBinding_String_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/resetvcentercredentials/AsyncResetVcenterCredentials.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/resetvcentercredentials/AsyncResetVcenterCredentials.java index da2ba58d6ce5..4a2f16f17ce1 100644 --- a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/resetvcentercredentials/AsyncResetVcenterCredentials.java +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/resetvcentercredentials/AsyncResetVcenterCredentials.java @@ -41,6 +41,7 @@ public static void asyncResetVcenterCredentials() throws Exception { .setPrivateCloud( PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) .setRequestId("requestId693933066") + .setUsername("username-265713450") .build(); ApiFuture future = vmwareEngineClient.resetVcenterCredentialsCallable().futureCall(request); diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/resetvcentercredentials/AsyncResetVcenterCredentialsLRO.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/resetvcentercredentials/AsyncResetVcenterCredentialsLRO.java index 3be6720bb81d..c6f6193f478a 100644 --- a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/resetvcentercredentials/AsyncResetVcenterCredentialsLRO.java +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/resetvcentercredentials/AsyncResetVcenterCredentialsLRO.java @@ -42,6 +42,7 @@ public static void asyncResetVcenterCredentialsLRO() throws Exception { .setPrivateCloud( PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) .setRequestId("requestId693933066") + .setUsername("username-265713450") .build(); OperationFuture future = vmwareEngineClient.resetVcenterCredentialsOperationCallable().futureCall(request); diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/resetvcentercredentials/SyncResetVcenterCredentials.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/resetvcentercredentials/SyncResetVcenterCredentials.java index 9fcbb72ec5b0..f49e6f615006 100644 --- a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/resetvcentercredentials/SyncResetVcenterCredentials.java +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/resetvcentercredentials/SyncResetVcenterCredentials.java @@ -40,6 +40,7 @@ public static void syncResetVcenterCredentials() throws Exception { .setPrivateCloud( PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) .setRequestId("requestId693933066") + .setUsername("username-265713450") .build(); PrivateCloud response = vmwareEngineClient.resetVcenterCredentialsAsync(request).get(); } diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/revokednsbindpermission/AsyncRevokeDnsBindPermission.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/revokednsbindpermission/AsyncRevokeDnsBindPermission.java new file mode 100644 index 000000000000..d73c1f6ca74d --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/revokednsbindpermission/AsyncRevokeDnsBindPermission.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_RevokeDnsBindPermission_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.DnsBindPermissionName; +import com.google.cloud.vmwareengine.v1.Principal; +import com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.longrunning.Operation; + +public class AsyncRevokeDnsBindPermission { + + public static void main(String[] args) throws Exception { + asyncRevokeDnsBindPermission(); + } + + public static void asyncRevokeDnsBindPermission() 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()) { + RevokeDnsBindPermissionRequest request = + RevokeDnsBindPermissionRequest.newBuilder() + .setName(DnsBindPermissionName.of("[PROJECT]", "[LOCATION]").toString()) + .setPrincipal(Principal.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + vmwareEngineClient.revokeDnsBindPermissionCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_RevokeDnsBindPermission_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/revokednsbindpermission/AsyncRevokeDnsBindPermissionLRO.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/revokednsbindpermission/AsyncRevokeDnsBindPermissionLRO.java new file mode 100644 index 000000000000..2e7f89b792c3 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/revokednsbindpermission/AsyncRevokeDnsBindPermissionLRO.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_RevokeDnsBindPermission_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vmwareengine.v1.DnsBindPermission; +import com.google.cloud.vmwareengine.v1.DnsBindPermissionName; +import com.google.cloud.vmwareengine.v1.OperationMetadata; +import com.google.cloud.vmwareengine.v1.Principal; +import com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class AsyncRevokeDnsBindPermissionLRO { + + public static void main(String[] args) throws Exception { + asyncRevokeDnsBindPermissionLRO(); + } + + public static void asyncRevokeDnsBindPermissionLRO() 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()) { + RevokeDnsBindPermissionRequest request = + RevokeDnsBindPermissionRequest.newBuilder() + .setName(DnsBindPermissionName.of("[PROJECT]", "[LOCATION]").toString()) + .setPrincipal(Principal.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + vmwareEngineClient.revokeDnsBindPermissionOperationCallable().futureCall(request); + // Do something. + DnsBindPermission response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_RevokeDnsBindPermission_LRO_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/revokednsbindpermission/SyncRevokeDnsBindPermission.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/revokednsbindpermission/SyncRevokeDnsBindPermission.java new file mode 100644 index 000000000000..0c5034cd7f51 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/revokednsbindpermission/SyncRevokeDnsBindPermission.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_RevokeDnsBindPermission_sync] +import com.google.cloud.vmwareengine.v1.DnsBindPermission; +import com.google.cloud.vmwareengine.v1.DnsBindPermissionName; +import com.google.cloud.vmwareengine.v1.Principal; +import com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncRevokeDnsBindPermission { + + public static void main(String[] args) throws Exception { + syncRevokeDnsBindPermission(); + } + + public static void syncRevokeDnsBindPermission() 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()) { + RevokeDnsBindPermissionRequest request = + RevokeDnsBindPermissionRequest.newBuilder() + .setName(DnsBindPermissionName.of("[PROJECT]", "[LOCATION]").toString()) + .setPrincipal(Principal.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + DnsBindPermission response = vmwareEngineClient.revokeDnsBindPermissionAsync(request).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_RevokeDnsBindPermission_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/revokednsbindpermission/SyncRevokeDnsBindPermissionDnsbindpermissionnamePrincipal.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/revokednsbindpermission/SyncRevokeDnsBindPermissionDnsbindpermissionnamePrincipal.java new file mode 100644 index 000000000000..82d84cbd671f --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/revokednsbindpermission/SyncRevokeDnsBindPermissionDnsbindpermissionnamePrincipal.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_RevokeDnsBindPermission_DnsbindpermissionnamePrincipal_sync] +import com.google.cloud.vmwareengine.v1.DnsBindPermission; +import com.google.cloud.vmwareengine.v1.DnsBindPermissionName; +import com.google.cloud.vmwareengine.v1.Principal; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncRevokeDnsBindPermissionDnsbindpermissionnamePrincipal { + + public static void main(String[] args) throws Exception { + syncRevokeDnsBindPermissionDnsbindpermissionnamePrincipal(); + } + + public static void syncRevokeDnsBindPermissionDnsbindpermissionnamePrincipal() 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()) { + DnsBindPermissionName name = DnsBindPermissionName.of("[PROJECT]", "[LOCATION]"); + Principal principal = Principal.newBuilder().build(); + DnsBindPermission response = + vmwareEngineClient.revokeDnsBindPermissionAsync(name, principal).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_RevokeDnsBindPermission_DnsbindpermissionnamePrincipal_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/revokednsbindpermission/SyncRevokeDnsBindPermissionStringPrincipal.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/revokednsbindpermission/SyncRevokeDnsBindPermissionStringPrincipal.java new file mode 100644 index 000000000000..6bddb3d123bb --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/revokednsbindpermission/SyncRevokeDnsBindPermissionStringPrincipal.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_RevokeDnsBindPermission_StringPrincipal_sync] +import com.google.cloud.vmwareengine.v1.DnsBindPermission; +import com.google.cloud.vmwareengine.v1.DnsBindPermissionName; +import com.google.cloud.vmwareengine.v1.Principal; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; + +public class SyncRevokeDnsBindPermissionStringPrincipal { + + public static void main(String[] args) throws Exception { + syncRevokeDnsBindPermissionStringPrincipal(); + } + + public static void syncRevokeDnsBindPermissionStringPrincipal() 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 = DnsBindPermissionName.of("[PROJECT]", "[LOCATION]").toString(); + Principal principal = Principal.newBuilder().build(); + DnsBindPermission response = + vmwareEngineClient.revokeDnsBindPermissionAsync(name, principal).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_RevokeDnsBindPermission_StringPrincipal_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/showvcentercredentials/AsyncShowVcenterCredentials.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/showvcentercredentials/AsyncShowVcenterCredentials.java index 73161f025403..e825effbcf0a 100644 --- a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/showvcentercredentials/AsyncShowVcenterCredentials.java +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/showvcentercredentials/AsyncShowVcenterCredentials.java @@ -40,6 +40,7 @@ public static void asyncShowVcenterCredentials() throws Exception { ShowVcenterCredentialsRequest.newBuilder() .setPrivateCloud( PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setUsername("username-265713450") .build(); ApiFuture future = vmwareEngineClient.showVcenterCredentialsCallable().futureCall(request); diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/showvcentercredentials/SyncShowVcenterCredentials.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/showvcentercredentials/SyncShowVcenterCredentials.java index 9c9f59a6e160..40d88f0de64e 100644 --- a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/showvcentercredentials/SyncShowVcenterCredentials.java +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/showvcentercredentials/SyncShowVcenterCredentials.java @@ -39,6 +39,7 @@ public static void syncShowVcenterCredentials() throws Exception { ShowVcenterCredentialsRequest.newBuilder() .setPrivateCloud( PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setUsername("username-265713450") .build(); Credentials response = vmwareEngineClient.showVcenterCredentials(request); } diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatednsforwarding/AsyncUpdateDnsForwarding.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatednsforwarding/AsyncUpdateDnsForwarding.java new file mode 100644 index 000000000000..eb25ed565d83 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatednsforwarding/AsyncUpdateDnsForwarding.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_UpdateDnsForwarding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.DnsForwarding; +import com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateDnsForwarding { + + public static void main(String[] args) throws Exception { + asyncUpdateDnsForwarding(); + } + + public static void asyncUpdateDnsForwarding() 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()) { + UpdateDnsForwardingRequest request = + UpdateDnsForwardingRequest.newBuilder() + .setDnsForwarding(DnsForwarding.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + vmwareEngineClient.updateDnsForwardingCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_UpdateDnsForwarding_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatednsforwarding/AsyncUpdateDnsForwardingLRO.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatednsforwarding/AsyncUpdateDnsForwardingLRO.java new file mode 100644 index 000000000000..06b5480eb50e --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatednsforwarding/AsyncUpdateDnsForwardingLRO.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_UpdateDnsForwarding_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vmwareengine.v1.DnsForwarding; +import com.google.cloud.vmwareengine.v1.OperationMetadata; +import com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateDnsForwardingLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateDnsForwardingLRO(); + } + + public static void asyncUpdateDnsForwardingLRO() 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()) { + UpdateDnsForwardingRequest request = + UpdateDnsForwardingRequest.newBuilder() + .setDnsForwarding(DnsForwarding.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + vmwareEngineClient.updateDnsForwardingOperationCallable().futureCall(request); + // Do something. + DnsForwarding response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_UpdateDnsForwarding_LRO_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatednsforwarding/SyncUpdateDnsForwarding.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatednsforwarding/SyncUpdateDnsForwarding.java new file mode 100644 index 000000000000..63415bf28c04 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatednsforwarding/SyncUpdateDnsForwarding.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_UpdateDnsForwarding_sync] +import com.google.cloud.vmwareengine.v1.DnsForwarding; +import com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDnsForwarding { + + public static void main(String[] args) throws Exception { + syncUpdateDnsForwarding(); + } + + public static void syncUpdateDnsForwarding() 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()) { + UpdateDnsForwardingRequest request = + UpdateDnsForwardingRequest.newBuilder() + .setDnsForwarding(DnsForwarding.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + DnsForwarding response = vmwareEngineClient.updateDnsForwardingAsync(request).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_UpdateDnsForwarding_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatednsforwarding/SyncUpdateDnsForwardingDnsforwardingFieldmask.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatednsforwarding/SyncUpdateDnsForwardingDnsforwardingFieldmask.java new file mode 100644 index 000000000000..7e57ff52fe8a --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatednsforwarding/SyncUpdateDnsForwardingDnsforwardingFieldmask.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_UpdateDnsForwarding_DnsforwardingFieldmask_sync] +import com.google.cloud.vmwareengine.v1.DnsForwarding; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDnsForwardingDnsforwardingFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateDnsForwardingDnsforwardingFieldmask(); + } + + public static void syncUpdateDnsForwardingDnsforwardingFieldmask() 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()) { + DnsForwarding dnsForwarding = DnsForwarding.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + DnsForwarding response = + vmwareEngineClient.updateDnsForwardingAsync(dnsForwarding, updateMask).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_UpdateDnsForwarding_DnsforwardingFieldmask_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateexternalaccessrule/AsyncUpdateExternalAccessRule.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateexternalaccessrule/AsyncUpdateExternalAccessRule.java new file mode 100644 index 000000000000..3a8dcc01e881 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateexternalaccessrule/AsyncUpdateExternalAccessRule.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_UpdateExternalAccessRule_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.ExternalAccessRule; +import com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateExternalAccessRule { + + public static void main(String[] args) throws Exception { + asyncUpdateExternalAccessRule(); + } + + public static void asyncUpdateExternalAccessRule() 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()) { + UpdateExternalAccessRuleRequest request = + UpdateExternalAccessRuleRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setExternalAccessRule(ExternalAccessRule.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + vmwareEngineClient.updateExternalAccessRuleCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_UpdateExternalAccessRule_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateexternalaccessrule/AsyncUpdateExternalAccessRuleLRO.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateexternalaccessrule/AsyncUpdateExternalAccessRuleLRO.java new file mode 100644 index 000000000000..e578d2f1c426 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateexternalaccessrule/AsyncUpdateExternalAccessRuleLRO.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_UpdateExternalAccessRule_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vmwareengine.v1.ExternalAccessRule; +import com.google.cloud.vmwareengine.v1.OperationMetadata; +import com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateExternalAccessRuleLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateExternalAccessRuleLRO(); + } + + public static void asyncUpdateExternalAccessRuleLRO() 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()) { + UpdateExternalAccessRuleRequest request = + UpdateExternalAccessRuleRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setExternalAccessRule(ExternalAccessRule.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + vmwareEngineClient.updateExternalAccessRuleOperationCallable().futureCall(request); + // Do something. + ExternalAccessRule response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_UpdateExternalAccessRule_LRO_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateexternalaccessrule/SyncUpdateExternalAccessRule.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateexternalaccessrule/SyncUpdateExternalAccessRule.java new file mode 100644 index 000000000000..0a24ff161b2d --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateexternalaccessrule/SyncUpdateExternalAccessRule.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_UpdateExternalAccessRule_sync] +import com.google.cloud.vmwareengine.v1.ExternalAccessRule; +import com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateExternalAccessRule { + + public static void main(String[] args) throws Exception { + syncUpdateExternalAccessRule(); + } + + public static void syncUpdateExternalAccessRule() 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()) { + UpdateExternalAccessRuleRequest request = + UpdateExternalAccessRuleRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setExternalAccessRule(ExternalAccessRule.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ExternalAccessRule response = vmwareEngineClient.updateExternalAccessRuleAsync(request).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_UpdateExternalAccessRule_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateexternalaccessrule/SyncUpdateExternalAccessRuleExternalaccessruleFieldmask.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateexternalaccessrule/SyncUpdateExternalAccessRuleExternalaccessruleFieldmask.java new file mode 100644 index 000000000000..326ad9f7eb55 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateexternalaccessrule/SyncUpdateExternalAccessRuleExternalaccessruleFieldmask.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_UpdateExternalAccessRule_ExternalaccessruleFieldmask_sync] +import com.google.cloud.vmwareengine.v1.ExternalAccessRule; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateExternalAccessRuleExternalaccessruleFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateExternalAccessRuleExternalaccessruleFieldmask(); + } + + public static void syncUpdateExternalAccessRuleExternalaccessruleFieldmask() 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()) { + ExternalAccessRule externalAccessRule = ExternalAccessRule.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + ExternalAccessRule response = + vmwareEngineClient.updateExternalAccessRuleAsync(externalAccessRule, updateMask).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_UpdateExternalAccessRule_ExternalaccessruleFieldmask_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateexternaladdress/AsyncUpdateExternalAddress.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateexternaladdress/AsyncUpdateExternalAddress.java new file mode 100644 index 000000000000..57370368a148 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateexternaladdress/AsyncUpdateExternalAddress.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_UpdateExternalAddress_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.ExternalAddress; +import com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateExternalAddress { + + public static void main(String[] args) throws Exception { + asyncUpdateExternalAddress(); + } + + public static void asyncUpdateExternalAddress() 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()) { + UpdateExternalAddressRequest request = + UpdateExternalAddressRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setExternalAddress(ExternalAddress.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + vmwareEngineClient.updateExternalAddressCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_UpdateExternalAddress_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateexternaladdress/AsyncUpdateExternalAddressLRO.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateexternaladdress/AsyncUpdateExternalAddressLRO.java new file mode 100644 index 000000000000..7b98968a389d --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateexternaladdress/AsyncUpdateExternalAddressLRO.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_UpdateExternalAddress_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vmwareengine.v1.ExternalAddress; +import com.google.cloud.vmwareengine.v1.OperationMetadata; +import com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateExternalAddressLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateExternalAddressLRO(); + } + + public static void asyncUpdateExternalAddressLRO() 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()) { + UpdateExternalAddressRequest request = + UpdateExternalAddressRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setExternalAddress(ExternalAddress.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + vmwareEngineClient.updateExternalAddressOperationCallable().futureCall(request); + // Do something. + ExternalAddress response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_UpdateExternalAddress_LRO_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateexternaladdress/SyncUpdateExternalAddress.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateexternaladdress/SyncUpdateExternalAddress.java new file mode 100644 index 000000000000..48bed32f0b32 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateexternaladdress/SyncUpdateExternalAddress.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_UpdateExternalAddress_sync] +import com.google.cloud.vmwareengine.v1.ExternalAddress; +import com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateExternalAddress { + + public static void main(String[] args) throws Exception { + syncUpdateExternalAddress(); + } + + public static void syncUpdateExternalAddress() 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()) { + UpdateExternalAddressRequest request = + UpdateExternalAddressRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setExternalAddress(ExternalAddress.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ExternalAddress response = vmwareEngineClient.updateExternalAddressAsync(request).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_UpdateExternalAddress_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateexternaladdress/SyncUpdateExternalAddressExternaladdressFieldmask.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateexternaladdress/SyncUpdateExternalAddressExternaladdressFieldmask.java new file mode 100644 index 000000000000..9cd5104dfbb8 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateexternaladdress/SyncUpdateExternalAddressExternaladdressFieldmask.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_UpdateExternalAddress_ExternaladdressFieldmask_sync] +import com.google.cloud.vmwareengine.v1.ExternalAddress; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateExternalAddressExternaladdressFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateExternalAddressExternaladdressFieldmask(); + } + + public static void syncUpdateExternalAddressExternaladdressFieldmask() 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()) { + ExternalAddress externalAddress = ExternalAddress.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + ExternalAddress response = + vmwareEngineClient.updateExternalAddressAsync(externalAddress, updateMask).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_UpdateExternalAddress_ExternaladdressFieldmask_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateloggingserver/AsyncUpdateLoggingServer.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateloggingserver/AsyncUpdateLoggingServer.java new file mode 100644 index 000000000000..b9d2a62238f0 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateloggingserver/AsyncUpdateLoggingServer.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_UpdateLoggingServer_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.LoggingServer; +import com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateLoggingServer { + + public static void main(String[] args) throws Exception { + asyncUpdateLoggingServer(); + } + + public static void asyncUpdateLoggingServer() 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()) { + UpdateLoggingServerRequest request = + UpdateLoggingServerRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setLoggingServer(LoggingServer.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + vmwareEngineClient.updateLoggingServerCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_UpdateLoggingServer_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateloggingserver/AsyncUpdateLoggingServerLRO.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateloggingserver/AsyncUpdateLoggingServerLRO.java new file mode 100644 index 000000000000..0493065c033a --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateloggingserver/AsyncUpdateLoggingServerLRO.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_UpdateLoggingServer_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vmwareengine.v1.LoggingServer; +import com.google.cloud.vmwareengine.v1.OperationMetadata; +import com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateLoggingServerLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateLoggingServerLRO(); + } + + public static void asyncUpdateLoggingServerLRO() 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()) { + UpdateLoggingServerRequest request = + UpdateLoggingServerRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setLoggingServer(LoggingServer.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + vmwareEngineClient.updateLoggingServerOperationCallable().futureCall(request); + // Do something. + LoggingServer response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_UpdateLoggingServer_LRO_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateloggingserver/SyncUpdateLoggingServer.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateloggingserver/SyncUpdateLoggingServer.java new file mode 100644 index 000000000000..f80df74bcf90 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateloggingserver/SyncUpdateLoggingServer.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_UpdateLoggingServer_sync] +import com.google.cloud.vmwareengine.v1.LoggingServer; +import com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateLoggingServer { + + public static void main(String[] args) throws Exception { + syncUpdateLoggingServer(); + } + + public static void syncUpdateLoggingServer() 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()) { + UpdateLoggingServerRequest request = + UpdateLoggingServerRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setLoggingServer(LoggingServer.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + LoggingServer response = vmwareEngineClient.updateLoggingServerAsync(request).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_UpdateLoggingServer_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateloggingserver/SyncUpdateLoggingServerLoggingserverFieldmask.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateloggingserver/SyncUpdateLoggingServerLoggingserverFieldmask.java new file mode 100644 index 000000000000..ea0577a9719b --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updateloggingserver/SyncUpdateLoggingServerLoggingserverFieldmask.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_UpdateLoggingServer_LoggingserverFieldmask_sync] +import com.google.cloud.vmwareengine.v1.LoggingServer; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateLoggingServerLoggingserverFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateLoggingServerLoggingserverFieldmask(); + } + + public static void syncUpdateLoggingServerLoggingserverFieldmask() 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()) { + LoggingServer loggingServer = LoggingServer.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + LoggingServer response = + vmwareEngineClient.updateLoggingServerAsync(loggingServer, updateMask).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_UpdateLoggingServer_LoggingserverFieldmask_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatemanagementdnszonebinding/AsyncUpdateManagementDnsZoneBinding.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatemanagementdnszonebinding/AsyncUpdateManagementDnsZoneBinding.java new file mode 100644 index 000000000000..ed1c377ee6c4 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatemanagementdnszonebinding/AsyncUpdateManagementDnsZoneBinding.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_UpdateManagementDnsZoneBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding; +import com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateManagementDnsZoneBinding { + + public static void main(String[] args) throws Exception { + asyncUpdateManagementDnsZoneBinding(); + } + + public static void asyncUpdateManagementDnsZoneBinding() 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()) { + UpdateManagementDnsZoneBindingRequest request = + UpdateManagementDnsZoneBindingRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setManagementDnsZoneBinding(ManagementDnsZoneBinding.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + vmwareEngineClient.updateManagementDnsZoneBindingCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_UpdateManagementDnsZoneBinding_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatemanagementdnszonebinding/AsyncUpdateManagementDnsZoneBindingLRO.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatemanagementdnszonebinding/AsyncUpdateManagementDnsZoneBindingLRO.java new file mode 100644 index 000000000000..4bc6eda67072 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatemanagementdnszonebinding/AsyncUpdateManagementDnsZoneBindingLRO.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_UpdateManagementDnsZoneBinding_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding; +import com.google.cloud.vmwareengine.v1.OperationMetadata; +import com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateManagementDnsZoneBindingLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateManagementDnsZoneBindingLRO(); + } + + public static void asyncUpdateManagementDnsZoneBindingLRO() 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()) { + UpdateManagementDnsZoneBindingRequest request = + UpdateManagementDnsZoneBindingRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setManagementDnsZoneBinding(ManagementDnsZoneBinding.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + vmwareEngineClient.updateManagementDnsZoneBindingOperationCallable().futureCall(request); + // Do something. + ManagementDnsZoneBinding response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_UpdateManagementDnsZoneBinding_LRO_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatemanagementdnszonebinding/SyncUpdateManagementDnsZoneBinding.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatemanagementdnszonebinding/SyncUpdateManagementDnsZoneBinding.java new file mode 100644 index 000000000000..8e8de6c67151 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatemanagementdnszonebinding/SyncUpdateManagementDnsZoneBinding.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_UpdateManagementDnsZoneBinding_sync] +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding; +import com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateManagementDnsZoneBinding { + + public static void main(String[] args) throws Exception { + syncUpdateManagementDnsZoneBinding(); + } + + public static void syncUpdateManagementDnsZoneBinding() 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()) { + UpdateManagementDnsZoneBindingRequest request = + UpdateManagementDnsZoneBindingRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setManagementDnsZoneBinding(ManagementDnsZoneBinding.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ManagementDnsZoneBinding response = + vmwareEngineClient.updateManagementDnsZoneBindingAsync(request).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_UpdateManagementDnsZoneBinding_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatemanagementdnszonebinding/SyncUpdateManagementDnsZoneBindingManagementdnszonebindingFieldmask.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatemanagementdnszonebinding/SyncUpdateManagementDnsZoneBindingManagementdnszonebindingFieldmask.java new file mode 100644 index 000000000000..0dc99ac4965e --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatemanagementdnszonebinding/SyncUpdateManagementDnsZoneBindingManagementdnszonebindingFieldmask.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_UpdateManagementDnsZoneBinding_ManagementdnszonebindingFieldmask_sync] +import com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateManagementDnsZoneBindingManagementdnszonebindingFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateManagementDnsZoneBindingManagementdnszonebindingFieldmask(); + } + + public static void syncUpdateManagementDnsZoneBindingManagementdnszonebindingFieldmask() + 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()) { + ManagementDnsZoneBinding managementDnsZoneBinding = + ManagementDnsZoneBinding.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + ManagementDnsZoneBinding response = + vmwareEngineClient + .updateManagementDnsZoneBindingAsync(managementDnsZoneBinding, updateMask) + .get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_UpdateManagementDnsZoneBinding_ManagementdnszonebindingFieldmask_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatenetworkpeering/AsyncUpdateNetworkPeering.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatenetworkpeering/AsyncUpdateNetworkPeering.java new file mode 100644 index 000000000000..d234a1f958ae --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatenetworkpeering/AsyncUpdateNetworkPeering.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_UpdateNetworkPeering_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmwareengine.v1.NetworkPeering; +import com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateNetworkPeering { + + public static void main(String[] args) throws Exception { + asyncUpdateNetworkPeering(); + } + + public static void asyncUpdateNetworkPeering() 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()) { + UpdateNetworkPeeringRequest request = + UpdateNetworkPeeringRequest.newBuilder() + .setNetworkPeering(NetworkPeering.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + vmwareEngineClient.updateNetworkPeeringCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_UpdateNetworkPeering_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatenetworkpeering/AsyncUpdateNetworkPeeringLRO.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatenetworkpeering/AsyncUpdateNetworkPeeringLRO.java new file mode 100644 index 000000000000..84c075070987 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatenetworkpeering/AsyncUpdateNetworkPeeringLRO.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_UpdateNetworkPeering_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vmwareengine.v1.NetworkPeering; +import com.google.cloud.vmwareengine.v1.OperationMetadata; +import com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateNetworkPeeringLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateNetworkPeeringLRO(); + } + + public static void asyncUpdateNetworkPeeringLRO() 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()) { + UpdateNetworkPeeringRequest request = + UpdateNetworkPeeringRequest.newBuilder() + .setNetworkPeering(NetworkPeering.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + vmwareEngineClient.updateNetworkPeeringOperationCallable().futureCall(request); + // Do something. + NetworkPeering response = future.get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_UpdateNetworkPeering_LRO_async] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatenetworkpeering/SyncUpdateNetworkPeering.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatenetworkpeering/SyncUpdateNetworkPeering.java new file mode 100644 index 000000000000..43d425ace3f1 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatenetworkpeering/SyncUpdateNetworkPeering.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_UpdateNetworkPeering_sync] +import com.google.cloud.vmwareengine.v1.NetworkPeering; +import com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateNetworkPeering { + + public static void main(String[] args) throws Exception { + syncUpdateNetworkPeering(); + } + + public static void syncUpdateNetworkPeering() 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()) { + UpdateNetworkPeeringRequest request = + UpdateNetworkPeeringRequest.newBuilder() + .setNetworkPeering(NetworkPeering.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + NetworkPeering response = vmwareEngineClient.updateNetworkPeeringAsync(request).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_UpdateNetworkPeering_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatenetworkpeering/SyncUpdateNetworkPeeringNetworkpeeringFieldmask.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatenetworkpeering/SyncUpdateNetworkPeeringNetworkpeeringFieldmask.java new file mode 100644 index 000000000000..c1ba83bcb840 --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/updatenetworkpeering/SyncUpdateNetworkPeeringNetworkpeeringFieldmask.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_UpdateNetworkPeering_NetworkpeeringFieldmask_sync] +import com.google.cloud.vmwareengine.v1.NetworkPeering; +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateNetworkPeeringNetworkpeeringFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateNetworkPeeringNetworkpeeringFieldmask(); + } + + public static void syncUpdateNetworkPeeringNetworkpeeringFieldmask() 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()) { + NetworkPeering networkPeering = NetworkPeering.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + NetworkPeering response = + vmwareEngineClient.updateNetworkPeeringAsync(networkPeering, updateMask).get(); + } + } +} +// [END vmwareengine_v1_generated_VmwareEngine_UpdateNetworkPeering_NetworkpeeringFieldmask_sync]